doc: Mention declaration fixes implemented by some modules.
[gnulib.git] / ChangeLog
blob5adf4f9630d9dac7bc81f18165396c64bcdb540a
1 2020-06-26  Bruno Haible  <bruno@clisp.org>
3         doc: Mention declaration fixes implemented by some modules.
4         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6         declaration appear in <unistd.h>.
7         * doc/posix-functions/dup.texi: Likewise.
8         * doc/posix-functions/dup2.texi: Likewise.
9         * doc/posix-functions/gethostname.texi: Likewise.
10         * doc/posix-functions/isatty.texi: Likewise.
11         * doc/posix-functions/lseek.texi: Likewise.
12         * doc/posix-functions/unlink.texi: Likewise.
13         * doc/posix-functions/read.texi: Mention the module 'read'.
14         * doc/posix-functions/write.texi: Mention the effects of the module
15         'write'.
17 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
19         c-dtoastr, c-ldtoastr: new modules
20         These modules provide the same functionality as the modules
21         dtoastr and ldtoastr except for the formatting taking place in the
22         C locale.
23         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
24         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
25         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
26         defined.  Use c_snprintf and c_strtod/c_strtold instead of
27         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
28         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
29         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
30         modules/c-ldtoastr-tests: New files.
31         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
32         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
34 2020-06-21  Bruno Haible  <bruno@clisp.org>
36         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
37         * lib/tzset.c: Include <stdlib.h>, <string.h>.
39 2020-06-16  Bruno Haible  <bruno@clisp.org>
41         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
42         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
44 2020-06-16  Bruno Haible  <bruno@clisp.org>
46         thread, thrd: Avoid a compiler warning.
47         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
49 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
51         windows-thread: Avoid a compiler warning.
52         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
53         void.
54         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
56 2020-06-15  Bruno Haible  <bruno@clisp.org>
58         unictype/joininggroup-name: Fix warning on 64-bit mingw.
59         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
60         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
61         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
62         first.
64 2020-06-06  Bruno Haible  <bruno@clisp.org>
66         calloc-gnu tests: Avoid a test failure with clang.
67         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
68         'volatile', to defeat compiler optimizations.
70 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72         getloadavg: fix double-increment bug
73         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
74         Linux without glibc, Android, Cygwin.  This fixes a bug I
75         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
76         Problem and fix reported by Semen Verchenko in:
77         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
79         tempname: use getrandom, not getentropy
80         This removes a dependency, as getentropy depends on getrandom.
81         * lib/tempname.c: Include sys/random.h instead of unistd.h.
82         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
83         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
85 2020-06-01  Bruno Haible  <bruno@clisp.org>
87         doc: New chapter 'Multithreading'.
88         * doc/multithread.texi: New file.
89         * doc/gnulib.texi: Include it.
91 2020-06-01  Bruno Haible  <bruno@clisp.org>
93         doc: Move 'Running self-tests under valgrind' section.
94         * doc/gnulib.texi (Build Infrastructure Modules): Include
95         valgrind-tests.texi here...
96         (Miscellaneous Notes): ... not here.
98 2020-06-01  Bruno Haible  <bruno@clisp.org>
100         doc: Move 'Visual Studio Compatibility' section.
101         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
102         here...
103         (Build Infrastructure Modules): ... not here.
105 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107         doc: improve randomness discussion
108         Inspired by comments from Jeffrey Walton in:
109         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
110         * doc/glibc-functions/getentropy.texi (getentropy):
111         * doc/glibc-functions/getrandom.texi (getrandom):
112         Improve discussion of problems with "random" data,
113         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
115 2020-06-01  Bruno Haible  <bruno@clisp.org>
117         doc: Fix Texinfo syntax error.
118         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
120 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
122         doc: Change '.' to '@.' where appropriate.
123         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
124         * doc/glibc-functions/fstatfs.texi: Likewise.
125         * doc/glibc-functions/fts_children.texi: Likewise.
126         * doc/glibc-functions/fts_read.texi: Likewise.
127         * doc/glibc-functions/getdirentries.texi: Likewise.
128         * doc/glibc-functions/mkostemp.texi: Likewise.
129         * doc/glibc-functions/mkostemps.texi: Likewise.
130         * doc/glibc-functions/mkstemps.texi: Likewise.
131         * doc/glibc-functions/preadv.texi: Likewise.
132         * doc/glibc-functions/pwritev.texi: Likewise.
133         * doc/glibc-functions/sendfile.texi: Likewise.
134         * doc/glibc-functions/statfs.texi: Likewise.
135         * doc/gnulib-intro.texi: Likewise.
136         * doc/gnulib-tool.texi: Likewise.
137         * doc/intprops.texi: Likewise.
138         * doc/lib-symbol-visibility.texi: Likewise.
139         * doc/licenses-texi.texi: Likewise.
140         * doc/pastposix-functions/bcmp.texi: Likewise.
141         * doc/pastposix-functions/bcopy.texi: Likewise.
142         * doc/pastposix-functions/bzero.texi: Likewise.
143         * doc/pastposix-functions/ecvt.texi: Likewise.
144         * doc/pastposix-functions/fcvt.texi: Likewise.
145         * doc/pastposix-functions/ftime.texi: Likewise.
146         * doc/pastposix-functions/gcvt.texi: Likewise.
147         * doc/pastposix-functions/getwd.texi: Likewise.
148         * doc/pastposix-functions/index.texi: Likewise.
149         * doc/pastposix-functions/mktemp.texi: Likewise.
150         * doc/pastposix-functions/rindex.texi: Likewise.
151         * doc/pastposix-functions/wcswcs.texi: Likewise.
152         * doc/posix-functions/aio_cancel.texi: Likewise.
153         * doc/posix-functions/aio_error.texi: Likewise.
154         * doc/posix-functions/aio_fsync.texi: Likewise.
155         * doc/posix-functions/aio_read.texi: Likewise.
156         * doc/posix-functions/aio_return.texi: Likewise.
157         * doc/posix-functions/aio_suspend.texi: Likewise.
158         * doc/posix-functions/aio_write.texi: Likewise.
159         * doc/posix-functions/creat.texi: Likewise.
160         * doc/posix-functions/ctime.texi: Likewise.
161         * doc/posix-functions/daylight.texi: Likewise.
162         * doc/posix-functions/fgetpos.texi: Likewise.
163         * doc/posix-functions/fopen.texi: Likewise.
164         * doc/posix-functions/freopen.texi: Likewise.
165         * doc/posix-functions/fseeko.texi: Likewise.
166         * doc/posix-functions/fsetpos.texi: Likewise.
167         * doc/posix-functions/fstatat.texi: Likewise.
168         * doc/posix-functions/fstatvfs.texi: Likewise.
169         * doc/posix-functions/ftello.texi: Likewise.
170         * doc/posix-functions/ftruncate.texi: Likewise.
171         * doc/posix-functions/getrlimit.texi: Likewise.
172         * doc/posix-functions/lio_listio.texi: Likewise.
173         * doc/posix-functions/localtime.texi: Likewise.
174         * doc/posix-functions/lseek.texi: Likewise.
175         * doc/posix-functions/mkstemp.texi: Likewise.
176         * doc/posix-functions/mktime.texi: Likewise.
177         * doc/posix-functions/open.texi: Likewise.
178         * doc/posix-functions/openat.texi: Likewise.
179         * doc/posix-functions/opendir.texi: Likewise.
180         * doc/posix-functions/pread.texi: Likewise.
181         * doc/posix-functions/pwrite.texi: Likewise.
182         * doc/posix-functions/readdir.texi: Likewise.
183         * doc/posix-functions/readdir_r.texi: Likewise.
184         * doc/posix-functions/scandir.texi: Likewise.
185         * doc/posix-functions/seekdir.texi: Likewise.
186         * doc/posix-functions/setrlimit.texi: Likewise.
187         * doc/posix-functions/statvfs.texi: Likewise.
188         * doc/posix-functions/strftime.texi: Likewise.
189         * doc/posix-functions/telldir.texi: Likewise.
190         * doc/posix-functions/timezone.texi: Likewise.
191         * doc/posix-functions/tmpfile.texi: Likewise.
192         * doc/posix-functions/truncate.texi: Likewise.
193         * doc/posix-functions/tzname.texi: Likewise.
194         * doc/posix-functions/wcsftime.texi: Likewise.
195         * doc/windows-sockets.texi: Likewise.
197 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
199         getrandom-tests: do not assume GRND_RANDOM yields short read
200         * tests/test-getrandom.c (main): Omit assertion that
201         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
202         when b’s size is 100000.  This assertion fails with Linux kernel
203         5.6.13, as that kernel ignores the GRND_RANDOM flag.
204         The separate blocking pool is going away in the Linux kernel, and
205         they’ve added a flag GRND_INSECURE instead; see:
206         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
207         The assertion was iffy anyway; what’s to prevent a kernel from
208         lazily filling a large buffer with random bytes?
210         read-file-test: pacify --enable-gcc-warnings
211         * tests/test-read-file.c (test_read_file): Now static.
213         tempname: merge from glibc and coreutils
214         Also, merge in Gnulib’s more-recent methods of making it easier
215         to share between Gnulib and glibc, and fix a few randomness
216         glitches.
217         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
218         (__set_errno): Remove; libc-config.h does that for us.
219         Do not include <sys/time.h>.
220         (__secure_getenv) [_LIBC]: New macro.
221         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
222         (RANDOM_BITS): Rewrite.
223         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
224         (random_value): New typedef.
225         (try_file, try_dir, try_nocreate): Move up.
226         (gen_tempname_len, try_tempname_len): New functions.
227         (gen_tempname_len): Use a constant array rather than a switch.
228         (try_tempname_len): Don’t assume string length fits in int.
229         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
230         has enough entropy (it’s a bit short).
231         (__gen_tempname): Rewrite in terms of gen_tempname_len.
232         (__try_tempname): Rewrite in terms of try_tempname_len.
233         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
234         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
235         Add getentropy, libc-config.
237 2020-05-31  Bruno Haible  <bruno@clisp.org>
239         getrandom, getentropy: Mention the crypto/gc-random module.
240         Suggested by Simon Josefsson in
241         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
242         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
243         crypto/gc-random module.
244         * doc/glibc-functions/getentropy.texi: Likewise.
246 2020-05-31  Bruno Haible  <bruno@clisp.org>
248         getentropy: Enhance tests.
249         * tests/test-getentropy.c (main): Add one more test.
250         * tests/test-unistd-c++.cc: Check the signature of getentropy.
252 2020-05-31  Bruno Haible  <bruno@clisp.org>
254         getentropy: Work around a macOS and Solaris problem.
255         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
256         'getentropy' module.
257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
258         UNISTD_H_HAVE_SYS_RANDOM_H.
259         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
260         UNISTD_H_HAVE_SYS_RANDOM_H.
261         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
262         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
263         problem. List more platforms.
265 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
267         fnmatch: merge from glibc
268         Also, merge in Gnulib’s more-recent methods of making it easier
269         to share between Gnulib and glibc.
270         * lib/fnmatch.c: Reorder includes to match glibc better.
271         Include libc-config.h instead of config.h.
272         Include alloca.h only if _LIBC || HAVE_ALLOCA.
273         Do not include "../locale/elem-hash.h" if _LIBC.
274         Define macros for btowc, etc. if _LIBC.  All uses simplified.
275         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
276         Include intprops.h, since glibc has it now.
277         (SIZE_MAX): Remove; use (size_t) -1 instead.
278         Omit the "Comment out all this code" ifdef, since Gnulib
279         has never really needed it.
280         (STREQ): Remove; no longer used.
281         (__libc_use_alloca, alloca, alloca_account): Define as
282         needed if !_LIBC.
283         (ISWCTYPE): Remove; all uses replaced by iswctype.
284         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
285         (internal_function): Remove.  All uses removed.
286         (STRUCT): New macro.
287         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
288         (WMEMCMP): New macro.
289         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
290         and <locale/weightwc.h>.
291         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
292         __builtin_expect.  Check for integer overflow more
293         systematically.  Account for alloca storage better when
294         recursive.  Use strnlen instead of strlen for efficiency.
295         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
296         (struct STRUCT): New type.
297         (FCT, EXT): New ENDS and ALLOCA_USED args.
298         All callers changed.
299         (FCT): Prefer __glibc_unlikely to __builtin_expect.
300         Simplify by assuming WIDE_CHAR_SUPPORT.
301         Copy _LIBC code from glibc without worrying Gnulib compatibility.
302         Cast cold to UCHAR to avoid signedness warning.
303         (END): Check for invalid pattern.
304         (EXT): Improve alloca/malloc checking (taken from glibc),
305         and improve it some more by using intprops.h and checking
306         for integer overflow and using bool for booleans.
307         * lib/libc-config.h (compat_symbol): New macro.
308         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
309         acceptable to non-GCC when a trailing semicolon is added.
310         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
311         libc-config, strnlen.  Remove alloca.
313 2020-05-31  Bruno Haible  <bruno@clisp.org>
315         getrandom: Doc and test tweaks.
316         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
317         it sets errno when failing.
318         * tests/test-getrandom.c (main): Disable the high-quality check on those
319         platforms on which it fails.
320         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
321         Cygwin to the list of platforms that don't have the function. Add a note
322         about the quality of the result.
323         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
324         declaration; this is fixed by module 'getrandom'.
326 2020-05-31  Bruno Haible  <bruno@clisp.org>
328         getrandom: Add support for native Windows.
329         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
330         <wincrypt.h>.
331         (CRYPT_VERIFY_CONTEXT): New macro.
332         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
333         'A'.
334         (GetProcAddress): New macro.
335         (BCryptGenRandomFuncType): New type.
336         (BCryptGenRandomFunc, initialized): New variables.
337         (initialize): New function.
338         (getrandom): On native Windows, use <bcrypt.h> API when available, and
339         <wincrypt.h> API as fallback.
340         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
341         * modules/getrandom (Link): New section.
342         * modules/getentropy (Link): Likewise.
343         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
344         $(LIB_GETRANDOM).
345         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
346         $(LIB_GETRANDOM).
347         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
348         against $(LIB_GETRANDOM).
349         * doc/glibc-functions/getrandom.texi: Mention the native Windows
350         support.
352 2020-05-31  Bruno Haible  <bruno@clisp.org>
354         getrandom: Simplify the determination of the random number devices.
355         Suggested by Paul Eggert in
356         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
357         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
358         macros.
359         * modules/getrandom (Depends-on): Remove crypto/gc-random.
361 2020-05-31  Bruno Haible  <bruno@clisp.org>
363         crypto/gc-random: Fix list of crypto devices for Solaris.
364         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
366 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
368         list: fix GCC warnings
369         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
370         (gl_tree_next_node, gl_tree_node_nx_set_value)
371         (gl_tree_previous_node, gl_tree_next_node):
372         Mark unused arguments.
373         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
374         * lib/gl_anylinked_list2.h (gl_linked_node_value)
375         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
377         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
378         the same variable name in nested scopes.
380 2020-05-31  Bruno Haible  <bruno@clisp.org>
382         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
383         Reported by Akim Demaille in
384         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
385         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
386         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
387         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
388         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
389         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
391 2020-05-30  Bruno Haible  <bruno@clisp.org>
393         wmemchr: Relicense under LGPLv2+.
394         * modules/wmemchr (License): Set to LGPLv2+.
396 2020-05-30  Bruno Haible  <bruno@clisp.org>
398         wmempcpy: New module.
399         Reported by Paul Eggert in
400         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
401         * lib/wchar.in.h (wmempcpy): New declaration.
402         * lib/wmempcpy.c: New file.
403         * m4/wmempcpy.m4: New file.
404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
406         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
407         HAVE_WMEMPCPY.
408         * modules/wmempcpy: New file.
409         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
410         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
411         * modules/mempcpy (Description): Fix typo.
413 2020-05-30  Bruno Haible  <bruno@clisp.org>
415         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
416         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
418 2020-05-30  Bruno Haible  <bruno@clisp.org>
420         sys_random: Work around macOS bug.
421         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
422         <stdlib.h> before <sys/random.h>.
423         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
424         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
425         first.
426         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
428 2020-05-30  Bruno Haible  <bruno@clisp.org>
430         getrandom: Override incompatible system function on Solaris 11.
431         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
432         * lib/getrandom.c (getrandom): When the system has getrandom, just
433         invoke it.
434         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
435         system's getrandom function's prototype is not the expected one.
436         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
437         REPLACE_GETRANDOM.
438         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
439         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
440         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
441         EAGAIN.
442         * doc/glibc-functions/getrandom.texi: Mention the new module and the
443         Solaris problem.
445 2020-05-30  Bruno Haible  <bruno@clisp.org>
447         sys_random: Add C++ tests.
448         * tests/test-sys_random-c++.cc: New file.
449         * modules/sys_random-c++-tests: New file.
450         * modules/sys_random-tests (Depends-on): Depend on it.
452         sys_random: Add tests.
453         * tests/test-sys_random.c: New file.
454         * modules/sys_random-tests: New file.
456         sys_random: New module.
457         * lib/sys_random.in.h: Use the common idioms for overridable header
458         files.
459         * m4/sys_random_h.m4: New file.
460         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
461         * modules/sys_random: New file.
462         * modules/getrandom (Files): Remove lib/sys_random.in.h.
463         (Depends-on): Add sys_random.
464         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
465         gl_UNISTD_MODULE_INDICATOR.
466         (Makefile.am): Don't generate sys/random.h here.
467         * doc/glibc-headers/sys_random.texi: New file.
468         * doc/gnulib.texi: Include it.
470 2020-05-30  Bruno Haible  <bruno@clisp.org>
472         unistd: Remove conflicting declaration of getrandom().
473         * lib/unistd.in.h (getrandom): Remove declaration.
474         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
475         declared.
476         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
477         HAVE_GETRANDOM.
478         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
479         HAVE_GETRANDOM.
481 2020-05-30  Bruno Haible  <bruno@clisp.org>
483         getrandom: Add tests.
484         * tests/test-getrandom.c: New file.
485         * modules/getrandom-tests: New file.
487 2020-05-30  Bruno Haible  <bruno@clisp.org>
489         crypto/gc-random: Fix link error on MSVC.
490         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
491         * modules/crypto/gc-random (Link): New section.
492         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
493         $(LIB_GC_RANDOM).
495 2020-05-30  Bruno Haible  <bruno@clisp.org>
497         Don't assume that UNICODE is not defined.
498         Many Windows API functions are defined differently (redirecting to a
499         function with suffix 'W') if the application defines the macro UNICODE
500         than by default (redirecting to a function with suffix 'A').
501         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
502         variant with suffix 'A'.
503         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
504         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
505         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
506         * lib/getlogin.c (GetUserName): Likewise.
507         * lib/getlogin_r.c (GetUserName): Likewise.
508         * lib/gettimeofday.c (LoadLibrary): Likewise.
509         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
510         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
511         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
512         * lib/mountlist.c (GetDriveType): Likewise.
513         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
514         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
515         Likewise.
516         * lib/physmem.c (GetModuleHandle): Likewise.
517         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
518         PeekMessage, DispatchMessage): Likewise.
519         * lib/progreloc.c (GetModuleFileName): Likewise.
520         * lib/putenv.c (SetEnvironmentVariable): Likewise.
521         * lib/read.c (GetNamedPipeHandleState): Likewise.
522         * lib/readdir.c (FindNextFile): Likewise.
523         * lib/relocatable.c (GetModuleFileName): Likewise.
524         * lib/rename.c (MoveFileEx): Likewise.
525         * lib/rewinddir.c (FindFirstFile): Likewise.
526         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
527         PeekMessage, DispatchMessage): Likewise.
528         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
529         * lib/socket.c (WSASocket): Likewise.
530         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
531         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
532         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
533         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
534         * lib/tmpdir.c (GetTempPath): Likewise.
535         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
536         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
537         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
538         * lib/windows-cond.c (CreateEvent): Likewise.
539         * lib/windows-rwlock.c (CreateEvent): Likewise.
540         * lib/windows-timedmutex.c (CreateEvent): Likewise.
541         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
542         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
543         * lib/write.c (GetNamedPipeHandleState): Likewise.
545 2020-05-30  Bruno Haible  <bruno@clisp.org>
547         physmem: Fix compilation errors on MSVC.
548         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
549         * modules/physmem (Depends-on): Add unistd.
551 2020-05-29  Bruno Haible  <bruno@clisp.org>
553         gnulib-tool: Fix link errors with a particular set of modules on mingw.
554         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
555         LDADD a second time, after the second occurrence of libtests.a.
556         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
558 2020-05-29  Bruno Haible  <bruno@clisp.org>
560         fnmatch: Rely on more gnulib modules.
561         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
562         wmempcpy, mempcpy.
563         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
564         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
565         HAVE_MEMPCPY are all 1.
566         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
567         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
569 2020-05-29  Bruno Haible  <bruno@clisp.org>
571         Avoid dynamic lookup of Windows API functions when possible.
572         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
573         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
574         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
575         (use_win32_p): Define differently.
576         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
577         CreateHardLinkFunc, initialized, initialize): Don't define in a build
578         for Windows XP or higher.
580 2020-05-29  Daiki Ueno  <ueno@gnu.org>
582         read-file: disable buffering if RF_SENSITIVE is set
583         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
584         Suggested by Glenn Strauss.
585         (fread_file): Suggest calling setvbuf before calling this
586         function.  Suggested by Bruno Haible.
588 2020-05-29  Bruno Haible  <bruno@clisp.org>
590         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
591         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
592         program.
593         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
594         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
595         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
596         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
598 2020-05-29  Bruno Haible  <bruno@clisp.org>
600         Fix compilation error on native Windows (regression from 2020-05-28).
601         Reported by Daiki Ueno.
602         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
603         macro when not using dynamic loading.
604         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
605         QueryFullProcessImageNameFunc): Likewise.
606         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
607         GetFinalPathNameByHandleFunc): Likewise.
609 2020-05-29  Daiki Ueno  <ueno@gnu.org>
611         fopen-gnu-tests: fix "\x" escape usage
612         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
614 2020-05-28  Bruno Haible  <bruno@clisp.org>
616         Avoid dynamic loading of Windows API functions when possible.
617         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
618         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
619         * lib/gettimeofday.c (GetProcAddress,
620         GetSystemTimePreciseAsFileTimeFuncType,
621         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
622         define in a build for Windows 8 or higher.
623         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
624         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
625         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
626         in a build for Windows Vista or higher.
627         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
628         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
629         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
631 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
633         explicit_bzero-tests: improve -Wmissing-declarations pacification
634         * tests/test-explicit_bzero.c: Now noinline.
635         Suggested by Bruno Haible in:
636         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
638 2020-05-28  Bruno Haible  <bruno@clisp.org>
640         Fix build errors due to read-file changes (regression from 2020-05-27).
641         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
642         invocation.
643         * tests/test-sameacls.c (main): Likewise.
644         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
645         read_binary_file.
646         * tests/test-pipe-filter-ii1.c (main): Likewise.
648 2020-05-28  Bruno Haible  <bruno@clisp.org>
650         fts: Make more robust in multithreaded applications.
651         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
652         * modules/fts (Depends-on): Add 'open'.
654 2020-05-28  Bruno Haible  <bruno@clisp.org>
656         relocatable-prog: Make more robust in multithreaded applications.
657         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
658         relocatable-prog-wrapper.
659         (find_executable): Pass an O_CLOEXEC flag to open().
660         * modules/relocatable-prog (Depends-on): Add 'open'.
662 2020-05-28  Bruno Haible  <bruno@clisp.org>
664         getloadavg: Make more robust in multithreaded applications.
665         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
666         Simplify use of O_CLOEXEC.
667         * modules/getloadavg (Depends-on): Add 'open'.
669 2020-05-28  Bruno Haible  <bruno@clisp.org>
671         vma-iter: Make more robust in multithreaded applications.
672         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
673         open().
674         * modules/vma-iter (Depends-on): Add 'open'.
676 2020-05-28  Bruno Haible  <bruno@clisp.org>
678         truncate: Make more robust in multithreaded applications.
679         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
681 2020-05-28  Bruno Haible  <bruno@clisp.org>
683         pagealign_alloc: Make more robust in multithreaded applications.
684         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
685         open().
686         * modules/pagealign_alloc (Depends-on): Add 'open'.
688 2020-05-28  Bruno Haible  <bruno@clisp.org>
690         openat: Make more robust in multithreaded applications.
691         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
693 2020-05-28  Bruno Haible  <bruno@clisp.org>
695         at-internal: Make more robust in multithreaded applications.
696         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
697         open().
699 2020-05-28  Bruno Haible  <bruno@clisp.org>
701         mountlist: Make more robust in multithreaded applications.
702         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
703         open().
704         * modules/mountlist (Depends-on): Add 'open'.
706 2020-05-28  Bruno Haible  <bruno@clisp.org>
708         login_tty: Make more robust in multithreaded applications.
709         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
710         * modules/login_tty (Depends-on): Add 'open'.
712 2020-05-28  Bruno Haible  <bruno@clisp.org>
714         javacomp: Make more robust in multithreaded applications.
715         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
716         open().
717         * modules/javacomp (Depends-on): Add 'open'.
719 2020-05-28  Bruno Haible  <bruno@clisp.org>
721         getprogname: Make more robust in multithreaded applications.
722         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
723         * modules/getprogname (Depends-on): Add 'open'.
725 2020-05-28  Bruno Haible  <bruno@clisp.org>
727         get_progname_of: Make more robust in multithreaded applications.
728         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
729         open().
730         * modules/get_progname_of (Depends-on): Add 'open'.
732 2020-05-28  Bruno Haible  <bruno@clisp.org>
734         get_ppid_of: Make more robust in multithreaded applications.
735         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
736         * modules/get_ppid_of (Depends-on): Add 'open'.
738 2020-05-28  Bruno Haible  <bruno@clisp.org>
740         get-rusage-as: Make more robust in multithreaded applications.
741         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
742         flag to open().
743         * modules/get-rusage-as (Depends-on): Add 'open'.
745 2020-05-28  Bruno Haible  <bruno@clisp.org>
747         crypto/gc: Make more robust in multithreaded applications.
748         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
749         * modules/crypto/gc (Depends-on): Add 'open'.
751 2020-05-28  Bruno Haible  <bruno@clisp.org>
753         copy-file: Make more robust in multithreaded applications.
754         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
755         open().
757 2020-05-28  Bruno Haible  <bruno@clisp.org>
759         chown: Make more robust in multithreaded applications.
760         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
762 2020-05-28  Bruno Haible  <bruno@clisp.org>
764         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
765         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
767 2020-05-28  Daiki Ueno  <ueno@gnu.org>
769         fopen-gnu: make 'b' flag can be used with 'e' on Windows
770         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
771         specified on Windows.
772         * tests/test-fopen-gnu.c (DATA): New define.
773         (main): Add test for reading binary files with an 'e' flag.
775 2020-05-27  Bruno Haible  <bruno@clisp.org>
777         Don't assume that UNICODE is not defined.
778         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
779         differently if the application defines the macro UNICODE.
780         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
782         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
783         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
784         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
786 2020-05-27  Bruno Haible  <bruno@clisp.org>
788         Improve pattern for defining _WIN32_WINNT.
789         Newer versions of the Windows API may not only add, but also remove API
790         functions. Therefore, when the user is e.g. building for Windows 10, we
791         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
792         use of APIs that were present in Windows 8 but removed in Windows 10.
793         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
794         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
795         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
796         * lib/sethostname.c (_WIN32_WINNT): Likewise.
797         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
799 2020-05-27  Bruno Haible  <bruno@clisp.org>
801         javacomp: Make more robust in multithreaded applications.
802         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
803         * modules/javacomp (Depends-on): Add fopen-gnu.
805 2020-05-27  Bruno Haible  <bruno@clisp.org>
807         mountlist: Make more robust in multithreaded applications.
808         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
809         to fopen.
810         * modules/mountlist (Depends-on): Add fopen-gnu.
812 2020-05-27  Bruno Haible  <bruno@clisp.org>
814         sethostname: Make more robust in multithreaded applications.
815         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
816         * modules/sethostname (Depends-on): Add fopen-gnu.
818 2020-05-27  Bruno Haible  <bruno@clisp.org>
820         readutmp: Make more robust in multithreaded applications.
821         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
822         * modules/readutmp (Depends-on): Add fopen-gnu.
824 2020-05-27  Bruno Haible  <bruno@clisp.org>
826         getpass: Make more robust in multithreaded applications.
827         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
828         * modules/getpass (Depends-on): Add fopen-gnu.
830 2020-05-27  Bruno Haible  <bruno@clisp.org>
832         getloadavg: Make more robust in multithreaded applications.
833         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
834         * modules/getloadavg (Depends-on): Add fopen-gnu.
836 2020-05-27  Bruno Haible  <bruno@clisp.org>
838         exclude: Make more robust in multithreaded applications.
839         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
840         * modules/exclude (Depends-on): Add fopen-gnu.
842 2020-05-27  Bruno Haible  <bruno@clisp.org>
844         bitset: Make more robust in multithreaded applications.
845         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
846         'e' flag to fopen.
847         * modules/bitset (Depends-on): Add fopen-gnu.
849 2020-05-27  Daiki Ueno  <ueno@gnu.org>
851         read-file: add RF_SENSITIVE flag
852         * lib/read-file.h (RF_SENSITIVE): New define.
853         * lib/read-file.c (fread_file, read_file): Take into account of
854         RF_SENSITIVE flag.
855         * modules/read-file (Depends-on): Add explicit_bzero.
856         This adds an alternative behavior of those functions to explicitly
857         clear the internal memory block when it becomes unused.  This is
858         useful for reading sensitive information from a file.
860 2020-05-27  Daiki Ueno  <ueno@gnu.org>
862         read-file: add flags to modify reading behavior
863         * lib/read-file.h (RF_BINARY): New define.
864         (fread_file, read_file): Take FLAGS argument.
865         (read_binary_file): Remove.
866         * lib/read-file.c (internal_read_file): Merge into ...
867         (read_file): ... here.
868         * modules/read-file-tests (Files): Add "tests/macros.h".
869         * tests/test-read-file.c (main): Refactor using ASSERT macro.
870         * NEWS: Mention this change.
872 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
874         doc/gnulib-intro.texi: add missing "to" in sentence
875         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
876         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
877         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
879 2020-05-26  Bruno Haible  <bruno@clisp.org>
881         count-one-bits: Fix MSVC specific code.
882         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
883         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
884         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
885         using GCC.
886         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
887         (__popcnt64): In 32-bit mode, define as an inline function.
888         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
890 2020-05-26  Bruno Haible  <bruno@clisp.org>
892         argz: Avoid name clashes through argz.h.
893         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
895         * lib/argz.h: Don't use __ prefixed identifiers.
896         (const): Remove definition.
897         (argz_next): Remove inline definitions.
899 2020-05-26  Daiki Ueno  <ueno@gnu.org>
901         read-file: make use of fopen-gnu
902         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
903         (read_binary_file): Likewise.
904         * modules/read-file (Depends-on): Add fopen-gnu.
906 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
908         getentropy, getrandom: new modules
909         * MODULES.html.sh (func_all_modules):
910         * lib/unistd.in.h (getentropy, getrandom):
911         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
912         * modules/unistd (unistd.h):
913         Add support for getentropy, getrandom.
914         * doc/glibc-functions/getentropy.texi (getentropy):
915         * doc/glibc-functions/getrandom.texi (getrandom):
916         These are now fixed on some platforms.
917         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
918         * m4/getentropy.m4, m4/getrandom.m4:
919         * modules/getentropy, modules/getentropy-tests:
920         * modules/getrandom, modules/getrandom-tests:
921         * tests/test-getentropy.c, tests/test-getrandom.c:
922         New files.
924 2020-05-25  Bruno Haible  <bruno@clisp.org>
926         Add missing C99 dependencies.
927         Reported by Paul Smith <psmith@gnu.org> in
928         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
929         * modules/assert (Depends-on): Add c99.
930         * modules/filenamecat-lgpl (Depends-on): Likewise.
931         * modules/libc-config (Depends-on): Likewise.
932         * modules/mktime (Depends-on): Likewise.
933         * modules/random_r (Depends-on): Likewise.
934         * modules/regex (Depends-on): Likewise.
935         * modules/scratch_buffer (Depends-on): Likewise.
936         * modules/timespec-add (Depends-on): Likewise.
937         * modules/timespec-sub (Depends-on): Likewise.
938         * modules/verify (Depends-on): Likewise.
940 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
942         explicit_bzero-tests: pacify -Wmissing-declarations
943         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
944         Now static.
946 2020-05-24  Bruno Haible  <bruno@clisp.org>
948         fopen-gnu: Add tests.
949         * tests/test-fopen-gnu.c: New file.
950         * modules/fopen-gnu-tests: New file.
952         fopen-gnu: New module.
953         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
954         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
955         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
956         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
957         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
958         * modules/fopen-gnu: New file.
959         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
961 2020-05-24  Bruno Haible  <bruno@clisp.org>
963         open, openat: Really support O_CLOEXEC.
964         * lib/open.c (open): When have_cloexec is still undecided, do pass a
965         O_CLOEXEC flag to orig_open.
966         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
967         pass a O_CLOEXEC flag to orig_openat.
968         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
969         * modules/open-tests (Depends-on): Add fcntl.
970         * modules/openat-tests (Depends-on): Likewise.
971         * modules/fcntl-safer-tests (Depends-on): Likewise.
973 2020-05-24  Bruno Haible  <bruno@clisp.org>
975         fopen: Fix the trailing slash workaround.
976         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
977         write access. Pass the right flags to open().
978         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
980 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
982         assure: new macro ‘affirm’
983         * lib/assure.h: Include verify.h.
984         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
985         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
986         and commentary by Bruno Haible in:
987         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
988         * modules/assure (Depends-on:): Add verify.
990 2020-05-23  Bruno Haible  <bruno@clisp.org>
992         calloc-gnu: Make test work in non-flat address spaces.
993         Uses code by Paul Eggert.
994         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
995         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
997 2020-05-23  Bruno Haible  <bruno@clisp.org>
999         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
1000         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
1001         AC_RUN_IFELSE invocations.
1003 2020-05-23  Bruno Haible  <bruno@clisp.org>
1005         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
1006         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
1007         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
1008         don't have it.
1009         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1010         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
1011         don't have it.
1012         * lib/isnanf-nolibm.h (__has_builtin): New macro.
1013         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
1014         it.
1015         * lib/isnanl-nolibm.h (__has_builtin): New macro.
1016         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
1017         it.
1018         * lib/math.in.h (__has_builtin): New macro.
1019         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
1020         it.
1021         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
1022         it.
1023         (isnan): Don't use the builtins on clang versions that don't have
1024         __builtin_isnanf and __builtin_isnanl.
1026 2020-05-23  Bruno Haible  <bruno@clisp.org>
1028         calloc-gnu: Avoid wrong configure results with clang.
1029         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
1030         'volatile', to defeat compiler optimizations.
1032 2020-05-23  Bruno Haible  <bruno@clisp.org>
1034         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
1035         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
1036         'long double' values by reference, with values taken from a statically
1037         allocated array.
1039 2020-05-23  Bruno Haible  <bruno@clisp.org>
1041         findprog-in: Ignore directories.
1042         Reported by Frederick Eaton via Dmitry Goncharov in
1043         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
1044         * lib/findprog-in.c (find_in_given_path): When the file found is a
1045         directory, set errno to EACCES and, during a PATH search, continue
1046         searching.
1047         * modules/findprog-in (Depends-on): Add sys_stat, stat.
1049 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1051         verify: document ‘assume’ better
1052         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
1054 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
1056         gendocs: Clarify licenses for templates.
1057         * doc/gendocs_template: Add a GNU All-Permissive license notice
1058         and bump Parent-Version.
1059         * doc/gendocs_template_min: Add a GNU All-Permissive license
1060         notice and copy the explanatory comment about the license notice
1061         at the bottom from gendocs_template.
1063 2020-05-21  Bruno Haible  <bruno@clisp.org>
1065         group-member: Relicense under LGPLv2+.
1066         Jim Meyering's approval is in
1067         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
1068         Paul Eggert's approval is in
1069         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
1070         Eric Blake's approval is in
1071         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
1072         * modules/group-member (License): Change to LGPLv2+.
1074 2020-05-21  Bruno Haible  <bruno@clisp.org>
1076         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
1077         Reported by Tim Rühsen in
1078         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
1081 2020-05-21  Bruno Haible  <bruno@clisp.org>
1083         regex: Avoid wrong configure results with "clang -fsanitize=leak".
1084         Reported by Tim Rühsen in
1085         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1086         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
1087         before returning with status 0.
1089 2020-05-21  Bruno Haible  <bruno@clisp.org>
1091         glob: Avoid wrong configure results with "clang -fsanitize=leak".
1092         Reported by Tim Rühsen in
1093         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1094         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
1096 2020-05-21  Bruno Haible  <bruno@clisp.org>
1098         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
1099         Reported by Tim Rühsen in
1100         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
1101         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
1102         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
1103         respectively.
1105 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
1107         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
1108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
1110 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1112         ftoastr: fix ifndef typo
1113         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
1115 2020-05-19  Bruno Haible  <bruno@clisp.org>
1117         havelib: Tweak documentation.
1118         * doc/havelib.texi (Searching for Libraries): Fix typo.
1120 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1122         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
1123         This was needed earlier because modules had to import the main script,
1124         but that is no longer true.  Rename the script so that it is
1125         consistent with all other scripts in gnulib and uses hyphens.
1126         * build-aux/vcs_to_changelog.py: Rename to...
1127         * build-aux/vcs-to-changelog.py: ... this.
1128         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
1129         * modules/vcs-to-changelog: Likewise.
1131 2020-05-17  Bruno Haible  <bruno@clisp.org>
1133         Clarify intended usage of the license file modules.
1134         Reported by Asher Gordon <AsDaGo@posteo.net> in
1135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
1136         * doc/licenses-texi.texi (License Texinfo sources): Mention the
1137         GNU AGPL. Explain the intended usage of the modules.
1138         * modules/fdl (Notice): Discourage use as a module.
1139         * modules/fdl-1.3 (Notice): Likewise.
1141 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
1143         hash: add hash_xinsert
1144         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
1146 2020-05-16  Bruno Haible  <bruno@clisp.org>
1148         findprog-lgpl: Fix link error (existing since 2008-09-02).
1149         * modules/findprog-lgpl (Makefile.am): Arrange to compile
1150         findprog-lgpl.c, not findprog.c.
1151         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
1152         XNMALLOC.
1154 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1156         c-stack: pacify -Wunused-result when DEBUG
1157         Problem reported by Marc Nieper-Wißkirchen in:
1158         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
1159         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
1160         Explicitly ignore write failures.
1162 2020-05-13  Jim Meyering  <meyering@fb.com>
1164         announce-gen: improve a comment
1165         * build-aux/announce-gen: Improve comment.
1167 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
1169         xalloc: pacify -Wanalyzer-possible-null-argument
1170         Problem reported for GCC 10.1.0 by Bruno Haible in:
1171         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
1172         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
1173         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
1174         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
1176 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1178         careadlinkat: fix GCC 10 workaround
1179         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
1180         Massage the code so that it’s closer to what it was before
1181         the GCC 10.1.0 workaround was introduced.  This fixes
1182         a loop when !buffer and the bug workaround is in effect.
1183         Remove unnecessary casts.  Defend in a different way
1184         against (buffer && !buffer_size), by adding at least 1
1185         to buf_size each time through the loop.
1187 2020-05-10  Bruno Haible  <bruno@clisp.org>
1189         doc: Mark HP-UX as unsupported.
1190         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
1192 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1194         careadlinkat: limit GCC workaround
1195         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
1196         10.1.0 and later, since the workaround is pretty bad and the GCC
1197         bug should get fixed.
1199 2020-05-10  Bruno Haible  <bruno@clisp.org>
1201         havelib: Enhance documentation.
1202         * doc/havelib.texi (Searching for Libraries): Mention the bad
1203         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
1205 2020-05-10  Bruno Haible  <bruno@clisp.org>
1207         attribute: Clarify list of attributes.
1208         * lib/attribute.h: Reorder the list of attributes, and group them by
1209         purpose.
1211 2020-05-10  Bruno Haible  <bruno@clisp.org>
1213         string: Fix compilation error in C++ mode.
1214         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
1215         _GL_WARN_ON_USE.
1216         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
1217         instead of _GL_WARN_ON_USE.
1219 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
1221         announce-gen: add support for dist-lzip
1222         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
1224 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1226         manywarnings: port to GCC 10.1
1227         * build-aux/gcc-warning.spec:
1228         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
1229         Add GCC 10.1.0 warnings.
1231         careadlinkat: pacify -Wreturn-local-addr
1232         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
1233         Pacify gcc 10’s -Wreturn-local-addr option.
1234         Simplify some of the later code.
1236 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1238         attribute: remove ATTRIBUTE_DEPRECATED
1239         * lib/attribute.h: Improve recently-added comments, mostly
1240         by shortening them (use active voice, etc.).
1241         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
1242         Problem reported by Bruno Haible in:
1243         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
1245 2020-05-09  Bruno Haible  <bruno@clisp.org>
1247         attribute: Add comments.
1248         * lib/attribute.h: Document each macro.
1250 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
1252         bitset: use the attribute module
1253         * modules/bitset: Depend on 'attribute'.
1254         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
1255         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
1256         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
1257         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
1259 2020-05-09  Bruno Haible  <bruno@clisp.org>
1261         c-stack: Fix warning when DEBUG is enabled.
1262         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1263         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
1264         * lib/c-stack.c: Include <stdio.h>.
1266 2020-05-09  Bruno Haible  <bruno@clisp.org>
1268         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
1269         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
1270         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1271         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1272         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1273         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1274         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1275         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1276         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1277         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
1278         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1279         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1280         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1282 2020-05-09  Bruno Haible  <bruno@clisp.org>
1284         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
1285         Reported by Akim Demaille in
1286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
1287         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
1288         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
1289         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
1291 2020-05-09  Bruno Haible  <bruno@clisp.org>
1293         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
1294         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
1295         that usually comes from m4/gnulib-common.m4.
1296         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1298 2020-05-09  Bruno Haible  <bruno@clisp.org>
1300         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
1301         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
1302         that usually comes from m4/gnulib-common.m4.
1303         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1304         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1305         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1307 2020-05-09  Bruno Haible  <bruno@clisp.org>
1309         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
1310         * lib/uchar.in.h (char16_t): Define as macro if
1311         GNULIB_OVERRIDES_CHAR16_T.
1312         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
1313         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
1314         (gl_UCHAR_H): Invoke them.
1315         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
1316         GNULIB_OVERRIDES_CHAR32_T.
1317         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
1318         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
1319         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
1320         GNULIB_OVERRIDES_CHAR32_T.
1322 2020-05-09  Bruno Haible  <bruno@clisp.org>
1324         Macro tweaks.
1325         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
1326         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
1328 2020-05-08  Bruno Haible  <bruno@clisp.org>
1330         c32rtomb: Avoid compilation failure on Haiku.
1331         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
1332         inline definitions.
1333         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
1335 2020-05-08  Bruno Haible  <bruno@clisp.org>
1337         mbrtoc32: Avoid compilation failure on Haiku.
1338         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
1339         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
1340         AC_CHECK_FUNCS_ONCE.
1341         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
1343 2020-05-08  Bruno Haible  <bruno@clisp.org>
1345         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
1346         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
1348 2020-05-08  Bruno Haible  <bruno@clisp.org>
1350         list: Update documentation.
1351         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1352         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
1353         * doc/containers.texi (Container data types): Document the new list
1354         operations and their complexity.
1356 2020-05-08  Bruno Haible  <bruno@clisp.org>
1358         ignore-value tests: Use module 'attribute'.
1359         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
1360         * tests/test-ignore-value.c: Include attribute.h.
1361         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
1362         * modules/ignore-value-tests (Depends-on): Add attribute.
1364 2020-05-08  Bruno Haible  <bruno@clisp.org>
1366         uniname/uniname: Use module 'attribute'.
1367         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
1368         * lib/uniname/uninames.h: Regenerated.
1369         * lib/uniname/uniname.c: Include attribute.h.
1370         * modules/uniname/uniname (Depends-on): Add attribute.
1372 2020-05-08  Bruno Haible  <bruno@clisp.org>
1374         c32rtomb: Use module 'attribute'.
1375         * lib/c32rtomb.c: Include attribute.h.
1376         (FALLTHROUGH): Remove macro.
1377         * modules/c32rtomb (Depends-on): Add attribute.
1379 2020-05-08  Bruno Haible  <bruno@clisp.org>
1381         xsize: Use module 'attribute'.
1382         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
1383         * modules/xsize (Depends-on): Add attribute.
1385 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
1389         * lib/attribute.h: Minor style fixes.
1391         Fix version-etc glitch on OpenIndiana
1392         Problem reported by Mats Erik Andersson in:
1393         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
1394         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
1395         that now clashes with gnulib-common.h.  All uses changed.
1397 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1399         attribute: new module
1400         This simplifies use of GCC and C2X attributes like ‘deprecated’.
1401         * MODULES.html.sh: Add attribute.
1402         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
1403         * doc/gnulib.texi (Particular Modules): Add Attributes.
1404         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
1405         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
1406         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
1407         * lib/vasnprintf.c:
1408         Include attribute.h, and let it define FALLTHROUGH.
1409         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
1410         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
1411         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
1412         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
1413         This is a copy since Gawk doesn’t use Gnulib.
1414         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
1415         is incompatible with gl_COMMON_BODY’s.  All uses changed.
1416         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
1417         Keep the existing FALLTHROUGH definition since Glibc might use it,
1418         and it does no harm to Gnulib’s FALLTHROUGH.
1419         * lib/fts_.h, lib/inttostr.h:
1420         (__GNUC_PREREQ): Remove; no longer needed.
1421         (__attribute_warn_unused_result__): Remove.  All uses
1422         replaced by _GL_ATTRIBUTE_NODISCARD.
1423         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
1424         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
1425         __attribute__ ((__warn_unused_result__)), for forward
1426         compatibility to C2X.
1427         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
1428         _GL_ATTRIBUTE_NODISCARD.
1429         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
1430         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
1431         replaced by gl_COMMON_BODY’s implementation, which has a
1432         slightly different signature.
1433         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
1434         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
1435         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
1436         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
1437         No doubt all uses should be replaced, at some point.
1438         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
1439         (_Noreturn): Use it.
1440         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
1441         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
1442         (_GL_ATTRIBUTE_COLD)
1443         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
1444         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
1445         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
1446         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
1447         (_GL_ATTRIBUTE_MAYBE_UNUSED)
1448         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
1449         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
1450         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
1451         (_GL_ATTRIBUTE_RETURNS_NONNULL)
1452         (_GL_ATTRIBUTE_SENTINEL): New macros.
1453         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
1454         * modules/fnmatch, modules/freopen-safer, modules/fts:
1455         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
1456         * modules/quotearg, modules/savewd:
1457         * modules/unistdio/u16-u16-vasnprintf:
1458         * modules/unistdio/u16-vasnprintf:
1459         * modules/unistdio/u32-u32-vasnprintf:
1460         * modules/unistdio/u32-vasnprintf:
1461         * modules/unistdio/u8-u8-vasnprintf:
1462         * modules/unistdio/u8-vasnprintf:
1463         * modules/unistdio/ulc-vasnprintf:
1464         * modules/unistr/u8-uctomb, modules/vasnprintf:
1465         (Depends-on:): Add attribute module.
1467 2020-05-03  Bruno Haible  <bruno@clisp.org>
1469         bison: Fix today's commit.
1470         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
1472 2020-05-03  Bruno Haible  <bruno@clisp.org>
1474         list-c++: Add get_first, get_last, set_first, set_last operations.
1475         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
1476         set_first, set_last.
1477         * lib/gl_list.h: Tweak comments.
1479 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
1481         bison: rely on bison's %require to check a version requirement
1482         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
1483         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
1484         enough of not.
1485         So far it is the only know Yacc tool that supports '%require'.
1486         Other yaccs will actually even choke on seeing the -o option after the
1487         input file name.
1488         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
1490 2020-05-02  Bruno Haible  <bruno@clisp.org>
1492         list: Add get_first, get_last, set_first, set_last operations.
1493         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
1494         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
1495         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
1497 2020-05-02  Bruno Haible  <bruno@clisp.org>
1499         list: Remove redundant code for remove_first and remove_last operations.
1500         * lib/gl_list.h (struct gl_list_implementation): Remove fields
1501         remove_first, remove_last.
1502         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
1503         * lib/gl_array_list.c: Revert last change.
1504         * lib/gl_carray_list.c: Likewise.
1505         * lib/gl_anylinked_list2.h: Likewise.
1506         * lib/gl_linked_list.c: Likewise.
1507         * lib/gl_linkedhash_list.c: Likewise.
1508         * lib/gl_anytree_list2.h: Likewise.
1509         * lib/gl_avltree_list.c: Likewise.
1510         * lib/gl_avltreehash_list.c: Likewise.
1511         * lib/gl_rbtree_list.c: Likewise.
1512         * lib/gl_rbtreehash_list.c: Likewise.
1513         * lib/gl_sublist.c: Likewise.
1515 2020-05-02  Bruno Haible  <bruno@clisp.org>
1517         bison-i18n: Add support for cross-compilation.
1518         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
1519         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
1520         via Akim Demaille <akim@lrde.epita.fr>.
1521         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
1522         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
1523         Don't use bison's --print-localedir option when cross-compiling.
1524         Also, fix an error message and a comment.
1526 2020-05-01  Bruno Haible  <bruno@clisp.org>
1528         list: Add remove_first and remove_last operations.
1529         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
1530         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
1531         * lib/gl_list.h (struct gl_list_implementation): Add fields
1532         remove_first, remove_last.
1533         (gl_list_remove_first, gl_list_remove_last): New functions.
1534         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
1535         functions, based on gl_array_remove_at.
1536         (gl_array_list_implementation): Implement the new operations.
1537         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
1538         New functions, based on gl_carray_remove_at.
1539         (gl_carray_list_implementation): Implement the new operations.
1540         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
1541         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
1542         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
1543         new operations.
1544         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
1545         Likewise.
1546         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
1547         New functions, based on gl_tree_remove_at.
1548         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
1549         new operations.
1550         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1551         Likewise.
1552         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
1553         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
1554         Likewise.
1555         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
1556         New functions, based on gl_sublist_remove_at.
1557         (gl_sublist_list_implementation): Implement the new operations.
1558         * lib/gl_list.hh (class gl_List): Add methods remove_first,
1559         remove_last.
1560         * tests/test-array_list.c (main): Test also gl_list_remove_first and
1561         gl_list_remove_last.
1562         * tests/test-avltree_list.c (main): Likewise.
1563         * tests/test-avltreehash_list.c (main): Likewise.
1564         * tests/test-carray_list.c (main): Likewise.
1565         * tests/test-linked_list.c (main): Likewise.
1566         * tests/test-linkedhash_list.c (main): Likewise.
1567         * tests/test-rbtree_list.c (main): Likewise.
1568         * tests/test-rbtreehash_list.c (main): Likewise.
1570 2020-05-01  Bruno Haible  <bruno@clisp.org>
1572         parse-datetime: Fix a build failure with an older bison version.
1573         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
1574         parse-datetime.tab.c if a suitable version of bison was not found.
1576 2020-05-01  Bruno Haible  <bruno@clisp.org>
1578         bison: New module.
1579         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
1580         m4/parse-datetime.m4.
1581         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
1582         * modules/bison: New file.
1583         * modules/parse-datetime (Files): Remove m4/bison.m4.
1584         (Depends-on): Add bison.
1586 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
1588         Update users.txt.
1589         * users.txt: Add poke.
1591 2020-04-28  Bruno Haible  <bruno@clisp.org>
1593         posix_spawn_file_actions_addfchdir tests: Enhance test.
1594         * tests/test-posix_spawn5.c: Include findprog.h.
1595         (test): New function, extracted from main.
1596         (main): Invoke it. Also, invoke it with a program name such as
1597         "bin/pwd".
1598         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
1599         findprog.
1601 2020-04-28  Bruno Haible  <bruno@clisp.org>
1603         posix_spawn_file_actions_addchdir tests: Enhance test.
1604         * tests/test-posix_spawn4.c: Include findprog.h.
1605         (test): New function, extracted from main.
1606         (main): Invoke it. Also, invoke it with a program name such as
1607         "bin/pwd".
1608         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
1609         findprog.
1611 2020-04-28  Bruno Haible  <bruno@clisp.org>
1613         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
1614         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
1615         access elements of the wrong union member.
1617 2020-04-27  Bruno Haible  <bruno@clisp.org>
1619         getdate: Remove deprecated module.
1620         * modules/getdate: Remove file.
1621         * doc/getdate.texi: Remove file.
1622         * lib/getdate.h: Remove file.
1623         * NEWS: Mention the removal.
1625 2020-04-27  Bruno Haible  <bruno@clisp.org>
1627         realloc: Remove deprecated module.
1628         * modules/realloc: Remove file.
1629         * NEWS: Mention the removal.
1631 2020-04-27  Bruno Haible  <bruno@clisp.org>
1633         calloc: Remove deprecated module.
1634         * modules/calloc: Remove file.
1635         * NEWS: Mention the removal.
1637 2020-04-27  Bruno Haible  <bruno@clisp.org>
1639         malloc: Remove deprecated module.
1640         * modules/malloc: Remove file.
1641         * NEWS: Mention the removal.
1643 2020-04-27  Bruno Haible  <bruno@clisp.org>
1645         fnmatch-posix: Remove deprecated module.
1646         * modules/fnmatch-posix: Remove file.
1647         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
1648         * NEWS: Mention the removal.
1650 2020-04-27  Bruno Haible  <bruno@clisp.org>
1652         pipe: Remove deprecated module.
1653         * modules/pipe: Remove file.
1654         * lib/pipe.h: Remove file.
1655         * NEWS: Mention the removal.
1657 2020-04-27  Bruno Haible  <bruno@clisp.org>
1659         getopt: Remove deprecated module.
1660         * modules/getopt: Remove file.
1661         * NEWS: Mention the removal.
1663 2020-04-27  Bruno Haible  <bruno@clisp.org>
1665         remove-dest-slash: Remove deprecated module.
1666         * modules/rename-dest-slash: Remove file.
1667         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
1668         Update.
1669         * NEWS: Mention the removal.
1671 2020-04-27  Bruno Haible  <bruno@clisp.org>
1673         unictype/bidicategory-*: Remove deprecated modules.
1674         * modules/unictype/bidicategory-all: Remove file.
1675         * modules/unictype/bidicategory-byname: Remove file.
1676         * modules/unictype/bidicategory-name: Remove file.
1677         * modules/unictype/bidicategory-of: Remove file.
1678         * modules/unictype/bidicategory-test: Remove file.
1679         * MODULES.html.sh (Unicode string functions): Update.
1680         * NEWS: Mention the removals.
1682 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1684         Tune fts for FTS_LOGICAL+FTS_NOSTAT
1685         From a suggestion by Askar Safin in:
1686         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
1687         * lib/fts.c (fts_build): If file types are known, optimize
1688         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
1689         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
1690         non-directories.
1692 2020-04-19  Bruno Haible  <bruno@clisp.org>
1694         vasnprintf: Add support for printing wide characters using escapes.
1695         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
1696         (wctomb_fallback): New function.
1697         (local_wctomb): New function.
1698         (local_wcrtomb): New function or macro.
1699         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
1700         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
1701         %lc.
1703 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
1705         fts: remove NOSTAT_LEAF_OPTIMIZATION
1706         It caused ‘find’ and ‘du’ to dump core, and it was useful
1707         only for obsolescent Linux filesystems anyway.  Problem reported in:
1708         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
1709         Quite possibly there is still a serious underlying fts bug with
1710         tight-loop-check and mutating file systems, but if so this patch
1711         should cause the bug to be triggered less often.
1712         * lib/fts.c (enum leaf_optimization): Remove
1713         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
1714         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
1715         (leaf_optimization): Remove special cases for ReiserFS and XFS.
1716         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
1717         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
1718         Remove.  All uses removed.
1720 2020-04-13  Bastien Roucariès  <rouca@debian.org>
1722         explicit_bzero: Improve code style.
1723         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
1725 2020-04-13  Bastien Roucariès  <rouca@debian.org>
1727         explicit_bzero: On native Windows, use SecureZeroMemory().
1728         * lib/explicit_bzero.c: Include <windows.h>.
1729         (explicit_bzero): On native Windows, use SecureZeroMemory.
1731 2020-04-13  Bastien Roucariès  <rouca@debian.org>
1733         explicit_bzero: Use memset_s() when available.
1734         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
1735         (explicit_bzero): Use memset_s when available.
1736         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
1738 2020-04-13  Bastien Roucariès  <rouca@debian.org>
1740         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
1741         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
1742         free() that overwrite the memory with canaries.
1744 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
1746         bootstrap: recommend git submodule update --init
1747         Reported by Bruno Haible.
1748         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
1749         * build-aux/bootstrap: recommand "git submodule update --init"
1750         rather than "git submodule init".
1752 2020-04-12  Bruno Haible  <bruno@clisp.org>
1754         explicit_bzero: Add tests.
1755         * tests/test-explicit_bzero.c: New file.
1756         * modules/explicit_bzero-tests: New file.
1758 2020-04-11  Bruno Haible  <bruno@clisp.org>
1760         explicit_bzero: Relicense under LGPLv2+.
1761         Approved by Paul Eggert.
1762         * modules/explicit_bzero (License): Change to LGPLv2+.
1764 2020-04-10  Bruno Haible  <bruno@clisp.org>
1766         findprog, relocatable-prog: Ignore directories during PATH search.
1767         Reported by Frederick Eaton via Dmitry Goncharov in
1768         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
1770         * lib/findprog.c (find_in_path): When the file found in a PATH element
1771         is a directory, continue searching.
1772         * modules/findprog (Depends-on): Add sys_stat, stat.
1773         * modules/findprog-lgpl (Depends-on): Likewise.
1775         * lib/progreloc.c (maybe_executable): When the file found in a PATH
1776         element is a directory, continue searching.
1777         * lib/relocwrapper.c: Update comments.
1778         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
1779         (configure.ac-early): New section.
1781 2020-04-10  Bruno Haible  <bruno@clisp.org>
1783         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
1784         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
1785         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
1786         * MODULES.html.sh: In a git-less tarball, use the date of the first
1787         ChangeLog entry.
1789 2020-04-04  Bruno Haible  <bruno@clisp.org>
1791         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
1792         * m4/gettext.m4: Fix comments regarding the gettext library.
1793         * m4/intl-thread-locale.m4: Likewise.
1794         * m4/intlmacosx.m4: Likewise.
1795         * m4/lcmessage.m4: Likewise.
1796         * m4/nls.m4: Likewise.
1797         * m4/po.m4: Likewise.
1798         * m4/progtest.m4: Likewise.
1800 2020-04-04  Jim Meyering  <meyering@fb.com>
1802         maint: remove a stray inter-word space in a 6x-repeated comment
1803         Induce the changes by running this:
1804           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
1805         * build-aux/announce-gen: Change "by  perl" to "by perl".
1806         * build-aux/gitlog-to-changelog: Likewise.
1807         * build-aux/prefix-gnulib-mk: Likewise.
1808         * build-aux/update-copyright: Likewise.
1809         * build-aux/useless-if-before-free: Likewise.
1810         * tests/test-update-copyright.sh: Likewise.
1812 2020-03-28  Bruno Haible  <bruno@clisp.org>
1814         Use module 'filename' instead of module 'dosname'.
1816         * lib/at-func.c: Include filename.h instead of dosname.h.
1817         * lib/unlinkat.c: Likewise.
1818         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
1819         * modules/areadlinkat-with-size (Depends-on): Likewise.
1820         * modules/faccessat (Depends-on): Likewise.
1821         * modules/fchmodat (Depends-on): Likewise.
1822         * modules/fchownat (Depends-on): Likewise.
1823         * modules/fstatat (Depends-on): Likewise.
1824         * modules/mkdirat (Depends-on): Likewise.
1825         * modules/mkfifoat (Depends-on): Likewise.
1826         * modules/readlinkat (Depends-on): Likewise.
1827         * modules/selinux-at (Depends-on): Likewise.
1828         * modules/symlinkat (Depends-on): Likewise.
1829         * modules/unlinkat (Depends-on): Likewise.
1830         * modules/utimensat (Depends-on): Likewise.
1832         * lib/at-func2.c: Include filename.h instead of dosname.h.
1833         * modules/linkat (Depends-on): Add filename. Remove dosname.
1834         * modules/renameatu (Depends-on): Likewise.
1836         * lib/canonicalize.c: Include filename.h instead of dosname.h.
1837         * lib/canonicalize-lgpl.c: Likewise.
1838         * modules/canonicalize (Depends-on): Add filename.
1839         * modules/canonicalize-lgpl (Depends-on): Likewise.
1841         * lib/dirname.h: Include filename.h instead of dosname.h.
1842         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
1844         * lib/fchdir.c: Include filename.h instead of dosname.h.
1845         * modules/fchdir (Depends-on): Add filename. Remove dosname.
1847         * lib/openat.c: Include filename.h instead of dosname.h.
1848         * modules/openat (Depends-on): Add filename. Remove dosname.
1850         * lib/rmdir.c: Include filename.h instead of dosname.h.
1851         * modules/rmdir (Depends-on): Add filename. Remove dosname.
1853         * lib/savewd.c: Include filename.h instead of dosname.h.
1854         * modules/savewd (Depends-on): Add filename. Remove dosname.
1856         * lib/unlink.c: Include filename.h instead of dosname.h.
1857         * modules/unlink (Depends-on): Add filename. Remove dosname.
1859         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
1860         * lib/relocwrapper.c: Update comments.
1862         * modules/lstat (Depends-on): Remove dosname.
1864 2020-03-28  Bruno Haible  <bruno@clisp.org>
1866         dosname: Redirect to 'filename'.
1867         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
1868         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
1869         * lib/dosname.h: Remove all definitions. Just include filename.h.
1870         * modules/dosname (Status, Notice): Mark as deprecated.
1871         (Depends-on): Add 'filename'.
1873 2020-03-28  Bruno Haible  <bruno@clisp.org>
1875         dosname: Change IS_RELATIVE_FILE_NAME.
1876         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
1877         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
1878         * NEWS: Mention the change.
1880 2020-03-28  Bruno Haible  <bruno@clisp.org>
1882         filename: Copy some definitions from module 'dosname'.
1883         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
1884         (HAS_DEVICE): Document macro.
1885         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
1886         (IS_ABSOLUTE_FILE_NAME): Consider
1887         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
1888         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
1889         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
1890         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
1891         IS_PATH_WITH_DIR.
1892         (DllMain): Update.
1893         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
1894         IS_PATH_WITH_DIR.
1895         (find_executable): Update.
1896         * NEWS: Document the deprecations.
1898 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
1900         getopt-posix: port __GETOPT_PREFIX to macOS
1901         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
1902         Define to work around a problem with asm on macOS (Bug#40205).
1904 2020-03-22  Bruno Haible  <bruno@clisp.org>
1906         MODULES.html.sh: Add support for reproducible builds.
1907         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
1908         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
1909         * MODULES.html.sh: Print the date of the last gnulib commit, not the
1910         current date.
1912 2020-03-22  Bruno Haible  <bruno@clisp.org>
1914         Several modules: Depend on stat.
1915         * modules/acl-permissions (Depends-on): Add stat.
1916         * modules/canonicalize (Depends-on): Likewise.
1917         * modules/file-has-acl (Depends-on): Likewise.
1918         * modules/fstat (Depends-on): Likewise.
1919         * modules/fstatat (Depends-on): Likewise.
1920         * modules/glob (Depends-on): Likewise.
1921         * modules/javacomp (Depends-on): Likewise.
1922         * modules/linkat (Depends-on): Likewise.
1923         * modules/mkdir (Depends-on): Likewise.
1924         * modules/pt_chown (Depends-on): Likewise.
1925         * modules/ptsname_r (Depends-on): Likewise.
1926         * modules/readlinkat (Depends-on): Likewise.
1927         * modules/rename (Depends-on): Likewise.
1928         * modules/renameatu (Depends-on): Likewise.
1929         * modules/tmpdir (Depends-on): Likewise.
1930         * modules/utimens (Depends-on): Likewise.
1931         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
1932         * modules/same (Depends-on): Remove stat.
1934 2020-03-22  Bruno Haible  <bruno@clisp.org>
1936         acl-permissions: Improve autoconf macro.
1937         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
1938         more reliably.
1940 2020-03-22  Bruno Haible  <bruno@clisp.org>
1942         file-has-acl: Fix module description.
1943         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
1944         (Depends-on): Depend on acl-permissions unconditionally.
1946 2020-03-21  Bruno Haible  <bruno@clisp.org>
1948         unlink: Ensure errno also on native Windows.
1949         * modules/unlink (Depends-on): Add malloc-posix.
1951 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1953         unlink: fix malloc errno typo
1954         Problem reported by Tim Rühsen in:
1955         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
1956         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
1958 2020-03-16  Bruno Haible  <bruno@clisp.org>
1960         *printf-posix: Fix m4 error (regression from 2020-03-08).
1961         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
1962         brackets in AC_COMPILE_IFELSE invocation.
1964 2020-03-08  Bruno Haible  <bruno@clisp.org>
1966         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
1967         * modules/crypto/af_alg (Depends-on): Add fstat.
1968         * modules/renameatu (Depends-on): Likewise.
1969         * modules/same (Depends-on): Likewise.
1970         * modules/term-style-control (Depends-on): Likewise.
1972 2020-03-08  Bruno Haible  <bruno@clisp.org>
1974         *printf-posix: Document why it's overridden on some glibc systems.
1975         Reported by Adrian Bunk <bunk@stusta.de> in
1976         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
1977         * doc/posix-functions/*printf.texi: Document the problem with the %n
1978         directive on some glibc systems.
1979         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
1980         the cross-compilation guesses accordingly.
1982 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
1984         open, openat: port to (O_RDWR | O_RDONLY) != 0
1985         Potential portability problem reported by Dan Gohman in:
1986         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
1987         * lib/open.c (open):
1988         * lib/openat.c (rpl_openat):
1989         Don’t assume O_RDONLY is disjoint from O_RDWR.
1991 2020-03-07  Bruno Haible  <bruno@clisp.org>
1993         openat: Fix theoretically possible issue on GNU/Hurd.
1994         Reported by Dan Gohman <sunfish@mozilla.com> in
1995         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
1996         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
1997         ignore the bits that are also set in O_RDONLY.
1999 2020-02-24  Bruno Haible  <bruno@clisp.org>
2001         getloadavg: Don't use /usr/local when cross-compiling on AIX.
2002         Reported by Jens Rehsack <sno@netbsd.org> in
2003         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
2004         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
2005         cross-compiling.
2007 2020-02-24  Bruno Haible  <bruno@clisp.org>
2009         fcntl: Add witness of gnulib override.
2010         Reported by Jens Rehsack <sno@netbsd.org> in
2011         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
2012         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
2013         macros.
2015 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
2017         Update users.txt.
2018         * users.txt: Add datamash, time.
2020 2020-02-23  Bruno Haible  <bruno@clisp.org>
2022         uni*/base: Use 'restrict'.
2023         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
2024         from lib/regex.h.
2025         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
2026         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
2027         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
2028         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
2029         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
2030         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
2031         '_UC_RESTRICT'.
2032         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
2033         u32_conv_to_encoding): Use '_UC_RESTRICT'.
2034         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
2035         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
2036         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2037         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2038         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
2039         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
2040         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
2041         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
2042         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
2043         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
2044         '_UC_RESTRICT'.
2045         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
2046         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
2047         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
2048         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
2049         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
2050         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
2051         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
2052         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
2054 2020-02-23  Bruno Haible  <bruno@clisp.org>
2056         glob, spawn: Use improved '_Restrict_' definition.
2057         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
2058         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
2060 2020-02-23  Bruno Haible  <bruno@clisp.org>
2062         crypto/gc: Use 'restrict'.
2063         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
2064         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
2066         crypto/hmac-*: Use 'restrict'.
2067         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
2068         'restrict'.
2069         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
2070         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
2071         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
2072         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
2074         crypto/sm3: Use 'restrict'.
2075         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
2076         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
2078         crypto/*-buffer: Use 'restrict'.
2079         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
2080         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
2082         crypto/sha512-buffer: Use 'restrict'.
2083         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
2084         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
2085         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
2087         crypto/sha256-buffer: Use 'restrict'.
2088         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
2089         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
2090         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
2092         crypto/sha1-buffer: Use 'restrict'.
2093         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
2094         'restrict'.
2095         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
2097         crypto/md5-buffer: Use 'restrict'.
2098         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
2099         'restrict'.
2100         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
2102         crypto/md4: Use 'restrict'.
2103         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
2104         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
2106         crypto/md2: Use 'restrict'.
2107         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
2108         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
2110         crypto/rijndael: Use 'restrict'.
2111         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
2112         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
2113         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
2115         crypto/arctwo: Use 'restrict'.
2116         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
2117         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
2119         crypto/arcfour: Use 'restrict'.
2120         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
2121         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
2123         careadlinkat: Use 'restrict'.
2124         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
2125         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
2126         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
2128         regex-quote: Use 'restrict'.
2129         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
2130         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
2132         system-quote: Use 'restrict'.
2133         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
2134         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
2136         sh-quote: Use 'restrict'.
2137         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
2138         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
2140         quotearg: Use 'restrict'.
2141         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
2142         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
2144         parse-datetime: Use 'restrict'.
2145         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
2146         'restrict'.
2147         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
2149         nstrftime: Use 'restrict'.
2150         * lib/strftime.h (nstrftime): Use 'restrict'.
2151         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
2153         mbstok_r: Use 'restrict'.
2154         * lib/string.in.h (mbstok_r): Use 'restrict'.
2156         xmemcoll: Use 'restrict'.
2157         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
2158         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
2160         memcoll: Use 'restrict'.
2161         * lib/memcoll.h (memcoll): Use 'restrict'.
2162         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
2164         vasnprintf: Use 'restrict'.
2165         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
2166         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
2168         c-vasnprintf: Use 'restrict'.
2169         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
2170         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
2172         c-vsnprintf: Use 'restrict'.
2173         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
2174         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
2176         c-snprintf: Use 'restrict'.
2177         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
2178         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
2180         astrxfrm: Use 'restrict'.
2181         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
2182         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
2184         amemxfrm: Use 'restrict'.
2185         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
2186         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
2188 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2190         fchmodat, lchmod: simplify
2191         It appears that we may have overengineered lchmod and fchmodat,
2192         in that the code was prepared for some hypothetical platforms but
2193         was so complicated that it was hard to understand.  I attempted to
2194         improve the situation by simplifying the code when this
2195         simplification should not hurt on real platforms; we can re-add
2196         complexity later to port to platforms I didn’t know about.
2197         * lib/fchmodat.c (fchmodat):
2198         * lib/lchmod.c (lchmod):
2199         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
2200         around the /proc code that needs it.
2201         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
2202         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
2203         Do not include <config.h> twice.
2204         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
2205         lchmod on any known hosts.
2206         (lchmod): Do not defer to fchmodat, so that the lchmod module
2207         need not depend on the fchmodat module (which is a circular
2208         dependency).  Do not use openat, since ‘open’ suffices.
2209         Coalesce calls to lchmod/chmod.
2210         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
2211         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
2212         * modules/lchmod (Depends-on, configure.ac):
2213         * modules/sys_stat (Depends-on):
2214         Do not worry about replacing lchmod, since that shouldn’t happen.
2215         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
2216         Do not worry about whether lchmod works on non-symlinks,
2217         since every known lchmod works on non-symlinks.
2218         * modules/lchmod (Depends-on):
2219         Remove circular dependency on fchmodat.
2221 2020-02-22  Bruno Haible  <bruno@clisp.org>
2223         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
2224         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
2225         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
2227 2020-02-22  Bruno Haible  <bruno@clisp.org>
2229         Use 'restrict' in all POSIX function declarations.
2230         * lib/iconv.in.h (iconv): Use 'restrict'.
2231         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
2232         * lib/monetary.in.h (strfmon_l): Likewise.
2233         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
2234         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
2235         pthread_mutex_timedlock, pthread_rwlock_init,
2236         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
2237         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
2238         * lib/search.in.h (tdelete): Likewise.
2239         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
2240         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
2241         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
2242         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
2243         Likewise.
2244         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
2245         strtoull): Likewise.
2246         * lib/string.in.h (strncat): Likewise.
2247         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
2248         recvfrom): Likewise.
2249         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
2250         * lib/time.in.h (strftime): Likewise.
2251         * lib/unistd.in.h (readlink, readlinkat): Likewise.
2252         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
2253         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
2254         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
2255         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
2256         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
2257         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
2258         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2259         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2264         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2265         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2266         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
2267         other *_h.m4 files.
2268         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
2270 2020-02-22  Bruno Haible  <bruno@clisp.org>
2272         Update NEWS.
2273         * NEWS: Mention the last change.
2275 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
2277         chmodat, chownat: new modules
2278         These are split from fchmodat, fchownat.  GNU Emacs needs the
2279         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
2280         lchmodat.  Split the latter two into a new module chmodat.
2281         Similarly for fchownat.  This the same basic idea for why statat
2282         was split from fstatat on 2013-01-23.
2283         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
2284         Rename from FCHMODAT_INLINE.  All uses changed.
2285         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
2286         Rename from FCHOWNAT_INLINE.  All uses changed.
2287         * lib/openat.h:
2288         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
2289         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
2290         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
2291         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
2292         (configure.ac): Remove fchmodat module indicator.
2293         (Makefile.am): Omit chmodat.c.
2294         (Maintainer): Add self.
2295         * modules/fchownat: Similarly, but for chown.
2296         * tests/test-fchownat.c (BASE): Don't define if already defined.
2297         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
2299 2020-02-22  Bruno Haible  <bruno@clisp.org>
2301         users.txt: Add groff.
2302         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
2303         * users.txt: Add groff.
2305 2020-02-22  Bruno Haible  <bruno@clisp.org>
2307         gnulib-tool: Ensure copied files are writable.
2308         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
2309         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
2310         * gnulib-tool (func_ensure_writable): New function.
2311         (func_ln_s, func_hardlink, func_lookup_file, func_import,
2312         func_create_testdir, copy-file): Invoke it after copying a file.
2314 2020-02-22  Bruno Haible  <bruno@clisp.org>
2316         users.txt: Update.
2317         * users.txt: Update URLs to projects that have moved or switched to git.
2318         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
2319         over the summary view. Add gawk.
2321 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
2323         largefile: remove _DARWIN_USE_64_BIT_INODE
2324         It’s not needed in currently-supported macOS versions, and was
2325         problematic anyway in MacOS X 10.5 which was the only version that
2326         could use it.  Problem reported by Peter Eisentraut in:
2327         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
2328         * m4/largefile.m4 (AC_SYS_LARGEFILE):
2329         Don’t define _DARWIN_USE_64_BIT_INODE.
2330         This syncs with Autoconf master.
2332         Add ‘extern "C"’ to count-one-bits.h etc.
2333         This ports these .h files to C++.
2334         Problem reported by Simon Marchi in:
2335         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
2336         * lib/count-leading-zeros.h, lib/count-one-bits.h:
2337         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
2339 2020-02-19  Bruno Haible  <bruno@clisp.org>
2341         uninorm/decompose-internal: Avoid "no previous prototype" warning.
2342         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
2344         * lib/array-mergesort.h: Accept an optional macro definition
2345         STATIC_FROMTO.
2346         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
2348 2020-02-16  Bruno Haible  <bruno@clisp.org>
2350         fchmodat: Make more future-proof.
2351         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
2352         NEED_FCHMODAT_NONSYMLINK_FIX.
2353         (gl_PREREQ_FCHMODAT): New macro.
2354         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
2355         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
2356         without lchmod function.
2357         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
2359 2020-02-16  Bruno Haible  <bruno@clisp.org>
2361         lchmod: Make more future-proof.
2362         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
2363         (gl_PREREQ_LCHMOD): New macro.
2364         * lib/lchmod.c (orig_lchmod): New function.
2365         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
2366         Return EOPNOTSUPP only on Linux and on platforms without lchmod
2367         function.
2368         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
2370         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
2371         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
2373 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2375         xnanosleep: prefer pause, and get remaining time
2376         Problem reported by Vladimir Panteleev in:
2377         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
2378         * lib/xnanosleep.c: Include intprops.h, unistd.h.
2379         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
2380         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
2381         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
2382         * modules/xnanosleep (Depends-on): Add intprops, unistd.
2384 2020-02-16  Bruno Haible  <bruno@clisp.org>
2386         lchmod: Improve cross-compilation guess.
2387         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
2388         cross-compiling, guess depending on the platform.
2390 2020-02-16  Bruno Haible  <bruno@clisp.org>
2392         fstrcmp: Add API to clean up resources.
2393         Reported by Akim Demaille <akim@lrde.epita.fr> in
2394         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
2395         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
2396         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
2398 2020-02-14  Bruno Haible  <bruno@clisp.org>
2400         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
2401         Reported by Christian Biesinger in
2402         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
2403         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
2404         corresponding module is not enabled.
2405         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
2406         prototype if the corresponding module is not enabled.
2408 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
2410         fchmodat, lchmod: port to buggy Linux filesystems
2411         Problem reported by Florian Weimer in:
2412         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
2413         * lib/fchmodat.c (fchmodat):
2414         * lib/lchmod.c (lchmod):
2415         Don’t assume that chmod on the O_PATH-opened fd will do
2416         the right thing on a symbolic link.
2417         * lib/fchmodat.c (fchmodat):
2418         Don’t attempt to special-case
2419         any flag value other than AT_SYMLINK_NOFOLLOW.
2421 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
2423         lchmod: pacify Coverity CID 1491216
2424         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
2425         not complain about unreachable code at the ‘struct stat st;’
2426         declaration.
2428 2020-02-10  Bruno Haible  <bruno@clisp.org>
2430         copysignf: Fix link error on HP-UX with cc.
2431         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
2432         HP-UX, set COPYSIGNF_LIBM to -lm.
2434 2020-02-10  Bruno Haible  <bruno@clisp.org>
2436         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
2437         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
2438         with $(LIB_SEMAPHORE).
2439         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
2440         with $(LIB_SEMAPHORE).
2442 2020-02-10  Bruno Haible  <bruno@clisp.org>
2444         ptsname_r-tests: Avoid unused function warning.
2445         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
2447 2020-02-08  Bruno Haible  <bruno@clisp.org>
2449         lchmod: Add tests.
2450         * tests/test-lchmod.c: New file.
2451         * modules/lchmod-tests: New file.
2453 2020-02-08  Bruno Haible  <bruno@clisp.org>
2455         lchmod: Ensure declaration on HP-UX.
2456         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
2457         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
2459 2020-02-08  Bruno Haible  <bruno@clisp.org>
2461         fchmodat: Strengthen tests.
2462         * tests/test-fchmodat.c (BASE): New macro.
2463         (main): Use it, to avoid conflicts with other unit tests. Verify that
2464         fchmodat changed the file permission bits.
2466 2020-02-08  Bruno Haible  <bruno@clisp.org>
2468         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
2469         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
2470         '#undef __need_system_sys_stat_h'.
2472 2020-02-08  Bruno Haible  <bruno@clisp.org>
2474         fchmodat: Improve cross-compilation guesses.
2475         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
2476         cross-compiling, guess depending on the platform.
2477         * doc/posix-functions/fchmodat.texi: Clarify.
2479 2020-02-08  Bruno Haible  <bruno@clisp.org>
2481         Fix compilation errors in a testdir created with --with-c++-tests.
2482         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
2483         since it does not work any more with g++ >= 4.4.
2485 2020-02-08  Bruno Haible  <bruno@clisp.org>
2487         doc: Update for glibc 2.31.
2488         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
2489         * doc/gnulib.texi: Include it.
2490         * doc/pastposix-functions/h_errno.texi: Update.
2491         * doc/posix-functions/*.texi: Likewise.
2493 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
2495         mountlist: consider smb3 file systems as remote
2496         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
2497         "smb3" as remote.
2499 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2501         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
2502         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
2503         they act like chmod on non-symlinks.
2504         * NEWS:
2505         * doc/glibc-functions/lchmod.texi (lchmod):
2506         * doc/posix-functions/fchmodat.texi (fchmodat):
2507         Mention this.
2508         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
2509         config.h, and undef it after including sys/stat.h the first time.
2510         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
2511         sys/stat.h a second time after defining orig_fchmodat.
2512         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
2513         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
2514         * lib/lchmod.c: New file.
2515         * lib/sys_stat.in.h (fchmodat, lchmod):
2516         Support replacing these functions.
2517         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
2518         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
2519         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
2520         Test that lchmod works on non-symlinks.
2521         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
2522         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
2523         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
2524         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
2525         * modules/lchmod (Files): Add lib/lchmod.c.
2526         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
2527         (configure.ac): Compile lchmod.c if needed.
2528         (lib_SOURCES): Add lchmod.c.
2529         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
2530         and REPLACE_LCHMOD.
2531         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
2532         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
2534 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
2536         mountlist: Consider AFS filesystems as remote
2537         df --local relies on the ME_REMOTE macro to determine if a given
2538         mount entry should be considered "local".  There is special logic
2539         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
2540         kernel's kafs module or AuriStorFS is treated as a local mount.
2541         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
2542         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
2544 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2546         Port _Noreturn to older Clang
2547         Problem reported by Jeffery Walton in:
2548         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
2549         * lib/_Noreturn.h (_Noreturn):
2550         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2551         Assume _Noreturn works in Clang 3.5 and later.
2552         It is documented to work in Clang 3.5:
2553         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
2554         and is not documented in Clang 3.4:
2555         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
2556         Apple sets __clang_version__ to a different value, so use
2557         __apple_build_version__ there.  See:
2558         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
2560 2020-02-04  Pádraig Brady  <P@draigBrady.com>
2562         test-canonicalize: avoid unused function warning
2563         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
2564         with the same guard as that used to protect usage of the null_ptr
2565         function, so that one doesn't get a -Wunused warning.
2566         * tests/test-canonicalize-lgpl.c: Likewise.
2568 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2570         libc-config: port to Apple’s Clang variant
2571         * lib/libc-config.h (__glibc_clang_prereq):
2572         Port to Apple’s Clang variant, which uses a different
2573         numbering scheme for __clang_major__.
2575 2020-02-02  Bruno Haible  <bruno@clisp.org>
2577         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
2578         * doc/containers.texi: Document these new modules.
2580 2020-02-02  Bruno Haible  <bruno@clisp.org>
2582         omap-c++: Add tests.
2583         * tests/test-omap-c++.cc: New file.
2584         * modules/omap-c++-tests: New file.
2586         omap-c++: New module.
2587         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
2588         * modules/omap-c++: New file.
2590 2020-02-02  Bruno Haible  <bruno@clisp.org>
2592         map-c++: Add tests.
2593         * tests/test-map-c++.cc: New file.
2594         * modules/map-c++-tests: New file.
2596         map-c++: New module.
2597         * lib/gl_map.hh: New file, based on lib/gl_map.h.
2598         * modules/map-c++: New file.
2600 2020-02-02  Bruno Haible  <bruno@clisp.org>
2602         oset-c++: Add tests.
2603         * tests/test-oset-c++.cc: New file.
2604         * modules/oset-c++-tests: New file.
2606         oset-c++: New module.
2607         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
2608         * modules/oset-c++: New file.
2610 2020-02-02  Bruno Haible  <bruno@clisp.org>
2612         set-c++: Add tests.
2613         * tests/test-set-c++.cc: New file.
2614         * modules/set-c++-tests: New file.
2616         set-c++: New module.
2617         * lib/gl_set.hh: New file, based on lib/gl_set.h.
2618         * modules/set-c++: New file.
2620 2020-02-02  Bruno Haible  <bruno@clisp.org>
2622         list-c++: Add tests.
2623         * tests/test-list-c++.cc: New file.
2624         * modules/list-c++-tests: New file.
2626         list-c++: New module.
2627         * lib/gl_list.hh: New file, based on lib/gl_list.h.
2628         * modules/list-c++: New file.
2630 2020-02-02  Bruno Haible  <bruno@clisp.org>
2632         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
2633         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
2634         '_Noreturn'.
2635         * lib/sigpipe-die.h (sigpipe_die): Likewise.
2637 2020-02-02  Pádraig Brady  <P@draigBrady.com>
2639         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
2640         On x86_64 with glibc-2.30, gcc 9.2 is giving:
2641           error: argument 2 value '18446744073709551615'
2642           exceeds maximum object size 9223372036854775807
2643           [-Werror=alloc-size-larger-than=]
2644         The details of this restriction are discussed at:
2645         https://stackoverflow.com/q/42574890/4421
2646         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
2648 2020-02-02  Pádraig Brady  <P@draigBrady.com>
2650         sysctl.h: avoid including on glibc
2651         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
2652         * lib/physmem.c: Likewise.
2654 2020-02-02  Bruno Haible  <bruno@clisp.org>
2656         list, set, oset, map, omap: Avoid imperative voice in documentation.
2657         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
2658         in the specification of functions.
2659         * lib/gl_set.h: Likewise.
2660         * lib/gl_oset.h: Likewise.
2661         * lib/gl_map.h: Likewise.
2662         * lib/gl_omap.h: Likewise.
2663         * lib/gl_*.h: Likewise.
2665 2020-02-01  Bruno Haible  <bruno@clisp.org>
2667         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
2668         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
2669         does.
2671 2020-01-29  Bruno Haible  <bruno@clisp.org>
2673         array-map, hash-map, linkedhash-map: Fix module description.
2674         * modules/array-map (Description): Fix description.
2675         * modules/hash-map (Description): Likewise.
2676         * modules/linkedhash-map (Description): Likewise.
2678 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2680         dfa: do not depend on isblank
2681         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
2682         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
2683         * modules/dfa (Depends-on): Remove isblank.
2684         * modules/isblank: Add a module indicator, for lib/dfa.c.
2686         dfa: do not assume 64-bit int
2687         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
2688         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
2689         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
2690         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
2691         Fall back to 32-bit words.
2692         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
2693         of 4 64-bit args.  All uses changed.
2695 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2697         regex: remove limits-h dependency
2698         * modules/regex (Depends-on): Remove limits-h, since the
2699         code no longer depends on ULONG_WIDTH already being defined.
2701         regex: port to non-GCC pre-IEC-60559
2702         Problem reported by Arnold Robbins in:
2703         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
2704         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
2706 2020-01-25  Bruno Haible  <bruno@clisp.org>
2708         c32isxdigit: Add tests.
2709         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
2710         * tests/test-c32isxdigit.sh: New file.
2711         * modules/c32isxdigit-tests: New file.
2713         c32isxdigit: New module.
2714         * lib/c32isxdigit.c: New file.
2715         * modules/c32isxdigit: New file.
2716         * doc/posix-functions/iswxdigit.texi: Mention the new module.
2718 2020-01-25  Bruno Haible  <bruno@clisp.org>
2720         c32isupper: Add tests.
2721         * tests/test-c32isupper.c: New file.
2722         * tests/test-c32isupper.sh: New file.
2723         * modules/c32isupper-tests: New file.
2725         c32isupper: New module.
2726         * lib/c32isupper.c: New file.
2727         * modules/c32isupper: New file.
2728         * doc/posix-functions/iswupper.texi: Mention the new module.
2730 2020-01-25  Bruno Haible  <bruno@clisp.org>
2732         c32isspace: Add tests.
2733         * tests/test-c32isspace.c: New file.
2734         * tests/test-c32isspace.sh: New file.
2735         * modules/c32isspace-tests: New file.
2737         c32isspace: New module.
2738         * lib/c32isspace.c: New file.
2739         * modules/c32isspace: New file.
2740         * doc/posix-functions/iswspace.texi: Mention the new module.
2742 2020-01-25  Bruno Haible  <bruno@clisp.org>
2744         c32ispunct: Add tests.
2745         * tests/test-c32ispunct.c: New file.
2746         * tests/test-c32ispunct.sh: New file.
2747         * modules/c32ispunct-tests: New file.
2749         c32ispunct: New module.
2750         * lib/c32ispunct.c: New file.
2751         * modules/c32ispunct: New file.
2752         * doc/posix-functions/iswpunct.texi: Mention the new module.
2754 2020-01-25  Bruno Haible  <bruno@clisp.org>
2756         c32isprint: Add tests.
2757         * tests/test-c32isprint.c: New file.
2758         * tests/test-c32isprint.sh: New file.
2759         * modules/c32isprint-tests: New file.
2761         c32isprint: New module.
2762         * lib/c32isprint.c: New file.
2763         * modules/c32isprint: New file.
2764         * doc/posix-functions/iswprint.texi: Mention the new module.
2766 2020-01-25  Bruno Haible  <bruno@clisp.org>
2768         c32islower: Add tests.
2769         * tests/test-c32islower.c: New file.
2770         * tests/test-c32islower.sh: New file.
2771         * modules/c32islower-tests: New file.
2773         c32islower: New module.
2774         * lib/c32islower.c: New file.
2775         * modules/c32islower: New file.
2776         * doc/posix-functions/iswlower.texi: Mention the new module.
2778 2020-01-25  Bruno Haible  <bruno@clisp.org>
2780         c32isgraph: Add tests.
2781         * tests/test-c32isgraph.c: New file.
2782         * tests/test-c32isgraph.sh: New file.
2783         * modules/c32isgraph-tests: New file.
2785         c32isgraph: New module.
2786         * lib/c32isgraph.c: New file.
2787         * modules/c32isgraph: New file.
2788         * doc/posix-functions/iswgraph.texi: Mention the new module.
2790 2020-01-25  Bruno Haible  <bruno@clisp.org>
2792         c32isdigit: Add tests.
2793         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
2794         * tests/test-c32isdigit.sh: New file.
2795         * modules/c32isdigit-tests: New file.
2797         c32isdigit: New module.
2798         * lib/c32isdigit.c: New file.
2799         * modules/c32isdigit: New file.
2800         * doc/posix-functions/iswdigit.texi: Mention the new module.
2802 2020-01-25  Bruno Haible  <bruno@clisp.org>
2804         c32iscntrl: Add tests.
2805         * tests/test-c32iscntrl.c: New file.
2806         * tests/test-c32iscntrl.sh: New file.
2807         * modules/c32iscntrl-tests: New file.
2809         c32iscntrl: New module.
2810         * lib/c32iscntrl.c: New file.
2811         * modules/c32iscntrl: New file.
2812         * doc/posix-functions/iswcntrl.texi: Mention the new module.
2814 2020-01-25  Bruno Haible  <bruno@clisp.org>
2816         c32isblank: Add tests.
2817         * tests/test-c32isblank.c: New file.
2818         * tests/test-c32isblank.sh: New file.
2819         * modules/c32isblank-tests: New file.
2821         c32isblank: New module.
2822         * lib/c32isblank.c: New file.
2823         * modules/c32isblank: New file.
2824         * doc/posix-functions/iswblank.texi: Mention the new module.
2826 2020-01-25  Bruno Haible  <bruno@clisp.org>
2828         c32isalpha: Add tests.
2829         * tests/test-c32isalpha.c: New file.
2830         * tests/test-c32isalpha.sh: New file.
2831         * modules/c32isalpha-tests: New file.
2833         c32isalpha: New module.
2834         * lib/c32isalpha.c: New file.
2835         * modules/c32isalpha: New file.
2836         * doc/posix-functions/iswalpha.texi: Mention the new module.
2838 2020-01-25  Bruno Haible  <bruno@clisp.org>
2840         c32isalnum: Add tests.
2841         * tests/test-c32isalnum.c: New file.
2842         * tests/test-c32isalnum.sh: New file.
2843         * modules/c32isalnum-tests: New file.
2845         c32isalnum: New module.
2846         * lib/c32isalnum.c: New file.
2847         * lib/c32is-impl.h: New file.
2848         * modules/c32isalnum: New file.
2849         * doc/posix-functions/iswalnum.texi: Mention the new module.
2851 2020-01-25  Bruno Haible  <bruno@clisp.org>
2853         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
2854         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
2855         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
2856         c32isupper, c32isxdigit): New declarations.
2857         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
2858         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
2859         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
2860         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
2861         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
2862         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
2863         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
2864         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
2865         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
2866         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
2867         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
2868         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
2869         c32ispunct, c32isspace, c32isupper, c32isxdigit.
2871 2020-01-25  Bruno Haible  <bruno@clisp.org>
2873         mbchar, wctype: Use the corrected iswxdigit function.
2874         * modules/mbchar (Depends-on): Add iswxdigit.
2875         * modules/wctype (Depends-on): Likewise.
2877         iswxdigit: Add tests.
2878         * tests/test-iswxdigit.c: New file.
2879         * tests/test-iswxdigit.sh: New file.
2880         * modules/iswxdigit-tests: New file.
2882         iswxdigit: New module.
2883         * m4/iswxdigit.m4: New file.
2884         * lib/wctype.in.h (iswxdigit): Potentially override.
2885         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
2886         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
2887         * lib/iswxdigit.c: New file.
2888         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
2889         REPLACE_ISWXDIGIT.
2890         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
2891         REPLACE_ISWXDIGIT.
2892         * modules/iswxdigit: New file.
2893         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
2895 2020-01-25  Bruno Haible  <bruno@clisp.org>
2897         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
2898         Reported by John Donoghue <john.david.donoghue@gmail.com> in
2899         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
2900         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
2901         off_t on mingw, invoke _lseeki64 instead of lseek.
2903 2020-01-25  Bruno Haible  <bruno@clisp.org>
2905         iswdigit tests: Avoid test failure on Cygwin.
2906         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
2907         byte sequence, return 0.
2909         iswdigit: Fix test failure on native Windows.
2910         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
2912         mbchar, wctype: Use the corrected iswdigit function.
2913         * modules/mbchar (Depends-on): Add iswdigit.
2914         * modules/wctype (Depends-on): Likewise.
2916         iswdigit: Add tests.
2917         * tests/test-iswdigit.c: New file.
2918         * tests/test-iswdigit.sh: New file.
2919         * modules/iswdigit-tests: New file.
2921         iswdigit: New module.
2922         * m4/iswdigit.m4: New file.
2923         * lib/wctype.in.h (iswdigit): Potentially override.
2924         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
2925         * lib/iswdigit.c: New file.
2926         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
2927         REPLACE_ISWDIGIT.
2928         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
2929         REPLACE_ISWDIGIT.
2930         * modules/iswdigit: New file.
2931         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
2933 2020-01-25  Bruno Haible  <bruno@clisp.org>
2935         hard-locale tests: Make it easy to reuse the musl test.
2936         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
2937         * modules/hard-locale-tests (Files): Add it.
2938         (configure.ac): Invoke gl_MUSL_LIBC.
2940 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
2942         regex: port to Gawk on nonstandard platforms
2943         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
2944         This is useful for Gawk, which does not use the Gnulib stdlib-h
2945         module.  Problem reported by Arnold Robbins in:
2946         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
2948 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2950         regex: fix bug with >=16 subexpressions
2951         * lib/regex_internal.h (struct re_backref_cache_entry):
2952         Use bitset_word_t as the type of eps_reachable_subexps_map,
2953         instead of unsigned short int.  This fixes a bug I introduced
2954         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
2955         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
2956         Remove unused member 'unused'.
2958         regex: simplify definition of BITSET_WORD_BITS
2959         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
2960         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
2961         * lib/regex_internal.h (BITSET_WORD_BITS):
2962         * modules/regex (Depends-on): Add limits-h.
2963         Simplify now that we can use ULONG_WIDTH.
2965 2020-01-20  Bruno Haible  <bruno@clisp.org>
2967         mbrtoc32: Add note about FreeBSD 12.
2968         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
2969         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
2970         affected.
2972 2020-01-20  Bruno Haible  <bruno@clisp.org>
2974         unistr/u8-uctomb: Fix warning.
2975         Reported by Andreas Schwab <schwab@suse.de> in
2976         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
2977         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
2978         (u8_uctomb): Add FALLTHROUGH markers.
2980 2020-01-20  Bruno Haible  <bruno@clisp.org>
2982         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
2983         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
2984         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
2985         (glthread_once): Use it.
2987 2020-01-19  Bruno Haible  <bruno@clisp.org>
2989         threadlib: Disable use of weak symbols on FreeBSD 11.
2990         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2991         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
2992         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
2993         against a bug in FreeBSD 11.
2995 2020-01-19  Bruno Haible  <bruno@clisp.org>
2997         iconv_open: Improve z/OS support.
2998         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
2999         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
3000         Remove mapping for EUC-TW.
3002 2020-01-18  Bruno Haible  <bruno@clisp.org>
3004         Rename ~~gnulib.m4 to zzgnulib.m4.
3005         Suggested by Paul Eggert.
3006         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
3007         * gnulib-tool (func_get_filelist): Update.
3008         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
3010 2020-01-18  Bruno Haible  <bruno@clisp.org>
3012         doc: Update license notices.
3013         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
3014         reference to a section or to a "file as part of this distribution".
3016 2020-01-18  Bruno Haible  <bruno@clisp.org>
3018         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
3019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
3020         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
3021         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
3022         AC_EGREP_CPP.
3024 2020-01-18  Bruno Haible  <bruno@clisp.org>
3026         Ensure Automake does not drop ~~gnulib.m4.
3027         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
3028         * m4/gnulib-common.m4 (gl_COMMON): Require it.
3030 2020-01-18  Bruno Haible  <bruno@clisp.org>
3032         Fix major regression from 2020-01-10.
3033         Reported by Paul Eggert in
3034         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
3035         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
3036         Don't AC_REQUIRE anything.
3037         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
3038         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
3039         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
3040         use ac_compile instead.
3041         (AC_CHECK_DECL): Remove override.
3042         * m4/~~gnulib.m4: New file.
3043         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
3044         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
3046 2020-01-17  Bruno Haible  <bruno@clisp.org>
3047             Paul Eggert  <eggert@cs.ucla.edu>
3049         glob: Fix use-after-free bug.
3050         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3051         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
3052         * lib/glob.c (__glob): Delay freeing dirname until after the use of
3053         end_name.
3055 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3057         vcs-to-changelog: Fix parsing of fndecl without args.
3058         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
3059         for empty arguments.
3061 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3063         vcs-to-changelog: Add documentation.
3064         * doc/vcs-to-changelog.texi: New file.
3065         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
3066         section.
3068 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3070         vcs-to-changelog: Allow loading of custom quirks file.
3071         * build-aux/vcs_to_changelog.py: New commandline option -q.
3073 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3075         vcs-to-changelog: Fix formatting of ChangeLog output.
3076         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
3077         output.
3079 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3081         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
3082         Reported in
3083         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
3084         * build-aux/vcstocl/frontend_c.py: Remove shebang.
3086 2020-01-15  Simon Josefsson  <simon@josefsson.org>
3088         crypto/gc-pbkdf2: New module.
3089         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
3090         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
3091         * lib/gc-pbkdf2.c: New file.
3092         * lib/gc-pbkdf2-sha1.c: Use new interface.
3093         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
3094         * modules/crypto/gc-pbkdf2: New file.
3095         * modules/crypto/gc-pbkdf2-tests: New file.
3096         * tests/test-gc-pbkdf2.c: New file.
3098 2020-01-12  Bruno Haible  <bruno@clisp.org>
3100         c32stombs: Add tests.
3101         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
3102         * tests/test-c32stombs-1.sh: New file, based on
3103         tests/test-c32srtombs-1.sh.
3104         * tests/test-c32stombs-2.sh: New file, based on
3105         tests/test-c32srtombs-2.sh.
3106         * tests/test-c32stombs-3.sh: New file, based on
3107         tests/test-c32srtombs-3.sh.
3108         * tests/test-c32stombs-4.sh: New file, based on
3109         tests/test-c32srtombs-4.sh.
3110         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
3112         c32stombs: New module.
3113         * lib/uchar.in.h (c32stombs): New declaration.
3114         * lib/c32stombs.c: New file.
3115         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
3116         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
3117         * modules/c32stombs: New file.
3118         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
3119         * doc/posix-functions/wcstombs.texi: Mention the new module.
3121 2020-01-11  Jim Meyering  <meyering@fb.com>
3123         perl: require the "warnings" module
3124         * m4/perl.m4: Also "use warnings", so we reject the perl found
3125         on at least one IRIX 6.5 system. Reported by Bruno Haible in
3126         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
3128 2020-01-10  Bruno Haible  <bruno@clisp.org>
3130         Fix major regression from 2020-01-04.
3131         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
3132         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
3133         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
3134         AC_DEFUN_ONCE.
3135         (AC_CHECK_DECL): Invoke, not require, it.
3137 2020-01-10  Bruno Haible  <bruno@clisp.org>
3139         c32snrtombs: Add tests.
3140         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
3141         * tests/test-c32snrtombs-1.sh: New file, based on
3142         tests/test-wcsnrtombs1.sh.
3143         * tests/test-c32snrtombs-2.sh: New file, based on
3144         tests/test-wcsnrtombs2.sh.
3145         * tests/test-c32snrtombs-3.sh: New file, based on
3146         tests/test-wcsnrtombs3.sh.
3147         * tests/test-c32snrtombs-4.sh: New file, based on
3148         tests/test-wcsnrtombs4.sh.
3149         * modules/c32snrtombs-tests: New file, based on
3150         modules/wcsnrtombs-tests.
3152         c32snrtombs: New module.
3153         * lib/uchar.in.h (c32snrtombs): New declaration.
3154         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
3155         INTERNAL_STATE, WCRTOMB.
3156         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
3157         * lib/c32snrtombs.c: New file.
3158         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
3159         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
3160         * modules/c32snrtombs: New file.
3161         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
3162         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3164 2020-01-09  Bruno Haible  <bruno@clisp.org>
3166         c32srtombs: Add tests.
3167         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
3168         * tests/test-c32srtombs-1.sh: New file, based on
3169         tests/test-wcsrtombs1.sh.
3170         * tests/test-c32srtombs-2.sh: New file, based on
3171         tests/test-wcsrtombs2.sh.
3172         * tests/test-c32srtombs-3.sh: New file, based on
3173         tests/test-wcsrtombs3.sh.
3174         * tests/test-c32srtombs-4.sh: New file, based on
3175         tests/test-wcsrtombs4.sh.
3176         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
3178         c32srtombs: New module.
3179         * lib/uchar.in.h (c32srtombs): New declaration.
3180         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
3181         INTERNAL_STATE, WCRTOMB.
3182         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
3183         * lib/c32srtombs.c: New file.
3184         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
3185         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
3186         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
3187         * modules/c32srtombs: New file.
3188         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
3189         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
3191 2020-01-08  Bruno Haible  <bruno@clisp.org>
3193         c32tob: Make consistent with mbrtoc32.
3194         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
3195         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
3196         use c32rtomb, not wctob.
3197         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
3198         (Depends-on): Add c32rtomb.
3199         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
3201 2020-01-08  Bruno Haible  <bruno@clisp.org>
3203         c32rtomb: Add tests.
3204         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
3205         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
3206         * tests/test-c32rtomb-w32.c: New file, based on
3207         tests/test-wcrtomb-w32.c.
3208         * tests/test-c32rtomb-w32-1.sh: New file, based on
3209         tests/test-wcrtomb-w32-1.sh.
3210         * tests/test-c32rtomb-w32-2.sh: New file, based on
3211         tests/test-wcrtomb-w32-2.sh.
3212         * tests/test-c32rtomb-w32-3.sh: New file, based on
3213         tests/test-wcrtomb-w32-3.sh.
3214         * tests/test-c32rtomb-w32-4.sh: New file, based on
3215         tests/test-wcrtomb-w32-4.sh.
3216         * tests/test-c32rtomb-w32-5.sh: New file, based on
3217         tests/test-wcrtomb-w32-5.sh.
3218         * tests/test-c32rtomb-w32-6.sh: New file, based on
3219         tests/test-wcrtomb-w32-6.sh.
3220         * tests/test-c32rtomb-w32-7.sh: New file, based on
3221         tests/test-wcrtomb-w32-7.sh.
3222         * modules/c32rtomb-tests: New file.
3224         c32rtomb: New module.
3225         * lib/uchar.in.h (c32rtomb): New declaration.
3226         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
3227         * m4/c32rtomb.m4: New file.
3228         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
3229         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
3230         REPLACE_C32RTOMB.
3231         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
3232         HAVE_C32RTOMB, REPLACE_C32RTOMB.
3233         * modules/c32rtomb: New file.
3234         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
3235         * doc/posix-functions/c32rtomb.texi: Document the new module.
3236         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3238 2020-01-08  Bruno Haible  <bruno@clisp.org>
3240         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
3241         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
3242         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
3243         but is not working.
3244         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
3245         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
3246         differ, use the system's mbrtoc32, adding workarounds.
3247         * modules/mbrtoc32 (Depends-on): Add hard-locale.
3248         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
3249         Windows problem.
3250         * lib/btoc32.c: Include <stdio.h>, <string.h>.
3251         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
3252         use mbrtoc32, not btowc.
3253         * modules/btoc32 (Depends-on): Add mbrtoc32.
3254         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
3255         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
3256         * modules/mbsrtoc32s (Depends-on): Update conditions.
3257         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
3258         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
3259         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
3260         * modules/mbsnrtoc32s (Depends-on): Update conditions.
3261         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
3263 2020-01-07  Bruno Haible  <bruno@clisp.org>
3265         wcrtomb: Make multithread-safe, except possibly on IRIX.
3266         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
3267         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
3268         WCRTOMB_RETVAL_BUG.
3269         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
3270         wctomb only on IRIX.
3272 2020-01-05  Jim Meyering  <meyering@fb.com>
3274         tests: skip thread-using tests when threading is disabled
3275         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
3276         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
3277         of those, so they are skipped in this case.
3278         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
3279         * tests/test-setlocale_null-mt-all.c (main): Likewise.
3280         * tests/test-setlocale_null-mt-one.c (main): Likewise.
3282 2020-01-05  Bruno Haible  <bruno@clisp.org>
3284         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
3285         Reported by Jim Meyering in
3286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
3287         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
3288         (GNULIB_defined_ptsname_r): New macro.
3289         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
3290         (main): Disable the NULL argument test if canonicalize_file_name does
3291         not come from gnulib.
3292         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
3293         (main): Disable the NULL argument test if canonicalize_file_name does
3294         not come from gnulib.
3295         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
3296         (test_errors): Disable the NULL argument test if ptsname_r does not come
3297         from gnulib.
3299 2020-01-04  Jim Meyering  <meyering@fb.com>
3301         update-copyright: reenable its always-skipped test
3302         * tests/test-update-copyright.sh: Restore the "-pi" options removed
3303         on 2019-06-15. Without those, an internal preliminary test would
3304         fail, causing this test always to be skipped.
3305         Verify that the test is now run and passes via this:
3306           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
3308 2020-01-05  Bruno Haible  <bruno@clisp.org>
3310         mbstoc32s: Add tests.
3311         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
3312         * tests/test-mbstoc32s-1.sh: New file, based on
3313         tests/test-mbsrtoc32s-1.sh.
3314         * tests/test-mbstoc32s-2.sh: New file, based on
3315         tests/test-mbsrtoc32s-2.sh.
3316         * tests/test-mbstoc32s-3.sh: New file, based on
3317         tests/test-mbsrtoc32s-3.sh.
3318         * tests/test-mbstoc32s-4.sh: New file, based on
3319         tests/test-mbsrtoc32s-4.sh.
3320         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
3322         mbstoc32s: New module.
3323         * lib/uchar.in.h (mbstoc32s): New declaration.
3324         * lib/mbstoc32s.c: New file.
3325         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
3326         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
3327         * modules/mbstoc32s: New file.
3328         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
3329         * doc/posix-functions/mbstowcs.texi: Mention the new module.
3331 2020-01-05  Bruno Haible  <bruno@clisp.org>
3333         Tweak recently added tests.
3334         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
3335         * tests/test-mbsrtoc32s.c: Likewise.
3336         * tests/test-mbsnrtoc32s.c: Likewise.
3338 2020-01-04  Bruno Haible  <bruno@clisp.org>
3340         mbsnrtoc32s: Add tests.
3341         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
3342         * tests/test-mbsnrtoc32s-1.sh: New file, based on
3343         tests/test-mbsnrtowcs1.sh.
3344         * tests/test-mbsnrtoc32s-2.sh: New file, based on
3345         tests/test-mbsnrtowcs2.sh.
3346         * tests/test-mbsnrtoc32s-3.sh: New file, based on
3347         tests/test-mbsnrtowcs3.sh.
3348         * tests/test-mbsnrtoc32s-4.sh: New file, based on
3349         tests/test-mbsnrtowcs4.sh.
3350         * modules/mbsnrtoc32s-tests: New file, based on
3351         modules/mbsnrtowcs-tests.
3353         mbsnrtoc32s: New module.
3354         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
3355         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
3356         INTERNAL_STATE, MBRTOWC.
3357         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
3358         * lib/mbsnrtoc32s.c: New file.
3359         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
3360         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
3361         * modules/mbsnrtoc32s: New file.
3362         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
3363         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
3365 2020-01-04  Bruno Haible  <bruno@clisp.org>
3367         mbsrtoc32s tests: Enhance test.
3368         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
3369         test strings for UTF-8 and GB18030.
3371 2020-01-04  Bruno Haible  <bruno@clisp.org>
3373         mbsrtoc32s: Fix bug.
3374         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
3375         that SMALL_WCHAR_T is defined.
3377 2020-01-04  Bruno Haible  <bruno@clisp.org>
3379         mbsrtoc32s: Add tests.
3380         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
3381         * tests/test-mbsrtoc32s-1.sh: New file, based on
3382         tests/test-mbsrtowcs1.sh.
3383         * tests/test-mbsrtoc32s-2.sh: New file, based on
3384         tests/test-mbsrtowcs2.sh.
3385         * tests/test-mbsrtoc32s-3.sh: New file, based on
3386         tests/test-mbsrtowcs3.sh.
3387         * tests/test-mbsrtoc32s-4.sh: New file, based on
3388         tests/test-mbsrtowcs4.sh.
3389         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
3391         mbsrtoc32s: New module.
3392         * lib/uchar.in.h (mbsrtoc32s): New declaration.
3393         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
3394         INTERNAL_STATE, MBRTOWC.
3395         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
3396         * lib/mbsrtoc32s.c: New file.
3397         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
3398         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
3399         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
3400         * modules/mbsrtoc32s: New file.
3401         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
3402         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
3404 2020-01-04  Bruno Haible  <bruno@clisp.org>
3406         mbrtowc, mbrtoc32: Tighten dependendies.
3407         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
3408         REPLACE_MBSTATE_T is 1.
3409         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
3410         REPLACE_MBSTATE_T is 0.
3411         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
3412         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
3413         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
3414         REPLACE_MBSTATE_T is 0.
3416 2020-01-04  Bruno Haible  <bruno@clisp.org>
3418         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
3419         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
3420         * modules/uchar (Files): Add stdint.m4.
3421         (Makefile.am): Substitute SMALL_WCHAR_T.
3422         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
3424 2020-01-04  Bruno Haible  <bruno@clisp.org>
3426         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
3427         Reported by Martin Storsjö <martin@martin.st> in
3428         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
3429         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
3430         New macros.
3431         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
3433 2020-01-04  Bruno Haible  <bruno@clisp.org>
3435         btoc32: Add tests.
3436         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
3437         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
3438         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
3439         * modules/btoc32-tests: New file, based on modules/btowc-tests.
3441         btoc32: New module.
3442         * lib/uchar.in.h (btoc32): New declaration.
3443         * lib/btoc32.c: New file.
3444         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
3445         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
3446         * modules/btoc32: New file.
3447         * tests/test-uchar-c++.cc: Test the signature of btoc32.
3448         * doc/posix-functions/btowc.texi: Mention the new module.
3450 2020-01-03  Bruno Haible  <bruno@clisp.org>
3452         uchar tests: Avoid compilation error with HP cc.
3453         * tests/test-uchar.c: Disable a test when HP cc is in use.
3455 2020-01-03  Bruno Haible  <bruno@clisp.org>
3457         mbrtoc32: Add tests.
3458         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
3459         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
3460         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
3461         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
3462         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
3463         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
3464         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
3465         * tests/test-mbrtoc32-w32-1.sh: New file, based on
3466         tests/test-mbrtowc-w32-1.sh.
3467         * tests/test-mbrtoc32-w32-2.sh: New file, based on
3468         tests/test-mbrtowc-w32-2.sh.
3469         * tests/test-mbrtoc32-w32-3.sh: New file, based on
3470         tests/test-mbrtowc-w32-3.sh.
3471         * tests/test-mbrtoc32-w32-4.sh: New file, based on
3472         tests/test-mbrtowc-w32-4.sh.
3473         * tests/test-mbrtoc32-w32-5.sh: New file, based on
3474         tests/test-mbrtowc-w32-5.sh.
3475         * tests/test-mbrtoc32-w32-6.sh: New file, based on
3476         tests/test-mbrtowc-w32-6.sh.
3477         * tests/test-mbrtoc32-w32-7.sh: New file, based on
3478         tests/test-mbrtowc-w32-7.sh.
3479         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
3481         mbrtoc32: New module.
3482         * lib/uchar.in.h (mbrtoc32): New declaration.
3483         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
3484         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
3485         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
3486         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
3487         REPLACE_MBRTOC32.
3488         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
3489         HAVE_MBRTOC32, REPLACE_MBRTOC32.
3490         * modules/mbrtoc32: New file, based on modules/mbrtowc.
3491         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
3492         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
3493         $(LIB_MBRTOWC).
3494         * doc/posix-functions/mbrtoc32.texi: Document the new module.
3495         * doc/posix-functions/mbrtowc.texi: Mention the new module.
3497 2020-01-03  Bruno Haible  <bruno@clisp.org>
3499         mbrtowc: Refactor to share code with mbrtoc32.
3500         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
3501         * lib/mbrtowc-impl-utf8.h: Likewise.
3502         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
3503         mbrtowc-impl.h.
3504         * modules/mbrtowc (Files): Add the new files.
3506 2020-01-03  Jim Meyering  <meyering@fb.com>
3508         doc: fix time.texi wording
3509         * doc/posix-headers/time.texi (time.h): Typo.
3511 2020-01-03  Bruno Haible  <bruno@clisp.org>
3513         mbrtowc: Refactor locale charset dispatching.
3514         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
3515         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
3516         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
3517         localcharset.h, streq.h.
3518         (enc_t): Remove type.
3519         (locale_enc): Remove function.
3520         (cached_locale_enc): Remove variable.
3521         (locale_enc_cached): Remove function.
3522         (mbrtowc): Invoke locale_encoding_classification.
3523         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
3524         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
3525         lc-charset-dispatch.c.
3526         (configure.ac): Arrange to compile lc-charset-dispatch.c.
3528 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
3530         doc: mention 32-bit time_t issue
3531         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3532         * doc/posix-headers/time.texi (time.h): Mention 2038.
3534 2020-01-03  Bruno Haible  <bruno@clisp.org>
3536         mbrtowc: Ensure the mbtowc_lock is unique.
3537         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
3538         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
3539         lib/setlocale_null.c.
3540         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
3541         glthread/lock.h. Include mbtowc-lock.h.
3542         (mbtowc_lock): Remove declaration.
3543         (mbrtowc): Use mbtowc_with_lock.
3544         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
3545         threads.h. Set LIB_MBRTOWC.
3546         (gl_PREREQ_MBTOWC_LOCK): New macro.
3547         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
3548         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3549         (Depends-on): Remove lock.
3550         (configure.ac): Arrange to compile mbtowc-lock.c.
3551         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
3552         * modules/acl (Link): Likewise.
3553         * modules/argmatch (Link): Likewise.
3554         * modules/backup-rename (Link): Likewise.
3555         * modules/backupfile (Link): Likewise.
3556         * modules/closein (Link): Likewise.
3557         * modules/closeout (Link): Likewise.
3558         * modules/copy-file (Link): Likewise.
3559         * modules/csharpcomp (Link): Likewise.
3560         * modules/csharpexec (Link): Likewise.
3561         * modules/dfa (Link): Likewise.
3562         * modules/exclude (Link): Likewise.
3563         * modules/fnmatch (Link): Likewise.
3564         * modules/fnmatch-gnu (Link): Likewise.
3565         * modules/fnmatch-posix (Link): Likewise.
3566         * modules/glob (Link): Likewise.
3567         * modules/human (Link): Likewise.
3568         * modules/javacomp (Link): Likewise.
3569         * modules/javaexec (Link): Likewise.
3570         * modules/javaversion (Link): Likewise.
3571         * modules/mbfile (Link): Likewise.
3572         * modules/mbiter (Link): Likewise.
3573         * modules/mbmemcasecmp (Link): Likewise.
3574         * modules/mbmemcasecoll (Link): Likewise.
3575         * modules/mbrlen (Link): Likewise.
3576         * modules/mbscasecmp (Link): Likewise.
3577         * modules/mbscasestr (Link): Likewise.
3578         * modules/mbschr (Link): Likewise.
3579         * modules/mbscspn (Link): Likewise.
3580         * modules/mbsinit (Link): Likewise.
3581         * modules/mbslen (Link): Likewise.
3582         * modules/mbsncasecmp (Link): Likewise.
3583         * modules/mbsnlen (Link): Likewise.
3584         * modules/mbsnrtowcs (Link): Likewise.
3585         * modules/mbspbrk (Link): Likewise.
3586         * modules/mbspcasecmp (Link): Likewise.
3587         * modules/mbsrchr (Link): Likewise.
3588         * modules/mbsrtowcs (Link): Likewise.
3589         * modules/mbssep (Link): Likewise.
3590         * modules/mbsspn (Link): Likewise.
3591         * modules/mbsstr (Link): Likewise.
3592         * modules/mbstok_r (Link): Likewise.
3593         * modules/mbswidth (Link): Likewise.
3594         * modules/mbuiter (Link): Likewise.
3595         * modules/mkdir-p (Link): Likewise.
3596         * modules/propername (Link): Likewise.
3597         * modules/quote (Link): Likewise.
3598         * modules/quotearg (Link): Likewise.
3599         * modules/quotearg-simple (Link): Likewise.
3600         * modules/regex-quote (Link): Likewise.
3601         * modules/rpmatch (Link): Likewise.
3602         * modules/sh-quote (Link): Likewise.
3603         * modules/system-quote (Link): Likewise.
3604         * modules/trim (Link): Likewise.
3605         * modules/unistdio/ulc-asnprintf (Link): Likewise.
3606         * modules/unistdio/ulc-fprintf (Link): Likewise.
3607         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
3608         * modules/unistdio/ulc-vasprintf (Link): Likewise.
3609         * modules/unistdio/ulc-vfprintf (Link): Likewise.
3610         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
3611         * modules/unistdio/ulc-vsprintf (Link): Likewise.
3612         * modules/xfreopen (Link): Likewise.
3613         * modules/xmemcoll (Link): Likewise.
3614         * modules/yesno (Link): Likewise.
3615         * modules/regex (Link): Add $(LIB_MBRTOWC).
3616         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
3617         instead of $(LIBTHREAD).
3618         * modules/argmatch-tests (Makefile.am): Likewise.
3619         * modules/closein-tests (Makefile.am): Likewise.
3620         * modules/copy-file-tests (Makefile.am): Likewise.
3621         * modules/dfa-tests (Makefile.am): Likewise.
3622         * modules/fnmatch-tests (Makefile.am): Likewise.
3623         * modules/glob-tests (Makefile.am): Likewise.
3624         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3625         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3626         * modules/mbrtowc-tests (Makefile.am): Likewise.
3627         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3628         * modules/mbscasestr-tests (Makefile.am): Likewise.
3629         * modules/mbschr-tests (Makefile.am): Likewise.
3630         * modules/mbscspn-tests (Makefile.am): Likewise.
3631         * modules/mbsinit-tests (Makefile.am): Likewise.
3632         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3633         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3634         * modules/mbspbrk-tests (Makefile.am): Likewise.
3635         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3636         * modules/mbsrchr-tests (Makefile.am): Likewise.
3637         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3638         * modules/mbsspn-tests (Makefile.am): Likewise.
3639         * modules/mbsstr-tests (Makefile.am): Likewise.
3640         * modules/quotearg-simple-tests (Makefile.am): Likewise.
3641         * modules/quotearg-tests (Makefile.am): Likewise.
3642         * modules/readtokens-tests (Makefile.am): Likewise.
3643         * modules/sh-quote-tests (Makefile.am): Likewise.
3644         * modules/system-quote-tests (Makefile.am): Likewise.
3645         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
3646         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3647         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
3648         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
3649         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
3650         * modules/yesno-tests (Makefile.am): Likewise.
3651         * modules/exclude-tests (Makefile.am): Link the programs with
3652         $(LIB_MBRTOWC).
3653         * modules/regex-tests (Makefile.am): Likewise.
3654         * modules/regex-quote-tests (Makefile.am): Likewise.
3656 2020-01-03  Bruno Haible  <bruno@clisp.org>
3658         getopt-posix: Fix compilation failure in testdirs.
3659         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
3660         when the gnulib module 'getopt-posix' is enabled.
3661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
3662         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
3663         module indicator.
3664         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
3666 2020-01-03  Bruno Haible  <bruno@clisp.org>
3668         doc: Mention the 64-bit inode number problem.
3669         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
3670         64-bit inode number problem.
3671         * doc/posix-functions/stat.texi: Mention that this module fixes the
3672         64-bit inode number problem.
3673         * doc/posix-functions/lstat.texi: Likewise.
3674         * doc/posix-functions/fstat.texi: Likewise.
3675         * doc/posix-functions/readdir.texi: Add more details.
3676         * doc/posix-functions/readdir_r.texi: Likewise.
3678 2020-01-02  Bruno Haible  <bruno@clisp.org>
3680         wcrtomb: Add more tests.
3681         * tests/test-wcrtomb-w32.c: Include localcharset.h.
3682         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
3683         locale_charset() returns the expected value; otherwise, skip the test.
3684         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
3685         * tests/test-wcrtomb-w32-7.sh: Likewise.
3686         * modules/wcrtomb-tests (Files): Add these files.
3687         (Depends-on): Add localcharset.
3688         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
3690 2020-01-02  Bruno Haible  <bruno@clisp.org>
3692         mbrtowc: Add more tests.
3693         * tests/test-mbrtowc-w32.c: Include localcharset.h.
3694         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
3695         locale_charset() returns the expected value; otherwise, skip the test.
3696         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
3697         * tests/test-mbrtowc-w32-7.sh: Likewise.
3698         * modules/mbrtowc-tests (Files): Add these files.
3699         (Depends-on): Add localcharset.
3700         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
3702 2020-01-02  Bruno Haible  <bruno@clisp.org>
3704         mbrtowc: Fix test failures on MSVC (regression by previous commit).
3705         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
3706         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
3707         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
3708         MBRTOWC_STORES_INCOMPLETE_BUG.
3709         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
3711 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
3713         doc: mention glibc bug 24269
3714         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
3715         Reformat slightly so that it looks nicer in the Grep manual.
3717 2020-01-02  Bruno Haible  <bruno@clisp.org>
3719         mbrtowc: Don't replace mbstate_t on MSVC.
3720         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
3721         a missing mbsinit function on native Windows.
3722         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
3723         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
3724         MSVC bug.
3725         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
3727 2020-01-02  Bruno Haible  <bruno@clisp.org>
3729         setlocale-null: Avoid crashing the MSVC linker.
3730         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
3731         MSVC.
3733 2020-01-02  Bruno Haible  <bruno@clisp.org>
3735         wchar: Make the HP-UX workaround work on HP-UX 11.31.
3736         * modules/wchar (Depends-on): Add inttypes-incomplete.
3737         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
3738         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
3739         of strtoimax.
3741 2020-01-02  Bruno Haible  <bruno@clisp.org>
3743         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
3744         * lib/mbrtowc.c: Include <stdint.h>.
3745         * modules/mbrtowc (Depends-on): Add stdint.
3747 2020-01-01  Pádraig Brady  <P@draigBrady.com>
3749         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
3750         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
3751         which will auto enable use of openssl, only for >= version 3,
3752         which is newly licensed under the Apache Software License.
3754 2020-01-01  Bruno Haible  <bruno@clisp.org>
3756         mbrtowc: Include function name in macro names.
3757         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
3758         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
3759         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
3760         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
3761         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
3762         C_LOCALE_MAYBE_EILSEQ.
3764 2020-01-01  Bruno Haible  <bruno@clisp.org>
3766         c32tob: New module.
3767         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
3768         (c32tob): New declaration.
3769         * lib/c32tob.c: New file.
3770         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
3771         macros.
3772         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
3773         * modules/uchar (Depends-on): Add snippet/c++defs.
3774         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
3775         uchar.h.
3776         * modules/c32tob: New file.
3777         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
3778         defined.
3779         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
3780         c32tob.
3781         * modules/uchar-c++-tests (Files): Add tests/signature.h.
3782         * doc/posix-functions/wctob.texi: Mention the new module.
3784 2020-01-01  Bruno Haible  <bruno@clisp.org>
3786         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
3787         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
3788         $(LIB_SETLOCALE).
3790 2020-01-01  Bruno Haible  <bruno@clisp.org>
3792         hard-locale tests: Fix a conflict with the C++ tests.
3793         * modules/hard-locale-tests (Makefile.am): Build a program named
3794         'current-locale', not 'locale'.
3796 2020-01-01  Bruno Haible  <bruno@clisp.org>
3798         doc: Update documentation about wchar_t.
3799         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
3800         wchar_t type.
3802 2020-01-01  Bruno Haible  <bruno@clisp.org>
3804         mbrtowc tests: Fix typos.
3805         * tests/test-mbrtowc.c (main): Fix typo.
3806         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
3808 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3810         maint: update copyright notices
3811         Before doing the following changes done by hand, I also ran ‘make
3812         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
3813         to do most of the copyright years automatically.  A few upstream
3814         sources are still in 2019 but these should eventually be changed
3815         automatically too.
3816         * build-aux/declared.sh (func_version):
3817         * build-aux/libtool-next-version (func_version):
3818         * build-aux/run-test (func_version):
3819         Update these notices by hand.  Put just the last year
3820         in output of programs, as per GNU coding standards.
3822 2019-12-31  Bruno Haible  <bruno@clisp.org>
3824         uchar: Add C++ tests.
3825         * tests/test-uchar-c++.cc: New file.
3826         * tests/test-uchar-c++2.cc: New file.
3827         * modules/uchar-c++-tests: New file.
3829         uchar: Add tests.
3830         * tests/test-uchar.c: New file.
3831         * modules/uchar-tests: New file.
3833         uchar: New module.
3834         * lib/uchar.in.h: New file.
3835         * m4/uchar.m4: New file.
3836         * modules/uchar: New file.
3837         * doc/posix-headers/uchar.texi: Mention the new module.
3839 2019-12-30  Jim Meyering  <meyering@fb.com>
3841         localeinfo: ->simple would be wrong for LC_ALL=C
3842         That would lead to using unnecessary and expensive code paths in dfa.c.
3843         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
3844         error that would have made grep many times slower in the C locale.
3845         With this change, and a file created like this:
3846           yes 00 | head -10000000 > in
3847         Running grep as follows becomes more than 40 times faster:
3848           LC_ALL=C grep -Fw 0 in
3850 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
3852         doc: document trouble with back-references
3853         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
3855 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
3857         doc: use “back-reference” for \1 etc.
3858         * doc/regex.texi: Consistently spell “back-reference” with
3859         a hyphen, since that’s how POSIX does it.
3861 2019-12-26  Jim Meyering  <meyering@fb.com>
3863         test-framework-sh: tighten an internal grep regexp
3864         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
3865         that helps test for a working printf.
3867 2019-12-26  Bruno Haible  <bruno@clisp.org>
3869         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
3870         Reported by Paul Eggert in
3871         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
3872         Simplification by Jim Meyering.
3873         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
3874         octal escape sequence in a UTF-8 locale.
3876 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
3878         mbrtowc: port better to narrow-wchar_t platforms
3879         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
3880         wchar_t is too narrow to represent all the Unicode characters,
3881         consider a byte sequence for an out-of-wchar_t-range character to
3882         be an encoding error.  This fixes grep’s surrogate-pair test
3883         failure on AIX 7.2.
3885 2019-12-24  Bruno Haible  <bruno@clisp.org>
3887         localcharset: Avoid referencing rpl_setlocale on native Windows.
3888         * lib/localcharset.c (setlocale): Undefine.
3890 2019-12-24  Bruno Haible  <bruno@clisp.org>
3892         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
3893         * m4/semaphore.m4: New file.
3894         * modules/lock-tests (Files): Add it.
3895         (configure.ac): Require gl_SEMAPHORE.
3896         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
3898 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
3900         strptime: fix typo in previous patch
3901         Problem and fix reported by Bruno Haible in:
3902         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
3903         * lib/strptime.c (day_of_the_week): Fix paren bug.
3905 2019-12-24  Bruno Haible  <bruno@clisp.org>
3907         setlocale-null: Make it easy to rely on the lock in another library.
3908         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
3909         defined.
3911 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3913         gethrxtime, mktime, nstrftime, strptime: tweak division performance
3914         Performanced analyzed by Bruno Haible in:
3915         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
3916         * config/srclist.txt: Do not sync mktime.c for now.
3917         * lib/mktime.c (shr, ydhms_diff):
3918         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
3919         * lib/strptime.c (day_of_the_week):
3920         * lib/xtime.h (xtime_sec):
3921         Redo with neither ‘%’ nor conditional branches.
3923 2019-12-23  Bruno Haible  <bruno@clisp.org>
3925         setlocale-null: Export the lock function also on non-Windows platforms.
3926         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
3927         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
3928         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
3929         * modules/setlocale-null (configure.ac): Invoke it.
3930         (Files): Add m4/visibility.m4.
3932 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3934         gethrxtime: fix rounding bug with negative args
3935         Problem reported by Bruno Haible in:
3936         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
3937         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
3938         with negative rounding.  Common platforms can compute / and % with
3939         a single instruction, so the simplified code should be shorter and
3940         faster on these platforms anyway.
3942 2019-12-22  Bruno Haible  <bruno@clisp.org>
3944         gethrxtime: remove incorrect overflow detection
3945         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
3946         integer overflow, as it didn’t suffice.  This reverts the xtime.h
3947         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
3948         cannot now see the need for anyway (even in cases where it works),
3949         as the patch is helpful only when the signs of S and NS disagree,
3950         and all callers pass nonnegative values for S and NS.
3952 2019-12-22  Bruno Haible  <bruno@clisp.org>
3954         setlocale-null: Add standalone include file.
3955         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
3956         * lib/locale.in.h: Include setlocale_null.h.
3957         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
3958         setlocale_null): Remove declarations.
3959         * lib/setlocale_null.c: Include setlocale_null.h.
3960         * lib/localename.c: Likewise.
3961         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
3962         (Depends-on): Add snippet/arg-nonnull.
3963         (Include): Allow either "setlocale_null.h" or <locale.h>.
3965 2019-12-22  Bruno Haible  <bruno@clisp.org>
3967         strfmon_l: Fix test failures on FreeBSD and Cygwin.
3968         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
3969         AC_RUN_IFELSE test.
3970         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
3971         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
3972         problem.
3974 2019-12-22  Bruno Haible  <bruno@clisp.org>
3976         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
3977         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
3978         unconditional AC_LIBOBJ.
3979         * modules/selinux-at: Likewise.
3980         * modules/xmemdup0: Likewise.
3981         * modules/xstrtoll: Likewise.
3983 2019-12-22  Bruno Haible  <bruno@clisp.org>
3985         longlong: Mark module obsolete.
3986         * modules/longlong (Status, Notice): New sections.
3988         stdint: Assume that the compiler supports 'long long'.
3989         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
3990         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
3991         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
3992         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
3993         AC_TYPE_UNSIGNED_LONG_LONG_INT.
3994         * modules/stdint (Files): Remove longlong.m4.
3995         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
3996         HAVE_UNSIGNED_LONG_LONG_INT.
3998         inttypes-incomplete: Assume that the compiler supports 'long long'.
3999         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
4000         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
4001         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
4002         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
4003         HAVE_LONG_LONG_INT to be 1.
4004         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4005         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
4007         malloca: Assume that the compiler supports 'long long'.
4008         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
4009         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
4010         * modules/malloca (Files): Remove longlong.m4.
4011         * modules/relocatable-prog-wrapper (Files): Likewise.
4013         atoll: Assume that the compiler supports 'long long'.
4014         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
4015         * modules/atoll (Files): Remove longlong.m4.
4017         strtoll: Assume that the compiler supports 'long long'.
4018         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
4019         * modules/strtoll (Files): Remove longlong.m4.
4021         strtoull: Assume that the compiler supports 'long long'.
4022         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
4023         AC_TYPE_UNSIGNED_LONG_LONG_INT.
4024         * modules/strtoull (Files): Remove longlong.m4.
4026         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
4027         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
4028         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
4029         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
4030         AC_TYPE_LONG_LONG_INT.
4031         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
4032         AC_TYPE_UNSIGNED_LONG_LONG_INT.
4033         * modules/strtoimax (Files): Remove longlong.m4.
4034         * modules/strtoumax (Files): Likewise.
4036         xstrtoll: Assume that the compiler supports 'long long'.
4037         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
4038         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
4040         vasnprintf: Assume that the compiler supports 'long long'.
4041         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
4042         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
4043         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4044         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
4045         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
4046         require AC_TYPE_LONG_LONG_INT.
4047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
4048         gl_PREREQ_VASNPRINTF): Likewise.
4049         * modules/vasnprintf (Files): Remove longlong.m4.
4050         * modules/c-vasnprintf (Files): Likewise.
4051         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4052         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4053         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4054         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4055         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4056         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4057         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4059         gethrxtime: Assume that the compiler supports 'long long'.
4060         * lib/xtime.h (xtime_t): Define to 'long long int' always.
4061         (XTIME_PRECISION): Define to 1000000000 always.
4062         (xtime_make, xtime_sec): Optimize accordingly.
4063         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
4064         * modules/gethrxtime (Files): Remove longlong.m4.
4066         integer_length*: Assume that the compiler supports 'long long'.
4067         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
4068         * modules/integer_length (Files): Remove longlong.m4.
4069         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4070         * modules/integer_length_l (Files): Remove longlong.m4.
4071         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4072         * modules/integer_length_ll (Files): Remove longlong.m4.
4073         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
4075         count-one-bits: Assume that the compiler supports 'long long'.
4076         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
4077         * m4/count-one-bits.m4: Remove file.
4078         * modules/count-one-bits (Files): Remove it.
4079         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
4080         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
4081         unconditionally.
4083         count-trailing-zeros: Assume that the compiler supports 'long long'.
4084         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
4085         unconditionally.
4086         * m4/count-trailing-zeros.m4: Remove file.
4087         * modules/count-trailing-zeros (Files): Remove it.
4088         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
4089         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
4090         unconditionally.
4092         count-leading-zeros: Assume that the compiler supports 'long long'.
4093         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
4094         unconditionally.
4095         * m4/count-leading-zeros.m4: Remove file.
4096         * modules/count-leading-zeros (Files): Remove it.
4097         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
4098         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
4099         unconditionally.
4101 2019-12-22  Bruno Haible  <bruno@clisp.org>
4103         localcharset: Update support for OpenBSD.
4104         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
4106 2019-12-21  Bruno Haible  <bruno@clisp.org>
4108         pthread_sigmask: Avoid test failure on NetBSD 8.0.
4109         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
4110         NetBSD.
4111         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
4113 2019-12-21  Bruno Haible  <bruno@clisp.org>
4115         threadlib: Improve code structure.
4116         * m4/threadlib.m4: Reorder macros. Add comments.
4118 2019-12-21  Bruno Haible  <bruno@clisp.org>
4120         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
4121         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
4122         here from m4/threads.m4).
4123         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
4124         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
4125         (gl_STDTHREADLIB): New macro.
4126         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
4127         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
4129 2019-12-21  Bruno Haible  <bruno@clisp.org>
4131         sched_yield: Don't depend on threadlib and yield.
4132         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
4133         LIB_SCHED_YIELD.
4134         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
4135         m4/yield.m4).
4136         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
4137         gl_THREADLIB and gl_YIELD.
4138         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
4139         based on $(LIB_SCHED_YIELD).
4140         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
4141         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4142         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
4143         (Depends-on): Remove threadlib.
4144         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4145         * modules/threads-h (Files): Remove m4/yield.m4.
4146         * modules/pthread-cond-tests (Makefile.am): Link the programs against
4147         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
4148         * modules/pthread-mutex-tests (Makefile.am): Likewise.
4149         * modules/pthread-once-tests (Makefile.am): Likewise.
4150         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
4151         * modules/pthread-tss-tests (Makefile.am): Likewise.
4153 2019-12-21  Bruno Haible  <bruno@clisp.org>
4155         threads-h: Don't depend on threadlib.
4156         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
4157         not gl_THREADLIB_EARLY.
4159 2019-12-21  Bruno Haible  <bruno@clisp.org>
4161         nl_langinfo tests: Fix link error (regression from 2019-12-18).
4162         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
4163         with $(LIB_SETLOCALE).
4165 2019-12-21  Bruno Haible  <bruno@clisp.org>
4167         threadlib: Remove unused dependency (left over from 2019-07-06).
4168         * modules/threadlib (Depends-on): Remove havelib.
4170 2019-12-21  Bruno Haible  <bruno@clisp.org>
4172         New convention for multithread-safety tests.
4173         * tests/test-setlocale_null-mt-one.c: Renamed from
4174         tests/test-setlocale_null-one.c.
4175         * tests/test-setlocale_null-mt-all.c: Renamed from
4176         tests/test-setlocale_null-all.c.
4177         * modules/setlocale-null-tests (Files, Makefile.am): Update.
4179 2019-12-21  Bruno Haible  <bruno@clisp.org>
4181         quotearg tests: Fix conflict with hard-locale tests.
4182         * tests/testlocale: Renamed from tests/locale.
4183         * modules/quotearg-tests (Files): Update.
4184         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
4186 2019-12-21  Bruno Haible  <bruno@clisp.org>
4188         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
4189         Reported by Daniel Richard G. in
4190         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
4191         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
4192         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
4193         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
4194         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
4195         alternative to PTHREAD_RWLOCK_INITIALIZER.
4196         * lib/glthread/lock.c: Likewise.
4198 2019-12-21  Bruno Haible  <bruno@clisp.org>
4200         memcmp tests: Work around the clang bug.
4201         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
4202         the clang optimization.
4204 2019-12-20  Bruno Haible  <bruno@clisp.org>
4206         localcharset: Add support for z/OS encoding names.
4207         * lib/localcharset.h: Mention which encodings are used as locale
4208         encodings on z/OS.
4210 2019-12-20  Bruno Haible  <bruno@clisp.org>
4212         iconv_open: Add support for z/OS encoding names.
4213         Reported by Daniel Richard G. in
4214         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
4215         * lib/iconv_open-zos.gperf: New file.
4216         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
4217         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
4218         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
4219         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
4220         * doc/posix-functions/iconv_open.texi: Mention z/OS.
4222 2019-12-20  Bruno Haible  <bruno@clisp.org>
4224         doc: Document the problem of the per-thread locale functions on z/OS.
4225         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
4226         * doc/posix-functions/newlocale.texi: Likewise.
4227         * doc/posix-functions/duplocale.texi: Likewise.
4228         * doc/posix-functions/freelocale.texi: Likewise.
4230 2019-12-20  Bruno Haible  <bruno@clisp.org>
4232         localename, gettext: Fix host_os value for z/OS.
4233         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
4234         cross-configuration code.
4236 2019-12-19  Jim Meyering  <meyering@fb.com>
4238         nstrftime: avoid a shadowing warning
4239         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
4240         to avoid shadowing an "i" declared hundreds of lines above.
4242 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4244         dfa: struct dfamust now uses flexible array
4245         * lib/dfa.c: Include flexmember.h.
4246         (dfamust, dfamustfree): Adjust to struct dfamust change.
4247         This saves a call to malloc+free.
4248         * lib/dfa.h (struct dfamust): Make the final member a
4249         flexible array member.
4250         * modules/dfa (Depends-on): Add flexmember.
4252         dfa: fast->small for array elements
4253         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
4254         since this type is used in arrays.  This change is more for
4255         documentation than for any practical effect, since the two types
4256         are the same on all known platforms.
4258 2019-12-19  Bruno Haible  <bruno@clisp.org>
4260         iconv tests: Test canonicalized, not system-dependent, encoding names.
4261         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
4262         * modules/iconv-tests (Depends-on): Add iconv_open.
4264 2019-12-18  Bruno Haible  <bruno@clisp.org>
4266         localename: Fix test failure on AIX 7.2.
4267         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
4268         locales on AIX.
4269         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
4270         locales on AIX.
4272 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4274         Improve port of AC_C_RESTRICT to Oracle C++
4275         Problem reported by Christian Biesinger in:
4276         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
4277         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
4278         Oracle Developer Studio C++ 12.5 or later.
4280 2019-12-18  Bruno Haible  <bruno@clisp.org>
4282         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
4283         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
4285 2019-12-18  Bruno Haible  <bruno@clisp.org>
4287         localename: Ensure multithread-safety in future changes.
4288         * lib/localename.c (setlocale): Reference the system's setlocale().
4289         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
4290         (gl_locale_name_posix): Likewise.
4291         * modules/localename (Depends-on): Add setlocale-null.
4293 2019-12-18  Bruno Haible  <bruno@clisp.org>
4295         setlocale-null: Make API more useful.
4296         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
4297         callers changed.
4298         (setlocale_null): New declaration.
4299         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
4300         extracted from setlocale_null_unlocked.
4301         (setlocale_null_unlocked): Invoke it.
4302         (setlocale_null_r): Renamed from setlocale_null.
4303         (setlocale_null): New function, extracted from setlocale_mtsafe in
4304         setlocale.c.
4305         * lib/setlocale.c: Don't include <errno.h>.
4306         (setlocale_mtsafe): Invoke setlocale_null.
4307         * lib/setlocale-lock.c: Update comments.
4308         * doc/posix-functions/setlocale.texi: Mention both functions.
4310 2019-12-18  Bruno Haible  <bruno@clisp.org>
4312         localename: Optimize code for native Windows.
4313         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
4314         category (not allowed here).
4316 2019-12-18  Bruno Haible  <bruno@clisp.org>
4318         setlocale: Make calls with NULL argument multithread-safe.
4319         * lib/setlocale.c: Include <errno.h>.
4320         (setlocale_mtsafe): New function.
4321         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
4322         (setlocale_improved): Renamed from rpl_setlocale.
4323         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
4324         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
4325         LIB_SETLOCALE.
4326         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
4327         (Link): New section.
4328         * tests/locale.c: Undefine setlocale.
4329         * tests/test-setlocale_null-one.c: Likewise.
4330         * tests/test-setlocale_null-all.c: Likewise.
4331         * modules/setlocale-tests (Makefile.am): Link the test programs with
4332         $(LIB_SETLOCALE).
4333         * modules/astrxfrm-tests (Makefile.am): Likewise.
4334         * modules/btowc-tests (Makefile.am): Likewise.
4335         * modules/c-ctype-tests (Makefile.am): Likewise.
4336         * modules/c-snprintf-tests (Makefile.am): Likewise.
4337         * modules/c-strcase-tests (Makefile.am): Likewise.
4338         * modules/c-vasprintf-tests (Makefile.am): Likewise.
4339         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
4340         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
4341         * modules/dfa-tests (Makefile.am): Likewise.
4342         * modules/duplocale-tests (Makefile.am): Likewise.
4343         * modules/hard-locale-tests (Makefile.am): Likewise.
4344         * modules/localcharset-tests (Makefile.am): Likewise.
4345         * modules/localename-tests (Makefile.am): Likewise.
4346         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
4347         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
4348         * modules/mbrtowc-tests (Makefile.am): Likewise.
4349         * modules/mbscasecmp-tests (Makefile.am): Likewise.
4350         * modules/mbscasestr-tests (Makefile.am): Likewise.
4351         * modules/mbschr-tests (Makefile.am): Likewise.
4352         * modules/mbscspn-tests (Makefile.am): Likewise.
4353         * modules/mbsinit-tests (Makefile.am): Likewise.
4354         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
4355         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
4356         * modules/mbspbrk-tests (Makefile.am): Likewise.
4357         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
4358         * modules/mbsrchr-tests (Makefile.am): Likewise.
4359         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
4360         * modules/mbsspn-tests (Makefile.am): Likewise.
4361         * modules/mbsstr-tests (Makefile.am): Likewise.
4362         * modules/nl_langinfo-tests (Makefile.am): Likewise.
4363         * modules/quotearg-tests (Makefile.am): Likewise.
4364         * modules/regex-tests (Makefile.am): Likewise.
4365         * modules/strfmon_l-tests (Makefile.am): Likewise.
4366         * modules/strtod-tests (Makefile.am): Likewise.
4367         * modules/strtold-tests (Makefile.am): Likewise.
4368         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
4369         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
4370         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
4371         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
4372         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
4373         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
4374         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
4375         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
4376         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
4377         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
4378         * modules/wcrtomb-tests (Makefile.am): Likewise.
4379         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
4380         * modules/wcsrtombs-tests (Makefile.am): Likewise.
4381         * modules/wcwidth-tests (Makefile.am): Likewise.
4382         * doc/posix-functions/setlocale.texi: Mention that the multithread-
4383         safety fix is also available in module 'setlocale'.
4385 2019-12-18  Bruno Haible  <bruno@clisp.org>
4387         hard-locale: Make multithread-safe.
4388         * lib/hard-locale.h (hard_locale): Move documentation to here.
4389         * lib/hard-locale.c: Don't include <stdlib.h>.
4390         (GLIBC_VERSION): Remove macro.
4391         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
4392         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
4393         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
4394         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
4395         (Link): New section.
4396         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
4397         $(LIB_HARD_LOCALE).
4399 2019-12-18  Bruno Haible  <bruno@clisp.org>
4401         hard-locale: Avoid test failure on Haiku.
4402         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
4404 2019-12-18  Bruno Haible  <bruno@clisp.org>
4406         setlocale-null: Handle NULL result from setlocale.
4407         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
4408         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
4409         from setlocale or _wsetlocale.
4411 2019-12-18  Bruno Haible  <bruno@clisp.org>
4413         hard-locale: Add test.
4414         * tests/test-hard-locale.c: New file.
4415         * tests/locale.c: New file.
4416         * modules/hard-locale-tests: New file.
4418 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4420         dfa: do not match invalid UTF-8
4421         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
4422         from 5 to 9 tokens; this is needed due to the changes to
4423         add_utf8_anychar.
4424         (charclass_index): 2nd arg is now pointer-to-const.
4425         (add_utf8_anychar): Match only valid UTF-8 byte sequences
4426         instead of allowing overlong encodings or surrogate halves.
4428         dfa: simplify charclass by assuming C99
4429         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
4430         (charclass_word): Now always uint_fast64_t.
4431         (CHARCLASS_PAIR): Remove.
4432         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
4434         fts: tune via calloc
4435         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
4437         dfa: tune via xzalloc
4438         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
4440 2019-12-17  Bruno Haible  <bruno@clisp.org>
4442         localcharset: Fix multithread-safety bug on Windows and OS/2.
4443         * lib/localcharset.h (locale_charset): Clarify when the result becomes
4444         invalid.
4445         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
4446         assemble the result.
4448 2019-12-17  Bruno Haible  <bruno@clisp.org>
4450         localcharset: Optimize code for native Windows.
4451         * lib/localcharset.c (locale_charset): Don't bother calling
4452         setlocale (LC_ALL, NULL) since we're not interested in its result.
4454 2019-12-17  Bruno Haible  <bruno@clisp.org>
4456         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
4457         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
4458         setlocale.
4459         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
4460         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
4461         * modules/nl_langinfo (Depends-on): Add setlocale-null.
4463 2019-12-17  Bruno Haible  <bruno@clisp.org>
4465         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
4466         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
4467         stack-allocated buffer to assemble each result and different static
4468         buffers to return it.
4469         * tests/test-nl_langinfo-mt.c: New file.
4470         * modules/nl_langinfo-tests (Files): Add it.
4471         (Depends-on): Add thread, nanosleep.
4472         (Makefile.am): Build test-nl_langinfo-mt test.
4474 2019-12-17  Bruno Haible  <bruno@clisp.org>
4476         langinfo: Document more details.
4477         * doc/posix-headers/langinfo.texi: List platform details.
4478         * doc/posix-functions/nl_langinfo.texi: Likewise.
4480 2019-12-17  Bruno Haible  <bruno@clisp.org>
4482         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
4483         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
4484         and Martin Storsjö <martin@martin.st>
4485         in <https://savannah.gnu.org/bugs/?57406>.
4486         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
4487         mingw.
4489 2019-12-17  Bruno Haible  <bruno@clisp.org>
4491         glob: Avoid warning on mingw.
4492         Reported by Christian Biesinger <cbiesinger@google.com> in
4493         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
4494         * lib/glob.c (__stat64): Undefine first.
4496 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4498         xalloc: tune xzalloc for fresh allocations
4499         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
4500         because when the memory is freshly allocated from the OS via sbrk
4501         or mmap, calloc can avoid doing the memset.
4503         dfa: new function dfacopysyntax
4504         * lib/dfa.c (struct dfa): Move syntax member later so
4505         that dfacopysyntax can easily clear earlier members.
4506         (dfacopysyntax): New function, used by Gawk.
4508 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4510         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
4511         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
4512         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
4513         if not already defined.
4515         dfa: remove one dependency on MB_CUR_MAX
4516         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
4518         dfa: remove struct lexer_state.cur_mb_len
4519         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
4520         as it’s not needed and the code is simpler without it.
4521         All uses removed.
4523 2019-12-16  Bruno Haible  <bruno@clisp.org>
4525         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
4526         Reported by Arnold Robbins <arnold@skeeve.com>.
4527         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
4528         copied from lib/glthread/lock.h.
4529         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
4530         (setlocale_null_with_lock): If pthread_in_use() is false, use
4531         setlocale_null_unlocked directly.
4532         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
4533         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
4534         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
4535         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
4536         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
4537         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
4539 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4541         dfa: make dfasyntax thread-safe
4542         Problem reported by Bruno Haible in:
4543         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
4544         * lib/dfa.c: Do not include locale.h.
4545         (struct dfa): Remove simple_locale member.
4546         All uses replaced by localeinfo.simple.
4547         (using_simple_locale): Remove; now present (with some
4548         changes) in localeinfo.c.
4549         (dfasyntax): No need to initialize removed member.
4551         localeinfo: record whether locale is simple
4552         * lib/localeinfo.c (using_simple_locale): New function,
4553         copied here from lib/dfa.c but with a change: it uses
4554         strcoll for its heuristic, instead of using setlocale.
4555         This lets it be thread-safe.
4556         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
4558 2019-12-15  Bruno Haible  <bruno@clisp.org>
4560         duplocale: Fix multithread-safety bug on AIX.
4561         * lib/duplocale.c: Don't include <stdlib.h>.
4562         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
4563         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
4564         Set LIB_DUPLOCALE.
4565         * modules/duplocale (Depends-on): Add setlocale-null.
4566         (Link): New section.
4567         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
4568         $(LIB_DUPLOCALE).
4570 2019-12-15  Bruno Haible  <bruno@clisp.org>
4572         setlocale-null: Add tests.
4573         * tests/test-setlocale_null.c: New file.
4574         * tests/test-setlocale_null-one.c: New file.
4575         * tests/test-setlocale_null-all.c: New file.
4576         * modules/setlocale-null-tests: New file.
4578         setlocale-null: New module.
4579         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
4580         setlocale_null): New declarations.
4581         * lib/setlocale_null.c: New file.
4582         * lib/setlocale-lock.c: New file.
4583         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
4584         * m4/setlocale_null.m4: New file.
4585         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
4586         GNULIB_SETLOCALE_NULL.
4587         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
4588         * modules/setlocale-null: New file.
4589         * doc/posix-functions/setlocale.texi: Mention the new module.
4591 2019-12-15  Bruno Haible  <bruno@clisp.org>
4593         lock tests: Skip test when no multithreading is enabled.
4594         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
4596 2019-12-14  Bruno Haible  <bruno@clisp.org>
4598         locale, duplocale, localename: Fix last patch.
4599         Reported by Daniel Richard G. in
4600         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
4601         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
4602         Don't define if locale_t does not exist.
4604 2019-12-13  Bruno Haible  <bruno@clisp.org>
4606         locale, duplocale, localename: Fix errors if locale_t does not exist.
4607         Reported by Daniel Richard G. in
4608         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
4609         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
4610         macros.
4611         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
4612         HAVE_NEWLOCALE.
4613         * tests/test-localename.c: Likewise.
4614         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
4615         HAVE_DUPLOCALE.
4616         * tests/test-locale-c++.cc: Likewise.
4618 2019-12-13  Bruno Haible  <bruno@clisp.org>
4620         wcstok: Fix test failure on HP-UX.
4621         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
4622         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
4624 2019-12-12  Bruno Haible  <bruno@clisp.org>
4626         strtod, strtold tests: Avoid test failure on AIX 7.2.
4627         * tests/test-strtod1.c (main): Allow implementations in which ',' and
4628         '.' both are radix characters.
4629         * tests/test-strtold1.c (main): Likewise.
4631 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4633         dfa: prefer ptrdiff_t for API, too
4634         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
4635         but do this only for internal use for now.
4636         * NEWS: Mention the API change.
4637         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
4638         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
4639         values known to be nonnegative.
4640         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
4641         Prefer idx_t or ptrdiff_t to size_t for API.
4642         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
4643         Prefer ptrdiff_t to size_t for API.
4645         stdalign: port to xlclang 16.01
4646         Problem reportd by Bruno Haible in:
4647         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
4648         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
4649         ((__aligned__ (...))) with xlclang, as a top-level
4650         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
4651         xlclang version 16.01.0000.0001; the alignment directive is ignored.
4653 2019-12-12  Bruno Haible  <bruno@clisp.org>
4655         duplocale: Fix test failure on AIX 7.2 with xlclang.
4656         * lib/duplocale.c: Include <stdlib.h>.
4657         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
4658         value.
4660 2019-12-12  Bruno Haible  <bruno@clisp.org>
4662         stddef: Document the AIX xlc issue.
4663         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
4665 2019-12-12  Bruno Haible  <bruno@clisp.org>
4667         duplocale: Don't attempt to override if locale_t does not exist.
4668         Reported by Daniel Richard G. in
4669         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
4670         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
4671         HAVE_DUPLOCALE to 0.
4673 2019-12-12  Bruno Haible  <bruno@clisp.org>
4675         wcwidth: Avoid test failure on AIX 7.2.
4676         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
4677         negative.
4678         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
4680 2019-12-12  Bruno Haible  <bruno@clisp.org>
4682         ilogbl: Work around Cygwin bug.
4683         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
4684         correct.
4685         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
4687 2019-12-12  Bruno Haible  <bruno@clisp.org>
4689         strtold: Work around Cygwin bug.
4690         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
4691         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
4692         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
4693         STRTOLD_HAS_UNDERFLOW_BUG is defined.
4694         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
4696 2019-12-12  Bruno Haible  <bruno@clisp.org>
4698         strtold: Fix autoconf test.
4699         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
4701 2019-12-11  Bruno Haible  <bruno@clisp.org>
4703         fsync tests: Skip test that is known to fail.
4704         * doc/posix-functions/fsync.texi: Update list of platforms.
4705         * tests/test-fsync.c (main): Skip test with read-only file descriptors
4706         that is known to fail on AIX and Cygwin.
4708 2019-12-11  Bruno Haible  <bruno@clisp.org>
4710         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
4711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
4712         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
4713         HAVE_GETADDRINFO as a C macro.
4714         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
4715         declare as replacement functions.
4716         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
4717         define as no-op overrides.
4718         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
4719         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
4720         * modules/getaddrinfo (Depends-on, configure.ac): Test
4721         REPLACE_GETADDRINFO.
4722         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
4723         problem.
4724         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
4725         convention problems.
4727 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
4729         dfa: prefer signed integers for internals
4730         Signed integers can be checked more easily for integer overflow.
4731         * lib/dfa.c (position, struct lexer_state, struct parser_state)
4732         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
4733         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
4734         (nsubtoks, copytoks, closure, alloc_position_set, delete)
4735         (replace, state_index, epsclosure, charclass_context)
4736         (state_separate_contexts, merge_nfa_state, dfaoptimize)
4737         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
4738         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
4739         (comsubs, inboth, allocmust):
4740         Prefer a signed to an unsigned integer when calculating indexes,
4741         unless the integer is part of the external API (a bigger deal,
4742         and to be done later).
4744         dfa: fix index overflow
4745         * lib/dfa.c (compare): Avoid integer overflow when analyzing
4746         very large regular expressions.
4748         dfa: update commentary for previous change
4749         * NEWS: Mention the change.
4750         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
4752 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4754         dfa: separate parse and compile phase
4755         ‘dfamust’ must be called after parsing and before tokens are
4756         reordered, but both are executed in the compilation phase.
4757         Token reordering was introduced in Gnulib commit
4758         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
4759         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
4760         * lib/dfa.c (dfaparse): Change it to global function.
4761         (dfacomp): If first argument is NULL, skip parse.
4762         * lib/dfa.h: (dfaparse): Add a prototype.
4764 2019-12-11  Bruno Haible  <bruno@clisp.org>
4766         unistd tests: Fix link error on MSVC.
4767         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
4768         $(LIB_GETLOGIN).
4770 2019-12-11  Bruno Haible  <bruno@clisp.org>
4772         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
4773         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
4774         and POSIX substitutes are supported in C++ mode.
4775         * NEWS: Likewise.
4777 2019-12-11  Bruno Haible  <bruno@clisp.org>
4779         stddef: Fix compilation error in C++ mode on MSVC.
4780         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
4781         instead, include <cstddef>.
4783 2019-12-11  Bruno Haible  <bruno@clisp.org>
4785         unistd: Fix compilation error in C++ mode on MSVC.
4786         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
4787         does not have <unistd.h>.
4789 2019-12-11  Bruno Haible  <bruno@clisp.org>
4791         locale: Fix compilation error in C++ mode on MSVC.
4792         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
4793         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
4794         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
4795         int_n_sep_by_space): Define as macros on MSVC.
4797 2019-12-11  Bruno Haible  <bruno@clisp.org>
4799         wchar: Fix compilation error in C++ mode on MSVC.
4800         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
4802 2019-12-11  Bruno Haible  <bruno@clisp.org>
4804         pthread-thread: Fix compilation error in C++ mode on MSVC.
4805         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
4806         _GL_CXXALIAS_RPL invocation.
4808 2019-12-08  Bruno Haible  <bruno@clisp.org>
4810         Fix compilation errors in C++ mode on Haiku.
4811         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
4812         non-glibc systems.
4813         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
4814         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4815         posix_spawnattr_setschedparam): Likewise.
4816         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
4817         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4818         * lib/unistd.in.h (usleep): Likewise.
4820 2019-12-08  Bruno Haible  <bruno@clisp.org>
4822         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
4823         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
4824         * modules/fseeko (configure.ac-early): Require it instead of
4825         AC_FUNC_FSEEKO.
4826         * modules/ftello (configure.ac-early): Likewise.
4827         * modules/fflush (configure.ac-early): Likewise.
4829 2019-12-08  Bruno Haible  <bruno@clisp.org>
4831         Fix compilation error in C++ mode on HP-UX 11.
4832         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
4833         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
4835 2019-12-08  Bruno Haible  <bruno@clisp.org>
4837         Fix compilation errors on HP-UX 11/ia64.
4838         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
4839         _GL_FUNCDECL_SYS.
4841 2019-12-08  Bruno Haible  <bruno@clisp.org>
4843         Fix compilation error in C++ mode on OpenBSD.
4844         * lib/signal.in.h (signal): Declare on OpenBSD.
4846 2019-12-08  Bruno Haible  <bruno@clisp.org>
4848         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
4849         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
4850         instead of #error.
4852 2019-12-08  Bruno Haible  <bruno@clisp.org>
4854         Fix compilation errors in C++ mode on FreeBSD.
4855         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
4856         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
4857         * lib/threads.in.h (thrd_exit): Likewise.
4858         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
4860 2019-12-08  Bruno Haible  <bruno@clisp.org>
4862         Fix compilation errors in C++ mode on macOS and FreeBSD.
4863         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
4864         or FreeBSD with clang, use the approach without C preprocessor macro.
4866 2019-12-07  Bruno Haible  <bruno@clisp.org>
4868         Fix compilation errors in C++ mode on AIX with xlclang++.
4869         Reported by Christian Biesinger <cbiesinger@google.com> in
4870         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
4871         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
4873 2019-12-07  Bruno Haible  <bruno@clisp.org>
4875         Document compilation error in C++ mode on NetBSD 8.0.
4876         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
4878 2019-12-07  Bruno Haible  <bruno@clisp.org>
4880         Fix compilation errors in C++ mode on Solaris 10.
4881         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
4882         to non-empty on Solaris with a non-GCC compiler.
4883         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
4885 2019-12-07  Bruno Haible  <bruno@clisp.org>
4887         Reword NEWS entry.
4888         * NEWS: Reword the latest NEWS entry.
4890 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
4892         Move xstrtol_fatal to a new xstrtol-error module.
4893         * lib/xstrtol.h: Stop including <getopt.h>.
4894         (xstrtol_fatal): Move ...
4895         * lib/xstrtol-error.h: ... here.  New file.
4896         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
4897         * tests/test-xstrtol.c: Likewise.
4898         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
4899         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
4900         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
4901         * modules/xstrtol-error: New file.
4902         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
4903         * MODULES.html.sh: Add xstrtol-error.
4904         * NEWS: Document the change.
4906 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
4908         nstrftime: better width support for %N, %z
4909         * lib/nstrftime.c (width_add, width_add1, width_cpy):
4910         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
4911         a new WIDTH parameter.
4912         (add, add1, cpy): Use these macros.
4913         (width_add): Do not treat digits == 0 as a special case,
4914         do not pad if padding is ‘-’, and do not use a negative width.
4915         (__strftime_internal): Redo formatting of nanoseconds and numeric
4916         timezones to avoid buffer misuse in unusual cases, and so that
4917         widths make more sense.  Add support for widths greater than 9 to
4918         the %N format; they are zero filled on the right.
4919         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
4921 2019-12-05  Bruno Haible  <bruno@clisp.org>
4923         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
4924         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
4925         set REPLACE_ISFINITE to 1.
4926         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
4927         REPLACE_ISINF to 1.
4928         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
4929         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
4930         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
4931         * lib/threads.in.h (call_once): Likewise.
4932         * lib/iconv.in.h (iconv): Likewise.
4934 2019-12-05  Bruno Haible  <bruno@clisp.org>
4936         wchar: Add more C++ tests.
4937         Reported by Christian Biesinger <cbiesinger@google.com> in
4938         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
4939         * tests/test-wchar-c++3.cc: New file.
4940         * modules/wchar-c++-tests (Files): Add it.
4941         (Makefile.am): Compile it.
4943 2019-12-05  Bruno Haible  <bruno@clisp.org>
4945         Add more C++ tests.
4947         assert-h: Add C++ tests.
4948         * tests/test-assert-h-c++.cc: New file.
4949         * tests/test-assert-h-c++2.cc: New file.
4950         * modules/assert-h-c++-tests: New file.
4951         * modules/assert-h-tests: New file.
4953         ctype: Add C++ tests.
4954         * tests/test-ctype-c++.cc: New file.
4955         * tests/test-ctype-c++2.cc: New file.
4956         * modules/ctype-c++-tests: New file.
4957         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
4959         errno: Add C++ tests.
4960         * tests/test-errno-c++.cc: New file.
4961         * tests/test-errno-c++2.cc: New file.
4962         * modules/errno-c++-tests: New file.
4963         * modules/errno-tests (Depends-on): Add errno-c++-tests.
4965         float: Add C++ tests.
4966         * tests/test-float-c++.cc: New file.
4967         * tests/test-float-c++2.cc: New file.
4968         * modules/float-c++-tests: New file.
4969         * modules/float-tests (Depends-on): Add float-c++-tests.
4971         inttypes: Add more C++ tests.
4972         * tests/test-inttypes-c++2.cc: New file.
4973         * modules/inttypes-c++-tests (Files): Add it.
4974         (Makefile.am): Compile it.
4976         limits-h: Add C++ tests.
4977         * tests/test-limits-h-c++.cc: New file.
4978         * tests/test-limits-h-c++2.cc: New file.
4979         * modules/limits-h-c++-tests: New file.
4980         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
4982         stdarg: Add C++ tests.
4983         * tests/test-stdarg-c++.cc: New file.
4984         * tests/test-stdarg-c++2.cc: New file.
4985         * modules/stdarg-c++-tests: New file.
4986         * modules/stdarg-tests: New file.
4988         stdbool: Add C++ tests.
4989         * tests/test-stdbool-c++.cc: New file.
4990         * tests/test-stdbool-c++2.cc: New file.
4991         * modules/stdbool-c++-tests: New file.
4992         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
4994         stddef: Add C++ tests.
4995         * tests/test-stddef-c++.cc: New file.
4996         * tests/test-stddef-c++2.cc: New file.
4997         * modules/stddef-c++-tests: New file.
4998         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
5000         stdint: Add C++ tests.
5001         * tests/test-stdint-c++.cc: New file.
5002         * tests/test-stdint-c++2.cc: New file.
5003         * modules/stdint-c++-tests: New file.
5004         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
5006         wchar: Add more C++ tests.
5007         * tests/test-wchar-c++2.cc: New file.
5008         * modules/wchar-c++-tests (Files): Add it.
5009         (Makefile.am): Compile it.
5011         wctype-h: Add more C++ tests.
5012         * tests/test-wctype-h-c++2.cc: New file.
5013         * modules/wctype-h-c++-tests (Files): Add it.
5014         (Makefile.am): Compile it.
5016 2019-12-04  Bruno Haible  <bruno@clisp.org>
5018         Fix compilation errors in C++ mode with xlclang++ on AIX.
5019         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
5020         C++ mode on AIX.
5021         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
5022         without C preprocessor macro.
5023         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
5024         _GL_CXXALIAS_SYS.
5025         * lib/threads.in.h (thrd_exit): Likewise.
5027 2019-12-04  Bruno Haible  <bruno@clisp.org>
5029         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
5030         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
5031         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
5033 2019-12-04  Bruno Haible  <bruno@clisp.org>
5035         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
5036         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
5037         _GL_CXXALIASWARN invocation on non-glibc systems.
5038         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
5039         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
5040         iswctype, towlower, towupper): Likewise.
5042 2019-12-03  Bruno Haible  <bruno@clisp.org>
5044         Avoid hassles caused by [[noreturn]] in C++.
5045         Reported by Christian Biesinger <cbiesinger@google.com> in
5046         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
5047         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
5048         * lib/_Noreturn.h: Likewise.
5050 2019-12-02  Bruno Haible  <bruno@clisp.org>
5052         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
5053         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
5054         LIBMULTITHREAD.
5055         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
5056         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
5057         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
5058         gl_THREADLIB.
5059         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
5061 2019-12-02  Bruno Haible  <bruno@clisp.org>
5063         Fix some more link errors with --enable-threads=isoc.
5064         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
5065         * modules/pthread-rwlock (Depends-on): Likewise.
5067 2019-12-02  Bruno Haible  <bruno@clisp.org>
5069         Fix link errors with --enable-threads=posix on AIX.
5070         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
5071         program with $(LIBTHREAD).
5072         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
5073         program with $(LIBTHREAD).
5075 2019-12-02  Bruno Haible  <bruno@clisp.org>
5077         Fix link errors with --enable-threads=posix on AIX.
5078         * modules/mbrtowc (Link): New section.
5079         * modules/acl (Link): Likewise.
5080         * modules/argmatch (Link): Likewise.
5081         * modules/backup-rename (Link): Likewise.
5082         * modules/backupfile (Link): Likewise.
5083         * modules/closein (Link): Likewise.
5084         * modules/closeout (Link): Likewise.
5085         * modules/copy-file (Link): Likewise.
5086         * modules/csharpcomp (Link): Likewise.
5087         * modules/csharpexec (Link): Likewise.
5088         * modules/dfa (Link): Likewise.
5089         * modules/exclude (Link): Likewise.
5090         * modules/fnmatch (Link): Likewise.
5091         * modules/fnmatch-gnu (Link): Likewise.
5092         * modules/fnmatch-posix (Link): Likewise.
5093         * modules/glob (Link): Likewise.
5094         * modules/human (Link): Likewise.
5095         * modules/javacomp (Link): Likewise.
5096         * modules/javaexec (Link): Likewise.
5097         * modules/javaversion (Link): Likewise.
5098         * modules/mbfile (Link): Likewise.
5099         * modules/mbiter (Link): Likewise.
5100         * modules/mbmemcasecmp (Link): Likewise.
5101         * modules/mbmemcasecoll (Link): Likewise.
5102         * modules/mbrlen (Link): Likewise.
5103         * modules/mbscasecmp (Link): Likewise.
5104         * modules/mbscasestr (Link): Likewise.
5105         * modules/mbschr (Link): Likewise.
5106         * modules/mbscspn (Link): Likewise.
5107         * modules/mbsinit (Link): Likewise.
5108         * modules/mbslen (Link): Likewise.
5109         * modules/mbsncasecmp (Link): Likewise.
5110         * modules/mbsnlen (Link): Likewise.
5111         * modules/mbsnrtowcs (Link): Likewise.
5112         * modules/mbspbrk (Link): Likewise.
5113         * modules/mbspcasecmp (Link): Likewise.
5114         * modules/mbsrchr (Link): Likewise.
5115         * modules/mbsrtowcs (Link): Likewise.
5116         * modules/mbssep (Link): Likewise.
5117         * modules/mbsspn (Link): Likewise.
5118         * modules/mbsstr (Link): Likewise.
5119         * modules/mbstok_r (Link): Likewise.
5120         * modules/mbswidth (Link): Likewise.
5121         * modules/mbuiter (Link): Likewise.
5122         * modules/mkdir-p (Link): Likewise.
5123         * modules/propername (Link): Likewise.
5124         * modules/quote (Link): Likewise.
5125         * modules/quotearg (Link): Likewise.
5126         * modules/quotearg-simple (Link): Likewise.
5127         * modules/regex-quote (Link): Likewise.
5128         * modules/rpmatch (Link): Likewise.
5129         * modules/sh-quote (Link): Likewise.
5130         * modules/system-quote (Link): Likewise.
5131         * modules/trim (Link): Likewise.
5132         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5133         * modules/unistdio/ulc-fprintf (Link): Likewise.
5134         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5135         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5136         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5137         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5138         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5139         * modules/xfreopen (Link): Likewise.
5140         * modules/xmemcoll (Link): Likewise.
5141         * modules/yesno (Link): Likewise.
5142         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
5143         * modules/argmatch-tests (Makefile.am): Likewise.
5144         * modules/closein-tests (Makefile.am): Likewise.
5145         * modules/copy-file-tests (Makefile.am): Likewise.
5146         * modules/dfa-tests (Makefile.am): Likewise.
5147         * modules/fnmatch-tests (Makefile.am): Likewise.
5148         * modules/glob-tests (Makefile.am): Likewise.
5149         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5150         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5151         * modules/mbrtowc-tests (Makefile.am): Likewise.
5152         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5153         * modules/mbscasestr-tests (Makefile.am): Likewise.
5154         * modules/mbschr-tests (Makefile.am): Likewise.
5155         * modules/mbscspn-tests (Makefile.am): Likewise.
5156         * modules/mbsinit-tests (Makefile.am): Likewise.
5157         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5158         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5159         * modules/mbspbrk-tests (Makefile.am): Likewise.
5160         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5161         * modules/mbsrchr-tests (Makefile.am): Likewise.
5162         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5163         * modules/mbsspn-tests (Makefile.am): Likewise.
5164         * modules/mbsstr-tests (Makefile.am): Likewise.
5165         * modules/quotearg-tests (Makefile.am): Likewise.
5166         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5167         * modules/readtokens-tests (Makefile.am): Likewise.
5168         * modules/regex-quote-tests (Makefile.am): Likewise.
5169         * modules/sh-quote-tests (Makefile.am): Likewise.
5170         * modules/system-quote-tests (Makefile.am): Likewise.
5171         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5172         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5173         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5174         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5175         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5176         * modules/yesno-tests (Makefile.am): Likewise.
5178 2019-12-02  Bruno Haible  <bruno@clisp.org>
5180         Simplify link sections.
5181         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
5182         * modules/lock (Link): Likewise.
5183         * modules/cond (Link): Likewise.
5184         * modules/tls (Link): Likewise.
5185         * modules/yield (Link): Likewise.
5186         * modules/regex (Link): Likewise.
5187         * modules/localename (Link): Likewise.
5188         * modules/unicase/locale-language (Link): Likewise.
5189         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
5191 2019-12-02  Bruno Haible  <bruno@clisp.org>
5193         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
5194         * tests/test-thread_self.c (main): Disable test on AIX.
5196 2019-12-01  Bruno Haible  <bruno@clisp.org>
5198         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
5199         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
5200         gl_THREADLIB_EARLY_BODY.
5201         (gl_THREADLIB_EARLY_BODY): Invoke it.
5202         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
5203         (gl_THREADLIB_BODY): Invoke it.
5204         (gl_PTHREADLIB): New macro.
5205         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
5206         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
5207         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
5208         * modules/pthread-h (Files): Add threadlib.m4.
5209         (Depends-on): Remove threadlib.
5210         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
5211         and _THREAD_SAFE here.
5212         (Link): Use LIBPTHREAD, not LIBTHREAD.
5213         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
5214         LIBMULTITHREAD.
5215         * modules/pthread-once (Link): Likewise.
5216         * modules/pthread-mutex (Link): Likewise.
5217         * modules/pthread-rwlock (Link): Likewise.
5218         * modules/pthread-cond (Link): Likewise.
5219         * modules/pthread-tss (Link): Likewise.
5220         * modules/pthread-spin (Link): Likewise.
5221         * modules/pthread (Link): Likewise.
5222         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
5223         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
5224         * modules/pthread-once-tests (test_pthread_once1_LDADD,
5225         test_pthread_once2_LDADD): Likewise.
5226         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
5227         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
5228         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
5229         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
5231 2019-12-01  Bruno Haible  <bruno@clisp.org>
5233         cond: State linking requirements.
5234         * modules/cond (Link): New section.
5236 2019-12-01  Bruno Haible  <bruno@clisp.org>
5238         threadlib: Remove unnecessary file (left over from 2019-07-06).
5239         * modules/threadlib (Files): Remove config.rpath.
5241 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
5243         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
5244         Reported by Dagobert Michelsen <dam@opencsw.org> in
5245         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
5246         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
5247         list of strings instead of one string.
5248         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
5249         * pygnulib/GLImport.py (execute): Likewise.
5251 2019-11-27  Bruno Haible  <bruno@clisp.org>
5253         openpty, forkpty: Fix build error on Solaris 11.4.
5254         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
5255         also in <termios.h>.
5256         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
5257         of the function also in <termios.h>.
5258         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
5259         * doc/glibc-functions/forkpty.texi: Likewise.
5261 2019-11-27  Bruno Haible  <bruno@clisp.org>
5263         New options --enable-threads=isoc and --enable-threads=isoc+posix.
5264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
5265         --enable-threads=isoc and --enable-threads=isoc+posix.
5266         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
5267         When both the ISO C and the POSIX threads API are available, choose
5268         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
5269         --enable-threads=isoc+posix was specified. When only the ISO C threads
5270         API is available and --enable-threads=iso was specified, choose
5271         USE_ISOC_THREADS.
5272         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
5273         USE_ISOC_AND_POSIX_THREADS.
5274         * lib/glthread/lock.c: Likewise.
5275         * lib/glthread/cond.h: Likewise.
5276         * lib/glthread/cond.c: Likewise.
5277         * lib/glthread/tls.h: Likewise.
5278         * lib/glthread/tls.c: Likewise.
5279         * lib/glthread/yield.h: Likewise.
5280         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
5281         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
5282         * lib/glthread/thread.c: Likewise.
5283         * lib/glthread/threadlib.c: Likewise.
5284         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
5285         USE_ISOC_AND_POSIX_THREADS.
5286         * tests/test-cond.c: Consider USE_ISOC_THREADS and
5287         USE_ISOC_AND_POSIX_THREADS.
5288         * tests/test-tls.c: Likewise.
5289         * tests/test-thread_create.c (main): Likewise.
5290         * tests/test-pthread-cond.c: Likewise.
5291         * tests/test-pthread-mutex.c: Likewise.
5292         * tests/test-pthread-once2.c: Likewise.
5293         * tests/test-pthread-rwlock.c: Likewise.
5294         * tests/test-pthread-tss.c: Likewise.
5295         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
5296         USE_POSIX_THREADS.
5298 2019-11-24  Bruno Haible  <bruno@clisp.org>
5300         mbrtowc: Modernize autoconf test.
5301         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
5302         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
5303         try a UTF-8 locale.
5304         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
5306 2019-11-24  Bruno Haible  <bruno@clisp.org>
5308         Fix errors in C++ mode on mingw.
5309         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
5310         instead of _GL_CXXALIAS_SYS.
5311         * lib/signal.in.h (pthread_sigmask): Likewise.
5312         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
5313         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5314         Likewise.
5315         * lib/wchar.in.h (btowc): Likewise.
5317 2019-11-24  Bruno Haible  <bruno@clisp.org>
5319         sys_time: Fix errors in C++ mode on mingw.
5320         * lib/sys_time.in.h (timeval): Restore the redirection
5321         '#define timeval rpl_timeval', for when the symbol timeval is being used
5322         outside the 'gnulib' namespace.
5323         * lib/sys_select.in.h (select): In C++, write 'timeval', not
5324         'struct timeval'.
5326 2019-11-24  Bruno Haible  <bruno@clisp.org>
5328         iswctype: Fix errors in C++ mode on mingw.
5329         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
5330         is 1.
5331         * lib/iswctype.c (iswctype): Add another implementation, for the
5332         GNULIB_defined_wint_t case.
5333         * modules/iswctype (configure.ac): Compile iswctype.c also if
5334         GNULIB_OVERRIDES_WINT_T is 1.
5336 2019-11-24  Bruno Haible  <bruno@clisp.org>
5338         windows-timedmutex: Fix errors in C++ mode on mingw.
5339         * lib/windows-timedmutex.h: Add closing brace.
5341 2019-11-24  Bruno Haible  <bruno@clisp.org>
5343         Fix errors in C++ mode on Cygwin.
5344         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
5345         _GL_CXXALIAS_SYS.
5347 2019-11-24  Bruno Haible  <bruno@clisp.org>
5349         time_r: Fix for mingw (regression from 2019-11-16).
5350         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
5351         AC_LINK_IFELSE test only if the function does not appear to exist.
5353 2019-11-24  Bruno Haible  <bruno@clisp.org>
5355         wcstok: Add tests.
5356         * tests/test-wcstok.c: New file.
5357         * modules/wcstok-tests: New file.
5359 2019-11-24  Bruno Haible  <bruno@clisp.org>
5361         wcstok: Work around wrong signature on native Windows.
5362         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
5363         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
5364         REPLACE_WCSTOK.
5365         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
5366         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
5367         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
5368         * doc/posix-functions/wcstok.texi: Mention the problem.
5370 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5372         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
5373         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
5374         remove workaround for GCC bug 91450 as the bug should be fixed
5375         there too.
5377 2019-11-21  Bruno Haible  <bruno@clisp.org>
5379         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
5380         Reported by Christian Biesinger <cbiesinger@google.com> in
5381         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
5382         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
5383         non-glibc systems.
5384         * lib/locale.in.h (localeconv, setlocale): Likewise.
5385         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
5386         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
5387         rint, round, trunc): Likewise.
5388         * lib/monetary.in.h (strfmon_l): Likewise.
5389         * lib/pthread.in.h (pthread_mutexattr_getrobust,
5390         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
5391         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
5392         pthread_spin_destroy): Likewise.
5393         * lib/signal.in.h (raise, signal): Likewise.
5394         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
5395         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
5396         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
5397         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
5398         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
5399         Likewise.
5400         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
5401         Likewise.
5402         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
5403         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
5404         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
5405         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
5406         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
5407         wcsftime): Likewise.
5408         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
5410 2019-11-21  Bruno Haible  <bruno@clisp.org>
5412         Fix various errors in _GL_CXXALIAS_SYS invocations.
5413         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
5414         _GL_CXXALIAS_SYS.
5415         * lib/pthread.in.h (pthread_mutexattr_gettype,
5416         pthread_mutexattr_getrobust): Likewise.
5417         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
5418         * lib/sys_socket.in.h (recv, send): Likewise.
5419         * lib/unistd.in.h (getdtablesize): Likewise.
5420         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
5421         'struct timeval'.
5423 2019-11-21  Bruno Haible  <bruno@clisp.org>
5425         math tests: Update after 2019-08-28 change.
5426         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
5427         return type of 'bool', not 'int'.
5429 2019-11-21  Bruno Haible  <bruno@clisp.org>
5431         pthread-spin: Fix errors in C++ mode.
5432         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
5433         functions as nonexistent when <pthread.h> exists but does not define
5434         the pthread_spinlock_t type.
5436 2019-11-21  Bruno Haible  <bruno@clisp.org>
5438         pthread-mutex: Fix errors in C++ mode.
5439         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
5440         pthread_mutexattr_getrobust exists. If not, define
5441         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
5442         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
5443         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
5444         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
5445         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
5446         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
5447         definition.
5449 2019-11-19  Bruno Haible  <bruno@clisp.org>
5451         threads-h tests: Fix typo.
5452         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
5454 2019-11-19  Bruno Haible  <bruno@clisp.org>
5456         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
5457         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
5458         to 'const pthread_attr_t *'.
5459         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
5460         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
5462 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
5464         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
5465         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
5466         work around GCC bug 91450 as the bug should be fixed there.
5468 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5470         glob: get closer to glibc glob.c
5471         Omit differences from glibc when the differences don’t matter.
5472         * lib/glob.c [_LIBC]: Include shlib-compat.h.
5473         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
5474         (glob_lstat): New function.
5475         (glob_in_dir): Use it.
5476         (GLOB_ATTRIBUTE): Define to empty if not already defined.
5477         Use changed.
5479 2019-11-18  Bruno Haible  <bruno@clisp.org>
5481         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
5482         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
5483         UINTPTR_MAX): Consider _WIN64.
5484         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
5485         a pointer.
5487 2019-11-18  Bruno Haible  <bruno@clisp.org>
5489         stdint: Fix value of WINT_MAX when we override wint_t.
5490         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
5491         when GNULIB_OVERRIDES_WINT_T is 1.
5493 2019-11-18  Bruno Haible  <bruno@clisp.org>
5495         vcs-to-changelog: New module.
5496         * modules/vcs-to-changelog: New file.
5497         * MODULES.html.sh (func_all_modules): Add it.
5499 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5501         vcs-to-changelog: New script to generate ChangeLog-like output.
5502         Discussion:
5503         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
5504         * build-aux/vcs_to_changelog.py: New file.
5505         * build-aux/vcstocl/frontend_c.py: New file.
5506         * build-aux/vcstocl/misc_util.py: New file.
5507         * build-aux/vcstocl/vcs_git.py: New file.
5509 2019-11-18  Bruno Haible  <bruno@clisp.org>
5511         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
5512         Reported by Keith Marshall <keith@users.osdn.me> in
5513         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
5514         and <https://osdn.net/projects/mingw/ticket/39677>.
5515         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
5516         already been defined by mingw's <crtdefs.h>.
5518 2019-11-18  Bruno Haible  <bruno@clisp.org>
5520         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
5521         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
5522         conditionally enabled.
5524 2019-11-18  Bruno Haible  <bruno@clisp.org>
5526         gc: Mirror libgcrypt.m4 from libgcrypt.
5527         * config/srclistvars.sh (LIBGCRYPT): New variable.
5528         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
5530 2019-11-17  Bruno Haible  <bruno@clisp.org>
5532         locale, localename: Improve z/OS support.
5533         Reported by Daniel Richard G. in
5534         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
5535         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
5536         gl_LOCALE_H.
5537         (gl_LOCALE_H): Require it.
5538         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
5539         defined, don't even check for newlocale, duplocale, freelocale.
5540         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
5541         locale_t is not defined.
5543 2019-11-17  Bruno Haible  <bruno@clisp.org>
5545         havelib: Make libdirstems processing more flexible.
5546         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
5547         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
5548         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
5549         patch from 2017-02-19).
5550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
5551         libdirs, even when the first one exists as a directory.
5553 2019-11-17  Bruno Haible  <bruno@clisp.org>
5555         havelib: Match the bitness when searching for libraries.
5556         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
5557         acl_is_expected_elfclass.
5558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
5559         file exists, in ELF, also test whether it has the ELF class that
5560         corresponds to the host's bitness.
5562 2019-11-17  Bruno Haible  <bruno@clisp.org>
5564         host-cpu-c-abi: Add support for unknown CPUs.
5565         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
5566         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
5567         32-bit or 64-bit.
5569 2019-11-17  Bruno Haible  <bruno@clisp.org>
5571         havelib: Remove redundant code.
5572         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
5573         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
5575 2019-11-17  Bruno Haible  <bruno@clisp.org>
5577         havelib: Fix a bug in dependency processing.
5578         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
5579         of .la files, don't overwrite the value of additional_libdir for the
5580         next rounds.
5582 2019-11-16  Bruno Haible  <bruno@clisp.org>
5584         wctype-h: When overriding wint_t, override also the related functions.
5585         Reported by Christian Biesinger <cbiesinger@google.com> in
5586         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
5587         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
5588         REPLACE_ISWCNTRL to 1.
5589         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
5590         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
5591         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
5592         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
5593         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
5594         on mingw.
5595         * doc/posix-headers/wctype.texi: Likewise.
5597 2019-11-16  Bruno Haible  <bruno@clisp.org>
5599         time_r: Fix for mingw.
5600         Reported by Christian Biesinger <cbiesinger@google.com> in
5601         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
5602         * lib/time.in.h: On mingw, include <unistd.h>.
5603         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
5604         <time.h>. Test for localtime_r in a way that works when it is defined
5605         as an inline function.
5607 2019-11-13  Bruno Haible  <bruno@clisp.org>
5609         havelib: Revert last change.
5610         * build-aux/config.rpath: Revert last change. We can add msys2 support
5611         when it has been added to libtool.m4 upstream.
5613 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5615         config: add msys support
5616         Requested by Arnold Robbins in:
5617         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
5618         He also requested a change to config.guess, which I’ll forward
5619         upstream.
5620         * build-aux/ar-lib (func_file_conv):
5621         * build-aux/compile (func_file_conv):
5622         * build-aux/config.rpath (wl, with_gnu_ld)
5623         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
5624         Treat msys like cygwin.
5626 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5628         regex: now back in sync with glibc
5629         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
5630         regexec.c got merged into glibc and are now copies again.
5632 2019-10-27  Bruno Haible  <bruno@clisp.org>
5634         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
5635         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
5636         statement.
5637         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
5638         32-bit CPUs.
5640 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
5642         timespec-add, timespec-sub: simplify
5643         * lib/timespec-add.c (timespec_add):
5644         * lib/timespec-sub.c (timespec_sub):
5645         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
5646         work on unsigned integers.
5648 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
5650         nstrftime: speed up integer overflow checking
5651         * lib/nstrftime.c: Include intprops.h.
5652         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
5653         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
5654         instead of doing it by hand.
5655         * modules/nstrftime (Depends-on): Add intprops.
5657         Port better to GCC under macOS
5658         Work around macOS header that has ‘#define __has_builtin(x) 0’
5659         when compiled by GCC.  Apple really, really doesn’t want you to
5660         use GCC, apparently.  Rroblem reported by Akim Demaille in:
5661         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
5662         The fix is to not trust __has_builtin when being compiled by
5663         recent-enough GCC.
5664         * lib/intprops.h (__has_builtin)
5665         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
5666         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
5667         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
5668         Remove.  All uses removed.
5669         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
5670         directly, if defined and if not newer GCC.
5671         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
5672         New macro, that use __has_builtin directly, if defined and if
5673         not newer GCC.
5674         (assume): Use them.
5676 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
5678         maintainer-makefile: update rule for argmatch.
5679         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
5681 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
5683         bitset: let freeing functions accept NULL.
5684         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
5685         given NULL.
5686         * lib/bitset.h: Document that.
5687         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
5689 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
5691         inttypes: use more-robust test for int range
5692         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
5693         Problem reported by Dagobert Michelsen in:
5694         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
5695         * lib/inttypes.in.h: Rely only on limits.h when checking
5696         int range.
5698 2019-10-15  Bruno Haible  <bruno@clisp.org>
5700         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
5701         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
5702         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
5703         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
5704         term_ostream_set_hyperlink): New functions.
5705         (term_styled_ostream_get_hyperlink_ref,
5706         term_styled_ostream_get_hyperlink_id,
5707         term_styled_ostream_set_hyperlink): New function aliases.
5709 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
5711         update-copyright: use en dashes in .texi ranges
5712         * build-aux/update-copyright: Match year ranges like "1998--2019",
5713         which are used in the Autoconf manual.  Also, update ranges in
5714         .tex, .texi, and .texinfo files to use en dashes instead of
5715         hyphens.
5717 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5719         * config/srclist.txt: Remove posix/regex_internal.c for now.
5721 2019-10-13  Bruno Haible  <bruno@clisp.org>
5723         git-version-gen: Allow 'snapshot' as .tarball-version contents.
5724         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
5725         contents to the empty string.
5727 2019-10-12  Bruno Haible  <bruno@clisp.org>
5729         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
5730         * tests/test-intprops.c (main): Disable two more tests when using
5731         HP-UX cc.
5733 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5735         Simplify and regularize regex use of ‘assert’
5736         Also, tell GCC about the asserts even when compiling without
5737         debugging, to give it further optimization opportunities.
5738         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
5739         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
5740         (parse_expression, parse_bracket_exp):
5741         * lib/regex_internal.c (build_wcs_buffer)
5742         (build_wcs_upper_buffer, re_string_reconstruct)
5743         (re_string_context_at):
5744         * lib/regexec.c (re_search_stub, re_copy_regs)
5745         (re_search_internal, prune_impossible_nodes, check_matching)
5746         (check_halt_state_context, set_regs, sift_states_backward)
5747         (build_sifted_states, transit_state_mb, transit_state_bkref)
5748         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
5749         (match_ctx_add_subtop):
5750         Use it instead of plain ‘assert’.
5752 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
5754         regex: omit debug assignment when not debugging
5755         * lib/regexec.c (re_search_internal) [!DEBUG]:
5756         Remove unnecessary assignment.
5758         regex: tell compiler there’s at most 256 arcs out
5759         Partly this is to help the reader (and maybe help GCC);
5760         partly this is to pacify Coverity.
5761         * lib/regex_internal.h: Include verify.h.
5762         * lib/regexec.c (group_nodes_into_DFAstates):
5763         Tell the compiler that ndests cannot exceed SBC_MAX.
5764         * modules/regex (Depends-on): Add ‘verify’.
5766         regex: simplify by assuming C99
5767         * config/srclist.txt: Comment out regex_internal.h and regexec.c
5768         temporarily.
5769         * lib/regex_internal.h (lock_define, re_match_context_t):
5770         Simplify by assuming C99 macros and const.
5771         * lib/regexec.c (re_search_internal): Simplify by assuming C99
5772         initializers.  Remove unnecessary assignment, as mctx is now
5773         safely initialized earlier.
5775         regex: avoid copying of uninitialized storage
5776         * config/srclist.txt: Comment out regcomp.c temporarily.
5777         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
5778         Initialize even when not checking for lint, as the behavior is
5779         arguably undefined otherwise and Coverity warns about it.
5781 2019-10-06  Bruno Haible  <bruno@clisp.org>
5783         access tests: Fix test failure when run as root.
5784         * tests/test-access.c: Include root-uid.h.
5785         (geteuid): Define fallback.
5786         (main): Don't expect that writing to a read-only file would fail when
5787         running as root. Also, remove the created files at the end.
5788         * modules/access-tests (Depends-on): Add root-uid.
5789         (configure.ac): Test whether geteuid exists.
5791 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
5793         users.txt: add GNU nano
5794         Nano has been making use of gnulib since March 2017, version 2.8.0.
5796 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5798         bootstrap: simplify debugging of wget failures
5799         Problem reported by Tim Rühsen in:
5800         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
5801         * build-aux/bootstrap (po_download_command_format):
5802         Invoke wget with -nv instead of -q, to make debugging easier.
5804 2019-09-29  Bruno Haible  <bruno@clisp.org>
5806         avltree-list: Fix compilation warning (introduced on 2014-09-16).
5807         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
5808         'const' attribute.
5810 2019-09-29  Bruno Haible  <bruno@clisp.org>
5812         fbufmode: Fix compilation error on glibc >= 2.28 systems.
5813         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
5815 2019-09-28  Bruno Haible  <bruno@clisp.org>
5817         Update comments that refer to POSIX.
5818         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
5819         sentence about trailing slashes.
5820         * lib/fflush.c: Clarify the reasoning.
5821         * tests/test-fflush2.c: Cite the relevant sentence.
5823 2019-09-28  Bruno Haible  <bruno@clisp.org>
5825         access: Document limitations on Windows.
5826         Suggested by Zaretskii <eliz@gnu.org>.
5827         * doc/posix-functions/access.texi: Mention two limitations on Windows.
5829 2019-09-28  Bruno Haible  <bruno@clisp.org>
5831         findprog-in: Fix comment.
5832         Reported by Eli Zaretskii <eliz@gnu.org>.
5833         * lib/findprog.h (find_in_given_path): Extend description of EACCES
5834         condition.
5835         * lib/stat.c (rpl_stat): Fix typo in comment.
5836         * lib/utime.c (_gl_utimens_windows): Likewise.
5838 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5840         Update URLs and associated text
5841         (Thanks to Bruno Haible for proofreading this patch.)
5842         Prefer https: to http: in URLs where either will do, for the usual
5843         security reasons.  I also updated broken and/or moved URLs
5844         discovered during the process. In a few places I had to resort to
5845         archive.org, since I didn't find the originals elsewhere.
5847 2019-09-15  Paul Smith  <psmith@gnu.org>
5848             Bruno Haible  <bruno@clisp.org>
5850         findprog-in: Set errno when the search fails.
5851         * lib/findprog-in.c: Include <errno.h>.
5852         (find_in_given_path): Set errno before returning NULL.
5853         * lib/findprog.h (find_in_given_path): Update comment accordingly.
5854         Define the term "slash".
5856 2019-09-15  Bruno Haible  <bruno@clisp.org>
5858         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
5859         * modules/findprog (Depends-on): Add access.
5860         * modules/findprog-lgpl (Depends-on): Likewise.
5861         * modules/findprog-in (Depends-on): Likewise.
5863 2019-09-15  Bruno Haible  <bruno@clisp.org>
5865         access: Add tests.
5866         * tests/test-access.c: New file.
5867         * modules/access-tests: New file.
5869         access: New module.
5870         * lib/unistd.in.h (access): New declaration.
5871         * lib/access.c: New file.
5872         * m4/access.m4: New file.
5873         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
5874         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
5875         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
5876         REPLACE_ACCESS.
5877         * modules/access: New file.
5878         * tests/test-unistd-c++.cc (access): Check signature.
5879         * doc/posix-functions/access.texi: Mention the new module.
5881 2019-09-15  Bruno Haible  <bruno@clisp.org>
5883         fcntl-h: Fix compilation error of creat.c on MSVC.
5884         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
5885         defined.
5887 2019-09-15  Bruno Haible  <bruno@clisp.org>
5889         creat: Add tests.
5890         * tests/test-creat.c: New file, based on tests/test-open.h.
5891         * modules/creat-tests: New file.
5893         creat: New module.
5894         * lib/fcntl.in.h (creat): New declaration.
5895         * lib/creat.c: New file, based on lib/open.c.
5896         * m4/creat.m4: New file.
5897         * m4/open-slash.m4: New file, extracted from m4/open.m4.
5898         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
5899         Invoke gl_OPEN_TRAILING_SLASH_BUG.
5900         * modules/open (Files): Add m4/open-slash.m4.
5901         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
5902         REPLACE_CREAT.
5903         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
5904         * modules/creat: New file.
5905         * tests/test-fcntl-h-c++.cc (creat): Check signature.
5906         * doc/posix-functions/creat.texi: Mention the new module.
5908 2019-09-15  Bruno Haible  <bruno@clisp.org>
5910         open tests: Enhance test.
5911         * tests/test-open.h (test_open): Test the creation of an executable
5912         regular file. Also improve initial cleanup.
5914 2019-09-15  Bruno Haible  <bruno@clisp.org>
5916         intprops tests: Avoid build failure with HP-UX cc.
5917         * tests/test-intprops.c: Disable a check that makes HP cc choke with
5918         "error 4018: Macro param too large after substitution - use -H option.".
5920 2019-09-14  Bruno Haible  <bruno@clisp.org>
5922         Make autoconf tests work with -Werror=implicit-function-declaration.
5923         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
5924         towupper() declaration.
5925         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
5926         declaration.
5928 2019-09-14  Bruno Haible  <bruno@clisp.org>
5930         findprog-in: Better mimic the system on native Windows.
5931         Reported by Paul Smith <psmith@gnu.org>.
5932         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
5933         non-empty suffixes when the file name already contains a '.'.
5935 2019-09-10  Bruno Haible  <bruno@clisp.org>
5937         wctob: Fix autoconf test.
5938         Based on patch by Florian Weimer <fweimer@redhat.com>.
5939         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
5941 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
5943         xhash: provide hash_xinitialize.
5944         Suggested by Egor Pugin <egor.pugin@gmail.com>
5945         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
5946         * modules/xhash, lib/xhash.c: New.
5947         * lib/hash.h (hash_xinitialize): New.
5949 2019-09-09  Bruno Haible  <bruno@clisp.org>
5951         findprog-in: Make exec optimization optional.
5952         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
5953         (find_in_given_path): Add optimize_for_exec parameter.
5954         * lib/findprog-in.c (find_in_given_path): Likewise.
5956 2019-09-08  Bruno Haible  <bruno@clisp.org>
5958         Add option to assume the best, not the worst, when cross-compiling.
5959         Suggested by Jonas Termansen <sortie@maxsi.org>.
5960         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
5961         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
5962         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
5963         lt_cv_sys_argz_works.
5964         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
5965         ac_cv_func_calloc_0_nonnull.
5966         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
5967         --enable-cross-guesses for gl_cv_func_realpath_works.
5968         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
5969         gl_cv_func_cbrtl_ieee.
5970         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
5971         gl_cv_func_ceil_ieee.
5972         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
5973         gl_cv_func_ceilf_ieee.
5974         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
5975         gl_cv_func_ceill_ieee.
5976         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
5977         ac_cv_func_chown_works.
5978         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
5979         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
5980         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
5981         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
5982         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
5983         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
5984         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
5985         gl_cv_func_expl_works.
5986         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
5987         gl_cv_func_expm1_ieee.
5988         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
5989         gl_cv_func_expm1l_works.
5990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
5991         gl_cv_func_open_directory_works.
5992         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
5993         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
5994         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
5995         gl_cv_func_fchownat_empty_filename_works.
5996         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
5997         gl_cv_func_fdopendir_works.
5998         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
5999         gl_cv_func_floor_ieee.
6000         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
6001         gl_cv_func_floorf_ieee.
6002         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
6003         gl_cv_func_fma_works.
6004         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
6005         gl_cv_func_fmaf_works.
6006         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
6007         gl_cv_func_fmal_works.
6008         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
6009         gl_cv_func_fmod_ieee.
6010         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
6011         gl_cv_func_fmodf_ieee.
6012         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
6013         gl_cv_func_fmodl_ieee.
6014         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
6015         gl_cv_func_fpurge_works.
6016         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
6017         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
6018         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
6019         gl_cv_func_getcwd_null.
6020         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
6021         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
6022         gl_cv_func_working_getdelim.
6023         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
6024         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
6025         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
6026         gl_cv_func_getgroups_works.
6027         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
6028         am_cv_func_working_getline.
6029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
6030         for gl_cv_func_getopt_gnu.
6031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
6032         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
6033         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
6034         gl_cv_func_hypot_ieee.
6035         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
6036         gl_cv_func_hypotf_ieee.
6037         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
6038         gl_cv_func_hypotl_ieee.
6039         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
6040         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
6041         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
6042         gl_cv_func_link_works.
6043         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
6044         gl_cv_func_linkat_slash.
6045         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
6046         gl_cv_func_log_ieee.
6047         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
6048         gl_cv_func_logf_ieee.
6049         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
6050         gl_cv_func_logl_works.
6051         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
6052         gl_cv_func_log10_ieee.
6053         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
6054         gl_cv_func_log10f_ieee.
6055         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
6056         gl_cv_func_log10l_works.
6057         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
6058         gl_cv_func_log1p_ieee.
6059         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
6060         gl_cv_func_log1pf_ieee.
6061         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
6062         gl_cv_func_log1pl_ieee.
6063         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
6064         gl_cv_func_log2_ieee.
6065         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
6066         gl_cv_func_log2f_ieee.
6067         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
6068         --enable-cross-guesses for
6069         gl_cv_func_lstat_dereferences_slashed_symlink.
6070         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
6071         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
6072         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
6073         gl_cv_C_locale_sans_EILSEQ.
6074         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
6075         gl_cv_func_memchr_works.
6076         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
6077         gl_cv_func_memmem_works_always.
6078         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
6079         gl_cv_func_memmem_works_fast.
6080         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
6081         gl_cv_func_mkdir_trailing_slash_works,
6082         gl_cv_func_mkdir_trailing_dot_works.
6083         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
6084         gl_cv_func_mkfifo_works.
6085         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
6086         gl_cv_func_mknod_works.
6087         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
6088         gl_cv_func_working_mkstemp.
6089         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
6090         gl_cv_func_working_mktime.
6091         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
6092         gl_cv_func_modf_ieee.
6093         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
6094         gl_cv_func_modff_ieee.
6095         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
6096         gl_cv_func_modfl_ieee.
6097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
6098         gl_cv_func_nanosleep.
6099         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
6100         gl_cv_func_perror_works.
6101         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
6102         gl_cv_func_printf_sizes_c99.
6103         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
6104         gl_cv_func_printf_infinite.
6105         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
6106         gl_cv_func_printf_infinite_long_double.
6107         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
6108         gl_cv_func_printf_directive_a.
6109         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
6110         gl_cv_func_printf_directive_f.
6111         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
6112         gl_cv_func_printf_flag_zero.
6113         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
6114         gl_cv_func_printf_enomem.
6115         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
6116         gl_cv_func_snprintf_truncation_c99.
6117         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
6118         gl_cv_func_snprintf_retval_c99.
6119         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
6120         gl_cv_func_snprintf_directive_n.
6121         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
6122         gl_cv_func_vsnprintf_zerosize_c99.
6123         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
6124         gl_cv_func_pselect_detects_ebadf.
6125         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
6126         Obey --enable-cross-guesses for
6127         gl_cv_pthread_rwlock_rdlock_prefer_writer.
6128         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
6129         gl_cv_func_ptsname_sets_errno.
6130         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
6131         gl_cv_func_svid_putenv.
6132         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
6133         gl_cv_func_readlink_works.
6134         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
6135         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
6136         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
6137         gl_cv_func_re_compile_pattern_working.
6138         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
6139         gl_cv_func_remainder_ieee.
6140         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
6141         gl_cv_func_remainderf_ieee.
6142         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
6143         gl_cv_func_remainderl_ieee.
6144         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
6145         gl_cv_func_rintl_works.
6146         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
6147         gl_cv_func_rmdir_works.
6148         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
6149         gl_cv_func_round_ieee.
6150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
6151         gl_cv_func_roundf_ieee.
6152         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
6153         gl_cv_func_roundl_ieee.
6154         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
6155         gl_cv_func_select_detects_ebadf.
6156         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
6157         gl_cv_func_setenv_works.
6158         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
6159         gl_cv_func_unsetenv_works.
6160         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
6161         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
6162         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
6163         gl_cv_func_sleep_works.
6164         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
6165         gl_cv_func_stat_file_slash.
6166         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
6167         gl_cv_func_stpncpy.
6168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
6169         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
6170         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
6171         gl_cv_func_strcasestr_linear.
6172         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
6173         gl_cv_func_working_strerror.
6174         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
6175         gl_cv_func_strerror_0_works.
6176         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
6177         --enable-cross-guesses for gl_cv_func_strerror_r_works.
6178         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
6179         gl_cv_func_strstr_works_always.
6180         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
6181         gl_cv_func_strstr_linear.
6182         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
6183         gl_cv_func_strtod_works.
6184         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
6185         gl_cv_func_strtold_works.
6186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
6187         gl_cv_func_symlink_works.
6188         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
6189         gl_cv_func_symlinkat_works.
6190         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
6191         gl_cv_func_trunc_ieee.
6192         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
6193         gl_cv_func_truncf_ieee.
6194         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
6195         gl_cv_func_truncl_ieee.
6196         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
6197         gl_cv_func_tzset_clobber.
6198         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
6199         gl_cv_func_ungetc_works.
6200         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
6201         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
6202         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
6203         gl_cv_func_usleep_works.
6204         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
6205         gl_cv_func_futimesat_works.
6206         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
6207         gl_cv_func_working_utimes.
6208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
6209         gl_cv_func_wcwidth_works.
6210         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
6211         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
6212         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
6213         links for testing. Obey --enable-cross-guesses for
6214         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
6215         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
6217 2019-09-08  Bruno Haible  <bruno@clisp.org>
6219         Clarify that cross-compilation guesses are guesses.
6220         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
6221         cross-compiling.
6223 2019-09-08  Bruno Haible  <bruno@clisp.org>
6225         chown: Fix configure output (regression from 2019-03-23).
6226         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
6227         gl_cv_func_chown_follows_symlink variable.
6229 2019-09-08  Bruno Haible  <bruno@clisp.org>
6231         findprog-in: New module.
6232         Suggested by Paul Smith <psmith@gnu.org>.
6233         * lib/findprog.h (find_in_given_path): New declaration.
6234         * lib/findprog-in.c: New file, based on lib/findprog.c.
6235         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
6236         * modules/findprog-in: New file.
6238 2019-09-08  Bruno Haible  <bruno@clisp.org>
6240         findprog: Remove unused dependency.
6241         * modules/findprog (Depends-on): Remove strdup.
6243 2019-09-08  Bruno Haible  <bruno@clisp.org>
6245         findprog: Remove test that is obsolete since 2006-04-24.
6246         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
6248 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
6250         bitset: style changes
6251         * lib/bitset/vector.c (vbitset_resize): Factor computation.
6252         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
6253         xzalloc to xcalloc.
6254         Suggested by Paul Eggert.
6256 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
6258         bitset: check memory allocation
6259         Reported by 江 祖铭 (Zu-Ming Jiang).
6260         With help from Paul Eggert.
6261         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
6262         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
6263         instead of realloc.
6264         When shrinking, accept failures.
6265         * lib/bitset/vector.c (vbitset_resize): Likewise.
6267 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6269         scratch_buffer: sync from glibc
6270         * config/srclist.txt: Add the scratch_buffer source
6271         code from glibc, since these should be in sync.
6272         Autoupdate.
6274 2019-09-07  Bruno Haible  <bruno@clisp.org>
6276         doc: Update for glibc 2.30.
6277         * doc/glibc-functions/gettid.texi: New file.
6278         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
6279         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
6280         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
6281         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
6282         * doc/glibc-functions/sem_clockwait.texi: New file.
6283         * doc/glibc-functions/tgkill.texi: New file.
6284         * doc/glibc-functions/twalk_r.texi: New file.
6285         * doc/gnulib.texi: Include them.
6286         (Glibc semaphore.h): New section.
6287         * doc/pastposix-functions/h_errno.texi: Update.
6288         * doc/posix-functions/*.texi: Likewise.
6290 2019-09-06  Bruno Haible  <bruno@clisp.org>
6292         symlink tests: Avoid test failure on Linux with Lustre file system.
6293         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
6294         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
6295         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
6297 2019-09-01  Bruno Haible  <bruno@clisp.org>
6299         gitsub.sh: Add support for shallow-cloning of subdirectories.
6300         * top/gitsub.sh (func_usage): Document allowed git options with
6301         'git pull'.
6302         (func_pull): Accept GIT_OPTIONS argument.
6303         (pull): Parse git options before complaining about too many arguments.
6304         Pass the git options to func_pull.
6306 2019-08-29  Bruno Haible  <bruno@clisp.org>
6308         lock: Fix cross-compilation guesses.
6309         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
6310         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
6311         platforms.
6313 2019-08-28  Bruno Haible  <bruno@clisp.org>
6315         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
6316         Reported by Martin Storsjö <martin@martin.st> in
6317         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
6318         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
6319         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
6320         files from GCC 6 or newer, use an override through '#define', because
6321         the inline definitions in the platform's <cmath> cannot be overridden
6322         in another way.
6324 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
6326         Revert macOS INT_MULTIPLY_WRAPV patch
6327         Problem reported by Bruno Haible in:
6328         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
6329         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
6330         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
6331         Go back to working around the Clang bug on macOS.
6333 2019-08-27  Bruno Haible  <bruno@clisp.org>
6335         libtool-next-version: Fix error output.
6336         * build-aux/libtool-next-version (func_fatal_error): Fix the program
6337         name.
6339 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
6341         Speed up INT_MULTIPLY_WRAPV on macOS
6342         Assume that __builtin_mul_overflow works OK with Clang on macOS.
6343         Mattias Engdegård says it’s safe to assume the relevant library
6344         is always available there.
6345         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
6346         New temporary internal macro.
6347         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
6348         No need to work around the Clang bug on macOS.
6350 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
6352         intprops.h, verify.h: port better to clang
6353         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
6354         with Clang.  Problem reported privately by Mattias Engdegård.
6355         Also, insulate intprops.h and verify.h better against each other’s
6356         definitions of __has_builtin on non-Clang hosts.
6357         * lib/intprops.h (__has_builtin): Define a temporary substitute
6358         if __has_builtin is not already defined.
6359         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
6360         New temporary internal macros.
6361         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
6362         Now two separate macros, replacing the old
6363         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
6364         __builtin_mul_overflow is like the rest.  All uses changed.
6365         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
6366         Adjust to above changes.
6367         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
6368         longer relevant.  All uses changed.
6369         * lib/verify.h (__has_builtin): Treat like intprops.h,
6370         so that the two .h files do not collide with each other.
6371         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
6372         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
6374 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6376         intprops: say why not Clang __builtin_add_overflow
6377         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
6378         Mention Clang in comment, responding to a query from
6379         Mattias Engdegård.
6381 2019-08-24  Bruno Haible  <bruno@clisp.org>
6383         doc: Document most of the files outside of modules.
6384         * doc/gnulib.texi (Build Infrastructure Files,
6385         Release Management Files): New chapters.
6387 2019-08-24  Bruno Haible  <bruno@clisp.org>
6389         bootstrap: Keep in sync with the 'gettext' module.
6390         Reported by Assaf Gordon in
6391         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
6392         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
6393         * build-aux/po/remove-potcdate.sin: Likewise.
6395 2019-08-24  Bruno Haible  <bruno@clisp.org>
6397         crypto/gc-sha512: Add tests.
6398         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
6399         * modules/crypto/gc-sha512-tests: New file.
6401         crypto/gc-sha256: Add tests.
6402         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
6403         * modules/crypto/gc-sha256-tests: New file.
6405         crypto/gc-sha256, crypto/gc-sha512: New modules.
6406         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
6407         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
6408         (MAX_DIGEST_SIZE): Set to 64.
6409         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
6410         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
6411         (gc_sha256, gc_sha512): New functions.
6412         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
6413         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
6414         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
6416 2019-08-24  Bruno Haible  <bruno@clisp.org>
6418         crypto/gc-sha1 tests: Improve output when the test fails.
6419         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
6420         output.
6422 2019-08-24  Bruno Haible  <bruno@clisp.org>
6424         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
6425         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
6426         LIBGCRYPT_HAS_MD_SM3.
6427         * lib/gc-libgcrypt.c: Include sm3.h.
6428         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
6429         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
6430         implementation if libgcrypt does not support SM3.
6432 2019-08-24  Bruno Haible  <bruno@clisp.org>
6434         crypto/gc-md2: Optimize and clarify code.
6435         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
6436         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
6437         is not needed.
6439 2019-08-24  Bruno Haible  <bruno@clisp.org>
6441         crypto/gc-md2: Add comment.
6442         * lib/gc-libgcrypt.c: Add comment.
6444 2019-08-24  Bruno Haible  <bruno@clisp.org>
6446         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
6447         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
6448         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
6449         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
6450         variable.
6452 2019-08-24  Bruno Haible  <bruno@clisp.org>
6454         crypto/gc: Fix link error with --with-libgcrypt.
6455         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
6456         AC_LIB_HAVE_LINKFLAGS invocation.
6458 2019-08-24  Bruno Haible  <bruno@clisp.org>
6460         crypto/gc: Access the module indicators correctly.
6461         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
6462         * lib/gc-libgcrypt.c: Likewise.
6464 2019-08-24  Bruno Haible  <bruno@clisp.org>
6466         crypto/gc: Fix configuration with --with-libgcrypt.
6467         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
6468         * modules/crypto/gc (Files): Add it.
6469         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
6471 2019-08-24  Bruno Haible  <bruno@clisp.org>
6473         Remove unused file.
6474         * m4/stat-macros.m4: Remove file.
6476 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
6478         New strip-trailing-space option for srclist-update
6479         * config/srclist-update (fixfile): Support new option.
6480         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
6481         Use it.
6483 2019-08-20  Eric Blake  <eblake@redhat.com>
6485         accept4: Support SOCK_NONBLOCK, if defined
6486         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
6488         accept4: Fix compilation when native accept4() exists.
6489         Reported by Richard W.M. Jones <rjones@redhat.com> in
6490         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
6491         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
6493 2019-08-18  Bruno Haible  <bruno@clisp.org>
6495         Defeat -flto GCC optimization in math autoconf tests.
6496         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
6497         at <https://savannah.gnu.org/bugs/?56109>.
6498         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
6499         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
6500         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6501         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6502         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6503         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
6504         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6505         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6506         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
6507         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6508         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6509         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6511 2019-08-17  Bruno Haible  <bruno@clisp.org>
6513         windows-spin: Implement declared functions.
6514         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6515         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
6516         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
6517         name.
6519 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6521         intprops: port to Oracle Developer Studio 12.6
6522         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
6523         typos that were in a section not compiled by GCC.
6525 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6527         intprops: support uchar, ushort _WRAPV dests
6528         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
6529         when __builtin_add_overflow etc. and _Generic are not used.
6530         (_GL_INT_OP_WRAPV): Use it to support destinations that
6531         are unsigned char or unsigned short, even in compilers
6532         that lack __typeof__ and are not C11-compatible.
6534         intprops: pacify picky GCC
6535         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
6536         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
6537         possibly-incorrect result.
6538         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
6539         about (A) used as a boolean, when A is an expression like 3 * 4.
6541         intprops: support unsigned *_WRAPV results
6542         Add support for unsigned, unsigned long, and unsigned long long
6543         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
6544         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
6545         bug with unsigned inputs reported by Eli Zaretskii in:
6546         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
6547         * config/srclist.txt: Break the glibc connection for intprops.h
6548         temporarily, while more testing is done in Gnulib-using apps.
6549         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
6550         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
6551         Support unsigned results no narrower than unsigned int.  Report
6552         overflow correctly if some arguments are unsigned.
6553         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
6554         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
6555         the right thing with narrow args.
6556         (_GL_INT_OP_CALC1): Remove.  All callers removed.
6557         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
6558         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
6559         * tests/test-intprops.c: Check for bugs and test new behavior.
6561 2019-08-14  Bruno Haible  <bruno@clisp.org>
6563         get_progname_of: New module.
6564         * lib/get_progname_of.h: New file.
6565         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
6566         * lib/getprogname.c (getprogname): Tweak coding style.
6567         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
6568         * modules/get_progname_of: New file.
6570 2019-08-14  Bruno Haible  <bruno@clisp.org>
6572         get_ppid_of: New module.
6573         * lib/get_ppid_of.h: New file.
6574         * lib/get_ppid_of.c: New file.
6575         * modules/get_ppid_of: New file.
6577 2019-08-13  Bruno Haible  <bruno@clisp.org>
6579         libtextstyle-optional tests: Support the NO_COLOR environment variable.
6580         * tests/test-libtextstyle.c (main): Do not emit styling when the
6581         environment variable NO_COLOR is set.
6583 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6585         verify: improve diagnostic quality in recent GCC
6586         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
6587         useful line number containing the top-level caller of the macro.
6588         So, bring back the older way of issuing a diagnostic containing
6589         the top-level call’s arg, so that it is easier to diagnose
6590         ‘verify’ failures with recent GCC.
6591         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
6592         Bring back DIAGNOSTIC arg.  All callers changed.
6593         (verify): Just use _GL_VERIFY.
6595 2019-08-11  Bruno Haible  <bruno@clisp.org>
6597         localcharset: Add more aliases for OS/2.
6598         Based on patch by KO Myung-Hun <komh78@gmail.com> in
6599         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
6600         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
6602 2019-08-10  Eric Blake  <eblake@redhat.com>
6604         configmake: Update advice on usage.
6605         * modules/configmake (Include): No longer necessary to include
6606         last, since configmake.h itself worries about collision avoidance.
6608 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
6610         parse-datetime: fix 'T' military timezone handling
6611         * lib/parse-datetime.y (zone):
6612         follow-up to the previous commit: the 'T' case is handled outside the
6613         conversion table (used as either military timezone UTC-7 or ISO8601
6614         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
6615         timezone letters.
6617 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6619         parse-datetime: fix military timezone letters
6620         Problem and trivial fix reported by Neil Hoggarth in:
6621         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
6622         * lib/parse-datetime.y (military_table):
6623         Do it the right way, not the RFC 822 way.
6625 2019-08-08  Eric Blake  <eblake@redhat.com>
6627         configmake: Avoid namespace pollution issue on mingw.
6628         * modules/configmake (Makefile.am): If the project uses
6629         <winsock2.h>, include that header before defining DATADIR.
6631 2019-07-28  Bruno Haible  <bruno@clisp.org>
6633         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
6634         * tests/test-mbrtowc.c (main): Fix expected value of wc.
6636 2019-07-24  Bruno Haible  <bruno@clisp.org>
6638         pthread-h: Fix definitions of types and macros on mingw.
6639         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
6640         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
6641         not in use.
6642         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
6643         'pthread-once' is not in use.
6644         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
6645         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
6646         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
6647         in use.
6648         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
6649         Define also when module 'pthread-rwlock' is not in use.
6650         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
6651         also when module 'pthread-cond' is not in use.
6652         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
6653         'pthread-tss' is not in use.
6654         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
6655         use.
6657 2019-07-24  Simon Josefsson  <simon@josefsson.org>
6659         crypto/gc: Cope with libgcrypt without SM3.
6660         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
6662 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
6664         backupfile: fix resource leak on memory failure
6665         Problem found by Coverity (CID 1484214).
6666         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
6668 2019-07-22  Bruno Haible  <bruno@clisp.org>
6670         Avoid missing-declarations warning in various tests.
6671         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
6672         test6, test_optional, test7, test8, test9, test10, test11, test12,
6673         test13, test14, test15, test_fun): Declare static.
6674         * tests/test-cnd.c (test_cnd_wait): Likewise.
6675         * tests/test-cond.c (test_cond): Likewise.
6677 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6679         pthread tests: Avoid missing-declarations warning.
6680         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
6682 2019-07-19  Bruno Haible  <bruno@clisp.org>
6684         parse-datetime: Avoid warnings from bison versions >= 3.3.
6685         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
6686         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
6688 2019-07-19  Bruno Haible  <bruno@clisp.org>
6690         parse-datetime: Require Bison 2.4 or newer.
6691         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
6692         Code taken from gettext's intl.m4.
6693         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
6694         of YACC.
6696 2019-07-19  Bruno Haible  <bruno@clisp.org>
6698         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
6699         * lib/areadlink-with-size.c: Include <string.h>.
6700         * lib/areadlinkat-with-size.c: Likewise.
6701         * lib/xgethostname.c: Likewise.
6702         * lib/xgetdomainname.c: Likewise.
6704 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
6706         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
6707         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
6708         "%pure-parser".  The former is available since Bison 2.3b (2008),
6709         while the latter is marked as obsolete since version 3.4 (May 2019).
6711 2019-07-16  Bruno Haible  <bruno@clisp.org>
6713         update-copyright: Make it work again (regression from 2019-06-15).
6714         Reported by Brian C. Lane <bcl@redhat.com>.
6715         * build-aux/update-copyright: Add back the -0777, -p, -i options.
6717 2019-07-14  Bruno Haible  <bruno@clisp.org>
6719         doc: Update info about <pthread.h>.
6720         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
6721         of 'pthread'.
6723 2019-07-14  Bruno Haible  <bruno@clisp.org>
6725         pthread_sigmask tests: Use new multithread modules.
6726         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
6727         glthread/thread.h.
6728         (main_thread, killer_thread): Change type to pthread_t.
6729         (main): Update accordingly.
6730         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
6731         thread.
6733 2019-07-14  Bruno Haible  <bruno@clisp.org>
6735         pthread-tss: Add tests.
6736         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
6737         tests/test-tss.c.
6738         * modules/pthread-tss-tests: New file.
6740 2019-07-14  Bruno Haible  <bruno@clisp.org>
6742         pthread-cond: Add tests.
6743         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
6744         tests/test-cnd.c.
6745         * modules/pthread-cond-tests: New file.
6747 2019-07-14  Bruno Haible  <bruno@clisp.org>
6749         pthread-rwlock: Add tests.
6750         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
6751         * modules/pthread-rwlock-tests: New file.
6753 2019-07-14  Bruno Haible  <bruno@clisp.org>
6755         pthread-mutex: Add tests.
6756         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
6757         tests/test-mtx.c.
6758         * modules/pthread-mutex-tests: New file.
6760 2019-07-14  Bruno Haible  <bruno@clisp.org>
6762         pthread-once: Add tests.
6763         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
6764         tests/test-call_once.c.
6765         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
6766         tests/test-mtx.c.
6767         * modules/pthread-once-tests: New file.
6769 2019-07-14  Bruno Haible  <bruno@clisp.org>
6771         pthread-thread: Add tests.
6772         * tests/test-pthread-thread.c: New file, based on
6773         tests/test-thread_create.c and tests/test-thrd_create.c.
6774         * modules/pthread-thread-tests: New file.
6776 2019-07-14  Bruno Haible  <bruno@clisp.org>
6778         pthread: Turn into a convenience module.
6779         * lib/pthread.in.h: Remove declarations for extern inline functions.
6780         * lib/pthread.c: Remove file.
6781         * modules/pthread (Files): Remove it.
6782         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
6783         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
6784         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
6785         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
6786         GNULIB_PTHREAD.
6787         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
6789 2019-07-14  Bruno Haible  <bruno@clisp.org>
6791         pthread-spin: New module.
6792         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
6793         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
6794         inline definitions.
6795         * lib/pthread-spin.c: New file.
6796         * m4/pthread-spin.m4: New file.
6797         * modules/pthread-spin: New file.
6798         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
6799         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
6800         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
6801         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
6802         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
6804 2019-07-14  Bruno Haible  <bruno@clisp.org>
6806         pthread-tss: New module.
6807         * lib/pthread-tss.c: New file.
6808         * m4/pthread-tss.m4: New file.
6809         * modules/pthread-tss: New file.
6810         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
6811         * doc/posix-functions/pthread_setspecific.texi: Likewise.
6812         * doc/posix-functions/pthread_getspecific.texi: Likewise.
6813         * doc/posix-functions/pthread_key_delete.texi: Likewise.
6815 2019-07-14  Bruno Haible  <bruno@clisp.org>
6817         pthread-cond: New module.
6818         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
6819         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
6820         * lib/pthread-cond.c: New file.
6821         * m4/pthread-cond.m4: New file.
6822         * modules/pthread-cond: New file.
6823         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
6824         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
6825         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
6826         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
6827         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
6828         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
6829         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
6830         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
6832 2019-07-14  Bruno Haible  <bruno@clisp.org>
6834         pthread-rwlock: New module.
6835         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
6836         * m4/pthread-rwlock.m4: New file.
6837         * modules/pthread-rwlock: New file.
6838         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
6839         and the Android problem.
6840         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
6841         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
6842         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
6843         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
6844         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
6845         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
6846         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
6847         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
6848         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
6849         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
6851 2019-07-14  Bruno Haible  <bruno@clisp.org>
6853         pthread-mutex: New module.
6854         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
6855         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
6856         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
6857         pthread_mutex_unlock): Remove inline definitions.
6858         * lib/pthread-mutex.c: New file.
6859         * m4/pthread-mutex.m4: New file.
6860         * modules/pthread-mutex: New file.
6861         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
6862         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
6863         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
6864         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
6865         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6866         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6867         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
6868         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
6869         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
6870         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
6871         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
6872         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
6874 2019-07-14  Bruno Haible  <bruno@clisp.org>
6876         pthread-once: New module.
6877         * lib/pthread-once.c: New file.
6878         * m4/pthread-once.m4: New file.
6879         * modules/pthread-once: New file.
6880         * doc/posix-functions/pthread_once.texi: Mention the new module.
6882 2019-07-14  Bruno Haible  <bruno@clisp.org>
6884         pthread-thread: New module.
6885         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
6886         inline definitions.
6887         * lib/pthread-thread.c: New file.
6888         * m4/pthread-thread.m4: New file.
6889         * modules/pthread-thread: New file.
6890         * doc/posix-functions/pthread_create.texi: Mention the new module.
6891         * doc/posix-functions/pthread_attr_init.texi: Likewise.
6892         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
6893         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
6894         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
6895         * doc/posix-functions/pthread_self.texi: Likewise.
6896         * doc/posix-functions/pthread_equal.texi: Likewise.
6897         * doc/posix-functions/pthread_detach.texi: Likewise.
6898         * doc/posix-functions/pthread_join.texi: Likewise.
6899         * doc/posix-functions/pthread_exit.texi: Likewise.
6901 2019-07-14  Bruno Haible  <bruno@clisp.org>
6903         pthread-h: Prepare for adding new modules.
6904         * lib/pthread.in.h: Define the types and macros for each of the
6905         facilities separately.
6906         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
6907         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
6908         HAVE_PTHREAD_PROCESS_SHARED.
6909         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
6910         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
6911         HAVE_PTHREAD_PROCESS_SHARED.
6912         * modules/pthread-h (Makefile.am): Substitute
6913         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
6914         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
6916 2019-07-14  Bruno Haible  <bruno@clisp.org>
6918         pthread-h: Add declarations of essential pthread functions.
6919         * lib/pthread.in.h: Include snippets.
6920         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
6921         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
6922         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
6923         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
6924         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
6925         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
6926         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
6927         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
6928         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
6929         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
6930         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
6931         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
6932         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
6933         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
6934         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
6935         pthread_key_create, pthread_setspecific, pthread_getspecific,
6936         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
6937         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
6938         declarations.
6939         (pthread_mutex_timedlock): Move declaration.
6940         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
6941         declared.
6942         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
6943         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
6944         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
6945         HAVE_* and REPLACE_* variables for the new functions.
6946         * modules/pthread-h (Depends-on): Add snippet/c++defs,
6947         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
6948         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
6949         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
6950         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
6951         variables for the new functions. Split the sed script, to avoid the
6952         limit of 99 commands of HP-UX sed.
6953         * tests/test-pthread-c++.cc: Check the signature of the new functions.
6955 2019-07-14  Bruno Haible  <bruno@clisp.org>
6957         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
6958         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
6959         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
6960         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
6961         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
6962         * modules/pthread-h (Depends-on): Add threadlib.
6963         (Link): Change to $(LIBTHREAD).
6964         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
6965         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
6967 2019-07-14  Bruno Haible  <bruno@clisp.org>
6969         pthread-h: Add C++ tests.
6970         * tests/test-pthread-c++.cc: New file.
6971         * modules/pthread-h-c++-tests: New file.
6973 2019-07-14  Bruno Haible  <bruno@clisp.org>
6975         pthread-h: Add tests.
6976         * tests/test-pthread.c: New file.
6977         * modules/pthread-h-tests: New file.
6979 2019-07-14  Bruno Haible  <bruno@clisp.org>
6981         pthread-h: New module.
6982         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
6983         is 1.
6984         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
6985         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
6986         <pthread.h> pollutes the namespace; instead, prepare for generating a
6987         pthread.h always. Substitute HAVE_PTHREAD_H here.
6988         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
6989         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
6990         * modules/pthread-h: New file, based on modules/pthread.
6991         * modules/pthread: Rely on 'pthread-h'.
6992         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
6993         Update.
6994         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
6995         pthread.
6997 2019-07-14  Bruno Haible  <bruno@clisp.org>
6999         sched_yield: New module.
7000         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
7001         (sched_yield): New declaration.
7002         * lib/sched_yield.c: New file.
7003         * m4/sched_yield.m4: New file.
7004         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
7005         provide a replacement sched.h always. Test whether sched_yield is
7006         declared.
7007         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
7008         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
7009         (Makefile.am): Provide a replacement sched.h always. Substitute
7010         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
7011         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
7012         * modules/sched_yield: New file.
7013         * doc/posix-functions/sched_yield.texi: Mention the new module.
7015 2019-07-14  Bruno Haible  <bruno@clisp.org>
7017         windows-spin: New module.
7018         * lib/windows-spin.h: New file.
7019         * lib/windows-spin.c: New file.
7020         * modules/windows-spin: New file.
7022 2019-07-14  Bruno Haible  <bruno@clisp.org>
7024         windows-timedrwlock: New module.
7025         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
7026         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
7027         windows-cond.c.
7028         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
7029         redefinition conflict with windows-timedrwlock.h.
7030         * modules/windows-timedrwlock: New file.
7032 2019-07-14  Bruno Haible  <bruno@clisp.org>
7034         windows-rwlock: New module.
7035         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
7036         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
7037         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
7038         windows-initguard.h.
7039         (gl_rwlock_t): Define using glwthread_rwlock_t.
7040         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
7041         (glthread_rwlock_init): Define using glwthread_rwlock_init.
7042         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
7043         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
7044         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
7045         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
7046         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
7047         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
7048         glthread_rwlock_destroy_func): Remove declarations.
7049         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
7050         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
7051         gl_waitqueue_notify_all, glthread_rwlock_init_func,
7052         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
7053         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
7054         functions.
7055         * modules/windows-rwlock: New file.
7056         * modules/lock (Depends-on): Add windows-rwlock.
7058 2019-07-14  Bruno Haible  <bruno@clisp.org>
7060         windows-thread: Add support for creating a thread in detached state.
7061         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
7062         (glwthread_thread_create): Add attr argument.
7063         * lib/windows-thread.c (glwthread_thread_create): Likewise.
7064         * lib/glthread/thread.h (glthread_create): Update.
7065         * lib/thrd.c (thrd_create): Update.
7067 2019-07-14  Bruno Haible  <bruno@clisp.org>
7069         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
7070         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
7071         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
7072         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
7073         * lib/windows-mutex.h: Update.
7074         * lib/windows-recmutex.h: Likewise.
7075         * lib/windows-timedmutex.h: Likewise.
7076         * lib/windows-timedrecmutex.h: Likewise.
7077         * lib/windows-cond.h: Likewise.
7078         * lib/glthread/lock.h: Likewise.
7079         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
7080         lib/windows-spinlock.h.
7081         * modules/windows-recmutex (Files): Likewise.
7082         * modules/windows-timedmutex (Files): Likewise.
7083         * modules/windows-timedrecmutex (Files): Likewise.
7084         * modules/windows-cond (Files): Likewise.
7085         * modules/threads-h (Files): Likewise.
7087 2019-07-14  Bruno Haible  <bruno@clisp.org>
7089         doc: Fix info about pthread API in HP-UX.
7090         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
7092 2019-07-14  Bruno Haible  <bruno@clisp.org>
7094         threads-h: Fix generation of threads.h.
7095         * modules/threads-h (Makefile.am): Insert the required header file
7096         snippets.
7098 2019-07-09  Bruno Haible  <bruno@clisp.org>
7100         striconveh test: Fix a compilation failure when iconv is not available.
7101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7102         * tests/test-striconveh.c (main): Move iconv_close invocations inside
7103         HAVE_ICONV.
7105 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
7107         argmatch: adjust columns for help2man.
7108         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
7109         requires column 20 or more, return 20.
7111 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7113         areadlink-with-size: avoid realloc when size==0
7114         * lib/areadlink-with-size.c (areadlink_with_size):
7115         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
7116         Reallocate at the end to the actual size, to avoid memory waste,
7117         as suggested by Bruno Haible.  But when the guessed size is zero -
7118         useful when the size is unknown - do the initial small readlink
7119         into the stack, to avoid that realloc in the usual case.
7121 2019-07-06  Pádraig Brady  <P@draigBrady.com>
7123         areadlink-with-size: guess a buffer size with 0 size
7124         The size is usually taken from st_size, which can be zero,
7125         resulting in inefficient operation.
7126         Instead let zero select an initial memory allocation
7127         of 128 bytes, which most symlinks fit within.
7128         * lib/areadlink-with-size.c (areadlink_with_size):
7129         Start with a 128 byte buffer, for SIZE == 0.
7130         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
7132 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
7134         Replace manually crafted hex regexes with [:xdigit:]
7135         * build-aux/gitlog-to-changelog (parse_amend_file)
7136         (git_dir_option):
7137         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
7138         This patch is backported from Emacs (Bug#36167).
7140 2019-07-06  Bruno Haible  <bruno@clisp.org>
7142         error: Fix documentation.
7143         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
7144         module provides.
7145         * doc/glibc-functions/error_message_count.texi: Likewise.
7146         * doc/glibc-functions/error_one_per_line.texi: Likewise.
7147         * doc/glibc-functions/error_print_progname.texi: Likewise.
7149 2019-07-06  Bruno Haible  <bruno@clisp.org>
7151         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
7152         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
7153         and older is unsupported.
7154         * doc/**/*.texi: Update.
7156 2019-07-06  Bruno Haible  <bruno@clisp.org>
7158         doc: Remove documentation of Linux libc5 as a supported platform.
7159         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
7160         to Linux libc5.
7161         * doc/posix-functions/iswalpha.texi: Likewise.
7162         * doc/posix-functions/iswblank.texi: Likewise.
7163         * doc/posix-functions/iswcntrl.texi: Likewise.
7164         * doc/posix-functions/iswdigit.texi: Likewise.
7165         * doc/posix-functions/iswgraph.texi: Likewise.
7166         * doc/posix-functions/iswlower.texi: Likewise.
7167         * doc/posix-functions/iswprint.texi: Likewise.
7168         * doc/posix-functions/iswpunct.texi: Likewise.
7169         * doc/posix-functions/iswspace.texi: Likewise.
7170         * doc/posix-functions/iswupper.texi: Likewise.
7171         * doc/posix-functions/iswxdigit.texi: Likewise.
7172         * doc/posix-functions/snprintf.texi: Likewise.
7173         * doc/posix-functions/vsnprintf.texi: Likewise.
7175 2019-07-06  Bruno Haible  <bruno@clisp.org>
7177         doc: Remove documentation of Tandem/NSK as a supported platform.
7178         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
7179         Tandem/NSK.
7180         * doc/**/*.texi: Update.
7182 2019-07-06  Bruno Haible  <bruno@clisp.org>
7184         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
7185         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
7186         and older is unsupported.
7187         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
7188         Mac OS X 10.4 and older.
7189         * doc/posix-functions/asinl.texi: Likewise.
7190         * doc/posix-functions/atanl.texi: Likewise.
7191         * doc/posix-functions/cosl.texi: Likewise.
7192         * doc/posix-functions/expl.texi: Likewise.
7193         * doc/posix-functions/frexpl.texi: Likewise.
7194         * doc/posix-functions/gettimeofday.texi: Likewise.
7195         * doc/posix-functions/logl.texi: Likewise.
7196         * doc/posix-functions/mkstemp.texi: Likewise.
7197         * doc/posix-functions/sinl.texi: Likewise.
7198         * doc/posix-functions/sqrtl.texi: Likewise.
7199         * doc/posix-functions/tanl.texi: Likewise.
7200         * doc/posix-functions/wcswidth.texi: Likewise.
7201         * doc/**/*.texi: Update.
7203 2019-07-06  Bruno Haible  <bruno@clisp.org>
7205         doc: Remove documentation of AIX 4 as a supported platform.
7206         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
7207         unsupported.
7208         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
7209         workarounds.
7210         * doc/posix-functions/strnlen.texi: Likewise.
7211         * doc/posix-headers/inttypes.texi: Likewise.
7212         * doc/**/*.texi: Update.
7214 2019-07-06  Bruno Haible  <bruno@clisp.org>
7216         doc: Remove documentation of HP-UX 10 as a supported platform.
7217         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
7218         unsupported.
7219         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
7220         workarounds.
7221         * doc/posix-functions/gmtime_r.texi: Likewise.
7222         * doc/posix-functions/localtime_r.texi: Likewise.
7223         * doc/posix-functions/mkstemp.texi: Likewise.
7224         * doc/**/*.texi: Update.
7226 2019-07-06  Bruno Haible  <bruno@clisp.org>
7228         doc: Remove documentation of Interix 3.5 as a supported platform.
7229         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
7230         unsupported.
7231         * doc/posix-functions/select.texi: Don't mention Interix specific
7232         workarounds.
7233         * doc/posix-headers/signal.texi: Likewise.
7234         * doc/**/*.texi: Update.
7236 2019-07-06  Bruno Haible  <bruno@clisp.org>
7238         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
7239         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
7240         unsupported.
7241         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
7242         workarounds.
7243         * doc/posix-functions/nl_langinfo.texi: Likewise.
7244         * doc/posix-functions/remainder.texi: Likewise.
7245         * doc/posix-functions/towlower.texi: Likewise.
7246         * doc/posix-functions/towupper.texi: Likewise.
7247         * doc/posix-functions/vsnprintf.texi: Likewise.
7248         * doc/posix-functions/wcscat.texi: Likewise.
7249         * doc/posix-functions/wcschr.texi: Likewise.
7250         * doc/posix-functions/wcscmp.texi: Likewise.
7251         * doc/posix-functions/wcscpy.texi: Likewise.
7252         * doc/posix-functions/wcscspn.texi: Likewise.
7253         * doc/posix-functions/wcslen.texi: Likewise.
7254         * doc/posix-functions/wcsncat.texi: Likewise.
7255         * doc/posix-functions/wcsncmp.texi: Likewise.
7256         * doc/posix-functions/wcsncpy.texi: Likewise.
7257         * doc/posix-functions/wcspbrk.texi: Likewise.
7258         * doc/posix-functions/wcsrchr.texi: Likewise.
7259         * doc/posix-functions/wcsspn.texi: Likewise.
7260         * doc/posix-headers/langinfo.texi: Likewise.
7261         * doc/posix-headers/signal.texi: Likewise.
7262         * doc/posix-headers/wchar.texi: Likewise.
7263         * doc/posix-headers/wctype.texi: Likewise.
7264         * doc/**/*.texi: Update.
7266 2019-07-05  Bruno Haible  <bruno@clisp.org>
7268         doc: Remove documentation of OSF/1 as supported platform.
7269         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
7270         unsupported.
7271         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
7272         workarounds.
7273         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
7274         * doc/glibc-functions/ptsname_r.texi: Likewise.
7275         * doc/posix-functions/ceil.texi: Likewise.
7276         * doc/posix-functions/ceilf.texi: Likewise.
7277         * doc/posix-functions/ceill.texi: Likewise.
7278         * doc/posix-functions/fchdir.texi: Likewise.
7279         * doc/posix-functions/floor.texi: Likewise.
7280         * doc/posix-functions/floorf.texi: Likewise.
7281         * doc/posix-functions/fmod.texi: Likewise.
7282         * doc/posix-functions/fmodf.texi: Likewise.
7283         * doc/posix-functions/fmodl.texi: Likewise.
7284         * doc/posix-functions/log.texi: Likewise.
7285         * doc/posix-functions/logf.texi: Likewise.
7286         * doc/posix-functions/logl.texi: Likewise.
7287         * doc/posix-functions/log10.texi: Likewise.
7288         * doc/posix-functions/log10f.texi: Likewise.
7289         * doc/posix-functions/log10l.texi: Likewise.
7290         * doc/posix-functions/log2.texi: Likewise.
7291         * doc/posix-functions/log2f.texi: Likewise.
7292         * doc/posix-functions/log2l.texi: Likewise.
7293         * doc/posix-functions/mbrtowc.texi: Likewise.
7294         * doc/posix-functions/recv.texi: Likewise.
7295         * doc/posix-functions/recvfrom.texi: Likewise.
7296         * doc/posix-functions/remainder.texi: Likewise.
7297         * doc/posix-functions/remainderf.texi: Likewise.
7298         * doc/posix-functions/remainderl.texi: Likewise.
7299         * doc/posix-functions/round.texi: Likewise.
7300         * doc/posix-functions/roundf.texi: Likewise.
7301         * doc/posix-functions/roundl.texi: Likewise.
7302         * doc/posix-functions/send.texi: Likewise.
7303         * doc/posix-functions/sendto.texi: Likewise.
7304         * doc/posix-functions/setenv.texi: Likewise.
7305         * doc/posix-functions/snprintf.texi: Likewise.
7306         * doc/posix-functions/tcgetsid.texi: Likewise.
7307         * doc/posix-functions/trunc.texi: Likewise.
7308         * doc/posix-functions/truncf.texi: Likewise.
7309         * doc/posix-functions/truncl.texi: Likewise.
7310         * doc/posix-functions/ttyname_r.texi: Likewise.
7311         * doc/posix-functions/unsetenv.texi: Likewise.
7312         * doc/posix-functions/wcsrtombs.texi: Likewise.
7313         * doc/posix-headers/sys_select.texi: Likewise.
7314         * doc/posix-headers/wchar.texi: Likewise.
7315         * doc/posix-headers/wctype.texi: Likewise.
7316         * doc/**/*.texi: Update.
7318 2019-07-05  Bruno Haible  <bruno@clisp.org>
7320         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
7321         * doc/**/*.texi: Update.
7323 2019-07-05  Bruno Haible  <bruno@clisp.org>
7325         doc: Remove documentation of Solaris 8 and older as supported platforms.
7326         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
7327         unsupported.
7328         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
7329         workarounds.
7330         * doc/posix-functions/memcmp.texi: Likewise.
7331         * doc/posix-functions/rename.texi: Likewise.
7332         * doc/posix-functions/tzset.texi: Likewise.
7333         * doc/posix-headers/wctype.texi: Likewise.
7334         * doc/**/*.texi: Update.
7336 2019-07-05  Bruno Haible  <bruno@clisp.org>
7338         doc: Remove documentation of Interix 3.5 as a supported platform.
7339         * doc/**/*.texi: Update.
7341 2019-07-05  Bruno Haible  <bruno@clisp.org>
7343         doc: Remove documentation of BeOS as a supported platform.
7344         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
7345         unsupported.
7346         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
7347         * doc/posix-functions/getdelim.texi: Likewise.
7348         * doc/**/*.texi: Update.
7350 2019-07-05  Bruno Haible  <bruno@clisp.org>
7352         thread, lock, cond, tls: Remove support for Pth threads.
7353         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
7354         --enable-threads=pth any more.
7355         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
7356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
7357         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
7358         threads and ISO C11 threads.
7359         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
7360         * lib/glthread/lock.h: Likewise.
7361         * lib/glthread/lock.c: Likewise.
7362         * lib/glthread/cond.h: Likewise.
7363         * lib/glthread/cond.c: Likewise.
7364         * lib/glthread/tls.h: Likewise.
7365         * lib/glthread/tls.c: Likewise.
7366         * lib/glthread/yield.h: Likewise.
7367         * lib/regex_internal.h: Likewise.
7368         * tests/test-thread_create.c: Likewise.
7369         * tests/test-lock.c: Likewise.
7370         * tests/test-cond.c: Likewise.
7371         * tests/test-tls.c: Likewise.
7372         * tests/test-rwlock1.c: Don't include glthread/yield.h.
7373         (main): Sleep without calling gl_thread_yield.
7375 2019-07-05  Bruno Haible  <bruno@clisp.org>
7377         thread, lock, cond, tls: Remove support for old Solaris threads.
7378         Solaris >= 2.5.1 has POSIX threads.
7379         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
7380         --enable-threads=solaris any more.
7381         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
7382         * lib/glthread/thread.c: Update comment.
7383         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
7384         * lib/glthread/lock.h: Likewise.
7385         * lib/glthread/lock.c: Likewise.
7386         * lib/glthread/cond.h: Likewise.
7387         * lib/glthread/cond.c: Likewise.
7388         * lib/glthread/tls.h: Likewise.
7389         * lib/glthread/tls.c: Likewise.
7390         * lib/glthread/yield.h: Likewise.
7391         * lib/regex_internal.h: Likewise.
7392         * tests/test-thread_create.c: Likewise.
7393         * tests/test-lock.c: Likewise.
7394         * tests/test-cond.c: Likewise.
7395         * tests/test-tls.c: Likewise.
7397 2019-07-05  Bruno Haible  <bruno@clisp.org>
7399         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
7400         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
7401         needed size is equal to the allocated size.
7402         * lib/getcwd.c (__getcwd): Likewise.
7404 2019-07-05  Bruno Haible  <bruno@clisp.org>
7406         xgetdomainname: Don't return an excessive memory allocation.
7407         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
7408         before returning it.
7410 2019-07-05  Bruno Haible  <bruno@clisp.org>
7412         xgethostname: Don't return an excessive memory allocation.
7413         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
7414         returning it.
7416 2019-07-05  Bruno Haible  <bruno@clisp.org>
7418         areadlinkat-with-size: Don't return an excessive memory allocation.
7419         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
7420         before returning it.
7422 2019-07-05  Bruno Haible  <bruno@clisp.org>
7424         areadlink-with-size: Don't return an excessive memory allocation.
7425         Reported by Andreas Dilger <adilger@whamcloud.com>.
7426         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
7427         before returning it.
7429 2019-07-03  Bruno Haible  <bruno@clisp.org>
7431         renameatu: Fix test failure on MSVC.
7432         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
7433         empty string.
7435 2019-07-03  Bruno Haible  <bruno@clisp.org>
7437         mbrtowc: Fix invalid use of mbtowc() on MSVC.
7438         * lib/mbrtowc.c: Include glthread/lock.h.
7439         (mbtowc_lock): New variable.
7440         (mbrtowc): Treat UTF-8 encoding without locking. For the other
7441         encodings, explicitly reset the internal state of mbtowc, and protect
7442         this through a lock.
7443         * modules/mbrtowc (Depends-on): Add lock.
7445 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
7447         argmatch: don't define _ in the header.
7448         Reported by Jim Meyering.
7449         * lib/argmatch.h (N_, _): Don't define.
7450         Use gettext instead.
7451         * lib/argmatch.h (_): Define.
7452         * tests/test-argmatch.c (N_): Define.
7454 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7456         verify: document ‘assume’ better
7457         * lib/verify.h: Reword doc (Bug#36370).
7459 2019-07-02  Bruno Haible  <bruno@clisp.org>
7461         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
7462         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
7463         "CPutf8".
7464         * lib/nl_langinfo.c (ctype_codeset): Likewise.
7466 2019-07-02  Bruno Haible  <bruno@clisp.org>
7468         getcwd: Fix crash when invoked with size = 0 on MSVC.
7469         * lib/getcwd.c: Include msvc-inval.h.
7470         (getcwd_nothrow): New function/macro.
7471         (getcwd_system): New macro.
7472         (__getcwd): Use it instead of getcwd.
7473         * modules/getcwd (Depends-on): Add msvc-inval.
7474         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
7476 2019-07-02  Bruno Haible  <bruno@clisp.org>
7478         nonblocking-pipe tests: Fix test failure on MSVC.
7479         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
7480         native Windows.
7482 2019-07-02  Bruno Haible  <bruno@clisp.org>
7484         usleep: Implement with millisecond resolution on native Windows.
7485         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
7486         * doc/pastposix-functions/usleep.texi: Update accordingly.
7488 2019-07-02  Bruno Haible  <bruno@clisp.org>
7490         lstat tests: Fix test failure on MSVC.
7491         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
7492         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
7494 2019-07-02  Bruno Haible  <bruno@clisp.org>
7496         stat tests: Fix test failure on MSVC.
7497         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
7498         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
7500 2019-07-02  Bruno Haible  <bruno@clisp.org>
7502         getaddrinfo tests: Fix test failure on MSVC.
7503         * tests/test-getaddrinfo.c: Include sockets.h.
7504         (main): Invoke gl_sockets_startup.
7505         * modules/getaddrinfo-tests (Depends-on): Add sockets.
7507 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
7509         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
7510         * lib/poll.c: Call Windows native select() with Windows native timeval.
7512 2019-06-30  Bruno Haible  <bruno@clisp.org>
7514         argmatch: Fix compilation errors.
7515         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
7516         * tests/test-argmatch.c (main): Update after last-minute function names
7517         change.
7519 2019-06-30  Bruno Haible  <bruno@clisp.org>
7521         Include <stdlib.h> when needed.
7522         * lib/cnd.c: Include <stdlib.h>, needed for abort().
7523         * lib/fcntl.c: Likewise.
7524         * lib/mbscasestr.c: Likewise.
7525         * lib/mbssep.c: Likewise.
7526         * lib/mbsstr.c: Likewise.
7527         * lib/openat.c: Include <stdlib.h>, needed for free().
7528         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
7529         abort().
7531 2019-06-30  Bruno Haible  <bruno@clisp.org>
7533         Include <stdlib.h> when needed.
7534         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
7535         * lib/faccessat.c: Likewise.
7536         * lib/fchmodat.c: Likewise.
7537         * lib/fchownat.c: Likewise.
7538         * lib/fstatat.c: Likewise.
7539         * lib/mkfifoat.c: Likewise.
7540         * lib/mknodat.c: Likewise.
7541         * lib/readlinkat.c: Likewise.
7542         * lib/symlinkat.c: Likewise.
7543         * lib/utimensat.c: Likewise.
7544         * lib/mkdirat.c: Likewise. Include also the specification header.
7546 2019-06-30  Bruno Haible  <bruno@clisp.org>
7548         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
7549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
7550         from gl_PREREQ_SYS_H_SOCKET.
7551         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
7552         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
7553         gl_PREREQ_SYS_H_WS2TCPIP.
7554         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
7555         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
7556         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
7558 2019-06-30  Bruno Haible  <bruno@clisp.org>
7560         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
7561         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
7562         REPLACE_INET_NTOP to 1 always.
7563         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
7564         REPLACE_INET_PTON to 1 always.
7566 2019-06-30  Bruno Haible  <bruno@clisp.org>
7568         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
7569         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
7570         not REPLACE_INET_NTOP.
7572 2019-06-30  Bruno Haible  <bruno@clisp.org>
7574         poll: Add comment.
7575         * lib/poll.c: Add comment about WSAPoll.
7577 2019-06-30  Bruno Haible  <bruno@clisp.org>
7579         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
7580         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
7581         * lib/poll.in.h: Include <winsock2.h>.
7582         (POLL*, pollfd): Override on native Windows.
7583         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7584         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
7585         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7587 2019-06-28  Bruno Haible  <bruno@clisp.org>
7589         accept4: Fix compilation error on OpenIndiana.
7590         Reported by Michal Nowak <mnowak@startmail.com>
7591         via Mark H Weaver <mhw@netris.org>.
7592         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
7593         whether it exists as a function.
7595 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7597         strverscmp: sync from glibc
7598         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
7599         comments, include libc-config.h, define __strverscmp to be
7600         strverscmp, and don’t assume types line uint8_t and int8_t that
7601         that C99 doesn’t guarantee.
7602         [!_LIBC]: Include libc-config.h; define __strverscmp.
7603         Include stdint.h.
7604         (__strverscmp): Assume C99.  Use uint_least8_t
7605         and int_least8_t instead of unsigned char and signed char.
7606         * modules/strverscmp (Depends-on): Add libc-config, stdint.
7608 2019-06-25  Bruno Haible  <bruno@clisp.org>
7610         tss tests: Add tests for destructors and races.
7611         * tests/test-tss.c (worker_thread): Fix typo in debug message.
7612         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
7613         functions.
7614         (main): Invoke them.
7615         * modules/tls-tests (Depends-on): Add mtx.
7617 2019-06-25  Bruno Haible  <bruno@clisp.org>
7619         tls tests: Add tests for destructors and races.
7620         * tests/test-tls.c: Include glthread/lock.h.
7621         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
7622         functions.
7623         (main): Invoke them.
7624         * modules/tls-tests (Depends-on): Add lock.
7626 2019-06-25  Bruno Haible  <bruno@clisp.org>
7628         windows-tls: Implement TLS key destructors for native Windows.
7629         * lib/windows-tls.h (glwthread_tls_process_destructors): New
7630         declaration.
7631         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
7632         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
7633         (dtor_table_init_once, dtor_table_lock: New variables.
7634         (struct dtor): New type.
7635         (dtor_table, dtors_count, dtors_used, dtors_allocated,
7636         dtor_processing_threads): New variables.
7637         (dtor_table_initialize, dtor_table_ensure_initialized,
7638         dtor_table_shrink_used, glwthread_tls_process_destructors): New
7639         functions.
7640         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
7641         handle non-NULL destructors.
7642         * modules/windows-tls (Depends-on): Add windows-once.
7643         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
7644         Use the functions declared in windows-tls.h.
7645         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
7646         GLWTHREAD_DESTRUCTOR_ITERATIONS.
7647         * lib/windows-thread.c: Include windows-tls.h.
7648         (wrapper_func, glwthread_thread_exit): Invoke
7649         glwthread_tls_process_destructors.
7650         * modules/windows-thread (Depends-on): Add windows-tls.
7652 2019-06-25  Bruno Haible  <bruno@clisp.org>
7654         threadlib: Avoid autoconf warning "was expanded before it was required".
7655         * modules/threadlib (configure.ac): Require gl_THREADLIB.
7657 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
7659         argmatch: remove duplicate const qualifier
7660         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
7662 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7664         unistd: stddef.h and sys/types.h namespace cleanup
7665         * lib/unistd.in.h [__GLIBC__]:
7666         Do not include stddef.h or sys/types.h.
7667         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
7668         supposed to declare off_t and ssize_t.  Problem found when looking
7669         at why @GNULIB_PWRITE@ was different from the newly-added
7670         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
7672 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
7674         maintainer-makefile: restore portability to non-GNU awks
7675         Reported by Tim Rühsen.
7676         * top/maint.mk (AWK): New variable.  Use it.
7677         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
7679 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7681         Document setvbuf _IOLBF problem
7682         * doc/posix-functions/setvbuf.texi (setvbuf):
7683         Document MS-Windows portability problem with _IOLBF.
7685         Document lseek SEEK_DATA/SEEK_HOLE
7686         * doc/posix-functions/lseek.texi (lseek):
7687         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
7689 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
7691         argmatch: put all the docs member last.
7692         Reported by Bruno Haible.
7693         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
7694         member before the docs done.
7695         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
7697 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
7699         argmatch: add support to generate the usage message.
7700         * lib/argmatch.c: Move some #includes and gettext support to...
7701         * lib/argmatch.h: here.
7702         (ARGMATCH_DEFINE_GROUP): New macro.
7703         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
7704         (argmatch_backup_group): New.
7705         (CHECK): New.
7706         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
7707         argmatch_backup_argument and argmatch_backup_usage.
7708         * modules/argmatch: We depend on c99.
7709         * doc/argmatch.texi (Recognizing Option Arguments): New.
7710         * doc/gnulib.texi: Use it.
7712 2019-06-21  Bruno Haible  <bruno@clisp.org>
7714         thrd: Add comment.
7715         * lib/thrd.c (pthread_main_func): Add comment.
7717 2019-06-21  Bruno Haible  <bruno@clisp.org>
7719         threads-h: Define 'thread_local' if and only if it actually works.
7720         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
7721         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
7722         Oracle Solaris Studio C. Compile a simple program, to see whether
7723         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
7724         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
7725         * lib/threads.in.h (thread_local): Undefine if it does not work.
7726         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
7727         (Link): Mention LIBTHREADLOCAL.
7728         * tests/test-threads.c: Don't check that thread_local is defined.
7729         * tests/test-thread_local.c: New file.
7730         * modules/threads-h-tests (Files): Add it and macros.h.
7731         (Depends-on): Add thrd and stdint.
7732         (configure.ac): Test whether 'alarm' is declared.
7733         (Makefile.am): Arrange to build and link test-thread_local.
7734         * doc/posix-headers/threads.texi: Mention the platforms that don't
7735         support 'thread_local'.
7737 2019-06-20  Bruno Haible  <bruno@clisp.org>
7739         threads-h: Simplify link dependencies.
7740         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
7741         Don't set LTLIBSTDTHREAD.
7742         * modules/thrd (Link): Simplify accordingly.
7743         * modules/mtx (Link): Likewise.
7744         * modules/cnd (Link): Likewise.
7745         * modules/tss (Link): Likewise.
7746         * modules/threads (Link): Likewise.
7748 2019-06-20  Bruno Haible  <bruno@clisp.org>
7750         threads-h: Fix link error on FreeBSD 11.
7751         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
7752         also with -lpthread.
7754 2019-06-20  Bruno Haible  <bruno@clisp.org>
7756         threadlib: Fix typo (regression from today).
7757         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
7759 2019-06-20  Bruno Haible  <bruno@clisp.org>
7761         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
7762         * lib/windows-thread.c: Include <errno.h>.
7763         * lib/windows-tls.c: Likewise.
7765 2019-06-20  Bruno Haible  <bruno@clisp.org>
7767         tss tests: Small improvement.
7768         * tests/test-tss.c (test_tss): Pass a different id to each thread.
7770 2019-06-20  Bruno Haible  <bruno@clisp.org>
7772         threads: New module.
7773         * modules/threads: New file.
7775 2019-06-20  Bruno Haible  <bruno@clisp.org>
7777         tss: Add tests.
7778         * tests/test-tss.c: New file, based on tests/test-tls.c.
7779         * modules/tss-tests: New file.
7781 2019-06-20  Bruno Haible  <bruno@clisp.org>
7783         cnd: Add tests.
7784         * tests/test-cnd.c: New file, based on tests/test-cond.c.
7785         * modules/cnd-tests: New file.
7787 2019-06-20  Bruno Haible  <bruno@clisp.org>
7789         mtx: Add tests.
7790         * tests/test-mtx.c: New file, based on tests/test-lock.c.
7791         * tests/test-call_once.c: New file, based on tests/test-once.c.
7792         * modules/mtx-tests: New file.
7794 2019-06-20  Bruno Haible  <bruno@clisp.org>
7796         thrd: Add tests.
7797         * tests/test-thrd_create.c: New file, based on
7798         tests/test-thread_create.c.
7799         * tests/test-thrd_current.c: New file, based on
7800         tests/test-thread_self.c.
7801         * modules/thrd-tests: New file.
7803 2019-06-20  Bruno Haible  <bruno@clisp.org>
7805         tss: New module.
7806         * lib/tss.c: New file.
7807         * modules/tss: New file.
7808         * doc/posix-functions/tss_create.texi: Mention the new module.
7809         * doc/posix-functions/tss_set.texi: Likewise.
7810         * doc/posix-functions/tss_get.texi: Likewise.
7811         * doc/posix-functions/tss_delete.texi: Likewise.
7813 2019-06-20  Bruno Haible  <bruno@clisp.org>
7815         cnd: New module.
7816         * lib/cnd.c: New file.
7817         * modules/cnd: New file.
7818         * doc/posix-functions/cnd_init.texi: Mention the new module.
7819         * doc/posix-functions/cnd_wait.texi: Likewise.
7820         * doc/posix-functions/cnd_timedwait.texi: Likewise.
7821         * doc/posix-functions/cnd_signal.texi: Likewise.
7822         * doc/posix-functions/cnd_broadcast.texi: Likewise.
7823         * doc/posix-functions/cnd_destroy.texi: Likewise.
7825 2019-06-20  Bruno Haible  <bruno@clisp.org>
7827         mtx: New module.
7828         * lib/mtx.c: New file.
7829         * modules/mtx: New file.
7830         * doc/posix-functions/call_once.texi: Mention the new module.
7831         * doc/posix-functions/mtx_init.texi: Likewise.
7832         * doc/posix-functions/mtx_lock.texi: Likewise.
7833         * doc/posix-functions/mtx_trylock.texi: Likewise.
7834         * doc/posix-functions/mtx_timedlock.texi: Likewise.
7835         * doc/posix-functions/mtx_unlock.texi: Likewise.
7836         * doc/posix-functions/mtx_destroy.texi: Likewise.
7838 2019-06-20  Bruno Haible  <bruno@clisp.org>
7840         thrd: New module.
7841         * lib/thrd.c: New file.
7842         * m4/thrd.m4: New file.
7843         * modules/thrd: New file.
7844         * doc/posix-functions/thrd_current.texi: Mention the new module.
7845         * doc/posix-functions/thrd_detach.texi: Likewise.
7846         * doc/posix-functions/thrd_equal.texi: Likewise.
7847         * doc/posix-functions/thrd_exit.texi: Likewise.
7848         * doc/posix-functions/thrd_sleep.texi: Likewise.
7849         * doc/posix-functions/thrd_yield.texi: Likewise.
7850         * doc/posix-functions/thrd_create.texi: Mention the new module and the
7851         AIX bug.
7852         * doc/posix-functions/thrd_join.texi: Mention the new module and the
7853         AIX and Solaris bugs.
7855 2019-06-20  Bruno Haible  <bruno@clisp.org>
7857         threads-h: Add tests.
7858         * tests/test-threads.c: New file.
7859         * modules/threads-h-tests: New file.
7860         * tests/test-threads-c++.cc: New file.
7861         * modules/threads-h-c++-tests: New file.
7863 2019-06-20  Bruno Haible  <bruno@clisp.org>
7865         threads-h: New module.
7866         * lib/threads.in.h: New file.
7867         * m4/threads.m4: New file.
7868         * m4/yield.m4 (gl_YIELD): Update comment.
7869         * modules/threads-h: New file.
7870         * modules/yields (configure.ac): Use AC_REQUIRE.
7871         * doc/posix-headers/threads.texi: Mention the new module and the AIX
7872         bugs.
7874 2019-06-20  Bruno Haible  <bruno@clisp.org>
7876         windows-thread: New module.
7877         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
7878         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
7879         * lib/glthread/thread.h: Include windows-thread.h.
7880         (gl_thread_t): Define using glwthread_thread_t.
7881         (glthread_create): Define using glwthread_thread_create.
7882         (glthread_join): Define using glwthread_thread_join.
7883         (gl_thread_self): Define using glwthread_thread_self.
7884         (gl_thread_exit): Define using glwthread_thread_exit.
7885         (glthread_create_func, glthread_join_func, gl_thread_self_func,
7886         gl_thread_exit_func): Remove declarations.
7887         * lib/glthread/thread.c (self_key): Remove variable.
7888         (do_init_self_key, init_self_key): Remove functions.
7889         (struct gl_thread_struct): Remove type.
7890         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
7891         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
7892         functions.
7893         * modules/windows-thread: New file.
7894         * modules/thread (Depends-on): Add windows-thread.
7896 2019-06-20  Bruno Haible  <bruno@clisp.org>
7898         windows-tls: New module.
7899         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
7900         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
7901         * lib/glthread/tls.h: Include windows-tls.h.
7902         (gl_tls_key_t): Define using glwthread_tls_key_t.
7903         * modules/windows-tls: New file.
7904         * modules/tls (Depends-on): Add windows-tls.
7906 2019-06-20  Bruno Haible  <bruno@clisp.org>
7908         windows-cond: New module.
7909         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
7910         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
7911         * lib/glthread/cond.h: Include windows-cond.h.
7912         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
7913         (gl_cond_t): Define using glwthread_cond_t.
7914         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
7915         (glthread_cond_init): Define using glwthread_cond_init.
7916         (glthread_cond_wait): Define using glwthread_cond_wait.
7917         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
7918         (glthread_cond_signal): Define using glwthread_cond_signal.
7919         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
7920         (glthread_cond_destroy): Define using glwthread_cond_destroy.
7921         (glthread_cond_init_func, glthread_cond_wait_func,
7922         glthread_cond_timedwait_func, glthread_cond_signal_func,
7923         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
7924         declarations.
7925         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
7926         types.
7927         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
7928         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
7929         glthread_cond_init_func, glthread_cond_wait_func,
7930         glthread_cond_timedwait_func, glthread_cond_signal_func,
7931         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
7932         functions.
7933         * modules/windows-cond: New file.
7934         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
7936 2019-06-20  Bruno Haible  <bruno@clisp.org>
7938         windows-timedrecmutex: New module.
7939         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
7940         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
7941         * modules/windows-timedrecmutex: New file.
7943 2019-06-20  Bruno Haible  <bruno@clisp.org>
7945         windows-timedmutex: New module.
7946         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
7947         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
7948         * modules/windows-timedmutex: New file.
7950 2019-06-20  Bruno Haible  <bruno@clisp.org>
7952         windows-recmutex: New module.
7953         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
7954         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
7955         * lib/glthread/lock.h: Include windows-recmutex.h.
7956         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
7957         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
7958         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
7959         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
7960         (glthread_recursive_lock_unlock): Define using
7961         glwthread_recmutex_unlock.
7962         (glthread_recursive_lock_destroy): Define using
7963         glwthread_recmutex_destroy.
7964         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
7965         glthread_recursive_lock_unlock_func,
7966         glthread_recursive_lock_destroy_func): Remove declarations.
7967         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
7968         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
7969         glthread_recursive_lock_destroy_func): Remove functions.
7970         * modules/windows-recmutex: New file.
7971         * modules/lock (Depends-on): Add windows-recmutex.
7973 2019-06-20  Bruno Haible  <bruno@clisp.org>
7975         windows-mutex: New module.
7976         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
7977         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
7978         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
7979         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
7980         (gl_spinlock_t): Remove type.
7981         (gl_lock_t): Define using glwthread_mutex_t.
7982         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
7983         (glthread_lock_init): Define using glwthread_mutex_init.
7984         (glthread_lock_lock): Define using glwthread_mutex_lock.
7985         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
7986         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
7987         (glthread_lock_init_func, glthread_lock_lock_func,
7988         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
7989         declarations.
7990         Use glwthread_spinlock_t instead of gl_spinlock_t.
7991         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
7992         GLWTHREAD_SPINLOCK_INIT.
7993         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
7994         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
7995         functions.
7996         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
7997         gl_spinlock_t.
7998         * modules/windows-mutex: New file.
7999         * modules/lock (Depends-on): Add windows-mutex.
8001 2019-06-20  Bruno Haible  <bruno@clisp.org>
8003         windows-once: New module.
8004         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
8005         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
8006         * lib/glthread/lock.h: Include windows-once.h.
8007         (gl_once_t): Define using glwthread_once_t.
8008         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
8009         (glthread_once): Define using glwthread_once.
8010         (glthread_once_func): Remove declaration.
8011         * lib/glthread/lock.c (glthread_once_func): Remove function.
8012         * modules/windows-once: New file.
8013         * modules/lock (Depends-on): Add windows-once.
8015 2019-06-20  Bruno Haible  <bruno@clisp.org>
8017         lock, cond: Avoid possible counter wraparound on Windows.
8018         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
8019         field of the guard unchanged if it was already positive.
8020         (glthread_rwlock_rdlock_func): Likewise.
8021         (glthread_rwlock_wrlock_func): Likewise.
8022         (glthread_recursive_lock_lock_func): Likewise.
8023         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
8024         (glthread_cond_timedwait_func): Likewise.
8026 2019-06-20  Bruno Haible  <bruno@clisp.org>
8028         cond: Make glthread_cond_timedwait more reliable on Windows.
8029         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
8030         condition variable before looking at the current time.
8032 2019-06-20  Bruno Haible  <bruno@clisp.org>
8034         pthread_mutex_timedlock: New module.
8035         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
8036         new declaration.
8037         * lib/pthread_mutex_timedlock.c: New file.
8038         * m4/pthread_mutex_timedlock.m4: New file.
8039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
8040         whether pthread_mutex_timedlock is declared.
8041         (gl_PTHREAD_MODULE_INDICATOR): New macro.
8042         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
8043         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
8044         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
8045         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
8046         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
8047         * modules/pthread_mutex_timedlock: New file.
8048         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
8049         module.
8051 2019-06-20  Bruno Haible  <bruno@clisp.org>
8053         thread, lock, cond, tls: Recognize C11 multithreaded applications.
8054         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
8055         * lib/glthread/thread.h (c11_threads_in_use): New macro.
8056         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8057         * lib/glthread/lock.h (c11_threads_in_use): New macro.
8058         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8059         * lib/glthread/cond.h (c11_threads_in_use): New macro.
8060         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8061         * lib/glthread/tls.h (c11_threads_in_use): New macro.
8062         (pthread_in_use, pth_in_use, thread_in_use): Use it.
8064 2019-06-20  Bruno Haible  <bruno@clisp.org>
8066         tls tests: Small improvements.
8067         * tests/test-tls.c: Include <stdint.h>.
8068         (worker_thread): Avoid gcc warning on 64-bit mingw.
8069         (test_tls): Pass a different id to each thread.
8070         * modules/tls-tests (Depends-on): Add stdint.
8072 2019-06-20  Bruno Haible  <bruno@clisp.org>
8074         cond tests: Simplify.
8075         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
8077 2019-06-20  Bruno Haible  <bruno@clisp.org>
8079         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
8080         * tests/test-lock.c (test_once): Don't reference fire_signal if
8081         !ENABLE_LOCKING.
8083 2019-06-19  Bruno Haible  <bruno@clisp.org>
8085         nanosleep: Relicense under LGPLv2+.
8086         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
8087         * modules/nanosleep (License): Change to LGPLv2+.
8089 2019-06-19  Bruno Haible  <bruno@clisp.org>
8091         Reorder pieces of header in perl scripts.
8092         The desired order is
8093         - Prologue part 1 (2 lines with #!)
8094         - Program short description
8095         - Copyright and license notice
8096         - Written-by notice
8097         - Program short description (optional)
8098         - Program long description (optional)
8099         - Prologue part 2
8100         - Time stamp
8101         - Code
8102         Reported by Paul Eggert.
8103         * build-aux/announce-gen: Reorder header.
8104         * build-aux/gitlog-to-changelog: Likewise.
8105         * build-aux/useless-if-before-free: Likewise.
8106         * build-aux/prefix-gnulib-mk: Add copyright notice and short
8107         description.
8108         * build-aux/update-copyright: Likewise. Add short description. Bump
8109         time-stamp-line-limit to 200.
8111 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8113         verify-tests: work around xlc bug
8114         Problem reported by Bruno Haible in:
8115         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
8116         * tests/test-verify.c (item): Move the arithmetic inside the
8117         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
8119 2019-06-16  Bruno Haible  <bruno@clisp.org>
8121         Restore Emacs time-stamp hook applicability.
8122         Reported by Darshit Shah <darnir@gnu.org>.
8123         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
8124         * build-aux/announce-gen: Likewise.
8125         * build-aux/gitlog-to-changelog: Likewise.
8126         * build-aux/prefix-gnulib-mk: Likewise.
8127         * build-aux/update-copyright: Likewise.
8129 2019-06-15  Bruno Haible  <bruno@clisp.org>
8131         Fix scripts to have valid executable format on Alpine Linux.
8132         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
8133         Idea by Paul Eggert.
8134         * build-aux/useless-if-before-free: Use a prologue that starts with
8135         '#!/bin/sh'.
8136         * build-aux/announce-gen: Likewise.
8137         * build-aux/gitlog-to-changelog: Likewise.
8138         * build-aux/prefix-gnulib-mk: Likewise.
8139         * build-aux/update-copyright: Likewise.
8140         * tests/test-update-copyright.sh: Update test program accordingly.
8142 2019-06-10  Bruno Haible  <bruno@clisp.org>
8144         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
8145         Reported by Nikita Ermakov <arei@altlinux.org> in
8146         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
8147         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
8148         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
8150 2019-06-10  Bruno Haible  <bruno@clisp.org>
8152         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
8153         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
8154         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
8155         a copy of the path argument.
8156         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
8157         it.
8159 2019-06-10  Bruno Haible  <bruno@clisp.org>
8161         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
8162         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
8163         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
8164         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
8165         a copy of the path argument.
8166         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
8167         it.
8169 2019-06-10  Bruno Haible  <bruno@clisp.org>
8171         posix_spawn_file_actions_addfchdir: Add tests.
8172         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
8173         * tests/test-posix_spawn5.c: New file.
8174         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
8176 2019-06-10  Bruno Haible  <bruno@clisp.org>
8178         posix_spawn_file_actions_addfchdir: New module.
8179         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
8180         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
8181         union member 'fchdir_action'.
8182         * lib/spawn_faction_addfchdir.c: New file.
8183         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
8184         * m4/posix_spawn_faction_addfchdir.m4: New file.
8185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
8186         'posix_spawn_file_actions_addfchdir' is present and whether
8187         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
8188         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
8189         posix_spawn_file_actions_addfchdir is declared.
8190         (gl_SPAWN_H_DEFAULTS): Initialize
8191         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8192         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8193         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
8194         * modules/spawn (Makefile.am): Substitute
8195         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8196         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
8197         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
8198         * modules/posix_spawn_file_actions_addfchdir: New file.
8199         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
8200         signature.
8201         * doc/posix-functions/posix_spawn.texi: Mention the new module.
8202         * doc/posix-functions/posix_spawnp.texi: Likewise.
8203         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
8204         Likewise.
8206 2019-06-10  Bruno Haible  <bruno@clisp.org>
8208         doc: Document existence of posix_spawn_file_actions_addchdir module.
8209         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
8210         the posix_spawn_file_actions_addchdir module.
8212 2019-06-10  Bruno Haible  <bruno@clisp.org>
8214         posix_spawn-internal: Fix module description.
8215         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
8216         from here...
8217         * modules/posix_spawnp (configure.ac): ... and here...
8218         * modules/posix_spawn-internal (configure.ac): ... to here.
8220 2019-06-10  Bruno Haible  <bruno@clisp.org>
8222         doc: Update and improve documentation of glibc functions.
8223         This is a series of commits that
8224         - updates the documentation to the state of glibc 2.29,
8225         - adds references to Linux man pages and glibc documentation,
8226         - marks Linux specific functions as such.
8227         These are the commits:
8228         doc: Update after removal of crypt functions from glibc 2.28.
8229         doc: Remove mention of function vm86 (does not exist on x86_64).
8230         doc: Remove mention of functions that are gone from glibc.
8231         doc: Mention that glibc no longer provides h_errno.
8232         doc: Mention the availability of specific functions in glibc versions.
8233         doc: Mention eaccess.
8234         doc: Add references to Linux man pages.
8235         doc: Add references to glibc documentation.
8236         doc: Mention inotify_* functions.
8237         doc: Mention ppoll.
8238         doc: Mention sched_getcpu.
8239         doc: Mention sync_file_range.
8240         doc: Mention epoll_pwait.
8241         doc: Mention eventfd, eventfd_read, eventfd_write.
8242         doc: Mention signalfd.
8243         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
8244         doc: Mention epoll_create1.
8245         doc: Mention getauxval.
8246         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
8247         doc: Mention nextdown, nextup.
8248         doc: Mention more ISO TS 18661-1 <math.h> functions.
8249         doc: Mention ISO TS 18661-1 <fenv.h> functions.
8250         doc: Mention getrandom, getentropy.
8251         doc: Mention strfromf, strfromd, strfroml.
8252         doc: Mention preadv2, pwritev2.
8253         doc: Mention copy_file_range.
8254         doc: Mention memfd_create.
8255         doc: Mention mlock2.
8256         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
8257         doc: Mention more ISO TS 18661-1 <math.h> functions.
8258         doc: Mention renameat2.
8259         doc: Mention statx.
8260         doc: Mention the ISO C11 multithreading header and functions.
8261         doc: Mention getcpu.
8262         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
8263         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
8264         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
8265         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
8266         doc: Some glibc functions also exist on Solaris 11.
8267         doc: Some glibc functions also exist on Solaris 11.4.
8268         doc: Some glibc functions also exist on FreeBSD.
8269         doc: Some glibc functions also exist on BeOS.
8270         doc: Some glibc functions also exist on Haiku.
8271         doc: Mark functions which exist only on Linux.
8272         doc: Mark functions which exist only on Linux and illumos.
8274 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8276         copy-file: fix typo
8277         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
8279         copy-file-range: simplify into a stub
8280         Based on a comment by Florian Weimer in:
8281         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
8282         It turns out that Emacs (which will use this module) won’t need an
8283         emulation and I suspect other programs won’t either, because these
8284         programs will need to fall back on read+write anyway.  Perhaps I
8285         am wrong and other programs will be able to use an emulation; if
8286         so, this patch can be reverted.
8287         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
8288         Just call it copy_file_range.
8289         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
8290         Check via AC_LINK_IFELSE.
8291         * modules/copy-file-range (Depends-on): Remove modules no longer used.
8293 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8295         copy-file: prefer copy_file_range
8296         * lib/copy-file.c: Do not include xalloc.h.
8297         (qcopy_file_preserving): Allocate a buffer only if
8298         copy_file_range does not suffice.  If the allocation fails
8299         don't give up; just use a small stack-based buffer.
8300         Prefer copy_file_range if it works.
8301         * modules/copy-file (Depends-on): Add copy-file-range.
8302         Remove xalloc.
8304         copy-file-range: new module
8305         * MODULES.html.sh: Add copy-file-range.
8306         * lib/copy-file-range.c, m4/copy-file-range.m4:
8307         * modules/copy-file-range: New files.
8308         * lib/unistd.in.h (copy_file_range): Declare.
8309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
8310         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
8311         * modules/unistd (unistd.h): Substitute them.
8313 2019-05-28  Bruno Haible  <bruno@clisp.org>
8315         binary-io: Attempted use of O_BINARY on consoles no longer fails.
8316         Reported by KO Myung-Hun <komh78@gmail.com> in
8317         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
8318         * lib/binary-io.h (__gl_setmode_check): Remove function.
8319         (set_binary_mode): Declare as notinline on DJGPP and EMX.
8320         * lib/binary-io.c (__gl_setmode_check): Remove function.
8321         (set_binary_mode): Define here on DJGPP and EMX. Inline
8322         __gl_setmode_check. In case of a tty, don't return an error code.
8324 2019-05-28  James Youngman  <jay@gnu.org>
8326         dirent-safer: Make opendir_safer usable from C++.
8327         * lib/dirent-safer.h: use extern "C".
8329 2019-05-28  James Youngman  <jay@gnu.org>
8331         canonicalize: Make canonicalize_filename_mode usable from C++.
8332         * lib/canonicalize.h: use extern "C".
8334 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
8336         prefix-gnulib-mk: Fix CPPFLAGS migration.
8337         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
8338         _a part of the library name.
8340 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8342         flexmember: update comments again
8343         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
8345         flexmember: update comment
8346         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
8348 2019-05-20  Bruno Haible  <bruno@clisp.org>
8350         setlocale: Improve fallback on macOS.
8351         * lib/setlocale.c (search): Optimize away a redundant strcmp()
8352         invocation.
8353         (locales_with_principal_territory): New array.
8354         (langcmp, get_main_locale_with_same_language): New functions.
8355         (locales_with_principal_language): New array.
8356         (terrcmp, get_main_locale_with_same_territory): New functions.
8357         (rpl_setlocale): When setlocale_single failed, try again with a locale
8358         that is more likely to exist. Don't warn if the environment variable
8359         SETLOCALE_VERBOSE is not set.
8361 2019-05-19  Bruno Haible  <bruno@clisp.org>
8363         localename: Fix default on macOS.
8364         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
8365         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
8366         (gl_locale_name_environ, gl_locale_name_default): Remove code for
8367         HAVE_CFLOCALECOPYCURRENT.
8368         * lib/localename.h (gl_locale_name_default): Update.
8370 2019-05-19  Karl Berry  <karl@freefriends.org>
8372         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
8373         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
8374         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
8376 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
8378         maintainer-makefile: catch uses of $< in non-implicit rules
8379         * top/maint.mk (sc_prohibit_magic_number_exit): New.
8381 2019-05-18  Bruno Haible  <bruno@clisp.org>
8383         threadlib: Provide an easy way to avoid mingw's winpthreads library.
8384         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
8385         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
8386         gl_use_threads accordingly.
8388 2019-05-18  Bruno Haible  <bruno@clisp.org>
8390         pthread_sigmask: Fix compilation error with --enable-threads=windows.
8391         Reported by Tim Rühsen in
8392         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
8393         and Michele Locati in
8394         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
8395         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
8396         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
8397         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
8398         in use and regardless which threads API is chosen.
8400 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8402         close-stream, closein, closeout: simplify
8403         I noticed this opportunity for simplification while drafting a
8404         new, related module that I haven’t had time to finish yet.
8405         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
8406         * modules/close-stream (Files): Remove m4/close-stream.m4.
8407         (configure.ac): Omit gl_CLOSE_STREAM.
8408         * modules/closein (Files): Remove m4/closein.m4
8409         (configure.ac): Omit gl_CLOSEIN.
8410         * modules/closeout (Files): Remove m4/closeout.m4.
8411         (configure.ac): Omit gl_CLOSEOUT.
8413 2019-05-12  Bruno Haible  <bruno@clisp.org>
8415         libtool-next-version: New program.
8416         * build-aux/libtool-next-version: New file.
8418 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
8419             Bruno Haible  <bruno@clisp.org>
8421         version-etc: Ease translation.
8422         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
8423         URLs and formatting newlines out of translatable string.
8425 2019-05-11  Bruno Haible  <bruno@clisp.org>
8427         gnupload: Explain how to create symlinks.
8428         * build-aux/gnupload (usage): Add an example that creates symlinks.
8430 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8432         fpucw: port to gcc -pedantic
8433         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
8434         Use __extension__ if using ({ ... }).
8436         crypto/af_alg: port to strict C compilers
8437         * lib/af_alg.c: Include af_alg.h regardless, so that the
8438         compilation unit is nonempty.
8440 2019-05-10  Bruno Haible  <bruno@clisp.org>
8442         base64: Avoid false positive warning from Coverity.
8443         Reported by Kamil Dudka <kdudka@redhat.com>.
8444         Idea by Paul Eggert.
8445         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
8446         '& 0x3f' to the array index expressions. This convinces Coverity that
8447         there is no out-of-bounds array reference, regardless of the input.
8449 2019-05-09  Bruno Haible  <bruno@clisp.org>
8451         gettext: Update to gettext 0.20.
8452         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
8453         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
8454         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
8455         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
8456         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
8457         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
8458         (configure.ac): Request infrastructure compatible with gettext 0.20.
8459         * m4/glibc2.m4: Remove file.
8460         * m4/intdiv0.m4: Remove file.
8461         * m4/intl.m4: Remove file.
8462         * m4/intldir.m4: Remove file.
8463         * m4/intmax.m4: Remove file.
8464         * m4/printf-posix.m4: Remove file.
8465         * m4/uintmax_t.m4: Remove file.
8466         * m4/gettext.m4: Update from gettext 0.20.
8467         * m4/po.m4: Likewise.
8469 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8471         verify: remove verify_true
8472         * NEWS: Mention this.
8473         * lib/verify.h (verify_true): Remove.
8474         * tests/test-verify.c (item): Test verify_expr, not verify_true.
8476         Support C2X and C++17 static_assert
8477         C2X and C++17 finally added support for a simple, single-argument
8478         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
8479         doing back in 2005.  Implement static_assert on older platforms.
8480         The only remaining advantage of ‘verify’ is a shorter name.
8481         * doc/posix-headers/assert.texi (assert.h):
8482         * doc/verify.texi (Compile-time Assertions):
8483         Modernize for C2X and C++17.
8484         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
8485         New macros.
8486         (_GL_HAVE__STATIC_ASSERT): Remove.
8487         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
8488         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
8489         string.  All callers changed.
8490         (_GL_VERIFY): Require 3 or more args, of which only the first 2
8491         are used.  All callers changed.
8492         (_Static_assert): Allow either 1 or 2 args, and define if
8493         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
8494         !_GL_HAVE__STATIC_ASSERT.
8495         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
8496         of defining if !_GL_HAVE_STATIC_ASSERT.
8497         (verify_expr, verify): Don’t bother trying to copy the expression
8498         into the diagnostic, since 1-argument static_assert doesn’t.
8499         (verify): Prefer 1-argument _Static_assert if it works.
8500         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
8502 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8504         Fix _GL_HAVE__STATIC_ASSERT typo
8505         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
8506         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
8508 2019-05-05  Bruno Haible  <bruno@clisp.org>
8510         wcwidth: Ensure width 1, not 2, for ambiguous characters.
8511         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
8512         via Akim Demaille <akim.demaille@gmail.com>.
8513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
8514         en_US.UTF-8 locale, since that is more likely to be present than an
8515         fr_FR.UTF-8 locale.
8516         * tests/test-wcwidth.c (main): Check the width of U+2202.
8517         * doc/posix-functions/wcwidth.texi: Mention the issue.
8519 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8521         Port manywarnings to GCC 9
8522         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
8523         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
8524         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
8525         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
8526         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
8527         --help=warnings output.
8528         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
8529         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
8530         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
8532 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
8534         Sync lib/mktime-internal.h from glibc
8535         * config/srclist.txt: Add entry for lib/mktime-internal.h.
8536         * lib/mktime-internal.h: Autoupdate.
8538 2019-04-28  Bruno Haible  <bruno@clisp.org>
8540         tls tests: Prevent that the test takes too long.
8541         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
8542         (main): Let the test fail if it takes more than 10 minutes.
8543         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
8545 2019-04-27  Bruno Haible  <bruno@clisp.org>
8547         lock tests: Prevent that the test takes too long.
8548         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
8549         (main): Let the test fail if it takes more than 10 minutes.
8550         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
8552 2019-04-27  Bruno Haible  <bruno@clisp.org>
8554         localename: Fix crash on mingw (regression from 2018-11-23).
8555         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
8556         locale name that is null.
8558 2019-04-27  Bruno Haible  <bruno@clisp.org>
8560         Fix gcc warnings on 64-bit mode mingw.
8561         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
8562         * lib/gl_array_list.c: Likewise.
8563         * lib/gl_array_map.c: Likewise.
8564         * lib/gl_array_set.c: Likewise.
8565         * lib/gl_carray_list.c: Likewise.
8566         * lib/gl_sublist.c: Likewise.
8567         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
8568         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
8569         * lib/gl_hash_map.c (uintptr_t): Likewise.
8570         * lib/gl_hash_set.c (uintptr_t): Likewise.
8571         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
8572         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
8573         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
8574         * lib/iconv.c (uintptr_t): Likewise.
8575         * lib/iconv_close.c (uintptr_t): Likewise.
8576         * tests/test-lock.c: Include <stdint.h>.
8577         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
8578         'long'.
8579         * modules/clean-temp (Depends-on): Add stdint.
8580         * modules/array-list (Depends-on): Likewise.
8581         * modules/array-map (Depends-on): Likewise.
8582         * modules/array-set (Depends-on): Likewise.
8583         * modules/carray-list (Depends-on): Likewise.
8584         * modules/sublist (Depends-on): Likewise.
8585         * modules/lock-tests (Depends-on): Likewise.
8587 2019-04-27  Bruno Haible  <bruno@clisp.org>
8589         error: Tweak indentation.
8590         * lib/error.c: Correct indentation.
8592 2019-04-27  Bruno Haible  <bruno@clisp.org>
8594         term-style-control: Fix gcc warning on mingw.
8595         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
8596         of i.
8598 2019-04-26  Bruno Haible  <bruno@clisp.org>
8600         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
8601         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
8603 2019-04-26  Bruno Haible  <bruno@clisp.org>
8605         relocatable-prog: Fix gcc warning on mingw.
8606         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
8607         on EMX.
8609 2019-04-02  Bruno Haible  <bruno@clisp.org>
8611         gitsub.sh: New file.
8612         * top/gitsub.sh: New file.
8614 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
8616         argmatch: use void* for raw memory pointers
8617         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
8618         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
8619         to "values", keep char* for strings.
8621 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
8623         prefix-gnulib-mk: fix the support for gnulib-po
8624         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
8625         Don't touch HAVE_* variables.
8626         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
8628 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
8630         di-set: allow free with 'ino_map' being NULL.
8631         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
8632         is NULL.  Bug introduced in commit 3703dbbe88dd.
8633         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
8634         as a test.
8636 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
8638         * lib/str-two-way.h: Fix comment typo.
8640 2019-04-13  Bruno Haible  <bruno@clisp.org>
8642         x-to-1: Restore ability to use original calling convention.
8643         * build-aux/x-to-1.in: Add comments. Accept the original form of
8644         HELP2MAN argument as well as the form expected since 2012-12-12.
8646 2019-04-13  Bruno Haible  <bruno@clisp.org>
8648         x-to-1: Avoid failure due to missing perl modules.
8649         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
8650         needs are installed.
8652 2019-04-13  Bruno Haible  <bruno@clisp.org>
8654         openmp-init: New module.
8655         * modules/openmp-init: New file.
8656         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
8657         the changes from 2019-04-09.
8659 2019-04-12  Bruno Haible  <bruno@clisp.org>
8661         signbit: Fix compilation error when gnulib's math.h exists twice.
8662         * lib/math.in.h (GNULIB_defined_signbit): New macro.
8664 2019-04-12  Bruno Haible  <bruno@clisp.org>
8666         openmp: Fix compilation error on platforms without OpenMP.
8667         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
8669 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
8671         mountlist: make parsing /proc/self/mountinfo more robust
8672         Cater for the following issues with mountinfo parsing (the first
8673         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
8674         in <https://bugs.gnu.org/35137>).
8675         1. The fields source, target, mntroot and fstype may contain characters
8676         like '\r'; sscanf(3) fails to read such values with the %s format
8677         specifier because it would stop at such characters.
8678         Example: "mount -t tmpfs tmpfs /foo^Mbar".
8679         The only true separator in that file is the ' ' character.
8680         2. The source field may be an empty string, which happens e.g. with
8681         "mount -t tmpfs '' /target".
8682         3. The fstype field may contain mangled characters as well which need
8683         unescaping.
8684         * lib/mountlist.c (terminate_at_blank): Add utility function.
8685         (read_file_system_list): In the block trying to read the mountinfo file,
8686         avoid using sscanf(3) with %s format; instead, parse the above fields
8687         separated by spaces one by one.
8688         This also handles the case when the source field is an empty string.
8689         Unescape the fstype field.
8691 2019-04-09  Bruno Haible  <bruno@clisp.org>
8693         openmp: Add workaround for 32-bit programs on AIX.
8694         * lib/omp.in.h: New file.
8695         * lib/omp-init.c: New file, based on lib/nproc.c.
8696         * m4/omp_h.m4: New file.
8697         * modules/openmp (Files): Add them.
8698         (Depends-on): Add include_next, c-ctype, setenv.
8699         (configure.ac): Invoke gl_OMP_H.
8700         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
8701         (Include): Mention <omp.h>.
8703 2019-04-09  Bruno Haible  <bruno@clisp.org>
8705         nproc: Fix return value for privileged processes.
8706         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
8707         getpid().
8709 2019-04-07  Bruno Haible  <bruno@clisp.org>
8711         Add copyright notices in several files.
8712         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
8713         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
8714         * lib/libunistring.valgrind: Likewise.
8715         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
8716         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
8717         * lib/memchr.valgrind: Likewise.
8718         * lib/memchr2.valgrind: Likewise.
8719         * lib/rawmemchr.valgrind: Likewise.
8720         * lib/relocatable.valgrind: Likewise.
8721         * lib/strchrnul.valgrind: Likewise.
8723 2019-03-25  Bruno Haible  <bruno@clisp.org>
8725         term-style-control tests: Fix link error.
8726         Reported by Tom G. Christensen in
8727         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
8728         * modules/term-style-control-tests (Makefile.am): Link
8729         test-term-style-control-hello and test-term-style-control-yes against
8730         LIBINTL.
8732 2019-03-24  Bruno Haible  <bruno@clisp.org>
8734         term-style-control: Add tests.
8735         * tests/test-term-style-control-hello.c: New file.
8736         * tests/test-term-style-control-yes.c: New file.
8737         * modules/term-style-control-tests: New file.
8739         term-style-control: New module.
8740         * lib/term-style-control.h: New file, based on libtextstyle's
8741         term-ostream.oo.h and term-ostream.oo.c.
8742         * lib/term-style-control.c: New file, based on libtextstyle's
8743         term-ostream.oo.c.
8744         * modules/term-style-control: New file.
8746 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
8748         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
8749         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
8750         C++98 appears to be supported by Clang, but not by GCC nor ICC.
8752 2019-03-23  Bruno Haible  <bruno@clisp.org>
8754         Support cross-compilation to musl libc.
8755         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
8756         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
8757         musl libc.
8758         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8759         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
8760         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8761         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8762         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8763         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
8764         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8765         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
8766         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8767         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8768         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8769         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
8770         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8771         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8772         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
8773         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
8774         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8775         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8776         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
8777         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8778         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8780         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
8781         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8782         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
8783         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
8784         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
8785         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
8786         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
8787         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
8788         * m4/log.m4 (gl_FUNC_LOG): Likewise.
8789         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
8790         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
8791         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
8792         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
8793         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
8794         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
8795         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
8796         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
8797         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
8798         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
8799         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
8800         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
8801         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8802         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
8803         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
8804         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8805         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
8806         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
8807         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
8808         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
8809         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
8810         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8811         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
8812         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8813         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
8814         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8815         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
8816         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8817         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8818         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8821         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
8822         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8823         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8825         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
8826         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8827         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
8828         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8829         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8831         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
8832         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
8833         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8834         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8837 2019-03-23  Bruno Haible  <bruno@clisp.org>
8839         posix_spawn_file_actions_*: Document musl libc bugs.
8840         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8841         the bug.
8842         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
8843         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
8844         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
8845         cross-compiling to a musl system, guess no.
8846         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
8847         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
8849 2019-03-23  Bruno Haible  <bruno@clisp.org>
8851         futimens: Document musl libc bug.
8852         * doc/posix-functions/futimens.texi: Mention the bug.
8853         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
8854         cross-compiling, guess no on glibc and musl systems.
8856 2019-03-23  Bruno Haible  <bruno@clisp.org>
8858         Clarify that cross-compilation guesses are guesses.
8859         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
8860         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
8861         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
8862         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
8863         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
8864         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
8865         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
8866         gl_cv_glob_lists_symlinks.
8867         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
8868         'guessing ' to ac_cv_func_malloc_0_nonnull.
8869         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
8870         'guessing ' to ac_cv_func_realloc_0_nonnull.
8871         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
8872         'guessing ' to gl_cv_func_poll.
8873         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
8874         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
8875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
8877 2019-03-23  Bruno Haible  <bruno@clisp.org>
8879         strtold: Fix typo.
8880         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
8882 2019-03-23  Bruno Haible  <bruno@clisp.org>
8884         noreturn: In C++ mode with clang, use _Noreturn as fallback.
8885         Reported by Akim Demaille.
8886         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
8887         [[noreturn]] would not work, use _Noreturn instead.
8889 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
8891         libtextstyle-optional: Fix compiler warnings.
8892         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
8893         as unused.
8895 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
8897         bitset: fix memory leaks
8898         Reported by Bruno Haible.
8899         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
8900         * lib/bitset/vector.c (vbitset_free): New.
8901         (vbitset_vtable): Use it.
8903 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
8905         bitset: minor changes
8906         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
8907         * lib/bitset/table.c: Formatting changes.
8908         Remove useless braces.
8909         Prefer using else in cascades of if/else-if with returns.
8910         * lib/bitset/vector.c: Reduce scopes.
8912 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
8914         bitset: expose bitset_resize
8915         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
8916         * tests/test-bitset.c (check_attributes): Check bitset_resize.
8917         (main): Use a variable bitset as reference, since fixed does not support resize.
8919 2019-03-19  Bruno Haible  <bruno@clisp.org>
8921         doc: Document the 'stdnoreturn' and 'noreturn' modules.
8922         Reported by Akim Demaille.
8923         * doc/noreturn.texi: New file.
8924         * doc/gnulib.texi: Include it.
8926 2019-03-19  Bruno Haible  <bruno@clisp.org>
8928         doc: Document how to use 'static inline'.
8929         * doc/static-inline.texi: New file.
8930         * doc/gnulib.texi: Include it.
8932 2019-03-19  Bruno Haible  <bruno@clisp.org>
8934         libtextstyle-optional: Add tests.
8935         * tests/test-libtextstyle.c: New file, based on libtextstyle's
8936         adhoc-tests/hello.c.
8937         * tests/test-libtextstyle-default.css: New file, copied from
8938         libtextstyle's adhoc-tests/hello-default.css.
8939         * modules/libtextstyle-optional-tests: New file.
8941         libtextstyle-optional: New module.
8942         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
8943         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
8944         * modules/libtextstyle-optional: New file.
8946 2019-03-19  Bruno Haible  <bruno@clisp.org>
8948         c-stack: Make signal handlers more reliable.
8949         * lib/c-stack.c (progname): New variable.
8950         (die): Use it.
8951         (c_stack_action): Initialize it.
8952         (segv_handler): Save and restore errno.
8954 2019-03-19  Bruno Haible  <bruno@clisp.org>
8956         Help making signal handlers more reliable.
8957         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
8958         _GL_ASYNC_SAFE into config.h.
8959         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
8960         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
8961         argument.
8962         * lib/fatal-signal.c (action_t, uninstall_handlers,
8963         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
8964         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
8965         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
8966         _GL_ASYNC_SAFE.
8967         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
8968         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
8970 2019-03-18  Bruno Haible  <bruno@clisp.org>
8972         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
8973         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
8974         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
8976 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
8978         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
8979         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
8980         GCC 4.8.
8982 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8984         fts: minor simplification
8985         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
8987 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
8989         bitset, timevar: Depend on c99.
8990         Reported by Bruno Haible.
8991         * modules/bitset, modules/timevar (Depends-on): Add c99.
8993 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
8995         bitset: a bit (...) more tests
8996         * tests/test-bitset.c (check_attributes): Check zero and ones.
8998 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
9000         bitset: fix overflows.
9001         Reported by Bruno Haible.
9002         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
9003         * lib/bitset/table.c (tbitset_test): last_bit is the position of
9004         the bit in the array of bitset_word, so be sure to take its modulo
9005         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
9006         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
9008 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
9010         bitset: style changes.
9011         * lib/bitset/table.c: Use NULL, not 0, for pointers.
9012         Formatting changes.
9013         (tbitset_list): Reduce scopes.
9015 2019-03-16  Bruno Haible  <bruno@clisp.org>
9017         fatal-signal: Pass the signal number to the action.
9018         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
9019         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
9020         (fatal_signal_handler): Pass the signal number to the action.
9021         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
9022         signal number as parameter.
9023         (create_temp_dir): Update.
9024         * lib/wait-process.c (cleanup_slaves_action): New function.
9025         (register_slave_subprocess): Update at_fatal_signal invocation.
9026         * NEWS: Mention the change.
9028 2019-03-16  Bruno Haible  <bruno@clisp.org>
9030         fatal-signal: Add function that lists the fatal signals.
9031         * lib/fatal-signal.h (get_fatal_signals): New declaration.
9032         * lib/fatal-signal.c (get_fatal_signals): New function.
9034 2019-03-14  Bruno Haible  <bruno@clisp.org>
9036         isatty: Make it return true in Cygwin consoles on native Windows.
9037         * lib/isatty.c: Include <string.h>.
9038         (GetProcAddress): New macro.
9039         (GetNamedPipeClientProcessIdFuncType): New type.
9040         (GetNamedPipeClientProcessIdFunc): New variable.
9041         (QueryFullProcessImageNameFuncType): New type.
9042         (QueryFullProcessImageNameFunc): New variable.
9043         (initialized): New variable.
9044         (initialize): New function.
9045         (IsCygwinConsoleHandle): New function.
9046         (isatty): Invoke it.
9047         * doc/posix-functions/isatty.texi: Mention the issue.
9049 2019-03-14  Bruno Haible  <bruno@clisp.org>
9051         all: Update URLs to msdn.microsoft.com.
9052         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
9053         was moved to docs.microsoft.com.
9055 2019-03-13  Bruno Haible  <bruno@clisp.org>
9057         gnulib-tool: Clarify the coding style.
9058         Suggested by Pavel Raiskup <praiskup@redhat.com>.
9059         * gnulib-tool: Add comment about coding style.
9061 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9063         strtod: fix clash with strtold
9064         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
9065         * lib/strtod.c (compute_minus_zero, minus_zero):
9066         Simplify by remving the macro / external variable,
9067         and having just a function.  User changed.  This avoids
9068         the need for an external variable that might clash.
9070 2019-03-10  Bruno Haible  <bruno@clisp.org>
9072         alloca-opt: Fix conflict mingw's new <alloca.h> file.
9073         Reported by Eli Zaretskii <eliz@gnu.org>.
9074         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
9075         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
9076         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
9078 2019-03-10  Bruno Haible  <bruno@clisp.org>
9080         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
9081         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
9082         is in use.
9083         * tests/test-printf-posix2.c: Likewise.
9085 2019-03-10  Bruno Haible  <bruno@clisp.org>
9087         uninorm tests: Free allocated memory.
9088         * tests/uninorm/test-u32-normalize-big.h
9089         (struct normalization_test_file): Remove 'const' from allocated member.
9090         (free_normalization_test_file): New declaration.
9091         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
9092         memory.
9093         (free_normalization_test_file): New function.
9094         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
9095         'struct normalization_test_file' contents.
9096         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
9097         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
9098         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
9100 2019-03-10  Bruno Haible  <bruno@clisp.org>
9102         di-set: Fix memory leak.
9103         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
9104         not free().
9106 2019-03-10  Bruno Haible  <bruno@clisp.org>
9108         tests: Free allocated memory.
9109         Reported by <deltatau@protonmail.com> via Assaf Gordon.
9110         * tests/test-astrxfrm.c (main): Free allocated memory.
9111         * tests/test-bitset.c (compare, check_attributes): Free allocated
9112         bitsets.
9113         * tests/test-filenamecat.c (main): Free allocated memory.
9114         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
9115         * tests/test-freadptr.c (main): Likewise.
9116         * tests/test-freadptr2.c (main): Free allocated memory.
9117         * tests/test-freadseek.c (main): Likewise.
9118         * tests/test-gc-arcfour.c (main): Close allocated context.
9119         * tests/test-gc-arctwo.c (main): Likewise.
9120         * tests/test-gc-des.c (main): Close all allocated contexts.
9121         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
9122         * tests/test-pipe-filter-ii1.c (main): Likewise.
9123         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
9124         allocated file actions.
9125         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
9126         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
9127         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
9128         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
9129         * tests/test-strfmon_l.c (main): Free allocated locales.
9130         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
9131         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
9132         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
9133         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
9134         * tests/unistr/test-chr.h (main): Free input32.
9135         * tests/unistr/test-strchr.h (test_strchr): Likewise.
9137 2019-03-10  Bruno Haible  <bruno@clisp.org>
9139         tests: Prepare for using valgrind.
9140         * tests/*.sh: Invoke all test programs through ${CHECKER}.
9141         * tests/*/*.sh: Likewise.
9142         * tests/test-freadptr.c (main): Update accordingly.
9143         * tests/test-freadseek.c (main): Likewise.
9145 2019-03-09  Bruno Haible  <bruno@clisp.org>
9147         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
9148         * lib/get-rusage-as.c (get_rusage_as): When compiled by
9149         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
9150         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
9151         before exiting.
9153 2019-03-09  Jim Meyering  <meyering@fb.com>
9155         test-userspec.c: don't print NULL
9156         * tests/test-userspec.c (main): A test release of gcc,
9157         9.0.1 20190310, warned that this test would attempt to
9158         print a NULL pointer via a %s printf format.  Fix that
9159         and remove the unnecessary preceding "!diag" conjunct.
9160         Also add a comment.
9162 2019-03-03  Bruno Haible  <bruno@clisp.org>
9164         getloadavg: Write NULL for the null pointer.
9165         Reported by Michal Privoznik <mprivozn@redhat.com>.
9166         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
9168 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
9170         alloca, tsearch-tests: Write NULL for the null pointer.
9171         * lib/alloca.c (i00afunc): Write NULL instead of 0.
9172         * tests/test-tsearch.c (mangle_tree): Likewise.
9174 2019-03-09  Bruno Haible  <bruno@clisp.org>
9176         strfmon_l: Fix -fsanitize=address finding.
9177         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
9178         <string.h>.
9179         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
9180         (directive_t, directives_t): New types.
9181         (fmon_parse): New function.
9182         (rpl_strfmon_l): Don't call va_arg more often than needed for the
9183         format string. Consume 'long double' arguments in places where the
9184         format string indicates so.
9185         * modules/strfmon_l (Depends-on): Add 'stdbool'.
9187 2019-03-09  Bruno Haible  <bruno@clisp.org>
9189         crypto/des: Fix undefined behaviour.
9190         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
9191         shift operations on 'int'.
9193 2019-03-09  Bruno Haible  <bruno@clisp.org>
9195         Fix undefined behaviour.
9196         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
9197         'unsigned int', to avoid shift operations on 'int'.
9198         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
9199         * tests/test-count-leading-zeros.c (main): Use a random number that has
9200         as many bits as TYPE, not only 2*15 or 2*31 bits.
9201         * tests/test-count-trailing-zeros.c (main): Likewise.
9202         * tests/test-count-one-bits.c (main): Likewise.
9203         * tests/test-memmem.c: Don't include "null-ptr.h".
9204         (main): Use zerosize_ptr() instead of null_ptr().
9205         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
9207 2019-03-08  Bruno Haible  <bruno@clisp.org>
9209         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
9210         Reported by Jeffrey Walton <noloader@gmail.com>.
9211         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
9212         invoke memset with a zero size.
9213         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9214         Likewise.
9215         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9216         Adjust accordingly.
9218 2019-03-08  Bruno Haible  <bruno@clisp.org>
9220         unistr/*, uniconv/*: Fix undefined behaviour.
9221         Reported by Jeffrey Walton <noloader@gmail.com>.
9222         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
9223         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
9224         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
9225         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9227 2019-03-08  Bruno Haible  <bruno@clisp.org>
9229         unistr/u8-cmp: Fix undefined behaviour.
9230         Reported by Jeffrey Walton <noloader@gmail.com>.
9231         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
9233 2019-03-08  Bruno Haible  <bruno@clisp.org>
9235         unictype/numeric: Fix undefined behaviour.
9236         Reported by Jeffrey Walton <noloader@gmail.com>.
9237         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
9238         on shift overflow, caught by "gcc -fsanitize=undefined".
9239         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
9240         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
9241         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
9243 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
9245         git-version-gen: fix --version copyright year
9246         * build-aux/git-version-gen, build-aux/move-if-change (version):
9247         --version output copyright year is now taken from script year,
9248         so that it no longer needs to be updated by hand.
9250 2019-03-04  Bruno Haible  <bruno@clisp.org>
9252         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
9253         This approach supports relocatable installation of shared libraries
9254         which depend on other shared libraries from the same package.
9255         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
9256         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
9257         wrapper around the original LIBTOOL.
9258         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
9259         token '@loader_path' instead of '$ORIGIN'.
9260         * build-aux/libtool-reloc: New file.
9261         * modules/relocatable-prog (Files): Add it.
9262         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
9263         the recent changes. Document the need to set the *_LDFLAGS of libraries.
9264         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
9265         Makefile.am, not in configure.ac.
9267 2019-03-04  Bruno Haible  <bruno@clisp.org>
9269         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
9270         * build-aux/install-reloc: Revert change.
9271         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
9273 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9275         nstrftime: support the ‘+’ flag
9276         * lib/nstrftime.c (add, __strftime_internal):
9277         Add support for the ‘+’ flag introduced in POSIX.1-2017.
9278         (__strftime_internal): New arg ‘width’.  All uses changed.
9279         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
9281 2019-02-24  Bruno Haible  <bruno@clisp.org>
9283         relocatable-prog: Improve verbose output.
9284         * build-aux/install-reloc (func_verbose): Escape characters that would
9285         be interpreted by the shell.
9287 2019-02-24  Bruno Haible  <bruno@clisp.org>
9289         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
9290         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
9291         "sys/stat.h".
9292         * lib/lstat.c: Likewise.
9293         * lib/fstat.c: Likewise.
9294         * lib/fstatat.c: Likewise.
9296 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
9298         long-options: add parse_gnu_standard_options_only
9299         Discussed in https://bugs.gnu.org/33468 .
9301         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
9302         (parse_gnu_standard_options_only): Add function to process
9303         the GNU default options --help and --version and fail for
9304         any other unknown long or short option. See
9305         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
9306         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
9307         * modules/long-options (depends-on): Add stdbool, exitfail.
9308         * top/maint.mk (sc_prohibit_long_options_without_use): Update
9309         syntax-check rule, add new function name.
9311 2019-02-23  Bruno Haible  <bruno@clisp.org>
9313         relocatable-prog: Update documentation.
9314         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
9315         the recent changes.
9317 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9319         nstrftime: tweak arg order
9320         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
9321         All callers changed.  Suggested by TAMUKI Shoichi in:
9322         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
9324 2019-02-23  Bruno Haible  <bruno@clisp.org>
9326         relocatable-prog: Use wrapper-free installation also on Mac OS X.
9327         Reported by Paul Smith <psmith@gnu.org>.
9328         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
9329         (func_relativize): New function, from gnulib-tool.
9330         Handle mode 'macosx' through invocations of 'otool' and
9331         'install_name_tool'.
9332         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
9333         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
9334         'install-reloc' invocation with mode 'macosx'.
9336 2019-02-23  Bruno Haible  <bruno@clisp.org>
9338         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
9339         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
9340         Hurd with glibc >= 2.27.
9342 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9344         nstrftime: merge glibc strftime changes
9345         This incorporates:
9346         2019-02-11 Fix a few whitespace arrangement inconsistencies
9347         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
9348         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
9349         2019-01-11 strftime: use the "L_" macro with character literals
9350         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
9351         callers changed.  Default width of %Ey is now 2.  This is needed
9352         for proper handling of Japanese dates starting on 2019-05-01.
9354 2019-02-19  Bruno Haible  <bruno@clisp.org>
9356         relocatable-prog: Use $ORIGIN trick on more platforms.
9357         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
9358         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
9359         Solaris >= 10, Haiku. But don't use it on Android.
9360         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
9361         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
9363 2019-02-19  Bruno Haible  <bruno@clisp.org>
9365         progreloc: Speed up executable lookup on various platforms.
9366         * lib/progreloc.c: Include <errno.h>.
9367         (safe_read, full_read): New functions.
9368         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
9369         prefer the information from the /proc file system to a PATH search.
9371 2019-02-19  Bruno Haible  <bruno@clisp.org>
9373         progreloc: Simplify code for Android.
9374         * lib/progreloc.c (executable_fd): Don't define on Android.
9375         (maybe_executable, find_executable): Don't use executable_fd on Android.
9377 2019-02-15  Bruno Haible  <bruno@clisp.org>
9379         gnulib-tool: Support --import with just a few tests, not --with-tests.
9380         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
9381         'inctests' when generating files; use 'inctests' only for computing the
9382         transitive closure.
9384 2019-02-14  Bruno Haible  <bruno@clisp.org>
9386         gnulib-tool: Improve handling of multiple --local-dir options.
9387         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
9388         options work.
9389         * gnulib-tool (func_path_prepend): Remove function.
9390         (func_path_foreach): Make IFS handling more robust.
9391         (local_gnulib_path): Collect --local-dir values using func_path_append,
9392         not func_path_prepend.
9393         (func_determine_path_separator): Make IFS handling more robust.
9394         (func_lookup_file_cb): New function.
9395         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
9396         func_lookup_local_file. Apply the patches in the reverse order of their
9397         origin in $local_gnulib_path.
9398         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
9399         * NEWS: Mention that the first --local-dir option is the one with
9400         highest priority.
9402 2019-02-10  Bruno Haible  <bruno@clisp.org>
9404         libtextstyle: New module.
9405         * m4/libtextstyle.m4: New file.
9406         * modules/libtextstyle: New file.
9408 2019-02-05  Bruno Haible  <bruno@clisp.org>
9410         declared.sh: Fix bug with variables of pointer type.
9411         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
9412         before the symbol to be omitted if the preceding character is a '*'.
9414 2019-02-04  Bruno Haible  <bruno@clisp.org>
9416         Add script for running tests under valgrind.
9417         * build-aux/run-test: New file, from GNU libunistring.
9418         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
9419         as well.
9421 2019-02-04  Bruno Haible  <bruno@clisp.org>
9423         declared.sh: Fix --version output.
9424         * build-aux/declared.sh (func_version): Update package name.
9426 2019-02-03  Bruno Haible  <bruno@clisp.org>
9428         Add script for determining the set of symbols to export from a library.
9429         * build-aux/declared.sh: New file, from GNU libunistring.
9430         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
9431         Mention it.
9433 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9435         vla: add commentary about VLA_ELEMS
9436         * lib/vla.h (VLA_ELEMS): Add commentary,
9437         some inspired by Bruno Haible’s proposal in:
9438         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
9440         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
9441         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
9442         assume the C99 signatures for strtod and strtold.  Programs that
9443         require stricter adherence to C99 should also use the strtod and
9444         strtold modules as needed, and we no longer need the
9445         HAVE_C99_STRTOLD macro.
9446         * NEWS: Mention this.
9447         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
9448         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
9449         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
9450         (Files): Remove m4/c-strtod.m4.
9451         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
9452         exists.
9454 2019-02-02  Bruno Haible  <bruno@clisp.org>
9456         fma: Improve code style.
9457         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
9459 2019-02-02  Colin Watson  <cjwatson@debian.org>
9461         *-map tests: Fix compilation error.
9462         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
9463         * tests/test-hash_map.c: Likewise.
9464         * tests/test-linkedhash_map.c: Likewise.
9466 2019-01-31  Bruno Haible  <bruno@clisp.org>
9468         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
9469         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
9470         GNULIB_defined_strtold_function): New macros.
9471         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
9472         (STRTOD): Ignore HAVE_C99_STRTOLD.
9473         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
9474         deemed buggy. But do use it on platforms where uselocale exists and is
9475         usable.
9476         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
9477         deemed buggy. On platforms where uselocale exists and is usable, use
9478         uselocale and strtod/strtold.
9479         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
9480         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
9481         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
9482         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
9483         (Depends-on): Add strtod.
9484         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
9485         (Depends-on): Add strtold.
9487 2019-01-31  Bruno Haible  <bruno@clisp.org>
9489         strtod, strtold: Use the locale's decimal point.
9490         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
9491         (decimal_point_char): New function, copied from lib/vasnprintf.c.
9492         (parse_number): Add a radixchar argument. Use it instead of '.'.
9493         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
9494         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
9495         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
9496         * tests/test-strtod1.c: New file.
9497         * tests/test-strtod1.sh: New file.
9498         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
9499         locale-fr.m4 and its dependencies.
9500         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
9501         (Makefile.am): Arrange to compile test-strtod1.c and run
9502         test-strtod1.sh.
9503         * tests/test-strtold1.c: New file.
9504         * tests/test-strtold1.sh: New file.
9505         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
9506         locale-fr.m4 and its dependencies.
9507         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
9508         (Makefile.am): Arrange to compile test-strtold1.c and run
9509         test-strtold1.sh.
9511 2019-01-31  Bruno Haible  <bruno@clisp.org>
9513         strtod, strtold tests: Simplify tests.
9514         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
9515         * tests/test-strtold.c (main): Likewise.
9517 2019-01-31  Bruno Haible  <bruno@clisp.org>
9519         strtod, strtold: Avoid unnecessary rounding errors.
9520         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
9521         decimal to DOUBLE conversion.
9523 2019-01-31  Bruno Haible  <bruno@clisp.org>
9525         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
9526         * lib/strtod.c (STRTOD): When there is an extra character after the
9527         exponent marker 'p', reparse the number.
9528         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
9529         * doc/posix-functions/strtold.texi: Likewise.
9531 2019-01-29  Bruno Haible  <bruno@clisp.org>
9533         strtold: Add tests.
9534         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
9535         * modules/strtold-tests: New file.
9537 2019-01-29  Bruno Haible  <bruno@clisp.org>
9539         strtold: New module.
9540         * lib/stdlib.in.h (strtold): New declaration.
9541         * lib/strtold.c: New file.
9542         * lib/strtod.c: Consider USE_LONG_DOUBLE.
9543         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
9544         USE_LDEXP): New macros.
9545         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
9546         USE_LONG_DOUBLE.
9547         (underlying_strtod): Remove function. Replace with some macros.
9548         Re-add the code for a missing underlying function that was removed on
9549         2013-02-19.
9550         * m4/strtold.m4: New file.
9551         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
9552         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
9553         REPLACE_STRTOLD.
9554         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
9555         REPLACE_STRTOLD.
9556         * modules/strtold: New file.
9557         * doc/posix-functions/strtold.texi: Document the new module.
9559 2019-01-29  Bruno Haible  <bruno@clisp.org>
9561         strtod: Fix compilation error on IRIX 6.5.
9562         * modules/strtod (Depends-on): Add 'math'.
9564 2019-01-28  Bruno Haible  <bruno@clisp.org>
9566         Fix build error when building a shared libunistring on Android.
9567         * tests/uninorm/test-nfc.c (n): Don't define on Android.
9568         (main): Add 'volatile', to defeat a GCC optimization that would
9569         eliminate the reference.
9570         * tests/uninorm/test-nfd.c (n): Don't define on Android.
9571         (main): Add 'volatile', to defeat a GCC optimization that would
9572         eliminate the reference.
9573         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
9574         (main): Add 'volatile', to defeat a GCC optimization that would
9575         eliminate the reference.
9576         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
9577         (main): Add 'volatile', to defeat a GCC optimization that would
9578         eliminate the reference.
9580 2019-01-27  Bruno Haible  <bruno@clisp.org>
9582         Avoid build errors due to wrong references between modules.
9583         * lib/uninorm/canonical-decomposition.c: Include
9584         "uninorm/decomposition-table.h", not "decomposition-table.h".
9585         * lib/uninorm/decomposition.c: Likewise.
9586         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
9587         not "decompose-internal.h".
9588         * lib/uninorm/u16-normalize.c: Likewise.
9589         * lib/uninorm/u32-normalize.c: Likewise.
9590         * lib/uninorm/uninorm-filter.c: Likewise.
9591         * lib/uninorm/nfkc.c: Likewise.
9592         * lib/uninorm/nfkd.c: Likewise.
9593         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
9594         "caseprop.h".
9595         * lib/unicase/u8-ct-totitle.c: Likewise.
9596         * lib/unicase/u8-prefix-context.c: Likewise.
9597         * lib/unicase/u8-suffix-context.c: Likewise.
9598         * lib/unicase/u16-casemap.c: Likewise.
9599         * lib/unicase/u16-ct-totitle.c: Likewise.
9600         * lib/unicase/u16-prefix-context.c: Likewise.
9601         * lib/unicase/u16-suffix-context.c: Likewise.
9602         * lib/unicase/u32-casemap.c: Likewise.
9603         * lib/unicase/u32-ct-totitle.c: Likewise.
9604         * lib/unicase/u32-prefix-context.c: Likewise.
9605         * lib/unicase/u32-suffix-context.c: Likewise.
9606         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
9607         "unicasemap.h".
9608         * lib/unicase/u8-toupper.c: Likewise.
9609         * lib/unicase/u8-ct-tolower.c: Likewise.
9610         * lib/unicase/u8-ct-toupper.c: Likewise.
9611         * lib/unicase/u16-tolower.c: Likewise.
9612         * lib/unicase/u16-toupper.c: Likewise.
9613         * lib/unicase/u16-ct-tolower.c: Likewise.
9614         * lib/unicase/u16-ct-toupper.c: Likewise.
9615         * lib/unicase/u32-tolower.c: Likewise.
9616         * lib/unicase/u32-toupper.c: Likewise.
9617         * lib/unicase/u32-ct-tolower.c: Likewise.
9618         * lib/unicase/u32-ct-toupper.c: Likewise.
9619         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
9620         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
9621         * lib/unicase/u16-ct-casefold.c: Likewise.
9622         * lib/unicase/u32-ct-casefold.c: Likewise.
9624 2019-01-27  Bruno Haible  <bruno@clisp.org>
9626         gperf: Fix error when this module is required by some test module.
9627         * modules/gperf (Applicability): Set to 'all'.
9629 2019-01-27  Bruno Haible  <bruno@clisp.org>
9631         tmpfile: Add support for Android.
9632         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
9633         works.
9634         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
9635         Android.
9636         * modules/tmpfile (Depends-on): Add 'stdbool'.
9637         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
9638         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
9640 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
9642         bitsetv: allow free on NULL.
9643         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
9645 2019-01-27  Bruno Haible  <bruno@clisp.org>
9647         test-framework-sh: Improve maintainability.
9648         * tests/init.sh: Clarify what belongs together. Reorder definitions.
9650 2019-01-27  Bruno Haible  <bruno@clisp.org>
9652         tests: Don't assume that /tmp exists.
9653         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
9654         * tests/test-copy-acl-1.sh: Likewise.
9655         * tests/test-file-has-acl-1.sh: Likewise.
9656         * tests/test-copy-file-1.sh: Likewise.
9658 2019-01-27  Bruno Haible  <bruno@clisp.org>
9660         tests: Accommodate a shell that is not in /bin/sh.
9661         * tests/init.sh (setup_): Set srcdir and builddir.
9662         (BOURNE_SHELL): New variable.
9663         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
9664         * modules/file-has-acl-tests (Depends-on): Likewise.
9665         * modules/copy-file-tests (Depends-on): Likewise.
9666         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
9667         scripts through $BOURNE_SHELL.
9668         * tests/test-set-mode-acl-2.sh: Likewise.
9669         * tests/test-copy-acl-1.sh: Likewise.
9670         * tests/test-copy-acl-2.sh: Likewise.
9671         * tests/test-file-has-acl-1.sh: Likewise.
9672         * tests/test-file-has-acl-2.sh: Likewise.
9673         * tests/test-copy-file-1.sh: Likewise.
9674         * tests/test-copy-file-2.sh: Likewise.
9675         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
9676         invoker.
9677         * tests/test-copy-acl.sh (builddir): Likewise.
9678         * tests/test-file-has-acl.sh (builddir): Likewise.
9679         * tests/test-copy-file.sh (builddir): Likewise.
9680         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
9681         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
9682         * tests/test-vc-list-files-git.sh: Likewise.
9684 2019-01-27  Bruno Haible  <bruno@clisp.org>
9686         tests: Fix some "unused variable" warnings.
9687         * tests/test-fts.c (fts_dealloc): Remove unused variable.
9688         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
9689         * tests/test-striconveh.c (main): Move some variable into the
9690         '#if HAVE_ICONV'.
9691         * tests/test-striconveha.c (main): Likewise.
9692         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
9693         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9694         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9695         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
9696         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
9697         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
9698         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9699         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9700         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9701         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
9702         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
9703         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
9704         * tests/test-tsearch.c (main): Move some variable into the
9705         '#if HAVE_INITSTATE'.
9707 2019-01-27  Bruno Haible  <bruno@clisp.org>
9709         unigbrk/uc-grapheme-breaks: Fix build failure.
9710         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
9711         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
9713 2019-01-27  Bruno Haible  <bruno@clisp.org>
9715         mountlist: Merge two .m4 files.
9716         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
9717         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
9718         * m4/ls-mntd-fs.m4: Remove file.
9719         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
9721 2019-01-27  Bruno Haible  <bruno@clisp.org>
9723         tests: Enable Linux specific tests on Android.
9724         * tests/test-flock.c (main): Treat Android like Linux.
9725         * tests/test-openat-safer.c (main): Likewise.
9727 2019-01-27  Bruno Haible  <bruno@clisp.org>
9729         relocatable-prog: Use Linux code on Android.
9730         * lib/progreloc.c: Treat Android like Linux.
9732 2019-01-26  Bruno Haible  <bruno@clisp.org>
9734         getloadavg: Add support for Android.
9735         * lib/getloadavg.c: Treat Android like Linux.
9737 2019-01-26  Bruno Haible  <bruno@clisp.org>
9739         vma-iter: Add support for Android.
9740         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
9741         * lib/vma-iter.c: Treat Android like Linux.
9742         * lib/get-rusage-data.c (get_rusage_data): Likewise.
9744 2019-01-26  Bruno Haible  <bruno@clisp.org>
9746         fts: Optimize on Android.
9747         * lib/fts.c: Treat Android like Linux.
9749 2019-01-26  Bruno Haible  <bruno@clisp.org>
9751         fts: Add support for Android.
9752         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
9753         defined by this module and the ones in libc.
9754         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
9756 2019-01-26  Bruno Haible  <bruno@clisp.org>
9758         mountlist: Use Linux code on Android.
9759         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
9760         (unescape_tab, read_file_system_list): Enable Linux code on Android
9761         as well.
9762         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
9763         and endmntent.
9764         * modules/mountlist (Depends-on): Add 'getline'.
9766 2019-01-26  Bruno Haible  <bruno@clisp.org>
9768         localename tests: Fix test failure on Android.
9769         * modules/localename-tests (Depends-on): Add 'setlocale'.
9771 2019-01-26  Bruno Haible  <bruno@clisp.org>
9773         mountlist: Port better to Android.
9774         * lib/mountlist.c (MOUNTED): Redefine on Android.
9775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
9776         Android.
9778 2019-01-26  Bruno Haible  <bruno@clisp.org>
9780         striconveh: Fix use of uninitialized iconv_t.
9781         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9782         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
9783         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
9785 2019-01-26  Bruno Haible  <bruno@clisp.org>
9787         nonblocking-socket-tests: Fix test failure on Android 4.3.
9788         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
9789         also on Android.
9791 2019-01-26  Bruno Haible  <bruno@clisp.org>
9793         sh-filename: Add support for Android 4.3.
9794         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
9796 2019-01-26  Bruno Haible  <bruno@clisp.org>
9798         ptsname_r: Work around bug on Android 4.3.
9799         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
9800         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
9801         correct.
9802         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
9803         is defined, just fix the return value.
9804         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
9805         The behaviour of musl libc is nothing to be "fixed", since it is
9806         compliant with the next POSIX standard.
9808 2019-01-26  Bruno Haible  <bruno@clisp.org>
9810         ttyname_r: Work around bug on Android 4.3.
9811         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
9812         * lib/ttyname_r.c (ttyname_r): Implement for Android.
9813         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
9814         * doc/posix-functions/ttyname.texi: Likewise.
9816 2019-01-25  Bruno Haible  <bruno@clisp.org>
9818         getprogname: Port to Android 4.3.
9819         * lib/getprogname.c (getprogname): On Android, take only the last
9820         component of __progname.
9822 2019-01-25  Bruno Haible  <bruno@clisp.org>
9824         wcrtomb: Work around bug on Android 4.3.
9825         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
9826         the C locale.
9827         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
9828         which does not have the 'wctomb' function.
9829         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
9830         * tests/test-wcrtomb.c (main): Accept argument '5'.
9831         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
9833 2019-01-25  Bruno Haible  <bruno@clisp.org>
9835         setlocale: Work around bug on Android 4.3.
9836         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
9837         the "C" locale.
9838         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
9839         * doc/posix-functions/setlocale.texi: Mention the Android bug.
9841 2019-01-24  Bruno Haible  <bruno@clisp.org>
9843         memchr: Work around bug on Android <= 5.0.
9844         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
9845         * doc/posix-functions/memchr.texi: Mention the Android bug.
9847 2019-01-24  Bruno Haible  <bruno@clisp.org>
9849         random: Fix compilation error on Android 4.3.
9850         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
9851         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
9852         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
9853         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
9854         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
9855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
9856         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
9857         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
9858         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
9859         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
9860         REPLACE_INITSTATE, REPLACE_SETSTATE.
9861         * doc/posix-functions/random.texi: Correct the description of the
9862         situation on Android.
9863         * doc/posix-functions/srandom.texi: Likewise.
9864         * doc/posix-functions/rand.texi: Likewise.
9865         * doc/posix-functions/srand.texi: Likewise.
9867 2019-01-24  Bruno Haible  <bruno@clisp.org>
9869         mbtowc: Fix compilation error on Android 4.3.
9870         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
9871         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
9872         HAVE_MBTOWC.
9873         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
9874         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
9875         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
9876         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
9877         * doc/posix-functions/mbtowc.texi: Mention the change.
9879 2019-01-24  Bruno Haible  <bruno@clisp.org>
9881         fdatasync: Fix compilation error on Android 4.3.
9882         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
9883         test whether fdatasync() exists.
9885 2019-01-24  Bruno Haible  <bruno@clisp.org>
9887         unlinkat: Fix compilation error on Android 4.3.
9888         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
9889         also on Android.
9890         * doc/posix-functions/unlinkat.texi: Mention the issue.
9892 2019-01-24  Bruno Haible  <bruno@clisp.org>
9894         renameat: Fix compilation error on Android 4.3.
9895         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
9896         * doc/posix-functions/renameat.texi: Mention the issue.
9898 2019-01-24  Bruno Haible  <bruno@clisp.org>
9900         fchownat: Fix compilation error on Android 4.3.
9901         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
9902         use.
9903         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
9904         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
9905         * doc/posix-functions/fchownat.texi: Mention the issue.
9907 2019-01-23  Bruno Haible  <bruno@clisp.org>
9909         gnulib-tool: Support running testdirs on Android.
9910         * build-aux/test-driver.diff: New file.
9911         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
9912         build-aux/test-driver after running automake.
9914 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
9916         relocatable-prog: avoid warnings from Automake
9917         * modules/relocatable-prog: Don't declare PHONY dependencies in
9918         Automake conditionals.
9920 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
9922         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
9923         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
9925 2019-01-23  Bruno Haible  <bruno@clisp.org>
9927         threadlib: Revert commit from 2018-06-25. We now have a better fix.
9928         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
9929         preceding -Wl,--as-needed option. Don't check whether the linker
9930         supports --as-needed/--no-as-needed and --push-state/--pop-state.
9932 2019-01-23  Bruno Haible  <bruno@clisp.org>
9934         thread: Force linking with -lpthread, even when --as-needed is in use.
9935         Reported by Richard W.M. Jones <rjones@redhat.com> in
9936         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
9937         * lib/glthread/thread.h (pthread_create): Don't declare weak.
9939 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
9940             Bruno Haible  <bruno@clisp.org>
9942         relocatable: avoid compiler warnings (-Wshadow)
9943         * lib/relocatable.c (compute_curr_prefix): Rename local variables
9944         to avoid name collisions with global variables.
9946 2019-01-22  Bruno Haible  <bruno@clisp.org>
9948         vasnprintf: Don't use %n on Android.
9949         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
9950         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
9951         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
9953 2019-01-22  Bruno Haible  <bruno@clisp.org>
9955         *printf: Support cross-compilation to Android.
9956         * m4/printf.m4: Add cross-compilation guesses for Android.
9958 2019-01-21  Bruno Haible  <bruno@clisp.org>
9960         diacrit: Mark deprecated.
9961         * modules/diacrit (Status, Notice): Mark as deprecated.
9962         * NEWS: Mention it.
9964 2019-01-20  Bruno Haible  <bruno@clisp.org>
9966         rintl: Override broken implementation on NetBSD.
9967         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
9968         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
9969         REPLACE_RINTL.
9970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
9971         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
9972         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
9973         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
9975 2019-01-20  Bruno Haible  <bruno@clisp.org>
9977         log10l: Work around inaccurate implementation on NetBSD.
9978         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
9979         * lib/log10l.c: Comment out too simplistic override.
9980         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
9982 2019-01-20  Bruno Haible  <bruno@clisp.org>
9984         logl: Work around inaccurate implementation on NetBSD.
9985         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
9986         * lib/logl.c: Comment out unused code.
9987         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
9989 2019-01-20  Bruno Haible  <bruno@clisp.org>
9991         expm1l: Work around inaccurate implementation on NetBSD.
9992         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
9993         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
9994         REPLACE_EXPM1L.
9995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
9996         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
9997         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
9998         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
10000 2019-01-20  Bruno Haible  <bruno@clisp.org>
10002         expl: Work around inaccurate implementation on NetBSD.
10003         * lib/math.in.h (expl): Test also REPLACE_EXPL.
10004         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
10005         REPLACE_EXPL.
10006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
10007         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
10008         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
10009         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
10011 2019-01-20  Bruno Haible  <bruno@clisp.org>
10013         exp2l: Work around inaccurate implementation on NetBSD.
10014         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
10015         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
10017 2019-01-20  Bruno Haible  <bruno@clisp.org>
10019         floor, floorl: Avoid autoconf warnings.
10020         * modules/floor (configure.ac): Use AC_REQUIRE.
10021         * modules/floorl (configure.ac): Likewise.
10023 2019-01-20  Bruno Haible  <bruno@clisp.org>
10025         Defeat current GCC optimizations in math autoconf tests.
10026         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
10027         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10028         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10029         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10030         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10031         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10032         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10033         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10034         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10035         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10036         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10037         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10038         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10039         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10040         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
10041         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
10042         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
10043         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10044         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10045         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10046         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10047         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10048         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10049         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10050         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10051         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10052         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10053         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10054         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10055         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10056         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10057         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10058         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10061         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10062         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10063         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10065 2019-01-19  Pádraig Brady  <P@draigBrady.com>
10067         gettext: support disabling use of VLAs
10068         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
10070 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
10072         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
10073         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
10075 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
10077         fcntl: Fix syntax error (regression from 2018-10-05).
10078         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
10080 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
10082         relocatable: improve documentation.
10083         * doc/relocatable-maint.texi (Supporting Relocation): For
10084         substitutions performed by config.status, we need more variables
10085         (for instance datarootdir defaults to '${prefix}/share' so we need
10086         prefix).
10088 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
10090         backup: update dependencies
10091         * modules/backup-rename (Depends-on): It now depends on opendirat
10092         instead of opendir.  It also uses stdint, and xalloc-oversized.
10093         But no longer dirfd.
10094         * modules/backupfile (Depends-on): Add xalloc-oversized.
10096 2019-01-13  Bruno Haible  <bruno@clisp.org>
10098         getcwd: Fix test failure when building on a Linux 9p file system.
10099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
10100         EINVAL from mkdir like ENAMETOOLONG.
10101         * tests/test-getcwd.c (test_long_name): Likewise.
10103 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
10105         Fix typos found by codespell.
10106         * lib/*.[hc]: Fix typos in comments.
10107         * pygnulib/*.py: Fix typos in error messages and comments.
10109 2019-01-12  Bruno Haible  <bruno@clisp.org>
10111         doc: Fix documentation about container data types.
10112         Reported by Werner Lemberg <wl@gnu.org>.
10113         * doc/containers.texi (Container data types): Fix typo.
10115 2019-01-10  Bruno Haible  <bruno@clisp.org>
10117         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
10118         Reported by Reuben Thomas <rrt@sc3d.org>.
10119         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
10121 2019-01-06  Bruno Haible  <bruno@clisp.org>
10123         maintainer-makefile: Make the configure.ac section optional.
10124         * top/maint.mk (GREP, SED): Define if not defined.
10126 2019-01-06  Bruno Haible  <bruno@clisp.org>
10128         localename: Assume setlocale function.
10129         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
10130         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
10132 2019-01-06  Bruno Haible  <bruno@clisp.org>
10134         doc: Add documentation about container data types.
10135         * doc/containers.texi: New file.
10136         * doc/gnulib.texi (Particular Modules): Include it.
10138 2019-01-06  Bruno Haible  <bruno@clisp.org>
10140         doc: Update documentation about 'progname' module.
10141         * doc/progname.texi: Rename from doc/error.texi. Change node name and
10142         title. Rewrite.
10143         * doc/gnulib.texi (Particular Modules): Update.
10145 2019-01-06  Bruno Haible  <bruno@clisp.org>
10147         doc: Document the xstdopen and *-safer modules.
10148         * doc/xstdopen.texi: New file.
10149         * doc/gnulib.texi (Particular Modules): Include it.
10151 2019-01-06  Bruno Haible  <bruno@clisp.org>
10153         xstdopen: Add tests.
10154         * tests/test-xstdopen.c: New file.
10155         * tests/test-xstdopen.sh: New file.
10156         * modules/xstdopen-tests: New file.
10158         xstdopen: New module.
10159         * lib/xstdopen.h: New file.
10160         * lib/xstdopen.c: New file.
10161         * modules/xstdopen: New file.
10163 2019-01-06  Bruno Haible  <bruno@clisp.org>
10165         stdopen: Fix compilation error with IRIX cc.
10166         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
10168 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10170         xfreopen need not include stdio--.h
10171         * lib/xfreopen.c: Do not include stdio--.h.
10173         xfreopen need not depend on freopen-safer
10174         * modules/xfreopen (Depends-on):
10175         Depend on freopen, not freopen-safer.
10177         stdopen: modernize and simplify
10178         * lib/stdopen.c: Update copyright date
10179         Do not include sys/types.h; no longer needed these days.
10180         (stdopen): Use C99-style decl in loop.  Return int errno
10181         value, rather than just a bool.  Do not worry about fd mismatches,
10182         since the caller cares only if 0, 1, 2 are occupied.
10183         * lib/stdopen.h: No need to include <stdbool.h>.
10184         * m4/stdopen.m4: Remove.
10185         * modules/stdopen: New file.
10187         stdopen: copy from last use in coreutils
10188         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
10189         New files, taken from their last commit in coreutils
10190         2007-07-23T12:35:58Z!jim@meyering.net
10191         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
10193 2019-01-05  Bruno Haible  <bruno@clisp.org>
10195         argp: Don't pass an invalid argument to dgettext().
10196         Reported by He X <xw897002528@gmail.com>.
10197         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
10198         dgettext().
10200 2019-01-05  Bruno Haible  <bruno@clisp.org>
10202         argp: Don't pass an invalid argument to dgettext().
10203         Reported by He X <xw897002528@gmail.com>.
10204         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
10205         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
10206         dgettext().
10208 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10210         stdioext: port to newer 32-bit Android
10211         Problem reported by Tom Yan in:
10212         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
10213         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
10214         (fp_) [__ANDROID__]: Use it.
10216 2019-01-04  Bruno Haible  <bruno@clisp.org>
10218         lock: Fix link error with --enable-threads=pth.
10219         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
10220         Mark as weak.
10222 2019-01-04  Bruno Haible  <bruno@clisp.org>
10224         Fix link errors in unit tests.
10225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10226         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
10227         * modules/array-map-tests (Makefile.am): Link test-array_map against
10228         libintl.
10229         * modules/array-set-tests (Makefile.am): Link test-array_set against
10230         libintl.
10231         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
10232         libintl.
10233         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
10234         libintl.
10235         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
10236         against libintl.
10237         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
10238         against libintl.
10240 2019-01-04  Bruno Haible  <bruno@clisp.org>
10242         Fix incorrect 'Link' sections.
10243         * modules/regex (Link): Mention the link requirement of module 'lock'.
10244         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
10246 2019-01-04  Bruno Haible  <bruno@clisp.org>
10248         Fix some 'Link' sections.
10249         * modules/c-stack (Link): Add link directive from the 'gettext-h'
10250         dependency.
10251         * modules/getaddrinfo (Link): Likewise.
10253 2019-01-04  Bruno Haible  <bruno@clisp.org>
10255         Remove redundant 'Link' sections.
10256         * modules/canon-host (Link): Remove section.
10257         * modules/timevar (Link): Likewise.
10259 2019-01-04  Bruno Haible  <bruno@clisp.org>
10261         Remove incorrect 'Link' sections.
10262         * modules/acl (Link): Remove section. Use combined 'Link' sections from
10263         the dependencies instead.
10264         * modules/crypto/md5 (Link): Likewise.
10265         * modules/crypto/sha1 (Link): Likewise.
10266         * modules/crypto/sha256 (Link): Likewise.
10267         * modules/crypto/sha512 (Link): Likewise.
10268         * modules/faccessat (Link): Likewise.
10269         * modules/fdutimensat (Link): Likewise.
10270         * modules/iconv_open-utf (Link): Likewise.
10271         * modules/propername (Link): Likewise.
10272         * modules/qacl (Link): Likewise.
10273         * modules/unicodeio (Link): Likewise.
10274         * modules/utimecmp (Link): Likewise.
10275         * modules/utimensat (Link): Likewise.
10276         * modules/xstriconv (Link): Likewise.
10277         * modules/xstriconveh (Link): Likewise.
10279 2019-01-04  Bruno Haible  <bruno@clisp.org>
10281         gnulib-tool: New option --extract-recursive-link-directive.
10282         * gnulib-tool (func_usage): Document the new options
10283         --extract-recursive-dependencies, --extract-recursive-link-directive.
10284         (func_verify_module): Document output variables.
10285         (func_get_dependencies_recursively): New function.
10286         (func_get_link_directive_recursively): New function.
10287         Use them to implement the new options
10288         --extract-recursive-dependencies, --extract-recursive-link-directive.
10289         * doc/gnulib-tool.texi (Link-time requirements): New section.
10291 2019-01-04  Bruno Haible  <bruno@clisp.org>
10293         Clarify meaning of 'Link' section in module description.
10294         * doc/gnulib.texi (Module description): Clarify the meaning of the
10295         'Link' section versus the one of the dependencies.
10296         * NEWS: Mention the change.
10298 2019-01-04  Bruno Haible  <bruno@clisp.org>
10300         pselect: Fix module description.
10301         * modules/pselect (Link): Put one link option per line.
10303 2019-01-04  Bruno Haible  <bruno@clisp.org>
10305         cosl: Fix module description.
10306         * modules/cosl (Link): Fix typo.
10307         * modules/mathl (configure.ac): Likewise.
10309 2019-01-04  Bruno Haible  <bruno@clisp.org>
10311         c-xvasprintf: Fix module dependencies.
10312         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
10314 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
10316         bootstrap: die when some submodules are not initialized
10317         * build-aux/bootstrap: Make sure all submodules are initialized.
10319 2019-01-04  Bruno Haible  <bruno@clisp.org>
10321         bitsetv: Fix module dependencies.
10322         * lib/bitsetv.c: Include xalloc.h.
10323         * modules/bitsetv (Depends-on): Add 'xalloc'.
10325 2019-01-04  Bruno Haible  <bruno@clisp.org>
10327         xmemdup0: Remove redundant code.
10328         * lib/xmemdup0.h (xalloc_die): Remove declaration.
10330 2019-01-04  Bruno Haible  <bruno@clisp.org>
10332         backupfile: Fix module dependencies.
10333         * modules/backupfile (Depends-on): Add 'xalloc'.
10335 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10337         bitset, crypto/gc: fix conflicts with Solaris 11
10338         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
10339         avoid clash with Solaris 11 <sys/bitset.h>.
10340         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
10341         with Solaris 11 <xorg/gc.h>.
10343 2019-01-04  Bruno Haible  <bruno@clisp.org>
10345         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
10346         Reported by Andy Fiddaman <andy@omniosce.org>.
10347         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
10349 2019-01-03  Eric Blake  <eblake@redhat.com>
10351         maintainer-makefile: fix typo in previous patch
10352         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
10353         of Roman's work.
10355 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
10357         maintainer-makefile: prefer $(GREP) over grep
10358         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
10359         defined.
10360         * top/maint.mk: Use it everywhere.
10362         maintainer-makefile: split long argument lines
10363         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
10364         it would be too long for exec limits on BSD.
10366 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10368         mkfifo: bring back HAVE_MKFIFO macro
10369         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
10370         Problem reported by Andrew Janke in:
10371         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
10373 2018-12-21  Bruno Haible  <bruno@clisp.org>
10375         Assume Autoconf >= 2.63.
10376         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
10377         versions < 2.60.
10379 2018-12-21  Bruno Haible  <bruno@clisp.org>
10381         memcmp: Mention the clang bug.
10382         * tests/test-memcmp.c: Add comment about a known test failure.
10383         * doc/posix-functions/memcmp.texi: Mention the clang bug.
10385 2018-12-20  Jim Meyering  <meyering@fb.com>
10387         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
10388         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
10389           echo '123-x'|LC_ALL=C grep -E '.\bx'
10390         The goal is to revert the first, but reverting it requires to restore
10391         the function deleted in the second. I ran this to restore the deleted
10392         function:
10393           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
10394             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
10395             | patch -R -p1
10396         * lib/dfa.c (charclass_context): Restore deleted function.
10397         Reverting the primary commit removes this change:
10398         dfa: Simplify a building state
10399         * lib/dfa.c (build_state): Simplify a building state.
10401 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10403         version-etc: allow zero authors
10404         * lib/version-etc.c (version_etc_arn): If no authors are given,
10405         omit authorship info instead of dumping core.
10407 2018-12-19  Bruno Haible  <bruno@clisp.org>
10409         lchown tests: Be more permissive regarding errno values.
10410         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
10411         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
10412         alternative to ENOSYS.
10413         * modules/lchown-tests (Depends-on): Add 'errno'.
10414         * modules/fchownat-tests (Depends-on): Likewise.
10416 2018-12-18  Bruno Haible  <bruno@clisp.org>
10418         duplocale: Avoid test failure on AIX 7.
10419         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
10420         (configure.ac): Invoke gt_FUNC_USELOCALE.
10421         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
10422         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
10423         works.
10425 2018-12-18  Bruno Haible  <bruno@clisp.org>
10427         localename: Fix test failure on AIX 7.
10428         Reported by Assaf Gordon in
10429         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
10430         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
10431         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
10432         instead of ac_cv_func_uselocale.
10433         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
10434         HAVE_USELOCALE.
10435         * lib/localename-table.h: Likewise.
10436         * lib/localename-table.c: Likewise.
10437         * tests/test-localename.c: Likewise.
10438         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
10440 2018-12-18  Bruno Haible  <bruno@clisp.org>
10442         localename: Update comments regarding Cygwin.
10443         * lib/localename.c: Update comment.
10444         * doc/posix-functions/uselocale.texi: Update platforms list.
10445         * doc/posix-functions/newlocale.texi: Likewise.
10446         * doc/posix-functions/duplocale.texi: Likewise.
10447         * doc/posix-functions/freelocale.texi: Likewise.
10449 2018-12-16  Bruno Haible  <bruno@clisp.org>
10451         c-stack: Fix for Linux/sparc.
10452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
10453         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
10455 2018-12-16  Bruno Haible  <bruno@clisp.org>
10457         localename: Avoid test failure on some glibc systems.
10458         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
10459         Unset environment variables that might disturb the first setlocale call,
10460         and verify that this setlocale call succeeds.
10462 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
10464         random: Fix build error on native Windows (regression from 2018-06-21).
10465         * lib/random.c (__srandom, __initstate, __setstate, __random,
10466         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
10467         to the symbols without '__' prefix.
10469 2018-12-16  Bruno Haible  <bruno@clisp.org>
10471         obstack, libc-config: Support HP-UX cc in C99 mode.
10472         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
10473         compiler, even when in C99 mode.
10474         * lib/cdefs.h (__flexarr): Likewise.
10475         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
10477 2018-12-16  Bruno Haible  <bruno@clisp.org>
10479         localename: Fix test failure on OpenBSD >= 6.2.
10480         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
10481         locale system. Define HAVE_FAKE_LOCALES in this case.
10482         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
10483         HAVE_USELOCALE.
10484         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
10485         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
10486         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
10487         platforms list.
10488         * doc/posix-functions/newlocale.texi: Likewise.
10489         * doc/posix-functions/duplocale.texi: Update platforms list.
10490         * doc/posix-functions/freelocale.texi: Likewise.
10492 2018-12-16  Bruno Haible  <bruno@clisp.org>
10494         duplocale tests: Re-enable the test on platforms without <monetary.h>.
10495         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
10496         of the test, on platforms without <monetary.h>.
10498 2018-12-16  Bruno Haible  <bruno@clisp.org>
10500         localename: Update comments.
10501         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
10503 2018-12-15  Jim Meyering  <meyering@fb.com>
10505         regex: fix indentation
10506         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
10508 2018-12-15  Bruno Haible  <bruno@clisp.org>
10510         openat-safer tests: Avoid test failure on NetBSD 8.
10511         * tests/test-openat-safer.c (main): Execute a Linux specific test only
10512         on Linux.
10514 2018-12-15  Jim Meyering  <meyering@fb.com>
10516         regex: work around a bug in glibc-2.27 and prior
10517         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
10518         assertion for /0|()0|\1|0/.
10519         * tests/test-regex.c (main): Add the same test here.
10521 2018-12-15  Bruno Haible  <bruno@clisp.org>
10523         localename: Fix use of uninitialized shell variable.
10524         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
10525         gt_cv_locale_solaris114 always before use. Remove assignment without
10526         effect.
10528 2018-12-15  Bruno Haible  <bruno@clisp.org>
10530         dfa tests: Avoid test failure on Alpine Linux.
10531         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
10532         command found on Alpine Linux.
10534 2018-12-15  Jim Meyering  <meyering@fb.com>
10536         dfa: avoid new warnings from gcc
10537         These would prevent building with -Werror and a Dec snapshot of gcc.
10538         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
10539         Rename each inner instance to "p".
10540         (charclass_context): Remove unused static function.
10542 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10544         mkdir-p: improve diagnostic for FUSE mounts
10545         Problem reported by Niklas Hambüchen in:
10546         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
10547         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
10548         errno to mkdir errno if the stat errno is likely more interesting.
10550 2018-12-14  Bruno Haible  <bruno@clisp.org>
10552         hash-map: Add tests.
10553         * tests/test-hash_map.c: New file.
10554         * modules/hash-map-tests: New file.
10556         linkedhash-map: Add tests.
10557         * tests/test-linkedhash_map.c: New file.
10558         * modules/linkedhash-map-tests: New file.
10560         array-map: Add tests.
10561         * tests/test-array_map.c: New file.
10562         * modules/array-map-tests: New file.
10564         xmap: New module.
10565         * lib/gl_xmap.h: New file.
10566         * lib/gl_xmap.c: New file.
10567         * modules/xmap: New file.
10569         hash-map: New module.
10570         * lib/gl_hash_map.h: New file.
10571         * lib/gl_hash_map.c: New file.
10572         * modules/hash-map: New file.
10574         linkedhash-map: New module.
10575         * lib/gl_linkedhash_map.h: New file.
10576         * lib/gl_linkedhash_map.c: New file.
10577         * lib/gl_anyhash1.h: Update comments.
10578         * lib/gl_anyhash2.h: Likewise.
10579         * modules/linkedhash-map: New file.
10581         array-map: New module.
10582         * lib/gl_array_map.h: New file.
10583         * lib/gl_array_map.c: New file.
10584         * modules/array-map: New file.
10586         map: New module.
10587         * lib/gl_map.h: New file.
10588         * lib/gl_map.c: New file.
10589         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
10590         conflict with gl_map.h.
10591         * modules/map: New file.
10593 2018-12-13  Bruno Haible  <bruno@clisp.org>
10595         select tests: Avoid test failure on Cygwin.
10596         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
10598 2018-12-13  Bruno Haible  <bruno@clisp.org>
10600         localtime-buffer: Avoid endless recursion in localtime and gmtime.
10601         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
10603 2018-12-13  Bruno Haible  <bruno@clisp.org>
10605         localeconv tests: Avoid test failure on Cygwin.
10606         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
10607         'mon_grouping' tests.
10609 2018-12-11  Bruno Haible  <bruno@clisp.org>
10611         omap: Don't dispose the old value when the function returns it.
10612         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
10613         here.
10614         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
10615         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
10616         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
10617         here.
10619         array-omap, avltree-omap, rbtree-omap: Tweak style.
10620         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
10621         false.
10622         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
10624         rbtree-omap: Add tests.
10625         * tests/test-rbtree_omap.c: New file.
10626         * modules/rbtree-omap-tests: New file.
10628         avltree-omap: Add tests.
10629         * tests/test-avltree_omap.c: New file.
10630         * modules/avltree-omap-tests: New file.
10632         array-omap: Add tests.
10633         * tests/test-array_omap.c: New file.
10634         * modules/array-omap-tests: New file.
10636         xomap: New module.
10637         * lib/gl_xomap.h: New file.
10638         * lib/gl_xomap.c: New file.
10639         * modules/xomap: New file.
10641         rbtree-omap: New module.
10642         * lib/gl_rbtree_omap.h: New file.
10643         * lib/gl_rbtree_omap.c: New file.
10644         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
10645         Parameterize.
10646         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
10647         * modules/rbtree-omap: New file.
10648         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
10649         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
10651         avltree-omap: New module.
10652         * lib/gl_avltree_omap.h: New file.
10653         * lib/gl_avltree_omap.c: New file.
10654         * lib/gl_avltree_ordered.h: Code moved to here from
10655         lib/gl_avltree_oset.c. Parameterize.
10656         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
10657         * lib/gl_anytree_omap.h: New file.
10658         * modules/avltree-omap: New file.
10659         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
10660         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
10662         array-omap: New module.
10663         * lib/gl_array_omap.h: New file.
10664         * lib/gl_array_omap.c: New file.
10665         * modules/array-omap: New file.
10667         omap: New module.
10668         * lib/gl_omap.h: New file.
10669         * lib/gl_omap.c: New file.
10670         * modules/omap: New file.
10672 2018-12-11  Bruno Haible  <bruno@clisp.org>
10674         hash-set, linkedhash-set: Reduce code duplication.
10675         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
10676         lib/gl_anyhash_set1.h.
10677         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
10678         lib/gl_anyhash_set2.h. Parameterize.
10679         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
10680         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
10681         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
10682         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
10683         * lib/gl_rbtreehash_list.c: Likewise.
10684         * lib/gl_linkedhash_list.c: Likewise.
10685         (hash_resize_after_add): Remove function.
10686         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
10687         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
10688         * gl_hash_set.c: Likewise.
10689         * modules/avltreehash-list (Files, Makefile.am): Update file list.
10690         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
10691         * modules/linkedhash-list (Files, Makefile.am): Likewise.
10692         * modules/linkedhash-set (Files, Makefile.am): Likewise.
10693         * modules/hash-set (Files, Makefile.am): Likewise.
10695 2018-12-11  Bruno Haible  <bruno@clisp.org>
10697         array-set: Optimize.
10698         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
10699         outside the loop, not inside the loop.
10701 2018-12-11  Bruno Haible  <bruno@clisp.org>
10703         times: Fix tests.
10704         * tests/test-times.c (doublecmp): Implement a total order.
10706 2018-12-11  Bruno Haible  <bruno@clisp.org>
10708         array-set, linkedhash-set, hash-set: Fix tests.
10709         * tests/test-array_set.c (cmp_objects_in_array): New function.
10710         (check_equals): Use it.
10711         * tests/test-hash_set.c: Likewise.
10712         * tests/test-linkedhash_set.c: Likewise.
10714 2018-12-08  Bruno Haible  <bruno@clisp.org>
10716         Fix comments.
10717         * lib/gl_list.h (gl_list_free): Clarify what it does.
10718         * lib/gl_oset.h (gl_oset_free): Likewise.
10719         * lib/gl_set.h (gl_set_free): Likewise.
10720         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
10721         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
10722         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
10723         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
10725 2018-12-03  Bruno Haible  <bruno@clisp.org>
10727         hash-set: Add tests.
10728         * tests/test-hash_set.c: New file.
10729         * modules/hash-set-tests: New file.
10731         linkedhash-set: Add tests.
10732         * tests/test-linkedhash_set.c: New file.
10733         * modules/linkedhash-set-tests: New file.
10735         array-set: Add tests.
10736         * tests/test-array_set.c: New file.
10737         * modules/array-set-tests: New file.
10739         xset: New module.
10740         * lib/gl_xset.h: New file.
10741         * lib/gl_xset.c: New file.
10742         * modules/xset: New file.
10744         hash-set: New module.
10745         * lib/gl_hash_set.h: New file.
10746         * lib/gl_hash_set.c: New file.
10747         * modules/hash-set: New file.
10749         linkedhash-set: New module.
10750         * lib/gl_linkedhash_set.h: New file.
10751         * lib/gl_linkedhash_set.c: New file.
10752         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
10753         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
10754         * lib/gl_anyhash_primes.h: New file, extracted from
10755         lib/gl_anyhash_list2.h.
10756         * lib/gl_anyhash_list2.h: Include it.
10757         (primes, next_prime): Remove definitions.
10758         * modules/linkedhash-set: New file.
10759         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
10760         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
10761         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
10762         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
10763         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
10764         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
10766         array-set: New module.
10767         * lib/gl_array_set.h: New file.
10768         * lib/gl_array_set.c: New file.
10769         * modules/array-set: New file.
10771         set: New module.
10772         * lib/gl_set.h: New file.
10773         * lib/gl_set.c: New file.
10774         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
10775         gl_set.h.
10776         * modules/set: New file.
10778 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
10780         bison: don't force the Yacc mode
10781         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
10782         errors when Bison features are used in the grammar file.  Some of
10783         these features (such as %expect) were flagged non-yacc recently.  Most
10784         of the time, -y is actually used to please Automake's ylwrap which
10785         expects the output to be y.tab.c.
10786         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
10788 2018-12-01  Bruno Haible  <bruno@clisp.org>
10790         gnupload: Document short options.
10791         * build-aux/gnupload (usage): Document the short options.
10793 2018-11-28  Ben Elliston  <bje@gnu.org>
10795         gnupload: Support option -h as alias of --help.
10796         * build-aux/gnupload: Support -h.
10798 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
10800         memrchr: port better to clang
10801         * lib/memrchr.c (__memrchr): Cast to void * instead of to
10802         longword *, to pacify clang -Wcast-align (Bug#33544).
10804 2018-11-29  Eric Blake  <eblake@redhat.com>
10806         docs: mention printf %m considerations
10807         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
10808         is not portable, and is easy enough to work around.
10809         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
10810         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
10811         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
10812         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
10813         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10814         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10815         * doc/posix-functions/printf.texi (printf): Likewise.
10816         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
10817         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
10818         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
10819         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10821         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10822         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10823         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10824         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
10825         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
10826         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10827         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10829 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
10831         bitset: rename ebitset/expandable.* as tbitset/table.*
10832         See
10833         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
10834         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
10835         * lib/bitset/table.h, lib/bitset/table.c: these.
10836         Rename all the ebitset* symbols as tbitset*.
10837         Adjust dependencies.
10839 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
10841         bitset: check the operations
10842         * tests/test-bitset.c (bitset_random): New.
10843         Use it.
10844         * lib/bitset/expandable.c (ebitset_not): Fix typo.
10846 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
10848         bitset: properly use false/true instead of 0/1 for Booleans
10849         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
10850         0/1, as Booleans.
10852 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
10854         bitset: rename BITSET_VARRAY as BITSET_VECTOR
10855         For consistency with the name of the file.
10856         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
10857         * lib/bitset/stats.c, lib/bitset/vector.c
10858         (BITSET_VARRAY): Rename as...
10859         (BITSET_VECTOR): this.
10861 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10863         strerror_r-posix: memmove, not memcpy
10864         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
10865         since the source and destination might overlap in the call
10866         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
10867         Simplify.
10869 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
10871         bitsetv: new module
10872         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
10874 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
10876         bitset: add tests and doc
10877         First stabs at providing a documentation and test for the bitset
10878         module.
10879         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
10881 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
10883         bitset: new module
10884         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
10885         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
10886         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
10887         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
10888         * lib/bitset/vector.h, modules/bitset:
10889         New.
10891 2018-11-23  Bruno Haible  <bruno@clisp.org>
10893         localename: Fix gettext test failures on mingw.
10894         * lib/localename.c (gl_locale_name_posix): Convert the result of
10895         gl_locale_name_environ to XPG syntax.
10897 2018-11-23  Karl Berry  <karl@freefriends.org>
10899         * config/srclistvars.txt,
10900         * config/srclist.txt: remove all gettext references;
10901         the gettext maintainers will sync as needed.
10903 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
10905         mktime: add libc-config dependency
10906         I missed this when we synced from glibc.
10907         * modules/mktime (Depends-on): Add libc-config.
10909 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
10911         longlong: fix comment typo
10912         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
10914 2018-11-11  Bruno Haible  <bruno@clisp.org>
10916         havelib: Remove the need to include asm-underscore.m4.
10917         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
10918         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
10919         gl_HOST_CPU_C_ABI.
10920         * modules/havelib (Files): Add host-cpu-c-abi.m4.
10921         (Depends-on): Remove host-cpu-c-abi.
10923 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10925         parse-datetime: simplify test for mktime failure
10926         * lib/parse-datetime.y (mktime_ok): Simplify.
10927         Remove args TZ and T; no longer needed.  Callers changed.
10929         posixtm: simplify test for mktime failure
10930         * lib/posixtm.c (posixtime): Simplify.
10932         nstrftime: simplify test for mktime failure
10933         * lib/nstrftime.c (__strftime_internal): Simplify.
10935 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
10937         gnulib-common.m4: port _Noreturn to C++
10938         Problem reported by Akim Demaille in:
10939         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
10940         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
10941         Merge adjustments from _Noreturn.h and from glibc into the non-C++
10942         version.
10943         * lib/_Noreturn.h: Match gnulib-common.
10945 2018-10-30  Bruno Haible  <bruno@clisp.org>
10947         gnu-make: Fix for NetBSD 8 'make'.
10948         Reported by Reuben Thomas in
10949         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
10950         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
10951         output, ignoring exit codes.
10953 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
10955         maintainer-makefile: fix syntax-check rule for "same.h"
10956         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
10957         for 'same_nameat', too.
10959 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10961         havelib: fix nested ‘configure’ chatter
10962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
10963         AC_CACHE_CHECK calls, which resulted in confusing output like
10964         “checking for the common suffixes of directories in the library
10965         search path... checking for 64-bit host... no lib,lib”.
10967         backupfile: tweak for better code
10968         * lib/backupfile.c: Sort include directives, and remove
10969         unnecessary <limits.h> include.
10970         (FALLTHROUGH): New macro, copied from other modules.
10971         (backupfile_internal): Use it to avoid code duplication.
10972         This lets GCC 8.2.1 generate better code by inlining the
10973         call to check_extension.
10975 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10977         backupfile: new dir_fd args
10978         New module opendirat with code taken from fts.
10979         Use this module to let backupfile use a directory file descriptor.
10980         * NEWS: Document the incompatible change.
10981         * lib/backup-find.c (find_backup_file_name):
10982         * lib/backup-rename.c (backup_file_rename):
10983         New arg DIR_FD.
10984         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
10985         (SIZE_MAX): Remove.
10986         Include opendirat.h rather than dirent--.h.
10987         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
10988         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
10989         (backupfile_internal): New arg DIR_FD.  All callers changed.
10990         * lib/fts.c: Include opendirat.h.
10991         (opendirat): Move to opendirat.c.
10992         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
10993         * modules/backupfile (Depends-on): Remove dirfd, opendir.
10994         Add opendirat.
10995         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
10996         Add opendirat.
10998 2018-10-23  Bruno Haible  <bruno@clisp.org>
11000         localename: Simplify support for per-thread locales on Solaris 11.4.
11001         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
11002         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
11003         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
11004         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
11005         specific code.
11006         * lib/localename-table.h: Update comments.
11007         * lib/localename-table.c: Update comments.
11008         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
11009         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
11010         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
11011         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
11012         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
11013         HAVE_NAMELESS_LOCALES here.
11014         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
11015         m4/intlsolaris.m4.
11016         * modules/gettext (Files): Likewise.
11018 2018-10-22  Bruno Haible  <bruno@clisp.org>
11020         std-gnu11: Support Autoconf versions < 2.64.
11021         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
11022         when _AC_DO_LIMIT does not exist.
11024 2018-10-22  Bruno Haible  <bruno@clisp.org>
11026         Assume Autoconf >= 2.63.
11027         * DEPENDENCIES: Mention the requirement.
11029         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
11030         (func_get_filelist): Don't list m4/onceonly.m4 any more.
11031         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
11032         * m4/onceonly.m4: Remove file.
11034         * m4/openmp.m4: Remove file.
11035         * modules/openmp (Files): Remove m4/openmp.m4.
11037         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
11038         htmldir, dvidir, pdfdir, psdir, localedir.
11039         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
11041         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
11042         Autoconf < 2.60.
11043         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
11044         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
11046         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
11047         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
11048         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
11050         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
11051         exists.
11052         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
11054         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
11055         Autoconf < 2.61.
11057         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
11058         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
11059         Autoconf >= 2.52.
11061         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
11062         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
11063         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
11065 2018-10-22  Bruno Haible  <bruno@clisp.org>
11067         Assume Automake >= 1.11.
11068         * m4/configmake.m4: Update comments.
11069         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
11070         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
11071         of 'eval'.
11072         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
11073         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
11074         requires Automake >= 1.11.
11076 2018-10-22  Bruno Haible  <bruno@clisp.org>
11078         localename: Fix typo in comment.
11079         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
11081 2018-10-22  Bruno Haible  <bruno@clisp.org>
11083         Fix failure of 'gnulib-tool --create-testdir' with all modules.
11084         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
11086 2018-10-21  Bruno Haible  <bruno@clisp.org>
11088         locale: Ease integration with GNU libintl.
11089         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
11090         GNULIB_defined_freelocale): New macros.
11092 2018-10-21  Bruno Haible  <bruno@clisp.org>
11094         localename: Fine-tune support for per-thread locales on Solaris 11.4.
11095         * lib/localename-table.h: New file, extracted from lib/localename.c.
11096         * lib/localename-table.c: Likewise.
11097         * lib/localename.c: Include localename-table.h.
11098         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
11099         locale_hash_function instead of pointer_hash.
11100         * modules/localename (Files): Add lib/localename-table.h,
11101         lib/localename-table.c.
11102         (lib_SOURCES): Add localename-table.c.
11103         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
11104         for Solaris 11.4 locale system only on Solaris. Test for it
11105         independently whether getlocalename_l exists.
11106         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
11107         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
11108         HAVE_NAMELESS_LOCALES.
11109         * modules/gettext (Files): Add m4/intlsolaris.m4.
11111 2018-10-21  Bruno Haible  <bruno@clisp.org>
11113         Small update from gettext.
11114         * m4/intl.m4: Update from gettext:
11115         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
11116         mode on AIX.
11117         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
11118         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
11120 2018-10-16  Bruno Haible  <bruno@clisp.org>
11122         mountlist: Remove support for Cray with UNICOS 9.
11123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11124         MOUNTED_LISTMNTENT.
11125         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
11127 2018-10-16  Bruno Haible  <bruno@clisp.org>
11129         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
11130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
11131         STAT_STATFS2_FS_DATA.
11132         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
11133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11134         MOUNTED_GETMNT.
11135         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
11136         * lib/getloadavg.c (decstation): Remove definition and case.
11137         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
11138         * lib/getgroups.c: Likewise.
11139         * doc/posix-functions/getgroups.texi: Likewise.
11140         * lib/time.in.h: Update comments.
11142 2018-10-16  Bruno Haible  <bruno@clisp.org>
11144         getloadavg: Remove support for ConvexOS.
11145         * lib/getloadavg.c: Remove convex case.
11147 2018-10-16  Bruno Haible  <bruno@clisp.org>
11149         getloadavg: Remove support for Sony NEWS.
11150         * lib/getloadavg.c: Remove sony_news case.
11152 2018-10-16  Bruno Haible  <bruno@clisp.org>
11154         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
11155         * lib/fsusage.c: Remove _SEQUENT_ case.
11156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
11157         * lib/mountlist.c: Don't test for MNTTABNAME.
11158         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
11159         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
11160         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
11161         * lib/stat-size.h: Don't mention the Sequent bug.
11162         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
11164 2018-10-16  Bruno Haible  <bruno@clisp.org>
11166         fsusage: Remove support for AIX 3.
11167         * lib/fsusage.c: Remove code for AIX 3.
11168         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
11170 2018-10-16  Bruno Haible  <bruno@clisp.org>
11172         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
11173         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
11174         * lib/fsusage.c: Remove code for AIX PS/2.
11175         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
11176         * lib/getloadavg.c: Likewise.
11178 2018-10-16  Bruno Haible  <bruno@clisp.org>
11180         getloadavg: Remove support for HP-UX on m68k.
11181         * lib/getloadavg.c: Remove hp9000s300 case.
11183 2018-10-16  Bruno Haible  <bruno@clisp.org>
11185         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
11186         * lib/fsusage.c: Remove DOLPHIN case.
11187         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
11188         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
11190 2018-10-16  Bruno Haible  <bruno@clisp.org>
11192         getloadavg: Remove support for Alliant FX/2800.
11193         * lib/getloadavg.c: Remove alliant case.
11195 2018-10-16  Bruno Haible  <bruno@clisp.org>
11197         getloadavg: Remove support for tek4300.
11198         * lib/getloadavg.c: Remove tek4300 case.
11200 2018-10-16  Bruno Haible  <bruno@clisp.org>
11202         getloadavg: Remove support for Ardent.
11203         * lib/getloadavg.c: Remove ardent case.
11205 2018-10-16  Bruno Haible  <bruno@clisp.org>
11207         mountlist: Remove support for SVR2.
11208         Reported by Andrew Borodin <aborodin@vmail.ru> in
11209         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
11210         * lib/mountlist.c: Remove MOUNTED_FREAD case.
11211         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
11212         MOUNTED_FREAD.
11214 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11216         libc-config: merge from glibc
11217         * lib/cdefs.h (__glibc_has_attribute): New macro.
11219         regex: depend on libc-config
11220         * modules/regex (Depends-on): Add libc-config.
11221         This is needed after the recent autoupdate from glibc.
11223 2018-10-14  Bruno Haible  <bruno@clisp.org>
11225         localename: Add support for per-thread locales on Solaris 11.4.
11226         * lib/locale.in.h (newlocale, freelocale): New declarations.
11227         (duplocale): Declare also when the 'localename' module requests it.
11228         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
11229         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
11230         (struniq): Update.
11231         (struct locale_categories_names, struct locale_hash_node): New types.
11232         (LOCALE_HASH_TABLE_SIZE): New constant.
11233         (locale_hash_table, locale_lock): New variables.
11234         (pointer_hash, get_locale_t_name): New functions.
11235         (newlocale, duplocale, freelocale): New overridden functions.
11236         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
11237         * m4/intlsolaris.m4: New file.
11238         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
11239         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
11240         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
11241         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
11242         declared.
11243         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
11244         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
11245         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
11246         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
11247         * modules/localename (Files): Add intlsolaris.m4.
11248         (Depends-on): Add 'locale'.
11249         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
11250         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
11251         the signatures.
11253 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
11255         timevar: use gethrxtime to get wall clock time
11256         clock_gettime is not portable.  gethrxtime takes the best available
11257         option to get the wall clock time, including clock_gettime (monotonic
11258         clock), and gettime (non monotonic).
11259         Also, using xtime_t instead of float preserves the precision.
11260         Suggested by Bruno Haible.
11261         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
11262         * modules/timevar (Depends-on): We need gethrxtime.
11263         We no longer use times().
11264         (Link): Update.
11265         * lib/timevar.h (timevar_time_def): Use xtime_t.
11266         * lib/timevar.c (set_to_current_time): Use gethrxtime.
11267         (timevar_print): Instead of checking whether the timings themselves
11268         are large enough for the timevar to be printed, check the percentages.
11270 2018-10-14  Bruno Haible  <bruno@clisp.org>
11272         wcsnrtombs: Work around Solaris 11.4 bug.
11273         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
11274         macro.
11275         (gl_FUNC_WCSNRTOMBS): Invoke it.
11276         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
11278 2018-10-14  Bruno Haible  <bruno@clisp.org>
11280         mbsnrtowcs: Work around Solaris 11.4 bug.
11281         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
11282         macro.
11283         (gl_FUNC_MBSNRTOWCS): Invoke it.
11284         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
11286 2018-10-14  Bruno Haible  <bruno@clisp.org>
11288         doc: Update for Solaris 11.4.
11289         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
11290         mention Solaris 11.4.
11291         * m4/printf.m4: Update comments about Solaris.
11292         * m4/log.m4: Likewise.
11293         * m4/log10.m4: Likewise.
11294         * m4/logb.m4: Likewise.
11295         * m4/logbf.m4: Likewise.
11296         * m4/logbl.m4: Likewise.
11297         * m4/rename.m4: Likewise.
11298         * m4/wcrtomb.m4: Likewise.
11299         * m4/hostent.m4: Likewise.
11300         * m4/servent.m4: Likewise.
11302 2018-10-14  Bruno Haible  <bruno@clisp.org>
11304         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
11305         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
11306         pointer.
11307         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
11308         pointer.
11309         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
11310         pointer.
11311         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
11312         pointer.
11313         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
11314         pointer.
11316 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11318         bootstrap: fix wget command for po files.
11319         * build-aux/bootstrap (po_download_command_format): Fix comment,
11320         and adjust callers.
11322 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11324         timevar: improve the output format
11325         Suggested by Bruno Haible.
11326         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
11327         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
11328         wall, since its resolution is much higher.
11330 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
11332         timevar: expect that getrusage is available.
11333         Don't keep both times and getrusage as backend: both are guaranteed by
11334         gnulib, a single one suffices.  Using getrusage is open to possibly
11335         tracking other types of resources in the future.
11336         * modules/timevar (Depends-on): Add getrusage.
11337         (configure.ac): Remove gl_TIMEVAR.
11338         (Files): Remove m4/timevar.m4.
11339         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
11340         * lib/timevar.h (timevar_enabled): Clarify documentation.
11341         * lib/timevar.c: Remove all the code about times.
11342         Remove all the CPP guards about getrusage: expect it to be present
11343         (courtesy of gnulib).
11345 2018-10-12  Bruno Haible  <bruno@clisp.org>
11347         mountlist: Improve support for Solaris in 64-bit mode.
11348         Reported by David Wood <David.Wood@deshaw.com> in
11349         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
11350         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
11351         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
11352         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
11354 2018-10-12  Bruno Haible  <bruno@clisp.org>
11356         mountlist: Add support for Minix.
11357         Reported by Assaf Gordon in
11358         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
11359         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
11360         AC_CHECK_FUNCS to check for 'getmntinfo'.
11361         * lib/mountlist.c: Update comments.
11363 2018-10-12  Bruno Haible  <bruno@clisp.org>
11365         Make better use of Autoconf.
11366         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
11367         * m4/manywarnings.m4: Likewise.
11368         * m4/manywarnings-c++.m4: Likewise.
11369         * m4/socklen.m4: Likewise.
11370         * m4/sockpfaf.m4: Likewise.
11371         * m4/stdarg.m4: Likewise.
11372         * m4/visibility.m4: Likewise.
11373         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
11374         indentation.
11375         * m4/ls-mntd-fs.m4: Likewise.
11377 2018-10-11  Bruno Haible  <bruno@clisp.org>
11379         mountlist: Modernize platform lists.
11380         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
11381         platforms, deemphasizing the obsolete ones.
11382         * lib/mountlist.c: Likewise.
11384 2018-10-11  Bruno Haible  <bruno@clisp.org>
11386         getprogname: Add support for 32-bit programs on HP-UX.
11387         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
11388         try the similar functions 32-bit programs on 64-bit HP-UX.
11390 2018-10-11  Bruno Haible  <bruno@clisp.org>
11392         getprogname: Work around program name truncation when possible.
11393         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
11394         possibly use pst_cmd instead.
11396 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11398         fts: cleanup after FTS_NOATIME removal
11399         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
11400         (FTS_STOP): Shrink to minimal values.  We don’t need to
11401         worry about binary compatibility in Gnulib, and the old way
11402         of doing things had a hole in the user options that caused
11403         FTS_OPTIONMASK to not work as desired.
11405 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
11407         fts: remove FTS_NOATIME
11408         This reverts commit da4d6974013c822af1498941e32db774b2031765.
11409         We cannot guarantee that O_NOATIME works: e.g. openat fails
11410         with EPERM if the effective user ID of the caller does not match
11411         the owner of the file and the caller is not privileged.
11412         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
11413         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
11414         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
11415         (FTS_OPTIONMASK): Adjust.
11416         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
11417         (fd_ring_check): Likewise.
11419 2018-10-08  Bruno Haible  <bruno@clisp.org>
11421         csharpcomp*, csharpexec*: Remove support for pnet.
11422         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
11423         HAVE_CSCC.
11424         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
11425         Don't test HAVE_CSCC.
11426         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
11427         (compile_csharp_class): Don't invoke it.
11428         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
11429         HAVE_ILRUN.
11430         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
11431         Don't test HAVE_ILRUN.
11432         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
11433         (execute_csharp_program): Don't invoke it.
11434         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
11435         any more.
11437 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
11439         renameatu: prefer renameat2 to syscall
11440         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
11441         Use renameat2 instead of syscall (Bug#32796).
11442         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
11444 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
11446         bootstrap, gnulib-tool: use https instead of insecure rsync
11447         * build-aux/bootstrap (download_po_files, po_download_command_format):
11448         Don't try using rsync; always use wget over https to fetch PO files.
11449         * gnulib-tool (func_import): Likewise.
11450         * pygnulib/GLImport.py (GLImport.execute): Likewise.
11452 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
11454         bootstrap, gnulib-tool: correct the translations wget command
11455         * build-aux/bootstrap (po_download_command_format2): Restrict
11456         recursion to a single level.
11457         * gnulib-tool (func_import): Likewise.
11458         * pygnulib/GLImport.py (GLImport.execute): Likewise.
11460 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
11462         doc: the gnulib snapshots are not maintained
11463         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
11465 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
11467         timevar: add to lib_SOURCES
11468         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
11470 2018-10-07  Bruno Haible  <bruno@clisp.org>
11472         dirent: Update documentation.
11473         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
11475 2018-10-05  Bruno Haible  <bruno@clisp.org>
11477         strpbrk: Make it possible to namespace the defined symbol.
11478         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
11480 2018-10-05  Bruno Haible  <bruno@clisp.org>
11482         strcspn: Make it possible to namespace the defined symbol.
11483         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
11485 2018-10-05  Bruno Haible  <bruno@clisp.org>
11487         raise: Make it possible to namespace the defined symbol.
11488         * lib/raise.c (raise): Undefine only after the replacement function has
11489         been defined.
11490         (raise): Renamed from rpl_raise.
11491         (raise_nothrow): Move to the end of the compilation unit.
11493 2018-10-05  Bruno Haible  <bruno@clisp.org>
11495         memcmp: Make it possible to namespace the defined symbol.
11496         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
11498 2018-10-05  Bruno Haible  <bruno@clisp.org>
11500         explicit_bzero: Make it possible to namespace the defined symbol.
11501         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
11502         glibc.
11504 2018-10-05  Bruno Haible  <bruno@clisp.org>
11506         mkdir-p: Depend on 'mkdir'.
11507         * modules/mkdir-p (Depends-on): Add 'mkdir'.
11509 2018-10-05  Bruno Haible  <bruno@clisp.org>
11511         tempname: Depend on 'mkdir'.
11512         Reported by Maarten Bosmans <mkbosmans@gmail.com>
11513         at <https://savannah.gnu.org/bugs/?33379>.
11514         * modules/tempname (Depends-on): Add 'mkdir'.
11516 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
11518         timevar: rely on gnulib modules for time portability.
11519         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
11520         * m4/timevar.m4: Don't check for clock_t and struct tms,
11521         guaranteed by gnulib.
11522         * lib/timevar.h: Use extern "C" protection.
11523         Include <stdio.h> for FILE.
11524         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
11525         they are guaranteed by gnulib.
11526         Remove uses of clock as (now useless) fallback.
11528 2018-10-04  Bruno Haible  <bruno@clisp.org>
11530         sh-filename: New module.
11531         * m4/sh-filename.m4: New file.
11532         * modules/sh-filename: New file.
11533         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
11534         "/bin/sh".
11535         * tests/test-posix_spawn1.c (main): Likewise.
11536         * tests/test-posix_spawn2.c (main): Likewise.
11537         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
11538         is_envjavac_gcj43): Likewise.
11539         * lib/javaexec.c (execute_java_class): Likewise.
11540         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
11541         * modules/posix_spawnp-tests (Depends-on): Likewise.
11542         * modules/javacomp (Depends-on): Likewise.
11543         * modules/javaexec (Depends-on): Likewise.
11545 2018-10-04  Bruno Haible  <bruno@clisp.org>
11547         spawn-pipe tests: Avoid test failure on native Windows.
11548         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
11549         that fd 2 is closed.
11551 2018-10-04  Bruno Haible  <bruno@clisp.org>
11553         fcntl: Make it possible to namespace the defined symbol.
11554         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
11555         been defined.
11556         (fcntl): Renamed from rpl_fcntl.
11557         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
11558         from fcntl.
11559         (klibc_fcntl): Move to the end of the compilation unit.
11561 2018-10-02  Bruno Haible  <bruno@clisp.org>
11563         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
11564         * tests/test-vasnprintf.c (test_function): Change the test added on
11565         2018-09-23 to check only the 18 most significant digits.
11567         vasnprintf tests: Avoid test failure on Cygwin.
11568         * tests/test-vasnprintf.c (test_function): Change the test added on
11569         2018-09-23 to check only the 42 most significant digits.
11571 2018-10-01  Bruno Haible  <bruno@clisp.org>
11573         mkostemp, mkostemps: Update documentation.
11574         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
11575         * doc/glibc-functions/mkostemps.texi: Likewise.
11577 2018-10-01  Tom Tromey  <tom@tromey.com>
11579         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
11580         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
11581         on OS X.
11583 2018-09-30  Pádraig Brady  <P@draigBrady.com>
11585         hmac-*: refactor to remove repetitive code
11586         * lib/hmac.c: A new parameterized single implementation.
11587         * lib/hmac-md5.c: Define parameters and include implementation.
11588         * lib/hmac-sha1.c: Likewise.
11589         * lib/hmac-sha256.c: Likewise.
11590         * lib/hmac-sha512.c: Likewise.
11591         * modules/crypto/hmac-md5: Reference the new implementation file.
11592         * modules/crypto/hmac-sha1: Likewise.
11593         * modules/crypto/hmac-sha256: Likewise.
11594         * modules/crypto/hmac-sha512: Likewise.
11595         * tests/test-hmac-md5.c: Refactor common code to a single function.
11596         * tests/test-hmac-sha1.c: Likewise.
11597         * tests/test-hmac-sha256.c: Likewise.
11598         * tests/test-hmac-sha512.c: Likewise.
11600 2018-09-30  Zhang Qing  <zhangqingl@126.com>
11602         hmac-sha512: fix hash for keys > blocksize (128 bytes)
11603         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
11604         key length to that output by sha512, not the blocksize.
11605         Otherwise uninitialized data from the stack
11606         is used when computing the hash.
11607         * tests/test-hmac-sha512.c: Add a shortened key test case.
11608         Reported at https://github.com/coreutils/gnulib/pull/5
11610 2018-09-30  Bruno Haible  <bruno@clisp.org>
11612         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
11613         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
11614         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
11615         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
11616         'unsigned int' before comparison with an unsigned value.
11618 2018-09-30  Bruno Haible  <bruno@clisp.org>
11620         grantpt: Remove unnecessary dependency.
11621         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
11623 2018-09-30  Bruno Haible  <bruno@clisp.org>
11625         timevar: Small tweaks.
11626         * lib/timevar.h: Fix comments. Add parameter names to function
11627         declarations.
11628         * lib/timevar.c: Include timevar.h immediately after config.h.
11629         * lib/timevar.def: Fix comments.
11630         * modules/timevar (Maintainer): List Akim Demaille.
11632 2018-09-30  Bruno Haible  <bruno@clisp.org>
11634         timevar: Include documentation in gnulib manual.
11635         * doc/timevar.texi: Change node and section name to 'Profiling of
11636         program phases'.
11637         In the code snippets, tweak the #includes and use GNU coding style.
11638         * doc/gnulib.texi: Include timevar.texi.
11640 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
11642         timevar: import from Bison.
11643         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
11644         New files.
11645         * lib/timevar.def: New file.
11646         * doc/timevar.texi: New file.
11648 2018-09-26  Bruno Haible  <bruno@clisp.org>
11650         javacomp-script, javacomp: Add preliminary support for Java 12..17.
11651         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
11652         * lib/javacomp.c (default_target_version): Likewise.
11654 2018-09-26  Bruno Haible  <bruno@clisp.org>
11656         javacomp-script, javacomp: Add support for Java 11.
11657         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
11658         target-version 11.
11659         * lib/javaversion.h: Update comments.
11660         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
11661         source_version_index, get_goodcode_snippet, get_failcode_snippet,
11662         TARGET_VERSION_BOUND, target_version_index,
11663         corresponding_classfile_version): Accept source_version 11 and
11664         target_version 11.
11665         * lib/javacomp.h: Update comments accordingly.
11667 2018-09-23  Bruno Haible  <bruno@clisp.org>
11669         vasnprintf: Fix heap memory overrun bug.
11670         Reported by Ben Pfaff <blp@cs.stanford.edu> in
11671         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
11672         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
11673         memory.
11674         * tests/test-vasnprintf.c (test_function): Add another test.
11676 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11678         maint: mktime.c now shared with glibc
11679         * config/srclist.txt: intprops.h, timegm.c and mktime.c
11680         are now the same in Gnulib and glibc.
11682         mktime: fix _LIBC typo
11683         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
11685 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11687         dfa: optimization for state merge
11688         * lib/dfa.c (merge2): New function.
11689         (merge_nfa_state): Use it.
11691 2018-09-18  Jim Meyering  <meyering@fb.com>
11693         dfa: trivial comment fix: s/is/if/
11694         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
11696 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11698         dfa: use more-informative function name
11699         * lib/dfa.c (maybe_disable_superset_dfa):
11700         Rename from dfautf8noss.  Use change.
11702         dfa: tweak allocation performance
11703         * lib/dfa.c (merge_nfa_state, dfaoptimize):
11704         Prefer ptrdiff_t for indexes some more.
11705         Use char for flags, as it’s wide enough.
11706         Allocate queue and flags together, with one malloc call.
11707         No need to use xnmalloc since the multiplication and
11708         addition cannot overflow (it’s already been checked by
11709         earlier allocation).  Prefer memset to open-coding.
11711         dfa: prune states as we go
11712         * lib/dfa.c (prune): Remove.
11713         dfa: reorder enum for efficiency
11714         (merge_nfa_state): Prune as we go instead of at the end.
11715         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
11717         * lib/dfa.c (END): Now -1 again.  Reorder other elements
11718         of the enumeration to make it easier for GCC to generate
11719         efficient code by using fewer comparisons to check for
11720         ranges of values.
11721         (atom): Take advantage of the reordering.
11723 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11725         dfa: optimize alternation in NFA
11726         Even when similar states exist in alternation, the DFA treats them
11727         as separate items, which may complicate the transition in NFA and
11728         cause slowdown.  This change assembles the states into one.  For
11729         example, ab|ac is changed into a(b|c).  This change speeds-up
11730         matching for many branched patterns.  For example, grep speeds up
11731         more than 30× in:
11733           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
11734           time -p env LC_ALL=C grep -vf in in
11736         * lib/dfa.c (prune): New function.
11737         (merge_nfa_state): New function.  It merges similar NFA states.
11738         (dfaoptimize): New function.  It seeks merged and removed nodes.
11739         (dfaanalyze): Call new function.
11740         (dfautf8noss): Change name from dfaoptimize because of addition of new
11741         function.
11742         (dfacomp): Update caller.
11744         dfa: simplify initial state
11745         Simplifying the initial state enables easier optimization of the NFA.
11746         * lib/dfa.c (enum token): Add new element BEG.
11747         (prtok): Adjust due to adding element BEG.
11748         (dfaparse): Put BEG at a head of tokens.
11749         (state_index): Adjust due to adding element BEG.
11750         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
11751         build initial state.
11752         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
11754 2018-09-18  Bruno Haible  <bruno@clisp.org>
11756         file-has-acl: Fix test failure on Cygwin 2.9.
11757         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
11758         * lib/acl-internal.h: Likewise.
11759         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
11760         * lib/acl-internal.c: Update comments regarding Cygwin.
11761         * lib/acl_entries.c: Likewise.
11762         * lib/file-has-acl.c: Likewise.
11763         (file_has_acl): For Cygwin, use a different way to determine whether
11764         the "default" ACL of a directory is nontrivial.
11765         * lib/get-permissions.c: Update comments regarding Cygwin.
11766         * lib/set-permissions.c: Likewise.
11768 2018-09-18  Bruno Haible  <bruno@clisp.org>
11770         stat-time tests: Fix test failure on Cygwin.
11771         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
11773 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11775         doc: OS X 10.11 lacked ns time functions
11776         According to <https://github.com/zeromq/libzmq/issues/2175>,
11777         nanosecond-resolution timestamp functions were introduced
11778         in macOS 10.12, so document the last version (OS X 10.11)
11779         where they were absent.
11781         gettime: nanotime never existed
11782         Problem reported by Bruno Haible in:
11783         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
11784         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
11785         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
11787 2018-09-18  Bruno Haible  <bruno@clisp.org>
11789         doc: Update statement about target platforms.
11790         Reported by Simon Sobisch.
11791         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
11792         restrictions on MSVC versions.
11794 2018-09-18  Bruno Haible  <bruno@clisp.org>
11796         posix_spawn tests: Fix link error on 64-bit Cygwin.
11797         * tests/test-posix_spawn1.c (environ): Remove declaration.
11798         * tests/test-posix_spawn2.c (environ): Likewise.
11799         * tests/test-posix_spawn3.c (environ): Likewise.
11800         * tests/test-posix_spawn4.c (environ): Likewise.
11801         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
11802         * modules/posix_spawnp-tests (Depends-on): Likewise.
11804 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11806         timespec: new function current_timespec
11807         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
11808         and don’t worry about it failing on a CLOCK_REALTIME arg.
11809         POSIX requires it to succeed and I don’t know of any
11810         counterexamples where the fallbacks would work.
11811         (current_timespec): New function, taken from Emacs.  It is more
11812         convenient than gettime, and can help register allocation.
11813         * lib/timespec.h: Include arg-nonnull.h.
11814         (current_timespec): New declaration.
11815         (gettime, settime): Declare args to be nonnull.
11816         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
11818 2018-09-16  Bruno Haible  <bruno@clisp.org>
11820         setlocale: Improve locale handling on macOS 10.12 or newer.
11821         * lib/setlocale.c: Include header files for CoreFoundation. Declare
11822         gl_locale_name_canonicalize.
11823         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
11824         and LC_MESSAGES.
11825         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
11827 2018-09-16  Bruno Haible  <bruno@clisp.org>
11829         Update list of locale names with scripts on macOS.
11830         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
11831         match Mac OS X 10.13 and recent glibc.
11833 2018-09-16  Bruno Haible  <bruno@clisp.org>
11835         gettext: Use newer macOS APIs when possible.
11836         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
11837         CFLocaleCopyPreferredLanguages.
11839 2018-09-16  Bruno Haible  <bruno@clisp.org>
11841         localename: Revisit macOS specific code.
11842         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
11843         Fix comments about Mac OS X versions.
11845 2018-09-15  Bruno Haible  <bruno@clisp.org>
11847         setlocale: Improve support for locales not supported by libc.
11848         Reported by Dapeng Gao <peter@dpgao.cc> at
11849         <https://savannah.gnu.org/bugs/?54479>.
11850         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
11851         (libintl_setlocale): Use a more error-tolerant strategy when the locale
11852         to be set is not supported by libc: Emit warnings instead of failing.
11854 2018-09-15  Bruno Haible  <bruno@clisp.org>
11856         strstr, strcasestr: Add workaround against glibc-2.28 bug.
11857         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
11858         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
11859         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
11860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
11861         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
11862         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
11863         * doc/glibc-functions/strcasestr.texi: Likewise.
11865 2018-09-14  Bruno Haible  <bruno@clisp.org>
11867         doc: Fix bottom of top-level page.
11868         Reported by Akim Demaille <akim.demaille@gmail.com> in
11869         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
11870         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
11871         mode.
11872         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
11873         accordingly.
11875 2018-09-12  Bruno Haible  <bruno@clisp.org>
11877         Add test case from a recent glibc bug.
11878         * tests/test-strstr.c (main): Add test of long needle.
11879         * tests/test-strcasestr.c (main): Likewise.
11880         * tests/test-c-strstr.c (main): Likewise.
11881         * tests/test-c-strcasestr.c (main): Likewise.
11882         * tests/test-memmem.c (main): Likewise.
11884 2018-09-12  Bruno Haible  <bruno@clisp.org>
11886         Apply Eric Blake's improvements from 2011-02-25 to more tests.
11887         * tests/test-c-strstr.c (main): Add the same tests here as well.
11889 2018-09-12  Bruno Haible  <bruno@clisp.org>
11891         Apply Jim Meyering's fix from 2015-01-11 to more tests.
11892         * tests/test-memmem.c (main): Free haystack.
11893         * tests/test-strcasestr.c (main): Likewise.
11894         * tests/test-c-strcasestr.c (main): Likewise.
11896 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11898         xstrtol: fix missing-TYPE_SIGNED typo
11899         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
11901 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11903         timespec: fix resolution confusion
11904         In normal usage, clock resolution is given in seconds, but the
11905         code was mistakenly using inverse seconds and calling it
11906         “resolution”.  Fix this, partly by renaming two identifiers.
11907         The old names will be kept for a bit, to ease transition.
11908         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
11909         New constants, replacing TIMESPEC_RESOLUTION and
11910         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
11911         All uses changed.
11913 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
11915         mktime: simplify in prep for glibc merge
11916         * lib/mktime.c, lib/timegm.c [_LIBC]:
11917         Include mktime-internal.h (a small file just for glibc)
11918         instead of using a typedef.
11920 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11922         intprops: minor clarification of code
11923         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
11924         Use _GL_INT_CONVERT rather than reinventing it.
11926 2018-09-07  Bruno Haible  <bruno@clisp.org>
11928         Fix a comment.
11929         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
11931 2018-09-07  Bruno Haible  <bruno@clisp.org>
11933         posix_spawn_file_actions_addchdir: Add tests.
11934         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
11935         * tests/test-posix_spawn4.c: New file.
11936         * modules/posix_spawn_file_actions_addchdir-tests: New file.
11938 2018-09-07  Bruno Haible  <bruno@clisp.org>
11940         posix_spawn_file_actions_addchdir: New module.
11941         Suggested by Eric Blake in
11942         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
11943         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
11944         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
11945         union member 'chdir_action'.
11946         * lib/spawn_faction_addchdir.c: New file.
11947         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
11948         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
11949         HAVE_WORKING_POSIX_SPAWN.
11950         * lib/spawn_faction_adddup2.c: Likewise.
11951         * lib/spawn_faction_addopen.c: Likewise.
11952         * m4/posix_spawn_faction_addchdir.m4: New file.
11953         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
11954         'posix_spawn_file_actions_addchdir' is present and whether
11955         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
11956         instead of HAVE_WORKING_POSIX_SPAWN.
11957         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
11958         posix_spawn_file_actions_addchdir is declared.
11959         (gl_SPAWN_H_DEFAULTS): Initialize
11960         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
11961         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
11962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
11963         * modules/spawn (Makefile.am): Substitute
11964         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
11965         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
11966         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
11967         * modules/posix_spawn_file_actions_addchdir: New file.
11968         * modules/posix_spawn_file_actions_addclose (Depends-on,
11969         configure.ac): Test also REPLACE_POSIX_SPAWN.
11970         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
11971         configure.ac): Likewise.
11972         * modules/posix_spawn_file_actions_addopen (Depends-on,
11973         configure.ac): Likewise.
11974         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
11975         signature.
11976         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11977         * doc/posix-functions/posix_spawnp.texi: Likewise.
11979 2018-09-06  Bruno Haible  <bruno@clisp.org>
11981         stddef: Override max_align_t on NetBSD 8.0/x86.
11982         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
11983         the value of __alignof__ (max_align_t).
11984         * doc/posix-headers/stddef.texi: Mention the issue.
11986 2018-09-06  Bruno Haible  <bruno@clisp.org>
11988         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
11989         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
11990         system fcntl.
11991         * doc/posix-functions/fcntl.texi: Document the issue.
11993 2018-09-06  Bruno Haible  <bruno@clisp.org>
11995         count-trailing-zeros tests: Rely on limits-h module.
11996         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
11997         definition.
11998         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
12000 2018-09-06  Bruno Haible  <bruno@clisp.org>
12002         count-leading-zeros tests: Rely on limits-h module.
12003         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
12004         definition.
12005         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
12007 2018-09-06  Bruno Haible  <bruno@clisp.org>
12009         count-one-bits tests: Rely on limits-h module.
12010         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
12011         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
12013 2018-09-06  Bruno Haible  <bruno@clisp.org>
12015         xstrtoll: Rely on limits-h module.
12016         * lib/xstrtol.c: Don't include intprops.h.
12017         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
12018         * modules/xstrtol (Depends-on): Remove 'intprops'.
12019         * modules/xstrtoll (Depends-on): Add 'limits-h'.
12021 2018-09-06  Bruno Haible  <bruno@clisp.org>
12023         strtoll, strtoull: Rely on limits-h module.
12024         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
12025         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
12026         * modules/strtoll (Depends-on): Add limits-h.
12027         * modules/strtoull (Depends-on): Likewise.
12029 2018-09-06  Bruno Haible  <bruno@clisp.org>
12031         intprops tests: Fix compilation error with pre-C99 compiler.
12032         * tests/test-intprops.c (verify_stmt): New macro.
12033         (VERIFY, main): Use it.
12035 2018-09-06  Bruno Haible  <bruno@clisp.org>
12037         limits-h: Provide numerical limits macros.
12038         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
12039         IRIX and for GCC.
12040         (WORD_BIT, LONG_BIT): Define.
12041         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
12042         <limits.h> does not define LLONG_MAX or WORD_BIT.
12043         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
12044         TYPE_MAXIMUM): New macros, from intprops.h.
12045         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
12046         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
12047         provides.
12049 2018-09-05  Bruno Haible  <bruno@clisp.org>
12051         fcntl: Don't access nonexistent optional argument.
12052         Reported by Frank Busse <f.busse@imperial.ac.uk> in
12053         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
12054         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
12055         don't consume an argument. For actions that take an 'int' argument,
12056         consume an 'int' argument.
12058 2018-09-05  Eric Blake  <eblake@redhat.com>
12060         doc: mention environ pitfall
12061         * doc/posix-functions/environ.texi (environ): Assigning NULL to
12062         environ is a glibc extension.
12064 2018-09-03  Bruno Haible  <bruno@clisp.org>
12066         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
12067         Reported by Antoine Luong <antoine.luong@c-s.fr> in
12068         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
12069         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
12070         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
12071         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
12073 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12075         mktime: fix unlikely race+overflow bug
12076         Problem reported by Alexandre Oliva in:
12077         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
12078         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
12079         to avoid an unlikely race if the compiler delays a load and
12080         if this cascades into a signed integer overflow.
12082 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12084         mktime, timegm: simplify glibc time64_t
12085         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
12086         Now long int, not time_t, since long int is the longstanding type
12087         for this in glibc and there is no need to change it even if time_t
12088         becomes 64 bits - even int would do, though this would be a change
12089         to the glibc generated code.  When this change is merged into
12090         glibc, it should simplify the time_t vs time64_t situation.
12092         mktime, timegm: simplify merge to glibc
12093         Move code around to make a merge to glibc easier to audit.
12094         This should not change behavior.
12095         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12096         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12097         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12098         simplify later conditionals; default the others to zero.  In uses
12099         of these conditionals, explicitly spell out how _LIBC affects
12100         things, so it’s easier to review from a glibc viewpoint.
12101         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12102         compartmentalize tzset issues.  Move system-dependent tzsettish
12103         code here from mktime.
12104         (mktime): Move tzsettish code to my_tzset, and move
12105         localtime_offset to within mktime so that it doesn’t
12106         need a separate ifdef.
12108 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12110         intprops: avoid evaluation of some expressions
12111         This makes EXPR_SIGNED (e) easier to use, as it no longer
12112         evaluates the expression E.  Formerly, E was required to be free
12113         of side effects.
12114         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
12115         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
12116         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
12118 2018-08-23  Bruno Haible  <bruno@clisp.org>
12120         getcwd: Add cross-compilation guesses.
12121         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
12122         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
12123         Based on a patch by Paul Eggert.
12124         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
12125         guesses for all GNU systems.
12127 2018-08-19  Bruno Haible  <bruno@clisp.org>
12129         glob-h: Formalize side effects from other modules.
12130         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
12131         * m4/glob.m4 (gl_GLOB): Invoke it.
12133         fnmatch-h: Formalize side effects from other modules.
12134         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
12135         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
12137         limits-h: Formalize side effects from other modules.
12138         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
12139         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
12141 2018-08-19  Bruno Haible  <bruno@clisp.org>
12143         getpass: Move declaration to <unistd.h>.
12144         * lib/unistd.in.h (getpass): New declaration.
12145         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
12146         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
12147         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
12148         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
12149         On glibc systems, don't set REPLACE_GETPASS to 1.
12150         * modules/getpass (Depends-on): Add 'unistd'.
12151         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
12152         (Include): Specify <unistd.h> instead of "getpass.h".
12153         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
12154         (configure.ac): Sync with the configure.ac section of modules/getpass.
12155         (Include): Specify <unistd.h> instead of "getpass.h".
12156         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
12157         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
12158         REPLACE_GETPASS.
12159         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
12160         REPLACE_GETPASS.
12161         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
12162         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
12163         and musl.
12164         * NEWS: Mention the change.
12166 2018-08-19  Bruno Haible  <bruno@clisp.org>
12168         glob: Fix over-optimization due to attribute __nonnull__.
12169         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
12171 2018-08-19  Bruno Haible  <bruno@clisp.org>
12173         glob: Fix another compilation error when glob.h is not replaced.
12174         Reported by Reuben Thomas <rrt@sc3d.org> in
12175         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
12176         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
12177         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
12179 2018-08-18  Bruno Haible  <bruno@clisp.org>
12181         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
12182         Reported by Reuben Thomas <rrt@sc3d.org> in
12183         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
12184         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
12185         in config.h.
12187 2018-08-18  Bruno Haible  <bruno@clisp.org>
12189         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
12190         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
12191         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
12192         Solution proposed by Eli Zaretskii.
12193         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
12194         * lib/gettimeofday.c (GetProcAddress): Likewise.
12195         * lib/link.c (GetProcAddress): Likewise.
12196         * lib/physmem.c (GetProcAddress): Likewise.
12197         * lib/poll.c (GetProcAddress): Likewise.
12198         * lib/select.c (GetProcAddress): Likewise.
12199         * lib/stat-w32.c (GetProcAddress): Likewise.
12201 2018-08-18  Bruno Haible  <bruno@clisp.org>
12203         glob: Fix another compilation error when glob.h is not replaced.
12204         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
12205         * lib/globfree.c: Include <libc-config.h>.
12207 2018-08-18  Bruno Haible  <bruno@clisp.org>
12209         glob: Fix compilation error when glob.h is not replaced.
12210         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
12211         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
12212         * lib/glob_pattern_p.c: Include <libc-config.h>.
12213         * modules/glob (Depends-on): Add libc-config.
12215 2018-08-18  Bruno Haible  <bruno@clisp.org>
12217         scratch_buffer: Add tests.
12218         * tests/test-scratch-buffer.c: New file.
12219         * modules/scratch_buffer-tests: New file.
12221 2018-08-18  Bruno Haible  <bruno@clisp.org>
12223         scratch_buffer: Fix include file.
12224         Reported by Reuben Thomas <rrt@sc3d.org> in
12225         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
12226         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
12227         double-inclusion guard.
12229 2018-08-18  Bruno Haible  <bruno@clisp.org>
12231         glob-h: Revert Paul Eggert's revert.
12232         * m4/glob_h.m4: Revert to previous state.
12233         * modules/glob-h: Likewise.
12235 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12237         glob-h: always build glob.h
12238         This works around a problem reported by Reuben Thomas in:
12239         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
12240         This workaround always builds glob.h, even on platforms that
12241         do not need it; perhaps this could be improved someday.
12242         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
12243         is always created now.
12244         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
12246 2018-08-13  Bruno Haible  <bruno@clisp.org>
12248         monetary: Simplify m4 code.
12249         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
12250         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
12252 2018-08-13  Bruno Haible  <bruno@clisp.org>
12254         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
12255         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
12256         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
12257         and by Paul J. Lucas <paul@lucasmail.org> in
12258         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
12259         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
12261 2018-08-11  Bruno Haible  <bruno@clisp.org>
12263         setlocale: Trivial simplification.
12264         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
12266 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12268         verify: port 'assume' to traditional tools
12269         * lib/verify.h (assume): Port better to Oracle Studio 12.6
12270         and other tools that use /*NOTREACHED*/ comments.
12272 2018-08-10  Bruno Haible  <bruno@clisp.org>
12274         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
12275         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12276         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
12277         'fnmatch-gnu' is in use.
12279 2018-08-07  Bruno Haible  <bruno@clisp.org>
12281         glob-h: Add tests.
12282         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
12283         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
12284         tests/test-glob-h.c.
12285         * modules/glob-h-tests: New file.
12286         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
12287         conditions.
12288         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
12289         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
12291 2018-08-07  Bruno Haible  <bruno@clisp.org>
12293         glob-h: New module.
12294         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
12295         replacements.
12296         * lib/glob.c: Include <config.h>.
12297         * m4/glob_h.m4: New file.
12298         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
12299         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
12300         REPLACE_GLOB_PATTERN_P as appropriate.
12301         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
12302         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
12303         * modules/glob-h: New file.
12304         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
12305         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
12306         lstat, sys_stat. Change conditions.
12307         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
12308         REPLACE_GLOB_PATTERN_P. Set module indicator.
12309         (Makefile.am): Remove code that is moved to glob-h.
12310         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
12311         * modules/posixcheck (Depends-on): Add glob-h.
12313 2018-08-06  Bruno Haible  <bruno@clisp.org>
12315         Force generation of substitute .h file when C++ support is enabled.
12316         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
12317         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
12318         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
12319         FNMATCH_H to non-empty.
12320         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
12321         ICONV_H to non-empty.
12322         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
12323         MONETARY_H to non-empty.
12324         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
12325         non-empty.
12327 2018-08-06  Bruno Haible  <bruno@clisp.org>
12329         fnmatch-h: Fix test compilation error on mingw (regression from today).
12330         * lib/fnmatch.in.h: Fix conditions.
12332 2018-08-06  Bruno Haible  <bruno@clisp.org>
12334         sys_resource: Relicense under LGPLv2+.
12335         John Malmberg's approval is in
12336         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
12337         * modules/sys_resource (License): Change to LGPLv2+.
12339 2018-08-06  Bruno Haible  <bruno@clisp.org>
12341         fnmatch-h: Add tests.
12342         * tests/test-fnmatch-h.c: New file.
12343         * modules/fnmatch-h-tests: New file.
12344         * tests/test-fnmatch-h-c++.cc: New file.
12345         * modules/fnmatch-h-c++-tests: New file.
12347 2018-08-06  Bruno Haible  <bruno@clisp.org>
12349         fnmatch-h: New module.
12350         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
12351         replacements.
12352         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
12353         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
12354         'posixcheck' warning.
12355         * m4/fnmatch_h.m4: New file.
12356         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
12357         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
12358         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
12359         as appropriate.
12360         * modules/fnmatch-h: New file.
12361         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
12362         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
12363         conditions.
12364         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
12365         indicator.
12366         (Makefile.am): Remove code that is moved to fnmatch-h.
12367         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
12368         REPLACE_FNMATCH.
12369         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
12370         * modules/posixcheck (Depends-on): Add fnmatch-h.
12372 2018-08-06  Bruno Haible  <bruno@clisp.org>
12374         Enable more C++ tests.
12375         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
12376         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
12377         * modules/strings-tests (Depends-on): Add strings-c++-tests.
12378         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
12379         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
12381 2018-08-06  Bruno Haible  <bruno@clisp.org>
12383         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
12384         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
12385         getopt.h.
12386         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
12388 2018-08-05  Bruno Haible  <bruno@clisp.org>
12390         utime-h: Generate header file when module 'posixcheck' is in use.
12391         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
12392         UTIME_H to non-empty.
12394 2018-08-05  Bruno Haible  <bruno@clisp.org>
12396         monetary: Generate header file when module 'posixcheck' is in use.
12397         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
12398         use, set MONETARY_H to non-empty.
12400 2018-08-05  Bruno Haible  <bruno@clisp.org>
12402         iconv-h: Generate header file when module 'posixcheck' is in use.
12403         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
12404         set ICONV_H to non-empty.
12406 2018-08-05  Bruno Haible  <bruno@clisp.org>
12408         Optimize the "checking whether ... is declared without a macro" checks.
12409         Suggested by Paul Eggert in
12410         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
12411         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
12412         Gnulib module 'posixcheck' is not in use.
12414 2018-08-05  Bruno Haible  <bruno@clisp.org>
12416         iconv-h: Enable 'posixcheck' warnings.
12417         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
12418         iconv_open.
12419         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
12421 2018-08-05  Bruno Haible  <bruno@clisp.org>
12423         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
12424         * m4/extern-inline.m4: Add more comments.
12425         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
12426         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
12427         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
12429 2018-08-04  Bruno Haible  <bruno@clisp.org>
12431         New module 'posixcheck'.
12432         * modules/posixcheck: New file.
12433         * m4/posixcheck.m4: New file.
12434         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
12435         (Which modules?): Reference it.
12437 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
12439         dfa: fix memory leak
12440         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
12442 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12444         ieee754-h: new module
12445         It looks like Emacs can use this for some NaN processing.
12446         Emacs uses it only on double NaNs so it should be safe.
12447         * MODULES.html.sh (func_all_modules): Add ieee754-h.
12448         * config/srclist.txt: Mention ieee754.h in a comment.
12449         * doc/glibc-headers/ieee754.texi (ieee754.h):
12450         Gnulib now has a substitute that should work
12451         except for long double and for non-IEEE platforms.
12452         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
12453         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
12455 2018-07-27  Bruno Haible  <bruno@clisp.org>
12457         iswcntrl: Mention minor problem on macOS.
12458         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
12460 2018-07-26  Colin Watson  <cjwatson@debian.org>
12462         bootstrap, gnulib-tool: fix translations rsync
12463         Previously, we created files such as $pobase/Makefile.in.in and then the
12464         subsequent rsync would immediately delete them.
12465         * build-aux/bootstrap (po_download_command_format): Avoid deleting
12466         non-.po files in target directory when rsyncing translations.
12467         * gnulib-tool (func_import): Likewise.
12468         * pygnulib/GLImport.py (GLImport.execute): Likewise.
12470 2018-07-25  Jim Meyering  <meyering@fb.com>
12472         bootstrap: reinstate definition fo gnulib_mk.
12473         That variable is used at least by cppi.
12474         * build-aux/bootstrap (gnulib_mk): Restore definition.
12475         This reverts the deletion from v0.1-1844-gc66dba9ba.
12477 2018-07-23  Bruno Haible  <bruno@clisp.org>
12479         doc: For module names, use texinfo markup @code{} or @samp{}.
12480         * doc/alloca.texi: Mark gnulib module names with @code.
12481         * doc/alloca-opt.texi: Likewise.
12482         * doc/quote.texi: Likewise.
12483         * doc/posix-functions/freopen.texi: Likewise.
12484         * doc/posix-functions/open.texi: Likewise.
12485         * doc/posix-functions/readlink.texi: Likewise.
12486         * doc/posix-functions/readlinkat.texi: Likewise.
12487         * doc/posix-functions/stdout.texi: Likewise.
12488         * doc/posix-functions/stderr.texi: Likewise.
12489         * doc/posix-functions/unlink.texi: Likewise.
12490         * doc/posix-functions/unlinkat.texi: Likewise.
12491         * doc/posix-functions/utime.texi: Likewise.
12492         * doc/posix-functions/utimensat.texi: Likewise.
12493         * doc/posix-functions/utimes.texi: Likewise.
12494         * doc/posix-headers/stdint.texi: Likewise.
12495         * doc/glibc-functions/futimesat.texi: Likewise.
12496         * doc/glibc-functions/lutimes.texi: Likewise.
12497         * doc/glibc-functions/memmem.texi: Likewise.
12499 2018-07-23  Werner LEMBERG  <wl@gnu.org>
12501         doc: Avoid some overfull lines in the TeX output.
12502         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
12503         @example.
12504         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
12505         newline before the long URL.
12506         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
12507         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
12508         Add line breaks in code snippets.
12510 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
12512         hard-locale: simplify by removing hard-locale.m4
12513         * m4/hard-locale.m4: Remove.
12514         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
12515         (configure.ac): Do not call gl_HARD_LOCALE.
12517         gnulib-tool: limit line length for git send-email
12518         * gnulib-tool (func_import): Break actioncmd log line
12519         into multiple lines.
12521 2018-07-16  Bruno Haible  <bruno@clisp.org>
12523         ffs: Ensure declaration on mingw.
12524         Reported by Daniel P. Berrangé <berrange@redhat.com>
12525         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
12526         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
12527         also declared.
12529 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12531         regex-tests: add dependency
12532         * modules/regex-tests (Depends-on): Add gettext-h.
12533         This is needed given the recent changes to regex,
12534         which no longer depends on gettext-h.
12536 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12538         regex: now in sync with glibc
12539         * config/srclist.txt: Gnulib and glibc regex code
12540         are synchronized again.
12542 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12544         renameatu: rename from renameat2
12545         It's looking like Glibc will add a renameat2 function
12546         that is incompatible with Gnulib renameat2; see:
12547         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
12548         To help avoid future confusion, rename renameat2 to something else.
12549         Use the name 'renameatu', as the Gnulib function is close to the
12550         Glibc function.  Perhaps someday there will also be a renameat2
12551         Gnulib module, which mimicks the future glibc renameat2, but that
12552         can wait as nobody seems to need such a module now.
12553         * NEWS: Mention this.
12554         * lib/renameatu.c: Rename from lib/renameat2.c.
12555         * lib/renameatu.h: Rename from lib/renameat2.h.
12556         * modules/renameatu: Rename from modules/renameat2.
12557         * modules/renameatu-tests: Rename from modules/renameat2-tests.
12558         All uses of "renameat2" in identifiers or file name
12559         changed to "renameatu", except for two instances in
12560         lib/renameatu.c that deal with the Linux kernel's
12561         renameat2 syscall.
12563 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
12565         gnulib-tool: minor tweaks for --gnu-make
12566         * gnulib-tool: Do not allow --gnu-make in test modes,
12567         since they all require automake.
12568         (func_emit_lib_Makefile_am): Don’t emit automake comment
12569         if --gnu-make.
12571         regex: work around conditional-dependencies glitch
12572         * modules/regex (Depends-on): Add langinfo.
12573         Without this change, I had problems building an experimental
12574         version of GNU Emacs.  The symptom of the bug was a message
12575         ‘./configure: line 12726: test: =: unary operator expected’.
12576         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
12577         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
12578         was unset.  Although gl_FUNC_NL_LANGINFO has
12579         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
12580         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
12581         --conditional-dependencies sometimes arranges for the
12582         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
12583         code.  Since the regex code includes <langinfo.h> it should be
12584         depending on the langinfo module anyway, and this happens to work
12585         around the bug, so install that as a workaround for now.  To
12586         reproduce the original problem, run the following shell script on
12587         the version of Gnulib just before this patch was installed.
12588                 rm -fr foo
12589                 mkdir foo
12590                 cat >foo/configure.ac <<'EOF'
12591                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
12592                 gl_EARLY
12593                 gl_INIT
12594                 AC_OUTPUT
12595                 EOF
12596                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
12597                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
12598                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
12599                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
12600                 cd foo
12601                 aclocal -I m4
12602                 autoconf
12603                 ./configure --with-included-regex
12605 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12607         wchar: fix bug when checking for ‘inline’
12608         I discovered this when looking into using the regex module
12609         with Emacs.
12610         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
12611         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
12612         conftest1.c and conftest2.c but these files were not created.
12613         As far as I can see, this check never worked and nobody reported
12614         it until now, which is a bit worrisome.
12616 2018-06-30  Jim Meyering  <meyering@fb.com>
12618         bootstrap: s/--option val/--option=val/
12619         * build-aux/bootstrap (gnulib_tool_options): Change the
12620         spelling of "--option val" pairs to "--option=val", for
12621         aesthetics, and also so that this file no longer triggers
12622         a common help2man syntax-check warning when copied into
12623         projects like grep, gzip, etc.
12625 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12627         manywarnings: omit -Wswitch-default
12628         This should make things more consistent, as we already ignore
12629         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
12630         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
12631         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
12632         Add -Wswitch-default.
12633         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
12634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12635         Remove -Wswitch-default.
12637         regex: revert most trimming
12638         Problems reported by Bruno Haible in:
12639         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
12640         * modules/regex (Depends-on): Add lock, memcmp, memmove,
12641         and wctype back in.  lock because regex users shouldn’t
12642         need to know that regex needs locking, and the rest because
12643         gnulib-tool should ordinarily ignore them anyway.
12645 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12647         regex: trim module dependencies
12648         * modules/regex (Depends-on): Remove gettext-h and lock,
12649         since the regex code should work OK without these modules,
12650         and Emacs uses it that way.  Also remove memcmp, memmove,
12651         and wctype, as these modules are obsolete and should not be
12652         needed any more.
12654 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
12656         regex: glibc does not use intprops.h
12657         Maybe we can talk glibc into using intprops.h someday, but
12658         now doesn’t seem to be a good time.
12659         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
12660         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
12661         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
12663 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
12665         regex: port to recently proposed glibc regex merge
12666         This patch is inspired by Adhemerval Zanella's recent proposal
12667         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
12668         to merge glibc and Gnulib regex.  It aims to simplify the merge on
12669         the glibc side, without keeping Gnulib portable.
12670         * lib/regex.h: Fix a problem with glibc installed-header checking,
12671         as follows:
12672         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
12673         (_Restrict_arr_): Prefer __restrict_arr if defined,
12674         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
12675         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
12676         (build_wcs_upper_buffer, build_upper_buffer)
12677         (re_string_translate_buffer, re_string_context_at):
12678         Move decls here from lib/regex_internal.h, for glibc internal tests.
12679         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
12680         glibc BZ #18496.
12681         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
12682         -Wunused-value.
12683         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
12684         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
12685         (bitset_mask): Now static inline, and without any __attribute__
12686         ((unused)) decoration, for glibc internal tests.
12688 2018-06-25  Bruno Haible  <bruno@clisp.org>
12690         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
12691         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
12692         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
12693         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
12694         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
12695         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
12696         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
12697         / -lthread / -lpth does not get optimized away by a preceding
12698         --as-needed option.
12700 2018-06-25  Bruno Haible  <bruno@clisp.org>
12702         Continue to use spaces for indentation, not tabs.
12703         * MODULES.html.sh: Untabify.
12704         * doc/regex.texi: Likewise.
12705         * lib/acl-internal.c: Likewise.
12706         * lib/dfa.c: Likewise.
12707         * lib/exclude.c: Likewise.
12708         * lib/exclude.h: Likewise.
12709         * lib/get-permissions.c: Likewise.
12710         * lib/gettimeofday.c: Likewise.
12711         * lib/parse-datetime.y: Likewise.
12712         * lib/pselect.c: Likewise.
12713         * lib/set-permissions.c: Likewise.
12714         * lib/time.in.h: Likewise.
12715         * m4/canonicalize.m4: Likewise.
12716         * m4/gc.m4: Likewise.
12717         * m4/gnulib-common.m4: Likewise.
12718         * m4/pthread_sigmask.m4: Likewise.
12719         * m4/vararrays.m4: Likewise.
12720         * tests/test-digest.h: Likewise.
12721         * tests/test-fcntl-h.c: Likewise.
12722         * tests/test-timespec.c: Likewise.
12723         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
12725 2018-06-25  Bruno Haible  <bruno@clisp.org>
12727         manywarnings: Don't enable -Wjump-misses-init warnings by default.
12728         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
12729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
12730         -Wjump-misses-init.
12732 2018-06-25  Jim Meyering  <meyering@fb.com>
12734         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
12735         * lib/acl-internal.h (free_permission_context): Remove that
12736         attribute directive.  Otherwise, it would provoke this from GCC 9:
12737         lib/acl-internal.h:300:3: error: 'const' attribute on function \
12738           returning 'void' [-Werror=attributes]
12740 2018-06-24  Jim Meyering  <meyering@fb.com>
12742         parse-datetime: accommodate gcc-4.8.5
12743         Bruno Haible reported the build failure in
12744         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
12745         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
12746         on declaration of new local.
12748 2018-06-24  Bruno Haible  <bruno@clisp.org>
12750         af_alg: Fail in continuable manner on Linux/powerpc64le.
12751         Reported by Assaf Gordon <assafgordon@gmail.com>
12752         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
12753         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
12754         byte send() as the first round.
12756 2018-06-24  Bruno Haible  <bruno@clisp.org>
12758         af_alg: Fix state of stream after sendfile() succeeds.
12759         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
12760         the stream is correctly positioned afterwards.
12761         * modules/crypto/af_alg (Depends-on): Add fflush.
12762         * tests/test-digest.h (test_digest_on_files): Verify that after the
12763         operation the stream is positioned at end of file.
12765 2018-06-24  Jim Meyering  <meyering@fb.com>
12767         canon-host: take GCC9's advice rather than ignoring warning
12768         Pádraig Brady suggested not to ignore this GCC9 advice.
12769         * lib/canon-host.c: Undo preceding change.
12770         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
12772         parse-datetime.y: avoid spurious GCC 9 warning
12773         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
12774         a function local prior to the first "goto fail".  The prior use would
12775         evoke this:
12776         parse-datetime.y: In function 'parse_datetime2':
12777         parse-datetime.y:1791:19: error: jump skips variable initialization \
12778           [-Werror=jump-misses-init]
12779         parse-datetime.y:2385:2: note: label 'fail' defined here
12780         parse-datetime.y:188:43: note: '({anonymous})' declared here
12781         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
12783         canon-host.c: avoid spurious GCC 9 warning
12784         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
12786         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
12787         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
12788         * m4/manywarnings.m4: Remove them.
12789         Otherwise, building coreutils, I would see this:
12790         cc1: error: deprecated command line option '-Wchkp' [-Werror]
12791         cc1: error: -Wabi won't warn about anything [-Werror=abi]
12792         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
12793           which is also used by default
12794         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
12796 2018-06-24  Bruno Haible  <bruno@clisp.org>
12798         af_alg tests: Add another test.
12799         * tests/test-digest.h (test_digest_on_files): Also check a large file
12800         with a skipped header.
12801         * tests/test-md5.c: Include macros.h.
12802         * tests/test-sha1.c: Likewise.
12803         * tests/test-sha256.c: Likewise.
12804         * tests/test-sha512.c: Likewise.
12805         * modules/crypto/md5-tests (Files): Add tests/macros.h.
12806         * modules/crypto/sha1-tests (Files): Likewise.
12807         * modules/crypto/sha256-tests (Files): Likewise.
12808         * modules/crypto/sha512-tests (Files): Likewise.
12810 2018-06-24  Pádraig Brady  <P@draigBrady.com>
12812         maint: clarify comments about sticky EOF
12813         * lib/af_alg.c: Be more direct that we can't
12814         assume stickiness of EOF for portability reasons.
12815         * lib/md5.c: Clarify that this isn't just a glibc issue.
12816         * lib/sha1.c: Likewise.
12817         * lib/sha256.c: Likewise.
12818         * lib/sha512.c: Likewise.
12820 2018-06-24  Bruno Haible  <bruno@clisp.org>
12822         af_alg: Comment and style improvements.
12823         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
12824         (afalg_buffer, afalg_stream): Improve comments.
12826 2018-06-24  Pádraig Brady  <P@draigBrady.com>
12828         af_alg: disable kernel hash functions by default
12829         All the kernel routines were seen to be significantly slower
12830         with these relatively recent components on an i3-2310M system:
12831           kernel-4.10.6-200.fc25.x86_64
12832           openssl-1.0.2m-1.fc25.x86_64
12833         sha1 was nearly twice as slow in the kernel for example.
12834         Further considerations why this should not be the default, at:
12835         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
12837         * m4/af_alg.m4: Require --with-linux-crypto to enable.
12838         * m4/gl-openssl.m4: Tweak accordingly.
12840 2018-06-24  Pádraig Brady  <P@draigBrady.com>
12842         af_alg: avoid hangs when reading from streams
12843         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
12844         and thus avoid doing a fread() when feof() is set.
12845         * lib/md5.c: Ensure feof() is called before fread().
12846         * lib/sha1.c: Likewise.
12847         * lib/sha256.c: Likewise.
12848         * lib/sha512.c: Likewise.
12850 2018-06-24  Pádraig Brady  <P@draigBrady.com>
12852         af_alg: fix error handling when hash not returned
12853         * lib/af_alg.c (afalg_stream): Handle the case where we've
12854         successfully written data to the kernel in the read/write loop,
12855         but the kernel doesn't respond with the hash.
12857 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12859         libc-config: merge from glibc
12860         * lib/cdefs.h (__inline, __restrict):
12861         Copy from current glibc.  This fixes glibc bug 17721,
12862         which Gnulib had already fixed in a different way.
12863         (__nonnull): Lessen the distance from glibc by using the
12864         glibc definition inside an ‘#ifndef __nonnull’.
12865         (__attribute_nonstring__): New macro, copied from
12866         current glibc.
12867         * lib/libc-config.h (__attribute_nonstring__): New undef.
12868         (__restrict): Remove; workaround no longer needed.
12869         Keep the __inline workaround, though, as it uses HAVE___INLINE to
12870         support more compilers than the glibc __inline can.
12872 2018-06-24  Bruno Haible  <bruno@clisp.org>
12874         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
12875         * lib/mbrtowc.c (enc_t): New enum type.
12876         (locale_enc, locale_enc_cached): New functions.
12877         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
12878         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
12879         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
12880         instead.
12881         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
12882         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
12883         * modules/wcwidth (configure.ac): Invoke it.
12885 2018-06-24  Bruno Haible  <bruno@clisp.org>
12887         wchar-single: Fix test failure in wcwidth tests.
12888         * tests/test-wcwidth.c (main): If the wchar-single module is present,
12889         skip the tests in the C locale.
12891 2018-06-23  Pádraig Brady  <P@draigBrady.com>
12893         crypto: mention --without-linux-crypto in --with-openssl --help
12894         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
12895         routines take precedence in --with-openssl help output.
12897 2018-06-23  Pádraig Brady  <P@draigBrady.com>
12899         wchar-single: a new module to enable optimizations in wchar replacements
12900         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
12901         GNULIB_WCHAR_SINGLE is enabled.
12902         * lib/wcwidth.c (wcwidth): Likewise.
12904 2018-06-23  Bruno Haible  <bruno@clisp.org>
12906         libc-config: Fix conflict with FreeBSD include files.
12907         * lib/cdefs.h (__nonnull): Remove definition.
12908         * lib/libc-config.h (__nonnull): Remove undefinition.
12910 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12912         random_r: do not crash if state is unaligned
12913         Problem reported by Bruce Korb in:
12914         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
12915         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
12916         with 'cc -O2 -xmemalign=8s'.
12917         * lib/random_r.c: Include string.h, for memcpy.
12918         (get_int32, set_int32): New functions.
12919         (__srandom_r, __initstate_r, __setstate_r, __random_r):
12920         Use them to avoid assumption that state pointer is aligned.
12921         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
12922         * tests/test-random_r.c (test_failed): New function.
12923         (main): Use it, to test for alignment bugs.
12925         random_r: omit unnecessary include
12926         * lib/random_r.c: Do not include limits.h.
12928         random, random_r: merge from glibc
12929         * lib/random.c, lib/random_r.c:
12930         Include libc-config.h if !_LIBC, not config.h unilaterally.
12931         * lib/random.c:
12932         Do not include stdint.h or time.h; not needed.
12933         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
12934         (unsafe_state): Rename from generator.  All uses changed.
12935         Use C99-style initializers.
12936         (__random, __srandom, __initstate, __setstate): Rename from
12937         non-underscored version, but define it to non-underscored version
12938         on Gnulib.  Add a lock.
12939         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
12940         Likewise.
12941         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
12942         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
12943         (__srandom_r): Use int32_t instead of long int where int32_t will do.
12944         (__random_r): Use uint32 to fix glibc bug 17343.
12945         * modules/random, modules/random_r (Depends-on): Add libc-config.
12946         Depend on stdint only if $HAVE_RANDOM = 0.
12948 2018-06-19  Jim Meyering  <meyering@fb.com>
12950         README-release: also run any check-very-expensive tests
12951         * top/README-release: Adjust instructions so they run the
12952         check-very-expensive tests when there is such a target.
12954 2018-06-18  Bruno Haible  <bruno@clisp.org>
12956         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
12957         * m4/pthread_rwlock_rdlock.m4: Add comment.
12958         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
12959         are reader-preferring in glibc.
12960         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
12961         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12963 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12965         crypto: use byteswap
12966         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12967         * lib/sm3.c: Include <byteswap.h>.
12968         (SWAP): Use its macros rather than reinventing the wheel.
12969         * modules/crypto/md4, modules/crypto/md5-buffer:
12970         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
12971         * modules/crypto/sha512-buffer, modules/crypto/sm3:
12972         (Depends-on): Add byteswap.
12974 2018-06-17  Pádraig Brady  <P@draigBrady.com>
12976         gendocs.sh: fix support for legacy --texi2html
12977         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
12978         to the default makeinfo invocation.
12979         Reported by Bruce Korb
12981 2018-06-17  Bruno Haible  <bruno@clisp.org>
12983         gettext po infrastructure: Update from current gettext git.
12984         Reported by Akim Demaille <akim@lrde.epita.fr>.
12985         * build-aux/po/Makefile.in.in: Update from current gettext git.
12986         * build-aux/po/remove-potcdate.sin: Likewise.
12987         * config/srclist.txt: Temporarily disable sync for these files.
12989 2018-06-17  Bruno Haible  <bruno@clisp.org>
12991         getloadavg: Return 0 on Windows without Cygwin.
12992         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
12994 2018-06-17  Paul Smith  <psmith@gnu.org>
12996         getloadavg: Allow building on Windows without Cygwin
12997         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
12998         * m4/getloadavg.m4: Check for unistd.h.
13000 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
13002         Port crypto/af_alg to GCC 4.8.4
13003         Problem reported by Peter Simons in:
13004         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
13005         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
13007 2018-05-27  Colin Watson  <cjwatson@debian.org>
13009         bootstrap: document source fetching in --help
13010         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
13012 2018-04-09  Colin Watson  <cjwatson@debian.org>
13014         bootstrap: allow non-submodule control of gnulib
13015         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
13016         bootstrap.conf when fetching gnulib using "git clone" or via
13017         GNULIB_SRCDIR.
13019 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13021         crypto: omit stream ops Emacs doesn’t need
13022         * lib/md5.c (md5_stream):
13023         * lib/sha1.c (sha1_stream):
13024         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
13025         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
13026         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
13027         defined.  Emacs needs this, as it does not use the stream
13028         operations and doesn’t need all the af_alg stuff we’ve recently
13029         added.  Perhaps a similar change is needed to the other crypto
13030         modules, but this patch changes only those needed for Emacs.
13031         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
13032         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
13033         New modules, used by Emacs.
13034         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
13035         * modules/crypto/sha512: Rewrite to depend on the new modules.
13037 2018-05-20  Pádraig Brady  <P@draigBrady.com>
13039         fts: avoid a memory leak edge case
13040         * lib/fts.c (fts_open): Set an appropriate fts_level
13041         so that an immediate fts_close() will free the allocation.
13042         * tests/test-fts.c (fts_dealloc): Add a test case which
13043         will trigger under valgrind or address sanitizer.
13044         Fixes https://bugs.gnu.org/31439
13046 2018-05-20  Bruno Haible  <bruno@clisp.org>
13048         wcwidth tests: Fix link error.
13049         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
13050         $(LIBUNISTRING).
13052 2018-05-20  Bruno Haible  <bruno@clisp.org>
13054         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
13055         * modules/regex (Files): Add m4/glibc21.m4.
13057 2018-05-20  Bruno Haible  <bruno@clisp.org>
13059         localcharset: Optimize.
13060         * lib/localcharset.c (alias_table): Comment out no-op mappings for
13061         platforms where these don't matter. This reduces the table size,
13062         which in turn reduces the lookup time.
13064 2018-05-19  Bruno Haible  <bruno@clisp.org>
13066         localcharset: Map the locale encodings found in newer OSes.
13067         * lib/localcharset.c (alias_table): Add mapping for locale encodings
13068         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
13069         IRIX 6.5, Minix 3.3.
13070         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
13072 2018-05-19  Bruno Haible  <bruno@clisp.org>
13074         localcharset: Move mapping tables into the code. Use a binary search.
13075         * lib/localcharset.h: Document the GNU canonical names for character
13076         encodings here.
13077         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
13078         relocatable.h, configmake.h.
13079         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
13080         macros.
13081         (charset_aliases): Remove variable.
13082         (get_charset_aliases): Remove function.
13083         (struct table_entry): New type.
13084         (alias_table, locale_table): New constants.
13085         (locale_charset): Use the alias_table or locale_table to get the
13086         canonicalized encoding name.
13087         * lib/config.charset: Remove file.
13088         * lib/ref-add.sin: Remove file.
13089         * lib/ref-del.sin: Remove file.
13090         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
13091         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
13092         * modules/localcharset (Notice): Remove.
13093         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
13094         glibc21.m4.
13095         (Depends-on): Remove configmake.
13096         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
13097         (Makefile.am): Simplify.
13098         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
13100 2018-05-19  Bruno Haible  <bruno@clisp.org>
13102         localcharset: Add a manual test.
13103         * tests/test-localcharset.c: New file.
13104         * modules/localcharset-tests: New file.
13106 2018-05-19  Bruno Haible  <bruno@clisp.org>
13108         localcharset: Remove support for obsolete platforms.
13109         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
13110         Mac OS X 10.2. Comment out dubious entry for Solaris.
13112 2018-05-19  Jim Meyering  <meyering@fb.com>
13114         gnupload: adjust comment
13115         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
13116         more likely we'll remove the just-added code in a year or two.
13118 2018-05-19  Bruno Haible  <bruno@clisp.org>
13120         gnupload: Fix "gpg-agent is not available in this session" error.
13121         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
13123 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13125         crypto/af_alg: fix --help
13126         * m4/af_alg.m4: Avoid spurious newline in --help output.
13128 2018-05-13  Bruno Haible  <bruno@clisp.org>
13130         nl_langinfo: Fix compilation error on Android.
13131         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
13132         INT_CURR_SYMBOL, etc. only if these items are defined.
13134 2018-05-13  Bruno Haible  <bruno@clisp.org>
13136         truncate: Fix compilation error on Android.
13137         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
13138         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
13139         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
13140         HAVE_TRUNCATE.
13141         * modules/truncate: Likewise.
13142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
13143         not HAVE_TRUNCATE.
13144         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
13145         HAVE_TRUNCATE.
13146         * doc/posix-functions/truncate.texi: Mention the issue.
13148 2018-05-13  Bruno Haible  <bruno@clisp.org>
13150         pthread: Fix compilation error on Android.
13151         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
13152         recursive inclusion of this file.
13154 2018-05-13  Bruno Haible  <bruno@clisp.org>
13156         posix_spawn: Fix compilation error on Android.
13157         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
13158         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
13159         (posix_spawn_file_actions_t): Consider also the case
13160         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
13162 2018-05-13  Bruno Haible  <bruno@clisp.org>
13164         tsearch: Move from K&R C to ANSI C.
13165         * lib/tsearch.c (tfind): Convert definition to ANSI C.
13167 2018-05-13  Bruno Haible  <bruno@clisp.org>
13169         tsearch: Fix compilation error on Android.
13170         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
13171         is 0.
13172         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
13173         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
13174         GNULIB_defined_tsearch is true.
13175         (twalk): Define only if GNULIB_defined_twalk is true.
13176         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
13177         is 0.
13178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
13179         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
13180         * modules/search (Makefile.am): Substitute HAVE_TWALK.
13182 2018-05-13  Bruno Haible  <bruno@clisp.org>
13184         imaxdiv: Fix compilation error on Android.
13185         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
13186         is not defined.
13187         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
13188         HAVE_DECL_IMAXDIV, is 0.
13189         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
13190         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
13192 2018-05-13  Bruno Haible  <bruno@clisp.org>
13194         Support selective inclusion mechanism of recent mingw.org header files.
13195         Reported by Eli Zaretskii <eliz@gnu.org>.
13196         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
13197         __need_ssize_t, or __need_time_t is defined, just include the system's
13198         <sys/types.h>.
13199         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
13200         include the system's <locale.h>.
13202 2018-05-13  Bruno Haible  <bruno@clisp.org>
13204         Avoid compilation error due to 'mmap' on Android.
13205         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
13206         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
13207         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
13208         Undefine on Android.
13210 2018-05-13  Bruno Haible  <bruno@clisp.org>
13212         Add cross-compilation guesses for Linux systems without glibc.
13213         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
13214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
13215         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13216         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13217         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
13218         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13219         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13220         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13221         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
13222         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
13223         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13224         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13225         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13226         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13227         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13228         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
13229         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13230         * m4/utimens.m4 (gl_UTIMENS): Likewise.
13232 2018-05-13  Bruno Haible  <bruno@clisp.org>
13234         getpagesize: Fix compilation error on Android.
13235         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
13236         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
13237         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
13238         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
13239         HAVE_GETPAGESIZE accordingly.
13240         * modules/getcwd (Files): Add m4/getpagesize.m4.
13242 2018-05-13  Bruno Haible  <bruno@clisp.org>
13244         tcgetsid: Fix compilation error on Android.
13245         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
13246         AC_CHECK_FUNC.
13248 2018-05-13  Bruno Haible  <bruno@clisp.org>
13250         getpass: Fix configure test for Android.
13251         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
13252         AC_CHECK_FUNC.
13254 2018-05-13  Bruno Haible  <bruno@clisp.org>
13256         ffs: Fix compilation error on Android.
13257         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
13259 2018-05-13  Bruno Haible  <bruno@clisp.org>
13261         mkfifo: Fix compilation error on Android.
13262         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
13263         AC_CHECK_FUNC.
13265 2018-05-13  Bruno Haible  <bruno@clisp.org>
13267         c-strtod: Fix configure test for Android.
13268         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
13269         AC_CHECK_FUNC.
13271 2018-05-13  Bruno Haible  <bruno@clisp.org>
13273         random: Fix compilation error on Android.
13274         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
13275         AC_CHECK_FUNC.
13277 2018-05-13  Bruno Haible  <bruno@clisp.org>
13279         grantpt: Fix compilation error on Android.
13280         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
13281         AC_CHECK_FUNC.
13283 2018-05-13  Bruno Haible  <bruno@clisp.org>
13285         stdioext: Fix compilation errors with newer Android headers.
13286         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
13287         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
13288         fallbacks for Android.
13289         * lib/fpending.c: Update comments.
13290         * lib/fpurge.c: Likewise.
13291         * lib/freadable.h: Likewise.
13292         * lib/freadable.c: Likewise.
13293         * lib/freadahead.c: Likewise.
13294         * lib/freading.h: Likewise.
13295         * lib/freadptr.c: Likewise.
13296         * lib/fseterr.c: Likewise.
13297         * lib/fwritable.h: Likewise.
13298         * lib/fwritable.c: Likewise.
13299         * lib/fwriting.h: Likewise.
13300         * lib/fwriting.c: Likewise.
13302 2018-05-13  Bruno Haible  <bruno@clisp.org>
13304         doc: Add info about Android versions 2.0 to 8.1.
13305         * doc/**/*.texi: Add info about functions in all released versions of
13306         Bionic.
13308 2018-05-12  Bruno Haible  <bruno@clisp.org>
13310         fseeko: On mingw, don't use the hidden function _fseeki64.
13311         Reported by Eli Zaretskii <eliz@gnu.org>.
13312         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
13313         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
13315 2018-05-12  Bruno Haible  <bruno@clisp.org>
13317         glob: Choose 'dirent_type' in a way that works better on mingw.
13318         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
13319         * lib/glob.c (dirent_type): Define as uint_fast32_t.
13321 2018-05-12  Bruno Haible  <bruno@clisp.org>
13323         execute, spawn-pipe: Avoid warning about redefining 'close'.
13324         Reported by Eli Zaretskii <eliz@gnu.org>.
13325         * lib/execute.c: Undefine 'close' before redefining it.
13326         * lib/spawn-pipe.c: Likewise.
13328 2018-05-12  Bruno Haible  <bruno@clisp.org>
13330         nanosleep: Avoid test failure on mingw when it has nanosleep.
13331         Reported by Eli Zaretskii <eliz@gnu.org>.
13332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
13333         If it does not exist, use a simpler test program that does not call
13334         alarm().
13336 2018-05-10  Bruno Haible  <bruno@clisp.org>
13338         lock, cond, thread, tls: Use a different symbol as libpthread witness.
13339         Reported by Devin Hussey <husseydevin@gmail.com>.
13340         Based on a patch by Paul Eggert.
13341         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
13342         as witness of libpthread.
13343         * lib/glthread/cond.h (pthread_in_use): Likewise.
13344         * lib/glthread/thread.h (pthread_in_use): Likewise.
13345         * lib/glthread/tls.h (pthread_in_use): Likewise.
13347 2018-05-10  Bruno Haible  <bruno@clisp.org>
13349         cond tests: Fix compilation error on Solaris.
13350         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
13351         macro.
13353 2018-05-10  Bruno Haible  <bruno@clisp.org>
13355         doc: Add partial info about Android 4.3.
13356         * doc/*-functions/*.texi: Add info about functions that were added
13357         to Bionic between Android 4.3 and Android 9.0.
13359 2018-05-10  Bruno Haible  <bruno@clisp.org>
13361         doc: Add info about Android 9.0.
13362         * doc/**/*.texi: Add info about functions and headers in Bionic from
13363         Android 9.0.
13365 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13367         af_alg: fix my typo in afalg_buffer
13368         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
13369         (afalg_stream): Simplify and avoid the need for a runtime test
13370         at the end.
13372         af_alg: recover better from crypto failures
13373         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
13374         input stream is seekable, by repositioning the stream back to
13375         where it was, possibly by just calling sendfile with an offset
13376         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
13377         cases, which lets our callers try again with user-mode code.
13378         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
13379         instead of on fflush and lseek.
13381         af_alg: distiguish I/O errors better
13382         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
13383         not -EIO, if it’s OK for the caller to try again with user-mode code.
13384         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
13385         some other error number) if fflush fails, as the caller should not
13386         try again that case.
13388         af_alg: avoid gotos
13389         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
13390         gotos, as they were a source of unreliability and made the code a
13391         bit harder to follow.
13393         af_alg: don’t leak file descriptors into children
13394         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
13395         This code should be compiled only on recent GNU/Linux platforms
13396         so we shouldn’t have to also depend on the accept4 module.
13398         af_alg: coalesce socket creation
13399         * lib/af_alg.c (alg_socket): New function.
13400         (afalg_buffer, afalg_stream): Use it.  This avoids some
13401         code duplication and gotos.
13403         af_alg: fix file descriptor leak
13404         * lib/af_alg.c (afalg_stream): Close leak.
13406         af_alg: Pacify --enable-gcc-warnings on GCC 8
13407         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
13408         and checking to pacify gcc -Wjump-misses-init on GCC 8.
13410 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13412         af_alg: Pacify --enable-gcc-warnings
13413         Problem reported by Assaf Gordon in:
13414         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
13415         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
13416         gcc -Wjump-misses-init.
13417         * lib/sha512.c (shaxxx_stream): Now static.
13419 2018-05-06  Bruno Haible  <bruno@clisp.org>
13421         af_alg: Add ability to use Linux kernel crypto API on data in memory.
13422         * lib/af_alg.h (afalg_buffer): New declaration.
13423         * lib/af_alg.c (afalg_buffer): New function.
13425 2018-05-06  Bruno Haible  <bruno@clisp.org>
13427         af_alg: Avoid warnings.
13428         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
13429         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
13431 2018-05-06  Bruno Haible  <bruno@clisp.org>
13433         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
13434         * tests/bench-digest.h: New file.
13435         * tests/bench-md5.c: New file.
13436         * tests/bench-sha1.c: New file.
13437         * tests/bench-sha224.c: New file.
13438         * tests/bench-sha256.c: New file.
13439         * tests/bench-sha384.c: New file.
13440         * tests/bench-sha512.c: New file.
13441         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
13442         tests/bench-digest.h.
13443         (Depends-on): Add getrusage, gettimeofday.
13444         (Makefile.am): Add variables to build bench-md5.
13445         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
13446         tests/bench-digest.h.
13447         (Depends-on): Add getrusage, gettimeofday.
13448         (Makefile.am): Add variables to build bench-sha1.
13449         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
13450         tests/bench-sha256.c, tests/bench-digest.h.
13451         (Depends-on): Add getrusage, gettimeofday.
13452         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
13453         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
13454         tests/bench-sha512.c, tests/bench-digest.h.
13455         (Depends-on): Add getrusage, gettimeofday.
13456         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
13458 2018-05-06  Bruno Haible  <bruno@clisp.org>
13460         af_alg: Fix a resource leak.
13461         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
13462         New local variable 'result'.
13464 2018-05-06  Bruno Haible  <bruno@clisp.org>
13466         af_alg: Fix bug with streams that are not at position 0.
13467         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
13468         assume that the stream is positioned at position 0.
13469         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
13470         of the stream.
13471         * lib/md5.h (md5_stream): Likewise.
13472         * lib/sha1.h (sha1_stream): Likewise.
13473         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
13474         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
13475         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
13477         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
13478         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
13479         stream that is not positioned at the beginning.
13481 2018-05-06  Bruno Haible  <bruno@clisp.org>
13483         af_alg: Add configure option to enable/disable use of Linux crypto API.
13484         Suggested by Assaf Gordon <assafgordon@gmail.com>.
13485         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
13486         USE_LINUX_CRYPTO_API.
13487         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
13488         * lib/af_alg.c: Likewise.
13490 2018-05-06  Bruno Haible  <bruno@clisp.org>
13492         Followup to 'af_alg: New module.'.
13493         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
13494         * modules/crypto/sha1 (Depends-on): Likewise.
13495         * modules/crypto/sha256 (Depends-on): Likewise.
13496         * modules/crypto/sha512 (Depends-on): Likewise.
13498 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13500         crypto/{md5,sha1,sha256,sha512}: simplify
13501         * lib/md5.c (md5_stream):
13502         * lib/sha1.c (sha1_stream):
13503         * lib/sha256.c (shaxxx_stream):
13504         Simplify, partly by assuming C99.
13505         * lib/sha256.c (shaxxx_stream):
13506         New function, which implements both sha256 and sha224.
13507         Simplify, partly by assuming C99.
13508         (sha256_stream, sha224_stream):
13509         Use it to avoid code duplication, removing a FIXME.
13510         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
13511         Likewise.
13513         af_alg: Improve comments.
13514         * lib/af_alg.h: Use imperatives and tighten up wording.
13516 2018-05-05  Bruno Haible  <bruno@clisp.org>
13518         af_alg: Improve comments.
13519         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
13521 2018-05-05  Bruno Haible  <bruno@clisp.org>
13523         af_alg: New module.
13524         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
13525         * lib/af_alg.c: Include "af_alg.h" before the other header files.
13526         * lib/md5.c: Include "af_alg.h" unconditionally.
13527         (md5_stream): Invoke afalg_stream unconditionally.
13528         * lib/sha1.c: Include "af_alg.h" unconditionally.
13529         (sha1_stream): Invoke afalg_stream unconditionally.
13530         * lib/sha256.c: Include "af_alg.h" unconditionally.
13531         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
13532         * lib/sha512.c: Include "af_alg.h" unconditionally.
13533         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
13534         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
13535         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
13536         * modules/crypto/af_alg: New file.
13537         * modules/crypto/md5 (Files): Remove files that are now in the
13538         'crypto/af_alg' module.
13539         (Depends-on): Add crypto/af_alg.
13540         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13541         (Makefile.am): Don't mention af_alg.c here.
13542         * modules/crypto/sha1 (Files): Remove files that are now in the
13543         'crypto/af_alg' module.
13544         (Depends-on): Add crypto/af_alg.
13545         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13546         (Makefile.am): Don't mention af_alg.c here.
13547         * modules/crypto/sha256 (Files): Remove files that are now in the
13548         'crypto/af_alg' module.
13549         (Depends-on): Add crypto/af_alg.
13550         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13551         (Makefile.am): Don't mention af_alg.c here.
13552         * modules/crypto/sha512 (Files): Remove files that are now in the
13553         'crypto/af_alg' module.
13554         (Depends-on): Add crypto/af_alg.
13555         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
13556         (Makefile.am): Don't mention af_alg.c here.
13558 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13560         crypto tests: pacify GCC
13561         * tests/test-digest.h (test_digest_on_files):
13562         Don’t assume digest size fits in int (!).
13564         af_alg: minor style improvements
13565         * lib/af_alg.c (afalg_stream): Prefer C99 style
13566         decl-after-statement, since we’re already assuming C99.  Clarify
13567         by strengthening the bind test and omit unnecessary assignment.
13569 2018-05-05  Bruno Haible  <bruno@clisp.org>
13571         af_alg: Fix bug on empty files.
13572         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
13573         stream is empty.
13575 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13577         sys-limits.h: new file for crypto and safe I/O
13578         * lib/af_alg.c: Include sys-limits.h.
13579         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
13580         (afalg_stream): Also reject negative sizes for sendfile; they
13581         should not happen and the code is a bit cleaner and faster this way.
13582         * lib/safe-read.c: Include sys-limits.h.
13583         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
13584         * lib/sys-limits.h: New file, with values and commentary derived
13585         from the old safe-read.c and from GNU Emacs sysdep.c.
13586         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
13587         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
13588         Add lib/sys-limits.h to Files section.
13590 2018-05-05  Bruno Haible  <bruno@clisp.org>
13592         af_alg: Improve function signature.
13593         * lib/af_alg.h (afalg_stream): Swap second and third argument.
13594         * lib/af_alg.c (afalg_stream): Likewise.
13595         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
13597 2018-05-05  Bruno Haible  <bruno@clisp.org>
13599         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
13600         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
13601         * modules/crypto/sha1 (Depends-on): Likewise.
13602         * modules/crypto/sha256 (Depends-on): Likewise.
13603         * modules/crypto/sha512 (Depends-on): Likewise.
13605 2018-05-05  Bruno Haible  <bruno@clisp.org>
13607         crypto/{md5,sha1,sha256,sha512}: Fix module description.
13608         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
13609         * modules/crypto/sha1 (Depends-on): Likewise.
13610         * modules/crypto/sha256 (Depends-on): Likewise.
13611         * modules/crypto/sha512 (Depends-on): Likewise.
13613 2018-05-05  Bruno Haible  <bruno@clisp.org>
13615         af_alg: Add documentation.
13616         * lib/af_alg.h: Add comments.
13618 2018-05-05  Bruno Haible  <bruno@clisp.org>
13620         sha512: Add tests.
13621         * tests/test-sha512.c: New file.
13622         * modules/crypto/sha512-tests: New file.
13624 2018-05-05  Bruno Haible  <bruno@clisp.org>
13626         sha256: Add tests.
13627         * tests/test-sha256.c: New file.
13628         * modules/crypto/sha256-tests: New file.
13630 2018-05-05  Bruno Haible  <bruno@clisp.org>
13632         sha1 tests: Add test for sha1_stream.
13633         * tests/test-sha1.c: Include test-digest.h.
13634         (main): Invoke test_digest_on_files on 'sha1_stream'.
13635         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
13637 2018-05-05  Bruno Haible  <bruno@clisp.org>
13639         md5 tests: Add test for md5_stream.
13640         * tests/test-digest.h: New file.
13641         * tests/test-md5.c: Include test-digest.h.
13642         (main): Invoke test_digest_on_files on 'md5_stream'.
13643         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
13645 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13647         md5sum: Use AF_ALG when available.
13648         * lib/md5.c: Include af_alg.h.
13649         (md5_stream): Use afalg_stream when available.
13650         * modules/crypto/md5 (Files): Add the af_alg files.
13651         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13652         (Makefile.am): Add af_alg.c.
13654 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13656         sha512sum: Use AF_ALG when available.
13657         * lib/sha512.c: Include af_alg.h.
13658         (sha512_stream, sha384_stream): Use afalg_stream when available.
13659         * modules/crypto/sha512 (Files): Add the af_alg files.
13660         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13661         (Makefile.am): Add af_alg.c.
13663 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13665         sha256sum: Use AF_ALG when available.
13666         * lib/sha256.c: Include af_alg.h.
13667         (sha256_stream, sha224_stream): Use afalg_stream when available.
13668         * modules/crypto/sha256 (Files): Add the af_alg files.
13669         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13670         (Makefile.am): Add af_alg.c.
13672 2018-04-28  Matteo Croce  <mcroce@redhat.com>
13674         sha1sum: Use AF_ALG when available.
13675         * lib/af_alg.h: New file.
13676         * lib/af_alg.c: New file.
13677         * lib/sha1.c: Include af_alg.h.
13678         (sha1_stream): Use afalg_stream when available.
13679         * m4/linux-if-alg.m4: New file.
13680         * modules/crypto/sha1 (Files): Add the new files.
13681         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
13682         (Makefile.am): Add af_alg.c.
13684 2018-05-05  Bruno Haible  <bruno@clisp.org>
13686         all: Replace more http URLs by https URLs.
13687         * lib/localename.c: Use https: URL.
13688         * lib/timespec.h: Likewise.
13690 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13692         maint: port more modules to GCC 8
13693         * lib/dirname.h (base_name):
13694         * lib/exclude.h (new_exclude):
13695         * lib/xstrndup.h (xstrndup):
13696         Add malloc attribute.
13697         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
13698         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
13699         This pacifies GCC 8.
13700         * m4/gnulib-common.m4 (gl_COMMON_BODY):
13701         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
13703 2018-05-03  Bruno Haible  <bruno@clisp.org>
13705         Simplify code. Drop support for Borland C++ on Windows.
13706         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
13707         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
13708         'defined _WIN32'.
13709         * lib/canonicalize-lgpl.c: Likewise.
13710         * lib/classpath.c: Likewise.
13711         * lib/clean-temp.c: Likewise.
13712         * lib/csharpexec.c: Likewise.
13713         * lib/ctime.c: Likewise.
13714         * lib/dosname.h: Likewise.
13715         * lib/dup2.c: Likewise.
13716         * lib/errno.in.h: Likewise.
13717         * lib/error.c: Likewise.
13718         * lib/euidaccess.c: Likewise.
13719         * lib/execute.c: Likewise.
13720         * lib/fcntl.in.h: Likewise.
13721         * lib/fcntl.c: Likewise.
13722         * lib/filename.h: Likewise.
13723         * lib/findprog.c: Likewise.
13724         * lib/flock.c: Likewise.
13725         * lib/fopen.c: Likewise.
13726         * lib/freopen.c: Likewise.
13727         * lib/fstat.c: Likewise.
13728         * lib/fsync.c: Likewise.
13729         * lib/gc-gnulib.c: Likewise.
13730         * lib/get-rusage-data.c: Likewise.
13731         * lib/getaddrinfo.c: Likewise.
13732         * lib/getdelim.c: Likewise.
13733         * lib/getdtablesize.c: Likewise.
13734         * lib/gethostname.c: Likewise.
13735         * lib/getlogin.c: Likewise.
13736         * lib/getlogin_r.c: Likewise.
13737         * lib/getopt.c: Likewise.
13738         * lib/getpagesize.c: Likewise.
13739         * lib/getpass.c: Likewise.
13740         * lib/getrusage.c: Likewise.
13741         * lib/gettimeofday.c: Likewise.
13742         * lib/glob.c: Likewise.
13743         * lib/inttypes.in.h: Likewise.
13744         * lib/isapipe.c: Likewise.
13745         * lib/javaexec.c: Likewise.
13746         * lib/link.c: Likewise.
13747         * lib/localcharset.c: Likewise.
13748         * lib/localename.h: Likewise.
13749         * lib/localename.c: Likewise.
13750         * lib/localtime.c: Likewise.
13751         * lib/lseek.c: Likewise.
13752         * lib/mbsinit.c: Likewise.
13753         * lib/mkdir.c: Likewise.
13754         * lib/msvc-nothrow.h: Likewise.
13755         * lib/nanosleep.c: Likewise.
13756         * lib/nl_langinfo.c: Likewise.
13757         * lib/nonblocking.c: Likewise.
13758         * lib/nproc.c: Likewise.
13759         * lib/open.c: Likewise.
13760         * lib/openpty.c: Likewise.
13761         * lib/pathmax.h: Likewise.
13762         * lib/pipe-filter-aux.c: Likewise.
13763         * lib/pipe-filter-gi.c: Likewise.
13764         * lib/pipe-filter-ii.c: Likewise.
13765         * lib/pipe.c: Likewise.
13766         * lib/pipe2.c: Likewise.
13767         * lib/poll.c: Likewise.
13768         * lib/popen.c: Likewise.
13769         * lib/posix_openpt.c: Likewise.
13770         * lib/printf-parse.c: Likewise.
13771         * lib/progreloc.c: Likewise.
13772         * lib/putenv.c: Likewise.
13773         * lib/read.c: Likewise.
13774         * lib/relocatable.c: Likewise.
13775         * lib/rename.c: Likewise.
13776         * lib/same-inode.h: Likewise.
13777         * lib/secure_getenv.c: Likewise.
13778         * lib/select.c: Likewise.
13779         * lib/sethostname.c: Likewise.
13780         * lib/setlocale.c: Likewise.
13781         * lib/sigaction.c: Likewise.
13782         * lib/sigprocmask.c: Likewise.
13783         * lib/sleep.c: Likewise.
13784         * lib/spawn-pipe.h: Likewise.
13785         * lib/spawn-pipe.c: Likewise.
13786         * lib/spawni.c: Likewise.
13787         * lib/stat-time.h: Likewise.
13788         * lib/stat-w32.c: Likewise.
13789         * lib/stat.c: Likewise.
13790         * lib/stdio.in.h: Likewise.
13791         * lib/stdio-impl.h: Likewise.
13792         * lib/stdio-read.c: Likewise.
13793         * lib/stdio-write.c: Likewise.
13794         * lib/stdlib.in.h: Likewise.
13795         * lib/strerror_r.c: Likewise.
13796         * lib/strftime-fixes.c: Likewise.
13797         * lib/sys_stat.in.h: Likewise.
13798         * lib/sys_types.in.h: Likewise.
13799         * lib/sys_wait.in.h : Likewise.
13800         * lib/system-quote.h: Likewise.
13801         * lib/system-quote.c: Likewise.
13802         * lib/tmpdir.c: Likewise.
13803         * lib/tzset.c: Likewise.
13804         * lib/uname.c: Likewise.
13805         * lib/unistd.in.h: Likewise.
13806         * lib/utime.in.h: Likewise.
13807         * lib/utime.c: Likewise.
13808         * lib/utimecmp.c: Likewise.
13809         * lib/utimens.c: Likewise.
13810         * lib/vasnprintf.c: Likewise.
13811         * lib/vma-iter.h: Likewise.
13812         * lib/vma-iter.c: Likewise.
13813         * lib/wait-process.c: Likewise.
13814         * lib/wcsftime.c: Likewise.
13815         * lib/wctype.in.h: Likewise.
13816         * lib/write.c: Likewise.
13817         * tests/nap.h: Likewise.
13818         * tests/test-cloexec.c: Likewise.
13819         * tests/test-dup-safer.c: Likewise.
13820         * tests/test-dup2.c: Likewise.
13821         * tests/test-dup3.c: Likewise.
13822         * tests/test-fcntl.c: Likewise.
13823         * tests/test-get-rusage-data.c: Likewise.
13824         * tests/test-getaddrinfo.c: Likewise.
13825         * tests/test-getlogin.h: Likewise.
13826         * tests/test-isatty.c: Likewise.
13827         * tests/test-localename.c: Likewise.
13828         * tests/test-mbrtowc-w32.c: Likewise.
13829         * tests/test-nonblocking.c: Likewise.
13830         * tests/test-nonblocking-pipe-main.c: Likewise.
13831         * tests/test-nonblocking-socket-main.c: Likewise.
13832         * tests/test-nonblocking-socket.h: Likewise.
13833         * tests/test-pipe.c: Likewise.
13834         * tests/test-pipe2.c: Likewise.
13835         * tests/test-poll.c: Likewise.
13836         * tests/test-pthread_sigmask1.c: Likewise.
13837         * tests/test-select.h: Likewise.
13838         * tests/test-sethostname2.c: Likewise.
13839         * tests/test-sigprocmask.c: Likewise.
13840         * tests/test-spawn-pipe-child.c: Likewise.
13841         * tests/test-stat-time.c: Likewise.
13842         * tests/test-system-quote-main.c: Likewise.
13843         * tests/test-utimens-common.h: Likewise.
13844         * tests/test-wcrtomb-w32.c: Likewise.
13845         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
13846         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13847         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
13848         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
13849         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
13850         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13851         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13852         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13853         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13854         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13855         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
13856         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
13857         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
13858         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13859         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
13860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13862 2018-05-02  Bruno Haible  <bruno@clisp.org>
13864         localename: Fix test failures on mingw.
13865         * lib/localename.c (gl_locale_name_thread): Remove code specific to
13866         native Windows.
13867         (gl_locale_name_posix): Move code specific to native Windows here.
13868         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13869         Accept result without charset suffix, as it appears on mingw.
13871 2018-04-28  Paul Smith  <psmith@gnu.org>
13873         bootstrap: Avoid gnulib operations if not needed
13874         * build-aux/bootstrap: Remove unused variable gnulib_mk.
13875         Set $gnulib_extra_files early so it can be overridden in .conf.
13876         Remove redundant --import flag from $gnulib_tool_options.
13877         Set $use_gnulib to false if no gnulib modules or files are needed.
13878         If $use_gnulib is false, don't do anything related to gnulib.
13879         A lot of this is just whitespace (indentation) changes.
13881 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
13883         manywarnings: port to GCC 8.0
13884         * build-aux/gcc-warning.spec: Add -Wcatch-value,
13885         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
13886         fact that the GCC help message now mentions operands for
13887         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
13888         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
13889         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
13890         and -Wunused-const-variable.
13891         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
13892         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
13893         -Wmissing-attributes, -Wmultistatement-macros,
13894         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
13895         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
13897 2018-04-24  Bruno Haible  <bruno@clisp.org>
13899         sys_socket: Make SO_REUSEPORT available across platforms.
13900         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13901         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
13902         * doc/posix-headers/sys_socket.texi: Mention the issue.
13903         * tests/test-poll.c (SO_REUSEPORT): Remove.
13904         * tests/test-select.h: Include <sys/socket.h>.
13905         (SO_REUSEPORT): Remove.
13906         * modules/select-tests (Depends-on): Add 'sys_socket'.
13908 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
13910         localcharset: short-circuit the search for an alias on a Mac
13911         * lib/localcharset.c (get_charset_aliases): Add a tautological
13912         UTF-8 entry to speed up the search for this case.
13913         Most machines default to a UTF-8 locale nowadays, so begin the
13914         list of aliases with a dummy UTF-8 entry so it will be found
13915         immediately and a time-consuming search through the rest of
13916         the list is avoided.
13918 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
13920         fts: add comment
13921         * lib/fts.c (fts_build): Explain why ==, not >.
13922         See remark by Bernhard Voelker in:
13923         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
13925         fts: fix bug in find across filesystems
13926         This fixes a bug I introduced last summer.
13927         Problem reported by Kamil Dudka in:
13928         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
13929         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
13930         (leaf_optimization):
13931         New arg for file descriptor.  All callers changed.
13932         (fts_build): Check for whether inodes should be sorted
13933         before closing the directory.
13935 2018-04-07  Bruno Haible  <bruno@clisp.org>
13937         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
13938         Reported by Genki Sky <sky@genki.is>.
13939         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
13940         version 0.9.10 or newer.
13941         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
13942         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
13943         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
13944         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
13945         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
13947 2018-04-07  Bruno Haible  <bruno@clisp.org>
13949         execute: Update comment.
13950         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
13952 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13954         fts: treat CIFS like NFS
13955         Problem reported by Kamil Dudka in:
13956         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
13957         * lib/fts.c (S_MAGIC_CIFS): New macro.
13958         (dirent_inode_sort_may_be_useful, leaf_optimization):
13959         Treat CIFS like NFS.
13961 2018-03-28  Bruno Haible  <bruno@clisp.org>
13963         c-stack: Fix possible build failure on some platforms.
13964         * lib/c-stack.c (die): Define whenever this function is referenced.
13966 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
13968         time_rz: fix workaround for Mac OS X 10.6 infloop
13969         Problems reported by Charles A. Roelli (Bug#27736#117).
13970         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
13971         Also, discard output, which clutters the 'configure' log.
13973 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13975         havelib: port to Solaris 10 /bin/sh
13976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
13977         instead of '! test EXPR'.
13979 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13981         time_rz: work around Mac OS X 10.6 infloop
13982         * doc/posix-functions/localtime.texi:
13983         * doc/posix-functions/localtime_r.texi: Mention the bug.
13984         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
13985         better to fix localtime and localtime_r instead, but that would be
13986         more work and is not needed to fix the Emacs problem.
13987         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
13989 2018-03-24  Jim Meyering  <meyering@fb.com>
13991         test-version-etc.sh: don't use diff directly: use init.sh's compare
13992         We'd rather not sacrifice readable "diff -u" output even for
13993         "diff -c" output (not supported by busybox) or for even less
13994         readable ed-style "diff" output.  So use init.sh's compare function
13995         * tests/test-version-etc.sh: Source init.sh and add "." to path.
13996         Remove "./" from invocation of test-version-etc, so we use path.
13997         And s/diff/compare/.
13998         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
13999         to get init.sh.
14000         Prompted by Eric Blake's comments in
14001         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
14003 2018-03-24  Bruno Haible  <bruno@clisp.org>
14005         javacomp-script, javacomp: Add support for Java 10.
14006         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
14007         target-version 10.
14008         * lib/javaversion.h: Update comments.
14009         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14010         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14011         TARGET_VERSION_BOUND, target_version_index,
14012         corresponding_classfile_version): Accept source_version 10 and
14013         target_version 10.
14014         * lib/javacomp.h: Update comments accordingly.
14016 2018-03-24  Bruno Haible  <bruno@clisp.org>
14018         javacomp-script, javacomp: Update comments.
14019         * m4/javacomp.m4: Update comments regarding gcj.
14020         * lib/javacomp.h: Likewise.
14022 2018-03-24  Bruno Haible  <bruno@clisp.org>
14024         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
14025         * lib/javaversion.h: Update comments.
14026         * lib/javacomp.h: Likewise.
14027         * lib/javacomp.c (default_target_version, source_version_index,
14028         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
14029         "1.9".
14030         (TARGET_VERSION_BOUND): Bump to 9.
14031         (target_version_index, corresponding_classfile_version): Recognize "9"
14032         instead of "1.9".
14033         (get_source_version_for_javac): New function.
14034         (is_envjavac_nongcj_usable, is_javac_usable): Add
14035         source_version_for_javac argument.
14036         (compile_java_class): Determine and pass source_version_for_javac.
14037         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
14038         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
14039         appropriate.
14041 2018-03-23  Jim Meyering  <meyering@fb.com>
14043         test-version-etc.sh: port to diff without -c
14044         * tests/test-version-etc.sh: Don't use diff's -c option.
14045         This caused spurious test failure on Alpine Linux, which
14046         uses busybox's diff. Reported by Assaf Gordon in
14047         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
14049 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14051         c-stack: port to recent GCC build
14052         Problem reported by The Fireplace (Bug#30913).
14053         * lib/c-stack.c (die): Define only if used.
14055 2018-03-20  Bruno Haible  <bruno@clisp.org>
14057         euidaccess: Port to native Windows.
14058         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
14059         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
14061 2018-03-19  Bruno Haible  <bruno@clisp.org>
14063         javacomp: Add support for Java 7, 8, 9.
14064         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14065         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14066         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
14067         and target_version 1,7, 1.8, 1.9.
14068         * lib/javacomp.h: Update comments accordingly.
14070 2018-03-19  Bruno Haible  <bruno@clisp.org>
14072         javacomp-script: Add support for Java 9.
14073         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
14074         target-version 1.9.
14076 2018-03-16  Bruno Haible  <bruno@clisp.org>
14078         glob: Don't compile replacements on recent glibc systems.
14079         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
14080         REPLACE_GLOB is 0, include the system's <glob.h> and use
14081         _GL_CXXALIAS_SYS.
14082         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
14083         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
14084         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
14085         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
14086         Remove snippet/warn-on-use.
14087         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
14088         (Makefile.am): Create glob.h always. Update list of substitutions in
14089         glob.h. Don't depend on $(WARN_ON_USE_H).
14091 2018-03-16  Bruno Haible  <bruno@clisp.org>
14093         glob: Fix link error on native Windows.
14094         * modules/glob (Depends-on): Add 'lstat'.
14096 2018-03-15  Bruno Haible  <bruno@clisp.org>
14098         glob: Fix compilation error in C++ mode.
14099         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
14101 2018-03-15  Bruno Haible  <bruno@clisp.org>
14103         host-cpu-c-abi: Support for RISC-V CPU.
14104         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
14105         riscv32 and riscv64 ABIs.
14106         References:
14107         https://github.com/riscv/riscv-toolchain-conventions
14108         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
14109         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
14111 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
14113         fflush: be more paranoid about libio.h change
14114         Suggested by Eli Zaretskii in:
14115         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
14116         * lib/fbufmode.c (fbufmode):
14117         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14118         (disable_seek_optimization, rpl_fflush):
14119         * lib/fpending.c (__fpending):
14120         * lib/fpurge.c (fpurge):
14121         * lib/freadable.c (freadable):
14122         * lib/freadahead.c (freadahead):
14123         * lib/freading.c (freading):
14124         * lib/freadptr.c (freadptr):
14125         * lib/freadseek.c (freadptrinc):
14126         * lib/fseeko.c (fseeko):
14127         * lib/fseterr.c (fseterr):
14128         * lib/fwritable.c (fwritable):
14129         * lib/fwriting.c (fwriting):
14130         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
14132 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
14134         maint: write-file-hooks -> before-save-hook
14135         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
14136         it's time to use the recommended replacement.
14137         Problem reported by Glenn Morris in:
14138         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
14139         * build-aux/announce-gen, build-aux/bootstrap:
14140         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
14141         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
14142         * build-aux/gnu-web-doc-update, build-aux/gnupload:
14143         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
14144         * build-aux/update-copyright, build-aux/useless-if-before-free:
14145         * build-aux/vc-list-files:
14146         Update hook usage for files where Gnulib is the canonical source.
14148 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14150         binary-io: pacify gcc -Wunused-parameter
14151         Problem reported by Reuben Thomas in:
14152         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
14153         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
14154         Use _GL_UNUSED where appropriate.
14156         fflush: adjust to glibc 2.28 libio.h removal
14157         Problem reported by Daniel P. Berrangé in:
14158         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
14159         * lib/fbufmode.c (fbufmode):
14160         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14161         (disable_seek_optimization, rpl_fflush):
14162         * lib/fpending.c (__fpending):
14163         * lib/fpurge.c (fpurge):
14164         * lib/freadable.c (freadable):
14165         * lib/freadahead.c (freadahead):
14166         * lib/freading.c (freading):
14167         * lib/freadptr.c (freadptr):
14168         * lib/freadseek.c (freadptrinc):
14169         * lib/fseeko.c (fseeko):
14170         * lib/fseterr.c (fseterr):
14171         * lib/fwritable.c (fwritable):
14172         * lib/fwriting.c (fwriting):
14173         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
14174         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
14175         Define if not already defined.
14177 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
14179         environ: fix link error on 32-bit Cygwin
14180         Problem reported for GNU Emacs by Ken Brown in:
14181         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
14182         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
14184 2018-02-24  Bruno Haible  <bruno@clisp.org>
14186         mbrtowc tests: Fix regression on glibc.
14187         Reported by Bernhard Voelker.
14188         * tests/test-mbrtowc.c (main): Fix expected value of wc.
14190 2018-02-24  Bruno Haible  <bruno@clisp.org>
14192         striconveha, uniconv/*: Avoid test failures on musl libc.
14193         * tests/iconvsupport.c: New file.
14194         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
14195         does not support the ISO-2022-JP-2 encoding.
14196         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14197         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14198         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14199         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14200         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14201         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14202         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
14203         (Makefile.am): Link test-striconveha with iconvsupport.o.
14204         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
14205         tests/iconvsupport.c.
14206         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
14207         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
14208         tests/iconvsupport.c.
14209         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
14210         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
14211         tests/iconvsupport.c.
14212         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
14213         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
14214         tests/iconvsupport.c.
14215         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
14216         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
14217         tests/iconvsupport.c.
14218         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
14219         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
14220         tests/iconvsupport.c.
14221         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
14223 2018-02-24  Bruno Haible  <bruno@clisp.org>
14225         localename: Add support for musl libc.
14226         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
14227         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
14228         on Linux platforms which define NL_LOCALE_NAME.
14230 2018-02-24  Bruno Haible  <bruno@clisp.org>
14232         mbrtowc tests: Don't make assumptions about the charset the C locale.
14233         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
14234         particular mapping in the C locale.
14236 2018-02-24  Bruno Haible  <bruno@clisp.org>
14238         ptsname_r: Don't expect that this function sets errno.
14239         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
14240         from ptsname_r().
14241         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
14243 2018-02-23  Bruno Haible  <bruno@clisp.org>
14245         xmalloca: pacify gcc -Wbad-function-cast
14246         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
14248 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14250         nl_langinfo: pacify gcc -Wunused-function
14251         * lib/nl_langinfo.c (ctype_codeset): Do not define if
14252         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
14253         this case.  Without this change, I got a diagnostic when building
14254         coreutils on Fedora 27 with gcc 7.3.1 20180130.
14256         same: pacify gcc -Wunused-variable
14257         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
14258         Omit unused variable.
14260         malloca: pacify gcc -Wbad-function-cast
14261         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
14262         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
14263         To pacify GCC, I had to cast alloca’s result to some type other
14264         than void * before casting that to uintptr_t.
14266 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14268         utimecmp: new function utimecmpat
14269         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
14270         Do not include utimens.h.
14271         (utimecmpat): New function, generalizing utimecmp.
14272         (utimecmp): Now a thin layer around utimecmpat.
14273         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
14274         utimensat instead of on lstat and utimens.
14276         same: new function same_nameat
14277         * lib/same.c: Include fcntl.h.
14278         * lib/same.c (same_nameat): New function, generalizing same_name.
14279         (same_name): Now a thin layer around same_nameat.
14280         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
14281         * modules/same (Depends-on): Depend on fstatat, openat.
14283 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
14285         warnings: Add support for Objective C.
14286         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
14287         macro.
14289 2018-02-17  Bruno Haible  <bruno@clisp.org>
14291         lock: Fix test-once1 crash on FreeBSD11.
14292         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
14293         'pthread_create', not 'pthread_cancel'.
14295 2018-02-17  Bruno Haible  <bruno@clisp.org>
14297         lock: Add test of gl_once.
14298         * tests/test-once.c: New file.
14299         * modules/lock-tests (Files): Add it.
14300         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
14302 2018-02-17  Bruno Haible  <bruno@clisp.org>
14304         thread: Fix compilation error on IRIX.
14305         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
14306         needed; include it outside the C++ extern "C" {} block.
14307         * doc/posix-headers/pthread.texi: Mention the problem with
14308         pthread_atfork on IRIX.
14310 2018-02-04  Bruno Haible  <bruno@clisp.org>
14312         nl_langinfo: Override the system's nl_langinfo() when needed.
14313         Reported by Jim Meyering.
14314         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
14315         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
14317 2018-02-04  Bruno Haible  <bruno@clisp.org>
14319         signal-h, monetary, strings: Fix build failure in some cases.
14320         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14321         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
14322         as delimiter in sed command, not '|'.
14323         * modules/monetary (Makefile.am): Likewise.
14324         * modules/strings (Makefile.am): Likewise.
14326 2018-02-03  Jim Meyering  <meyering@fb.com>
14328         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
14329         * top/maint.mk (sc_file_system): Don't complain about
14330         "/proc/filesystems".
14332 2018-02-03  Bruno Haible  <bruno@clisp.org>
14334         stdlib: Fix compilation error on OpenIndiana.
14335         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
14336         <sys/time.h>.
14337         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14338         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14340 2018-02-03  Bruno Haible  <bruno@clisp.org>
14342         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
14343         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
14344         and use $EGREP instead of 'grep -E'.
14345         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
14346         'grep -E'.
14348 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14350         malloca: Add a compile-time verification.
14351         * lib/malloca.c (small_t): Verify that it is wide enough.
14352         * modules/malloca (Depends-on): Add verify.
14354 2018-02-02  Bruno Haible  <bruno@clisp.org>
14356         malloca: Add an argument check.
14357         Suggested by Paul Eggert.
14358         * lib/malloca.c (freea): Check against an invalid argument.
14360 2018-02-02  Bruno Haible  <bruno@clisp.org>
14362         localename: Add support for OpenIndiana.
14363         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
14364         Solaris 11 variants with uselocale() but without getlocalename_l().
14366 2018-02-02  Bruno Haible  <bruno@clisp.org>
14368         malloca, xmalloca: Make multithread-safe.
14369         Reported by Florian Weimer <fweimer@redhat.com>.
14370         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
14371         * lib/malloca.h (malloca): In the stack allocation case, return a
14372         pointer that is a multiple of 2 * sa_alignment_max.
14373         (sa_increment): Remove enum item.
14374         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
14375         a pointer that is a multiple of 2 * sa_alignment_max.
14376         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
14377         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
14378         HASH_TABLE_SIZE, mmalloca_results): Remove.
14379         (small_t): New type.
14380         (mmalloca, free): Rewritten.
14381         * lib/malloca.valgrind: Remove file.
14382         * modules/malloca (Files): Remove it.
14383         (Depends-on): Remove verify.
14385 2018-01-31  Bruno Haible  <bruno@clisp.org>
14387         environ: Fix link error on 64-bit Cygwin.
14388         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
14389         __declspec(dllimport) attribute.
14390         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
14392 2018-01-30  Bruno Haible  <bruno@clisp.org>
14394         get-rusage-data: Add support for Minix 3.
14395         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
14397 2018-01-30  Bruno Haible  <bruno@clisp.org>
14399         vma-iter: Add support for Minix 3.
14400         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
14401         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
14403 2018-01-27  Bruno Haible  <bruno@clisp.org>
14405         Fix malfunction of socket functions on HP-UX in 64-bit mode.
14406         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
14407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
14408         _HPUX_ALT_XOPEN_SOCKET_API.
14409         * modules/accept (Depends-on): Add 'extensions'.
14410         * modules/getpeername (Depends-on): Likewise.
14411         * modules/getsockname (Depends-on): Likewise.
14412         * modules/getsockopt (Depends-on): Likewise.
14413         * modules/recvfrom (Depends-on): Likewise.
14414         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
14415         * doc/posix-functions/getpeername.texi: Likewise.
14416         * doc/posix-functions/getsockname.texi: Likewise.
14417         * doc/posix-functions/getsockopt.texi: Likewise.
14418         * doc/posix-functions/recvfrom.texi: Likewise.
14420 2018-01-27  Bruno Haible  <bruno@clisp.org>
14422         getsockname tests: More tests.
14423         * tests/test-getsockname.c (open_server_socket): New function, mostly
14424         copied from test-poll.c.
14425         (main): Check that getsockname fills in addr.
14426         * modules/getsockname-tests (Depends-on): Add the necessary
14427         dependencies.
14428         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
14430 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14432         manywarnings: fix maintainer comment
14433         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
14434         it does not mistakenly think that ‘-1)’ is an option.
14436 2018-01-26  Bruno Haible  <bruno@clisp.org>
14438         langinfo: Fix last commit.
14439         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14440         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
14442 2018-01-24  Bruno Haible  <bruno@clisp.org>
14444         langinfo, nl_langinfo: Add support for alternative month names.
14445         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
14446         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
14447         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
14448         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
14449         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
14450         * doc/posix-functions/nl_langinfo.texi: Likewise.
14452 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14454         Merge strftime.c changes from glibc
14455         This incorporates:
14456         2017-11-14 [BZ #10871] Implement alternative month names
14457         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
14458         2017-06-20 Use locale_t, not __locale_t, throughout glibc
14459         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
14460         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
14461         Use locale_t, not __locale_t.
14462         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
14463         (__strftime_internal): Add support for alternate months.
14465 2018-01-23  Bruno Haible  <bruno@clisp.org>
14467         doc: Mention another prerequisite for using Gnulib.
14468         Reported at <https://stackoverflow.com/questions/48378214/>.
14469         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
14470         AC_CONFIG_HEADERS.
14472 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
14474         build: GuixSD doesn't have /bin/bash
14475         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
14477 2018-01-21  Bruno Haible  <bruno@clisp.org>
14479         Avoid test failures on Microsoft Windows Subsystem for Linux.
14480         * tests/test-fcntl.c (main): Allow a different errno.
14481         * tests/test-rename.h (test_rename): Likewise.
14482         * tests/test-renameat.c (main): Likewise.
14483         * tests/test-renameat2.c (main): Likewise.
14485 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
14487         filenamecat: make base a suffix of result
14488         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
14489         (mfile_name_concat): Always make BASE a suffix of the result, as
14490         cp expects this.  To implement this, separate with '.' instead of
14491         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
14492         * tests/test-filenamecat.c (main): Adjust tests to match
14493         current behavior.  Check that BASE_IN_RESULT points to
14494         a copy of BASE and is a suffix of the resultk, and that DIR
14495         is a prefix of the result that is no longer than the prefix
14496         indicated by BASE_IN_RESULT.
14498 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
14500         update-copyright: Handle use of ©
14501         * build-aux/update-copyright ($circle_c_re): Update regex to
14502         handle use of © in headers.
14504 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
14506         Fix -Wundef warning in user-included header lib/cdefs.h.
14507         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
14509 2018-01-04  Bruno Haible  <bruno@clisp.org>
14511         pthread_sigmask: Avoid compilation error on mingw.
14512         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14513         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
14514         macro.
14516 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14518         test-framework-sh: ‘ps -ef’, not ‘ps ef’
14519         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
14520         Suggested by Bob Proulx (Bug#29968).
14521         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
14523 2018-01-02  Eric Blake  <eblake@redhat.com>
14525         stat-time: silence -Wunused-parameter regression
14526         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
14527         Prefer attribute over cast-to-void.
14528         (stat_time_normalize): Mark st as potentially unused.
14530 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
14532         test-framework-sh: avoid netstat
14533         Problem reported by Kristýna Streitová (Bug#29947).
14534         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
14535         deprecated on SuSE and it's not that important anyway.
14537 2018-01-01  Jim Meyering  <meyering@fb.com>
14539         update-copyright: add code to handle more special cases
14540         After running "make update-copyright" this year, five files
14541         required additional manual changes.  Automate those adjustments
14542         for next year.
14543         * Makefile (_year_and_prev): Define.
14544         (update-copyright): Add perl commands to induce this year's post-
14545         update-copyright adjustments.
14547 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14549         version-etc: new year
14550         * build-aux/gendocs.sh (version):
14551         * doc/gendocs_template:
14552         * doc/gendocs_template_min:
14553         * doc/gnulib.texi:
14554         * lib/version-etc.c (COPYRIGHT_YEAR):
14555         Update copyright dates by hand in templates and the like.
14557         maint: fix 'make update-copyright'
14558         * Makefile (update-copyright): Adjust to 2016-11-23 change
14559         to config/srclist-update, which changed the format of srclist.txt.
14561 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14563         chdir-safer: remove this module
14564         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
14565         * NEWS: Document removal.
14566         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
14567         * modules/chdir-safer: Remove these files.
14569 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
14571         Add cross-compilation results for GNU/Hurd.
14572         * m4/calloc.m4: Add GNU/Hurd guess.
14573         * m4/cbrtl.m4: Likewise.
14574         * m4/ceil.m4: Likewise.
14575         * m4/ceilf.m4: Likewise.
14576         * m4/ceill.m4: Likewise.
14577         * m4/chown.m4: Likewise.
14578         * m4/duplocale.m4: Likewise.
14579         * m4/exp2l.m4: Likewise.
14580         * m4/expm1.m4: Likewise.
14581         * m4/fchdir.m4: Likewise.
14582         * m4/floor.m4: Likewise.
14583         * m4/floorf.m4: Likewise.
14584         * m4/fmod.m4: Likewise.
14585         * m4/fmodf.m4: Likewise.
14586         * m4/fmodl.m4: Likewise.
14587         * m4/getcwd.m4: Likewise.
14588         * m4/getgroups.m4: Likewise.
14589         * m4/gettimeofday.m4: Likewise.
14590         * m4/hypot.m4: Likewise.
14591         * m4/hypotf.m4: Likewise.
14592         * m4/hypotl.m4: Likewise.
14593         * m4/link-follow.m4: Likewise.
14594         * m4/link.m4: Likewise.
14595         * m4/linkat.m4: Likewise.
14596         * m4/log.m4: Likewise.
14597         * m4/log10.m4: Likewise.
14598         * m4/log10f.m4: Likewise.
14599         * m4/log1p.m4: Likewise.
14600         * m4/log1pf.m4: Likewise.
14601         * m4/log1pl.m4: Likewise.
14602         * m4/log2.m4: Likewise.
14603         * m4/log2f.m4: Likewise.
14604         * m4/logf.m4: Likewise.
14605         * m4/lstat.m4: Likewise.
14606         * m4/malloc.m4: Likewise.
14607         * m4/mbrlen.m4: Likewise.
14608         * m4/mbrtowc.m4: Likewise.
14609         * m4/mkdir.m4: Likewise.
14610         * m4/mkfifo.m4: Likewise.
14611         * m4/mknod.m4: Likewise.
14612         * m4/mkstemp.m4: Likewise.
14613         * m4/modf.m4: Likewise.
14614         * m4/modff.m4: Likewise.
14615         * m4/modfl.m4: Likewise.
14616         * m4/printf.m4: Likewise.
14617         * m4/pselect.m4: Likewise.
14618         * m4/ptsname.m4: Likewise.
14619         * m4/putenv.m4: Likewise.
14620         * m4/readlink.m4: Likewise.
14621         * m4/realloc.m4: Likewise.
14622         * m4/remainder.m4: Likewise.
14623         * m4/remainderf.m4: Likewise.
14624         * m4/remainderl.m4: Likewise.
14625         * m4/rmdir.m4: Likewise.
14626         * m4/round.m4: Likewise.
14627         * m4/roundf.m4: Likewise.
14628         * m4/roundl.m4: Likewise.
14629         * m4/select.m4: Likewise.
14630         * m4/setenv.m4: Likewise.
14631         * m4/signbit.m4: Likewise.
14632         * m4/sleep.m4: Likewise.
14633         * m4/stat.m4: Likewise.
14634         * m4/strerror.m4: Likewise.
14635         * m4/strtok_r.m4: Likewise.
14636         * m4/symlink.m4: Likewise.
14637         * m4/symlinkat.m4: Likewise.
14638         * m4/trunc.m4: Likewise.
14639         * m4/truncf.m4: Likewise.
14640         * m4/truncl.m4: Likewise.
14641         * m4/tzset.m4: Likewise.
14642         * m4/ungetc.m4: Likewise.
14643         * m4/usleep.m4: Likewise.
14644         * m4/wcwidth.m4: Likewise.
14646 2017-12-28  Bruno Haible  <bruno@clisp.org>
14648         gnulib-tool: Make --conditional-dependencies work better.
14649         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
14650         * gnulib-tool (Options): Don't reject the combination of
14651         --conditional-dependencies with --with-tests.
14652         (func_emit_autoconf_snippets): Add argument referenceable_modules.
14653         Don't reference $modules.
14654         (func_import, func_create_testdir): Pass it.
14656 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14658         regex: use re_malloc etc. consistently
14659         Problem and original patch reported by Arnold Robbins in:
14660         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
14661         * lib/regcomp.c (re_comp):
14662         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
14663         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
14665 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
14666             Paul Eggert  <eggert@cs.ucla.edu>
14668         glob: Silence warning about void pointer arithmetic.
14669         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
14670         arithmetic.
14672 2017-12-15  Bruno Haible  <bruno@clisp.org>
14674         spawn-pipe: Silence a clang warning.
14675         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14676         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
14677         in this file.
14679 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14681         explicit_bzero: port to macOS + Clang 9.0.0
14682         Problem reported by Marcus Johnson (Bug#29658).
14683         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
14684         Don’t use asm.
14686 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
14688         doc: Improve explanation of supporting relocatable libraries.
14689         * doc/relocatable-maint.texi (Supporting Relocation): Explain
14690         properly how to build the relocatable module for
14691         libraries. (Method and example code from Bruno Haible.)
14693 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
14695         doc: Use better texinfo tags in a few cases.
14696         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
14697         instead of @samp in a few places.
14699 2017-12-11  Bruno Haible  <bruno@clisp.org>
14701         unistr/base: Update comment.
14702         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
14704 2017-12-10  Pádraig Brady  <P@draigBrady.com>
14706         test-faccessat.c: unlink temp file to avoid subsequent test failure
14707         * tests/test-faccessat.c: Remove the file to avoid failure
14708         to open the file on subsequent runs due to being created
14709         with no permissions.
14711 2017-12-10  Bruno Haible  <bruno@clisp.org>
14713         doc: New sect. "Modifying the build rules of a Gnulib import directory".
14714         * doc/gnulib-tool.texi (Modified build rules): New node.
14716 2017-12-10  Bruno Haible  <bruno@clisp.org>
14718         doc: Tweak wording.
14719         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
14720         "binaries".
14722 2017-12-05  Sam Steingold  <sds@gnu.org>
14723             Bruno Haible  <bruno@clisp.org>
14725         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
14726         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
14727         AC_EGREP_CPP pattern.
14729 2017-12-03  Bruno Haible  <bruno@clisp.org>
14731         all: Replace more http URLs by https URLs.
14732         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
14733         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
14734         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
14735         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
14737 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14739         Port better to CentOS 5
14740         Problems reported by Tom G. Christensen in:
14741         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
14742         * doc/glibc-functions/strverscmp.texi (strverscmp):
14743         Document strverscmp bug with glibc 2.9 and earlier.
14744         * doc/posix-functions/tzset.texi (tzset):
14745         Document that TZ with angle brackets is POSIX-2001 and later.
14746         * tests/test-nstrftime.c: Include unistd.h.
14747         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
14748         (TZ): Use it to skip tests with angle brackets in TZ,
14749         for older systems.
14751         stat: add missing module dependencies
14752         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
14753         Add stat-time.
14755 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
14757         stat: fix compilation failure on macOS Sierra
14758         Reported by Marius Schamschula <mschamschula@gmail.com> in:
14759         https://savannah.gnu.org/bugs/?52546
14760         * lib/stat.c: Add missing include of stat-time.h.
14762 2017-11-28  Jim Meyering  <meyering@fb.com>
14764         test-faccessat.c: correct BASE definition to avoid parallel test failure
14765         * tests/test-faccessat.c (BASE): Define using this file's name, not
14766         that of test-lstat.c.  Using the latter caused this test to fail
14767         sometimes when run concurrently with test-lstat.
14769 2017-11-27  Daiki Ueno  <ueno@gnu.org>
14771         unicase: fix VPATH build
14772         * modules/unicase/special-casing (Makefile.am): Ensure that the
14773         base directory is created when generating
14774         unicase/special-casing.h.
14776 2017-11-27  Daiki Ueno  <ueno@gnu.org>
14778         libunistring: update to Unicode 9.0.0
14779         * lib/gen-uni-tables.c (fill_properties): Recognize
14780         Sentence_Terminal and Prepended_Concatenation_Mark.
14781         (is_property_default_ignorable_code_point): Exclude U+08E2.
14782         (fill_arabicshaping): Allow missing whitespace when parsing;
14783         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
14784         (output_blocks): Increase the element size of the level1 table to
14785         accommodate more blocks.
14786         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
14787         Update each class according to the standard.
14788         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
14789         E_Base_GAZ characters.
14790         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
14791         Glue_After_Zwj, and E_Base_GAZ characters.
14792         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
14793         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
14794         enum value.
14795         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
14796         value.
14797         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
14798         LBP_ZWJ, LBP_EB, and LBP_EM.
14799         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
14800         enum value.
14801         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
14802         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
14803         declaration.
14804         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
14805         (uniwbrk_table): Implement WB14.
14806         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
14807         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
14808         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
14809         uc-is-grapheme-break.
14810         * modules/unigbrk/uc-grapheme-breaks: New module.
14811         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
14812         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
14813         enum value.
14814         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
14815         * lib/unigbrk/u-grapheme-breaks.h: New file.
14816         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
14817         u-grapheme-breaks.h instead of uc_is_grapheme_break.
14818         * lib/unigbrk/uc-grapheme-breaks.c: New file.
14819         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
14820         29.
14821         * tests/unigbrk/test-uc-gbrk-prop.c
14822         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
14823         GBP_GAZ, and GBP_EBG.
14824         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
14825         * tests/unigbrk/test-uc-is-grapheme-break.c
14826         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
14827         GBP_GAZ, and GBP_EBG.
14828         (main): Skip unsupported rules involving 3 or more characters,
14829         namely GB10, GB12, and GB13.
14830         * lib/uniwidth/width.c (nonspacing_table_data): Update.
14831         * all generated files under lib/uni* and tests/uni*: Regenerate.
14832         * all the affected modules: Bump version.
14834 2017-11-26  Bruno Haible  <bruno@clisp.org>
14836         strfmon_l: Fix compilation error with glibc 2.5.
14837         Reported by Tom G. Christensen <tgc@jupiterrise.com>
14838         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
14839         * lib/monetary.in.h: Include also <locale.h>.
14841 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14843         posixtm: remove PDS_LEADING_YEAR
14844         This changes the API slightly, in a hopefully-innocuous way.
14845         Without this change the code had undefined behavior when a
14846         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
14847         Problem reported by Pádraig Brady in:
14848         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
14849         * NEWS: Mention this.
14850         * lib/posixtm.c (posix_time_parse): Treat the absence of
14851         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
14852         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
14853         present, but define it as zero, for compatibility with existing
14854         source code).  All other PDS_* values moved up.
14855         * tests/test-posixtm.c (LY): New macro.
14856         (T): Use it.  Do not expect a particular numeric encoding
14857         for PDS_CENTURY etc.
14859 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
14861         stat: work around Solaris bug with tv_nsec < 0
14862         * doc/posix-functions/fstat.texi (fstat):
14863         * doc/posix-functions/fstatat.texi (fstatat):
14864         * doc/posix-functions/lstat.texi (lstat):
14865         * doc/posix-functions/stat.texi (stat):
14866         Mention Solaris 11 bug.
14867         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
14868         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
14869         * lib/lstat.c (rpl_lstat):
14870         * lib/stat.c (rpl_stat):
14871         Normalize resulting timestamps.
14872         * lib/fstatat.c (normal_fstatat): New function.
14873         (rpl_fstatat): Use it.
14874         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
14875         (stat_time_normalize): New function.
14876         * m4/fstat.m4 (gl_FUNC_FSTAT):
14877         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
14878         * m4/lstat.m4 (gl_FUNC_LSTAT):
14879         * m4/stat.m4 (gl_FUNC_STAT):
14880         Replace on Solaris.
14881         * modules/fstat (Depends-on):
14882         * modules/fstatat (Depends-on):
14883         Add stat-time.
14884         * modules/stat-time (Depends-on): Add errno, intprops.
14886 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14888         regex: merge from glibc
14889         * lib/regcomp.c (init_word_char): Add comments.
14891 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14893         regex: merge from glibc
14894         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
14895         * lib/regex_internal.h (internal_function): Remove.
14896         All uses removed.
14898 2017-11-20  Bruno Haible  <bruno@clisp.org>
14900         crypto/gc-sm3: Fix buffer overrun.
14901         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
14902         Reported by Coverity.
14904 2017-11-12  Jim Meyering  <meyering@fb.com>
14906         maint: shorten https://lists.gnu.org/archive/html/... links
14907         Each /archive/html/ part can be replace with /r/.
14908         Run this to induce the change:
14909         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
14910         * ChangeLog: Perform that substitution.
14911         * Makefile: Likewise.
14912         * STATUS-libposix: Likewise.
14913         * build-aux/bootstrap: Likewise.
14914         * doc/maintain.texi: Likewise.
14915         * gnulib-tool: Likewise.
14916         * lib/allocator.h: Likewise.
14917         * lib/argp-ba.c: Likewise.
14918         * lib/argp-pv.c: Likewise.
14919         * lib/canon-host.c: Likewise.
14920         * lib/canonicalize-lgpl.c: Likewise.
14921         * lib/float.in.h: Likewise.
14922         * lib/fstat.c: Likewise.
14923         * lib/getdelim.c: Likewise.
14924         * lib/getprogname.c: Likewise.
14925         * lib/glthread/thread.h: Likewise.
14926         * lib/intprops.h: Likewise.
14927         * lib/mbsrtowcs-state.c: Likewise.
14928         * lib/safe-read.c: Likewise.
14929         * lib/signal.in.h: Likewise.
14930         * lib/stat.c: Likewise.
14931         * lib/stdbool.in.h: Likewise.
14932         * lib/stdio-impl.h: Likewise.
14933         * lib/stdio.in.h: Likewise.
14934         * lib/sysexits.in.h: Likewise.
14935         * lib/timespec.h: Likewise.
14936         * lib/wcsrtombs-state.c: Likewise.
14937         * m4/alloca.m4: Likewise.
14938         * m4/extern-inline.m4: Likewise.
14939         * m4/fstatat.m4: Likewise.
14940         * m4/gnulib-common.m4: Likewise.
14941         * m4/lib-ignore.m4: Likewise.
14942         * m4/printf.m4: Likewise.
14943         * m4/regex.m4: Likewise.
14944         * m4/stat-size.m4: Likewise.
14945         * m4/std-gnu11.m4: Likewise.
14946         * m4/stdbool.m4: Likewise.
14947         * m4/sys_types_h.m4: Likewise.
14948         * m4/threadlib.m4: Likewise.
14949         * m4/vararrays.m4: Likewise.
14950         * pygnulib/GLImport.py: Likewise.
14951         * tests/test-exp.h: Likewise.
14952         * tests/test-exp2.h: Likewise.
14953         * tests/test-expm1.h: Likewise.
14954         * tests/test-fflush2.c: Likewise.
14955         * tests/test-getopt_long.h: Likewise.
14956         * tests/test-intprops.c: Likewise.
14957         * tests/test-log.h: Likewise.
14958         * tests/test-log10.h: Likewise.
14959         * tests/test-log1p.h: Likewise.
14960         * tests/test-log2.h: Likewise.
14961         * tests/test-printf-posix.h: Likewise.
14962         * tests/test-regex.c: Likewise.
14963         * tests/test-snprintf-posix.h: Likewise.
14964         * tests/test-sprintf-posix.h: Likewise.
14965         * tests/test-stdalign.c: Likewise.
14966         * tests/test-stdbool.c: Likewise.
14967         * tests/test-vasnprintf-posix.c: Likewise.
14968         * tests/test-vasprintf-posix.c: Likewise.
14969         * top/maint.mk: Likewise.
14971 2017-11-12  Bruno Haible  <bruno@clisp.org>
14973         faccessat: Make the last change more robust.
14974         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
14975         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
14977 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14979         faccessat: port to macOS (Bug#29231)
14980         macOS faccessat has the same bug that lstat does: if the file
14981         name ends in '/' it ignores the trailing slash.
14982         Problem reported for Emacs by Vincent Zhang.
14983         * doc/posix-functions/faccessat.texi (faccessat): Document this.
14984         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
14985         around the initial includes.  Include errno.h, string.h, sys/stat.h.
14986         (orig_faccessat) [HAVE_FACCESSAT]: New function.
14987         Include "unistd.h" after defining it.
14988         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
14989         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
14990         Handle in the usual way.
14991         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
14992         lstat dereferences symlinks, since faccessat is likely to
14993         have the same problem.
14994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
14995         * modules/faccessat (Depends-on): Add fstatat.
14996         Depend if REPLACE_FACCESSAT is 1, too.
14997         (configure.ac): Link if REPLACE_FACCESSAT is 1.
14998         * modules/faccessat-tests (Depends-on): Add symlink.
14999         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
15000         * tests/test-faccessat.c (main): Test for the bug.
15002 2017-11-11  Bruno Haible  <bruno@clisp.org>
15004         getprogname: Fix compilation error on IRIX.
15005         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
15006         'namesize'.
15008 2017-11-11  Bruno Haible  <bruno@clisp.org>
15010         year2038: Tweak last patch.
15011         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
15013 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15015         year2038: be more insistent about 64-bit time_t
15016         Applications requiring access to arbitrary files should not be
15017         built with 32-bit time_t on hosts that have 64-bit timestamps,
15018         as this can lead to real trouble at runtime.
15019         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
15020         Check on all systems, not just MinGW.  Use a heuristic involving
15021         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
15022         output a failure or just a warning, to make it more likely that
15023         builders will select 64-bit time_t.
15025 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15027         havelib: fix typo in previous change
15028         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
15030         Don’t use AC_EGREP_CPP if affected by CFLAGS
15031         * m4/float_h.m4 (gl_FLOAT_H):
15032         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
15033         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
15034         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
15035         * m4/year2038.m4 (gl_YEAR2038):
15036         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
15037         likely to be affected by the choice of CFLAGS, since CFLAGS are
15038         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
15039         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
15041         fstatat: pacify GCC on unusual platform
15042         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
15043         Omit, as it’s unused in this case.
15045 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15047         timespec: prefer ‘assume’ to ‘assure’
15048         This avoids some runtime tests.  The rest of the module makes
15049         similar assumptions and there is little point to testing here.
15050         * lib/timespec.h: Include verify.h instead of assure.h.
15051         (timespec_cmp): Use ‘assume’, not ‘assure’.
15052         Also, remove an unnecessary cast to ‘int’, as lots of other
15053         code in this module now causes -Wconversion to complain, and
15054         this is a problem with -Wconversion not with the code.
15056         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
15058         Port recent gnulib-tool change to Dash
15059         * gnulib-tool (func_create_testdir): Don't assume that the shell
15060         retokenizes after expanding "$@" inside the call to
15061         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
15063 2017-10-27  Jim Meyering  <meyering@fb.com>
15065         timespec.h: use "assure" to avoid a spurious warning
15066         * lib/timespec.h: Include "assure.h" and use it to help
15067         gcc7's -Wstrict-overflow avoid a false positive warning
15068         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
15069         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
15070         * modules/timespec (Depends-on): Add assure.
15072 2017-10-29  Bruno Haible  <bruno@clisp.org>
15074         Avoid several test failures with traditional locales on Haiku.
15075         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
15076         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
15077         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
15078         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
15079         LOCALE_ZH_CN=none.
15081 2017-10-29  Bruno Haible  <bruno@clisp.org>
15083         strerror_r-posix: Fix behaviour and test failure on Haiku.
15084         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
15085         are positive. Work around return value 0 instead of ERANGE on Haiku.
15086         For unknown error numbers, use a format string consistent with perror().
15087         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
15088         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
15089         are positive.
15091 2017-10-29  Bruno Haible  <bruno@clisp.org>
15093         get-rusage-data: Avoid crash on Haiku.
15094         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
15096 2017-10-29  Bruno Haible  <bruno@clisp.org>
15098         get-rusage-as: Avoid crash on Haiku.
15099         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
15101 2017-10-29  Bruno Haible  <bruno@clisp.org>
15103         ilogbl: Ensure replacement on Haiku.
15104         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
15105         REPLACE_ILOGBL if ilogbl does not work.
15106         (gl_FUNC_ILOGBL_WORKS): New macro.
15107         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
15108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
15109         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
15110         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
15111         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
15113 2017-10-29  Bruno Haible  <bruno@clisp.org>
15115         expl: Ensure replacement on Haiku.
15116         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
15117         zero.
15118         * doc/posix-functions/expl.texi: Mention the Haiku problem.
15120 2017-10-29  Bruno Haible  <bruno@clisp.org>
15122         math: Fix test failure on Haiku.
15123         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
15124         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
15125         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15126         * doc/posix-headers/math.texi: Mention the Haiku problem.
15128 2017-10-29  Bruno Haible  <bruno@clisp.org>
15130         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
15131         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
15132         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
15134 2017-10-29  Bruno Haible  <bruno@clisp.org>
15136         crypto/*: Verify that the header file is self-contained.
15137         * tests/test-gc-*.c: Include the module's header file immediately after
15138         <config.h>.
15139         * tests/test-hmac-*.c: Likewise.
15140         * tests/test-arcfour.c: Likewise.
15141         * tests/test-arctwo.c: Likewise.
15142         * tests/test-des.c: Likewise.
15143         * tests/test-md2.c: Likewise.
15144         * tests/test-md4.c: Likewise.
15145         * tests/test-md5.c: Likewise.
15146         * tests/test-rijndael.c: Likewise.
15147         * tests/test-sha1.c: Likewise.
15148         * tests/test-sm3.c: Likewise.
15150 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15151             Bruno Haible  <bruno@clisp.org>
15153         crypto/gc: fix build failure with -Werror=suggest-attribute=const
15154         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
15156 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15158         New module: crypto/gc-sm3
15159         * lib/gc.h: Declare SM3-related stuffs.
15160         * lib/gc-gnulib.c: Support sm3 in internal functions.
15161         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
15162         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
15163         * modules/crypto/gc-sm3: Define gc-sm3 module.
15164         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
15165         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
15166         * MODULES.html.sh: List gc-sm3 module.
15168 2017-10-29  Bruno Haible  <bruno@clisp.org>
15170         random, random_r: Mention different prototypes on Haiku.
15171         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
15172         * doc/glibc-functions/random_r.texi: Likewise.
15173         * doc/glibc-functions/initstate_r.texi: Likewise.
15174         * doc/glibc-functions/setstate_r.texi: Likewise.
15176 2017-10-28  Bruno Haible  <bruno@clisp.org>
15178         posix_spawn: Avoid spurious message in configure output.
15179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
15180         'cmp' command.
15182 2017-10-28  Bruno Haible  <bruno@clisp.org>
15184         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
15185         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
15186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15188 2017-10-28  Bruno Haible  <bruno@clisp.org>
15190         ioctl: Override non-POSIX declaration on Haiku.
15191         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
15192         * lib/sys_ioctl.in.h: Add comment about Haiku.
15193         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
15194         * doc/glibc-headers/sys_ioctl.texi: Likewise.
15196 2017-10-28  Bruno Haible  <bruno@clisp.org>
15198         crypto/sm3: Add overview documentation to the .h file.
15199         * lib/sm3.h: Add comments.
15201 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15203         New module: crypto/sm3
15204         This new module can be used to compute SM3 message digest of files or
15205         memory blocks according to the specification GM/T 004-2012
15206         Cryptographic Hash Algorithm SM3, published by State Cryptography
15207         Administration, China.
15208         The official SM3 cryptographic hash algorithm specification is
15209         available at
15210         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
15211         * lib/sm3.h: Declare the APIs of sm3 module.
15212         * lib/sm3.c: Implement SM3 hash algorithm.
15213         * m4/sm3.m4: m4 file for sm3 module.
15214         * modules/crypto/sm3: Define sm3 module.
15215         * tests/test-sm3.c: Implement SM3 test case.
15216         * modules/crypto/sm3-tests: Define sm3 test module.
15217         * MODULES.html.sh: List sm3 module.
15219 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15221         gc-libgcrypt: fix undefined enum type in switch statement
15222         Resolve the following build failure:
15223         lib/gc-libgcrypt.c: In function 'gc_hash_open':
15224         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
15225         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
15226              case 0:
15227              ^~~~
15228         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
15229         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
15231 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
15233         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
15234         Resolve the following build failure:
15235         lib/gc-libgcrypt.c: In function 'gc_hash_read':
15236         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
15237         in signedness [-Werror=pointer-sign]
15238             digest = gcry_md_read (ctx->gch, 0);
15239                    ^
15240         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
15242 2017-10-26  Bruno Haible  <bruno@clisp.org>
15244         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
15245         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
15246         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
15248 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
15250         glob: fix another heap buffer overflow
15251         Problem reported by Tim Rühsen in:
15252         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
15253         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
15255 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
15257         quotearg: pacify compiler re unsigned
15258         * lib/quotearg.c (quotearg_n_options):
15259         Rewrite to avoid diagnostic from overly-picky compiler.
15260         Problem reported by Sami Kerola in:
15261         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
15263         glob: fix heap buffer overflow
15264         * lib/glob.c (glob): Fix off-by-one error introduced into
15265         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
15266         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
15267         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
15268         Fix suggested by Bruno Haible.
15270 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15272         glob: pacify fuzzer for mempcpy
15273         Problem reported by Tim Rühsen in:
15274         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
15275         * lib/glob.c (glob): Do not pass NULL to mempcpy.
15277 2017-10-12  Bruno Haible  <bruno@clisp.org>
15279         doc: Fix syntax error (regression from 2017-10-03).
15280         * doc/posix-functions/strncpy.texi: Fix syntax error.
15282 2017-10-12  Bruno Haible  <bruno@clisp.org>
15284         doc: Update for Solaris 11.3.
15285         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
15286         mention Solaris 11.3.
15287         * m4/log2.m4: Fix comments.
15288         * m4/log2f.m4: Likewise.
15289         * m4/printf.m4: Update comments.
15290         * m4/rename.m4: Likewise.
15291         * m4/strncat.m4: Likewise.
15293         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
15295 2017-10-10  Bruno Haible  <bruno@clisp.org>
15297         doc: Improve doc about ioctl.
15298         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
15299         prototype.
15301 2017-10-09  Bruno Haible  <bruno@clisp.org>
15303         wcwidth: Don't use obsolete syntax of 'test'.
15304         Reported by Eric Blake.
15305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
15306         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
15308 2017-10-09  Bruno Haible  <bruno@clisp.org>
15310         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
15311         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
15312         and Daniel P. Berrange <berrange@redhat.com>.
15313         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
15314         on glibc systems. The getopt-pfx-core.h file declares exactly what
15315         unistd.h needs, nothing more.
15317 2017-10-08  Bruno Haible  <bruno@clisp.org>
15319         vma-iter: Improve support for FreeBSD.
15320         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
15321         vma_iterate.
15322         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
15324 2017-10-08  Bruno Haible  <bruno@clisp.org>
15326         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
15327         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
15329 2017-10-07  KO Myung-Hun  <komh@chollian.net>
15331         test-framework-sh: Fix 'invalid path dir' error.
15332         On OS/2, a path separator is ';' not ':'. And ':' is used as a
15333         separator between a drive letter and directory parts.
15334         As a result, an absolute path such as x:/path/to/dir on OS/2 is
15335         treated as an invalid path dir.
15336         * tests/init.sh (PATH_SEPARATOR): Set at startup.
15337         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
15338         instead of hard coded ':'.
15340 2017-10-07  Bruno Haible  <bruno@clisp.org>
15342         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
15343         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
15344         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
15345         (rof_open): On Linux, do multiple read() calls and make sure
15346         MIN_LEFTOVER bytes are left when read() returns.
15348 2017-10-07  Bruno Haible  <bruno@clisp.org>
15350         vma-iter: Improve support for GNU/Hurd.
15351         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
15352         API, not the /proc file system.
15354 2017-10-07  Bruno Haible  <bruno@clisp.org>
15356         test-framework-sh: Don't require bash on Windows and OS/2.
15357         Reported by KO Myung-Hun.
15358         * tests/test-init.sh: Use 'shopt' only when running in bash.
15360 2017-10-06  KO Myung-Hun  <komh@chollian.net>
15362         wcwidth: check a macro version of wcwidth () as well
15363         * lib/wchar.in.h: Revert commit from 2016-01-14.
15364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
15366 2017-10-06  Bruno Haible  <bruno@clisp.org>
15368         getopt-posix: Clarify copyright header.
15369         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
15370         * lib/getopt-pfx-core.h: Likewise.
15371         * lib/getopt-pfx-ext.h: Likewise.
15372         * lib/getopt-cdefs.in.h: Likewise.
15374 2017-10-03  Bruno Haible  <bruno@clisp.org>
15376         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
15377         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
15378         gl_HOST_CPU_C_ABI.
15380 2017-10-03  Bruno Haible  <bruno@clisp.org>
15382         doc: warn about misuse of strncpy and wcsncpy.
15383         * doc/posix-functions/strcpy.texi: Describe requirements on prior
15384         memory allocation.
15385         * doc/posix-functions/wcscpy.texi: Likewise.
15386         * doc/posix-functions/strncpy.texi: Describe what this function is not
15387         useful for.
15388         * doc/posix-functions/wcsncpy.texi: Likewise.
15390 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
15392         fsuage: fix typo in previous change
15393         * lib/fsusage.c: Remove stray include of full-read.h.
15394         Problem reported by Sam Steingold for macOS (Bug#28669).
15396 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15398         fsusage: remove SVR2 support
15399         SVR2 was obsolete by 1986 and is no longer supported by anybody,
15400         and its code was getting in the way of use of this module by
15401         Emacs, which has its own ‘read’ function anyway.
15402         * lib/fsusage.c: Do not include sys/filsys.h.
15403         (get_fs_usage): Remove SVR2-specific code.
15404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
15405         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
15406         * modules/fsusage (Depends-on): Do not depend on full-read.
15408         Simplify autoupdate of licenses
15409         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
15410         place.
15412 2017-10-01  Bruno Haible  <bruno@clisp.org>
15414         vma-iter: Add support for GNU/Hurd.
15415         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
15416         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
15418 2017-09-30  Bruno Haible  <bruno@clisp.org>
15420         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
15421         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
15422         fail when module 'largefile' is in use.
15423         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
15424         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
15425         Don't test HAVE_SYS_PROCFS_H.
15427 2017-09-30  Bruno Haible  <bruno@clisp.org>
15429         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
15430         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
15431         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
15432         * modules/havelib (Depends-on): Add host-cpu-c-abi.
15434 2017-09-30  Bruno Haible  <bruno@clisp.org>
15436         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
15437         * lib/uniname/uniname.c (unicode_name_character): Add braces around
15438         scope of local variables.
15440 2017-09-28  Bruno Haible  <bruno@clisp.org>
15442         string: code style
15443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
15444         substitutable variables.
15445         * modules/string (Makefile.am): Likewise.
15447 2017-09-26  Bruno Haible  <bruno@clisp.org>
15449         uniname/uniname-tests: Tighten code.
15450         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
15451         local variables into one.
15453 2017-09-26  Bruno Haible  <bruno@clisp.org>
15455         vma-iter: Improvements for Linux and BSD platforms.
15456         - Add support for DragonFly BSD.
15457         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
15458         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
15459         Read the entire file into memory in a single system call.
15460         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
15461         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
15463 2017-09-26  Bruno Haible  <bruno@clisp.org>
15465         vma-iter: Provide the protection flags on FreeBSD.
15466         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
15467         skip three fields between the addresses and the protection flags.
15469 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15471         glob: remove bogus extern decl
15472         * lib/glob.c (__glob_pattern_type): Remove now-spurious
15473         extern declaration.  Problem reported by Adhemerval Zanella in:
15474         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
15476 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
15478         uniname/uniname-tests: integer overflow fix
15479         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
15480         Check for integer overflow.
15482         duplocale-tests: fix unlikely crash
15483         * tests/test-duplocale.c (get_locale_dependent_values):
15484         Don’t crash with absurdly long month names.
15486         maint: fix overflow checking in nap.h
15487         * modules/chown-tests:
15488         * modules/fchownat-tests, modules/fdutimensat-tests:
15489         * modules/futimens-tests, modules/lchown-tests:
15490         * modules/stat-time-tests, modules/utime-tests:
15491         * modules/utimens-tests, modules/utimensat-tests:
15492         Depend on intprops.
15493         * tests/nap.h: Include intprops.h.
15494         (diff_timespec): Handle overflow properly.
15496         sys_types: update URL
15497         * m4/sys_types_h.m4: Use https: URL.
15499         parse-datetime: fix dependency
15500         * modules/parse-datetime (Depends-on): Depend
15501         on nstrftime, not strftime.
15503         parse-datetime, posixtm: avoid uninit access
15504         * lib/parse-datetime.y (parse_datetime2):
15505         * lib/posixtm.c (posixtime):
15506         Do not access uninitialized storage, even though the resulting
15507         value is never used.
15509 2017-09-25  Bruno Haible  <bruno@clisp.org>
15511         vma-iter: Improvements for BSD platforms.
15512         - Add support for GNU/kFreeBSD.
15513         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
15514         - Speed up on OpenBSD.
15515         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
15516         (vma_iterate_bsd): New function.
15517         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
15518         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
15519         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
15520         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
15522 2017-09-23  Bruno Haible  <bruno@clisp.org>
15524         strfmon_l: New module.
15525         * modules/strfmon_l: New file.
15526         * lib/strfmon_l.c: New file.
15527         * m4/strfmon_l.m4: New file.
15528         * doc/posix-functions/strfmon_l.texi: Mention the new module.
15529         * modules/strfmon_l-tests: New file.
15530         * tests/test-strfmon_l.c: New file.
15532         monetary: New module.
15533         * modules/monetary: New file.
15534         * lib/monetary.in.h: New file.
15535         * m4/monetary_h.m4: New file.
15536         * doc/posix-headers/monetary.texi: Mention the new module.
15537         * modules/monetary-tests: New file.
15538         * tests/test-monetary.c: New file.
15539         * modules/monetary-c++-tests: New file.
15540         * tests/test-monetary-c++.cc: New file.
15541         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
15543 2017-09-23  Bruno Haible  <bruno@clisp.org>
15545         duplocale tests: Fix test crash on Linux/x86.
15546         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
15547         locale from the current thread before freeing it.
15549 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
15551         mktime: port to OpenVMS
15552         Problem reported by John E. Malmberg in:
15553         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
15554         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
15556 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15558         manywarnings: port to GCC on 64-bit MS-Windows
15559         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
15560         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
15561         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
15563 2017-09-13  Bruno Haible  <bruno@clisp.org>
15565         all: Replace many more http URLs by https URLs. Update stale URLs.
15566         * users.txt: Remove mention of 'newts'.
15567         * lib/localename.c: Update comment about LANG_SOTHO.
15569 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15571         all: Replace many http URLs by https URLs.
15573 2017-09-12  Bruno Haible  <bruno@clisp.org>
15575         doc: Prefer https URLs where possible.
15576         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
15577         * doc/ld-output-def.texi: Remove unavailable URL.
15579 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15581         maintainer-makefile: FTP -> HTTPS
15582         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
15583         of FTP, which is planned to be decommissioned on 2017-11-01.
15585 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15587         libc-config: Fix __GNUC_PREREQ macro.
15588         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
15589         __GNUC_MINOR.
15591 2017-09-09  Bruno Haible  <bruno@clisp.org>
15593         gnulib-tool: Simplify commit from 2015-08-20.
15594         * gnulib-tool (func_add_or_update): Remove local variable
15595         is_binary_file.
15597 2017-09-08  Bruno Haible  <bruno@clisp.org>
15599         stddef: Avoid conflict with system-defined max_align_t.
15600         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
15601         Reported by Werner Lemberg <wl@gnu.org> in
15602         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
15603         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
15604         (max_align_t): Define as a macro.
15605         (GNULIB_defined_max_align_t): New macro. Guards against multiple
15606         definitions of rpl_max_align_t in different copies of gnulib-generated
15607         <stddef.h>.
15609 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15611         libc-config: port to MSVC
15612         Problems reported by Gisle Vanem in:
15613         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
15614         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
15615         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
15616         * m4/__inline.m4: New file.
15617         * modules/libc-config (Files): Add it.
15618         (Depends-on): Use it.
15620         glob: Use enum for __glob_pattern_type result
15621         From a patch proposed by Adhemerval Zanella in:
15622         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
15623         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
15624         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
15625         * lib/glob_internal.h (__glob_pattern_type):
15626         * lib/glob.c (glob):
15627         * lib/glob_pattern_p.c (__glob_pattern_p):
15628         Use them.
15630         glob: fix for use in glibc
15631         Problem reported by Adhemerval Zanella in:
15632         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
15633         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
15634         Do not redefine if _LIBC.
15636 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15638         glob: fix bugs with long login names
15639         Problem reported by Adhemerval Zanella in:
15640         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
15641         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
15642         (glob): Use the same scratch buffer for both getlogin_r and
15643         getpwnam_r.  Don’t require preallocation of the login name.  This
15644         simplifies storage allocation, and corrects the handling of
15645         long login names.
15647 2017-09-02  Bruno Haible  <bruno@clisp.org>
15649         dirent: Update doc.
15650         * doc/posix-headers/dirent.texi: More concrete list of platforms.
15652 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15654         glob: fix getpwnam_r errno typo
15655         * lib/glob.c (glob): Fix longstanding misuse of errno after
15656         getpwnam_r, which returns an error number rather than setting
15657         errno.
15659         glob: fix typo in recent change
15660         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
15661         Fix recently-introduced typo.
15663 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15665         glob: don't save and restore errno unnecessarily
15666         * lib/glob.c (glob): Don't save and restore errno
15667         merely because we have getpwnam_r.
15669         glob: don't assume getpwnam_r
15670         * lib/glob.c (glob): Port recent patches to platforms
15671         lacking getpwnam_r.
15673         scratch_buffer: don’t use private glibc API
15674         Suggested by Florian Weimer in:
15675         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
15676         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
15677         * lib/scratch_buffer_grow.c: Rename to
15678         lib/malloc/scratch_buffer_grow.c.
15679         * lib/scratch_buffer_grow_preserve.c: Rename to
15680         lib/malloc/scratch_buffer_grow_preserve.c.
15681         * lib/scratch_buffer_set_array_size.c: Rename to
15682         lib/malloc/scratch_buffer_set_array_size.c.
15683         * lib/scratch_buffer.h: New file.
15684         * modules/scratch_buffer (Files, Makefile.am):
15685         Adjust to source-file renaming.
15687 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15689         glob: use scratch_buffer instead of extend_alloca
15690         Much of the lib/glob.c part of this patch comes from a glibc patch
15691         proposed by Adhemerval Zanella in:
15692         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
15693         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
15694         included via glob.h, does this for us now.
15695         (__set_errno): Remove, as libc-config does this for us now.
15696         Include <scratch_buffer.h>.
15697         (GETPW_R_SIZE_MAX): Remove.
15698         (glob): Use struct scratch_buffer instead of extend_alloca.
15699         * lib/glob.in.h: Include libc-config.h rather than
15700         including <sys/cdefs.h> conditionally.
15701         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
15702         (__glibc_unlikely, __restrict, weak_alias):
15703         Remove, as libc-config does this for us now.
15704         * m4/glob.m4 (gl_PREREQ_GLOB):
15705         Remove sys/cdefs.h tests; no longer needed.
15706         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
15707         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
15709         scratch_buffer: new module
15710         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
15711         * lib/scratch_buffer_grow_preserve.c:
15712         * lib/scratch_buffer_set_array_size.c:
15713         New files, copied from glibc with very minor changes that can be
15714         copied back.
15715         * modules/scratch_buffer: New file.
15717         libc-config: new module
15718         * MODULES.html.sh: Add libc-config.
15719         * lib/cdefs.h: New file, copied from the GNU C Library with very
15720         minor changes that can be copied back.
15721         * lib/libc-config.h, modules/libc-config: New files.
15723 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15725         glob: match dangling symlinks
15726         This fixes a bug I inadvertently introduced to Gnulib when I
15727         merged glibc glob back into gnulib on 2007-10-16.  This fix is
15728         inspired by a patch proposed for glibc by Adhemerval Zanella in:
15729         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
15730         * doc/posix-functions/glob.texi: Update list of affected platforms.
15731         * lib/glob.c (__lstat64): New macro.
15732         (is_dir): New function.
15733         (glob, glob_in_dir): Match symlinks even if they are dangling.
15734         (link_stat, link_exists_p): Remove.  All uses removed.
15735         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
15736         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
15737         * modules/glob-tests (Depends-on): Add symlink.
15738         * tests/test-glob.c: Include errno.h, unistd.h.
15739         (BASE): New macro.
15740         (main): Test dangling symlinks, if symlinks are supported.
15742         glob, backupfile: inode 0 is a valid inode number
15743         * doc/posix-functions/readdir.texi (readdir):
15744         * doc/posix-headers/dirent.texi (dirent.h):
15745         Document more readdir portability issues.
15746         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
15747         (numbered_backup): Don’t treat inode 0 any differently from
15748         other inode values.
15749         * lib/glob.c (struct readdir_result): Remove skip_entry member.
15750         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
15751         All uses removed.
15752         * modules/glob (Depends-on): Remove d-ino.
15754         glob: simplify symlink detection
15755         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
15756         uint8_t, as C99 does not require uint8_t.
15757         (struct readdir_result): Use it.  Do not define skip_entry unless
15758         it is needed; this saves a byte on platforms lacking d_ino.
15759         (readdir_result_type, readdir_result_skip_entry):
15760         New functions, replacing ...
15761         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
15762         ... these functions, which were removed.  This makes the callers
15763         easier to read.  All callers changed.
15764         (D_INO_TO_RESULT): Now empty if there is no d_ino.
15766 2017-08-30  Pádraig Brady  <P@draigBrady.com>
15768         fts-tests: tag as a longrunning-test so not included by default
15769         * modules/fts-tests: This test takes about 20s on current systems,
15770         and uses about 285M of space on ext4.
15772 2017-08-30  Pádraig Brady  <P@draigBrady.com>
15774         renameat2: fix compilation on alpine linux
15775         * m4/renameat.m4: Check for <linux/fs.h> presence.
15776         * lib/renameat2.h: Only include <linux/fs.h> if present.
15777         Reported by Assaf Gordon on Alpine Linux.
15779 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15781         glob: try to port recent changes to MS-Windows
15782         Problem reported by Bruno Haible in:
15783         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
15784         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
15785         * lib/glob.in.h (__glob_pattern_p): ... to here.
15787 2017-08-24  Eric Blake  <eblake@redhat.com>
15789         warnings: fix compilation with old autoconf
15790         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
15791         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
15792         AC_DEFUN.
15793         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
15794         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
15796 2017-08-24  Bruno Haible  <bruno@clisp.org>
15798         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
15799         * modules/glob (Depends-on): Add c99.
15801 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15803         glob: fix typo that broke platforms lacking d_ino
15804         This typo also hurt performance on GNU/Linux and similar hosts.
15805         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
15806         in previous change.
15808 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15810         glob: merge from glibc with Zanella glob changes
15811         Merge glob from glibc, with changes for glob proposed
15812         by Adhemerval Zanella in the thread starting here:
15813         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
15814         plus some fixes for this merge.
15815         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
15816         New files, ported from glibc.
15817         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
15818         with __restrict.
15819         (__size_t): Remove.  All uses replaced by size_t.
15820         (size_t): Define by defining __need_size_t and including <stddef.h>.
15821         This should work even in non-glibc platforms, where any name
15822         pollution is OK.
15823         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
15824         (struct stat64): Don’t worry about __GLOB_GNULIB.
15825         (glob, globfree, glob_pattern_p): Remove macros for
15826         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
15827         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
15828         but set errno.
15829         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
15830         removed since the glibc behavior works on null pointers.
15831         Do not include stdio.h; old SunOS is irrelevant now.
15832         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
15833         Include glob_internal.h.
15834         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
15835         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
15836         worked only coincidentally.
15837         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
15838         Remove macros; now done in glob.in.h.
15839         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
15840         (glob): Properly initialize glob structure with
15841         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
15842         Remove old code using SHELL since Bash no longer
15843         uses this.
15844         (glob, prefix_array): Separate MS code better.
15845         (glob, glob_in_dir): Use C99 decls before statements when glibc
15846         does.
15847         (glob_in_dir): Remove old Amiga and VMS code.
15848         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
15849         separate files.
15850         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
15851         (__glibc_unlikely):
15852         Move here from glob.c.
15853         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
15854         (weak_alias): New macro.
15855         (__size_t): Remove.  All uses replaced by size_t.
15856         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
15857         * modules/glob (Files): Add +lib/glob_internal.h,
15858         lib/glob_pattern_p.c, lib/globfree.c.
15859         (Depends-on): Remove snippet/arg-nonnull.
15861 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15863         glob: port to clang's Undefined Sanitizer
15864         Problem reported by Tim Rühsen in:
15865         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
15866         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
15867         (glob_in_dir): Do not rely on undefined behavior in accessing
15868         struct members beyond their bounds.  Use a flexible array member
15869         instead.
15871 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
15873         vc-list-files: port to Solaris 10
15874         * build-aux/vc-list-files: Don't assume test -e works.
15876 2017-08-21  Karl Berry  <karl@freefriends.org>
15878         * doc/posix-functions/srandom.texi (srandom): typo }.
15880 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15882         git-version-gen: port to Solaris 10
15883         Problem reported by Dagobert Michelsen in:
15884         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
15885         * build-aux/git-version-gen (v_from_git):
15886         Use expr instead of shell substitution.
15888 2017-08-19  Bruno Haible  <bruno@clisp.org>
15890         host-cpu-c-abi: Improve detection of MIPS ABI.
15891         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
15892         _MIPS_SIM.
15894 2017-08-17  Bruno Haible  <bruno@clisp.org>
15896         hypot tests: Fix test failure on FreeBSD 11.0/x86.
15897         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
15899 2017-08-17  Bruno Haible  <bruno@clisp.org>
15901         float: Fix LDBL_MIN value on FreeBSD/x86.
15902         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
15904 2017-08-17  Bruno Haible  <bruno@clisp.org>
15906         random: Fix test compilation failure on Cygwin 1.5.25.
15907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
15908         HAVE_DECL_SETSTATE.
15909         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
15910         declared.
15911         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
15912         HAVE_DECL_SETSTATE.
15913         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
15914         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
15915         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
15916         * doc/posix-functions/random.texi: Likewise.
15917         * doc/posix-functions/setstate.texi: Likewise.
15918         * doc/posix-functions/srandom.texi: Likewise.
15920 2017-08-16  Bruno Haible  <bruno@clisp.org>
15922         stdnoreturn: Fix test compilation failure on Cygwin.
15923         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
15924         <stdnoreturn.h> replacement.
15925         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
15926         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
15928 2017-08-16  Bruno Haible  <bruno@clisp.org>
15930         thread: Fix conflict with pthread_sigmask module.
15931         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
15932         it's defined as a macro.
15933         * modules/thread (Depends-on): Add pthread_sigmask.
15935 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
15937         rename: port better to NetBSD
15938         * doc/posix-functions/rename.texi (rename): NetBSD 7
15939         does not have the link-count bug.
15940         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
15941         broken merely because rename ("a", "b") removes "a" when the two
15942         names are hard links to the same file.
15944 2017-08-16  Bruno Haible  <bruno@clisp.org>
15946         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
15947         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
15948         the target file names with '$(srcdir)/'.
15949         * modules/unicase/locale-language (Makefile.am): Likewise.
15950         * modules/unicase/special-casing (Makefile.am): Likewise.
15951         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
15952         * modules/unictype/category-byname (Makefile.am): Likewise.
15953         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
15954         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
15955         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
15956         * modules/unictype/property-byname (Makefile.am): Likewise.
15957         * modules/unictype/scripts (Makefile.am): Likewise.
15958         * modules/uninorm/composition (Makefile.am): Likewise.
15960 2017-08-16  Bruno Haible  <bruno@clisp.org>
15962         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
15963         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
15964         value for OpenBSD.
15966 2017-08-16  Bruno Haible  <bruno@clisp.org>
15968         rename, renameat: Update doc regarding NetBSD.
15969         * doc/posix-functions/rename.texi: Clarify that when using
15970         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
15971         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
15972         version.
15974 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15976         renameat2: port better to macOS
15977         * lib/renameat2.c (renameat2): Use renameatx_np if available.
15979         futimens: don’t assume struct timespec layout
15980         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
15981         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
15982         * tests/test-fdutimensat.c (main):
15983         * tests/test-futimens.h (test_futimens):
15984         * tests/test-lutimens.h (test_lutimens):
15985         * tests/test-utimens.h (test_utimens):
15986         * tests/test-utimensat.c (main):
15987         Don’t assume that struct timespec is a two-member structure in
15988         tv_sec, tv_nsec order.  Although this is true on all platforms we
15989         know about, POSIX does not guarantee it.
15991         rename: document+test NetBSD rename
15992         Test failure reported by Bruno Haible in:
15993         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
15994         This is an area where NetBSD is better-behaved than POSIX,
15995         so allow the NetBSD behavior in tests.
15996         * doc/posix-functions/rename.texi:
15997         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
15998         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
16000 2017-08-15  Bruno Haible  <bruno@clisp.org>
16002         renameat: Ensure declaration in <stdio.h> on NetBSD.
16003         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
16004         * doc/posix-functions/renameat.texi: Mention this problem.
16006 2017-08-15  Bruno Haible  <bruno@clisp.org>
16008         duplocale: Work around NetBSD 7.0 bug.
16009         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
16010         * lib/duplocale.c: Add comment about NetBSD problem.
16011         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
16013 2017-08-15  Bruno Haible  <bruno@clisp.org>
16015         duplocale tests: Verify use with *_l functions.
16016         * modules/duplocale-tests (configure.ac): Test for uselocale and
16017         some *_l functions.
16018         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
16019         from main.
16020         (get_locale_dependent_values_from, test_with_locale_parameter): New
16021         functions.
16022         (main): Test both test_with_uselocale and test_with_locale_parameter.
16024 2017-08-15  Bruno Haible  <bruno@clisp.org>
16026         extensions: Enable NetBSD specific extensions.
16027         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
16029 2017-08-14  Bruno Haible  <bruno@clisp.org>
16031         open, openat: Update doc about O_CLOEXEC.
16032         * doc/posix-functions/open.texi: More concrete list of platforms.
16033         * doc/posix-functions/openat.texi: Likewise.
16035 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16037         open: support O_CLOEXEC
16038         * NEWS, doc/posix-functions/open.texi:
16039         * doc/posix-functions/openat.texi: Document this.
16040         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
16041         (GNULIB_defined_O_CLOEXEC): New symbol.
16042         * lib/open.c: Include cloexec.h.
16043         (open): Support O_CLOEXEC.
16044         * lib/openat.c: Include cloexec.h.
16045         (rpl_openat): Support O_CLOEXEC.
16046         * lib/popen-safer.c: Do not include cloexec.h.
16047         (open_noinherit): Remove.
16048         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
16049         * lib/save-cwd.c: Do not include cloexec.h.
16050         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
16051         * m4/open-cloexec.m4: New file.
16052         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
16053         Replace 'open' if O_CLOEXEC is not present.
16054         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
16055         Replace 'openat' if O_CLOEXEC is not present.
16056         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
16057         * modules/open (Files): Add m4/open-cloexec.m4.
16058         (Depends-on): Depend on cloexec if replacing 'open'.
16059         * modules/openat (Files): Add m4/open-cloexec.m4.
16060         (Depends-on): Depend on cloexec if replacing openat.
16061         * modules/popen-safer (Depends-on): Remove cloexec.
16062         * modules/save-cwd (Depends-on): Remove cloexec, and add
16063         fd-safer-flag and 'open'.
16065 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16067         reallocarray: minor fixes
16068         * doc/glibc-functions/reallocarray.texi: Update version numbers.
16069         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
16070         * modules/reallocarray (License): Change from GPL to LGPL.
16071         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
16072         Indent properly and don't use tabs.
16074 2017-08-13  Darshit Shah  <darnir@gnu.org>
16076         reallocarray: New module
16077         reallocarray is a new function in glibc 2.26 to safely allocate an array
16078         of memory locations with integer overflow protection.
16079         * MODULES.html.sh: Add reallocarray.
16080         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
16081         * lib/reallocarray.c: New file to implement module reallocarray.
16082         * lib/stdlib.in.h: Add function declarations for reallocarray.
16083         * m4/reallocarray.m4: New file.
16084         * m4/stdlib_h.m4: Declare reallocarray.
16085         * modules/reallocarray: New file.
16086         * modules/reallocarray-test: New file.
16087         * modules/stdlib: Coerce stdlib.h to export reallocarray.
16088         * tests/test-reallocarray.c: New test.
16090 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16092         dirent-safer: fix cloexec race
16093         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
16094         (opendir_safer): Use F_DUPFD_CLOEXEC.
16095         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
16096         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
16097         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
16098         instead of dup_safer.
16100         fts: fix cloexec races
16101         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
16102         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
16103         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
16104         (fd_ring_check): Set cloexec flag on new file descriptors.
16105         (fts_build, fd_ring_check): While we’re at it, make sure the
16106         resulting file descriptor is not 0, 1, or 2, since that is easy.
16108 2017-08-11  Bruno Haible  <bruno@clisp.org>
16110         fts tests: Fix link error.
16111         Reported by Tom G. Christensen in
16112         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
16113         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
16115 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16117         fts: port recent changes to CentOS 6
16118         Problem reported by Tom G. Christensen in:
16119         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
16120         * lib/fts.c (fsword): New type.
16121         (struct dev_type, filesystem_type): Use it.
16122         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
16123         Also, check for f_type only if fstatfs and sys/vfs.h work.
16125 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16127         tempname: do not depend on secure_getenv
16128         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
16129         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
16130         * modules/tempname (Depends-on): Remove secure_getenv.
16132 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16134         extensions: add _OPENBSD_SOURCE
16135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
16137 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
16138             Bruno Haible  <bruno@clisp.org>
16140         manywarnings: Add support for C++.
16141         * build-aux/g++-warning.spec: New file.
16142         * m4/manywarnings-c++.m4: New file.
16143         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
16144         redirects to manywarnings-c++.m4.
16145         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
16147 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16149         git-version-gen: another fix for tags with "-"
16150         * build-aux/git-version-gen: Improve fix for tags containing "-".
16151         Suggested by Markus Armbruster in:
16152         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
16154 2017-08-06  Bruno Haible  <bruno@clisp.org>
16156         warnings, manywarnings: Add support for multiple languages, not just C.
16157         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
16158         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
16159         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
16160         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
16161         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
16162         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
16163         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
16164         of the current language. If C++ is the current language, modify
16165         WARN_CXXFLAGS instead of WARN_CFLAGS.
16166         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
16167         gl_MANYWARN_ALL_GCC.
16168         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
16170 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
16172         git-version-gen: Fix for tags containing '-'
16174         Really old versions of git-describe (before v1.5.0, Feb 2007)
16175         don't have the number of commits in their long format output,
16176         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
16177         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
16178         recognizes both patterns, and normalizes the old format to the new one.
16180         Unfortunately, this normalization code gets confused when the tag
16181         contains '-'.  Reproducer:
16183             $ git-tag -m test v0.2-rc1
16184             $ build-aux/git-version-gen .tarball-version; echo
16185             build-aux/git-version-gen: WARNING: git rev-list failed
16186             UNKNOWN
16188         We take exact tag "v0.2-rc1" for the old format, extract the presumed
16189         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
16190         commits since tha tag.  Fails, because tag "v0.2" does not exist.
16192         * git-version-gen: We could perhaps drop support for versions from
16193         more than a decade ago.  But tightening the pattern match is easy
16194         enough, so do that.  Still breaks when you use version tags ending in
16195         something matching -g????, but you arguably get what you deserve then.
16197 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16199         valgrind-tests: use ls, and cache
16200         * m4/valgrind-tests.m4: Test ls, not bash.
16201         Problem reported by Reuben Thomas.
16202         Also, cache the result so that it can be overridden.
16204 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16206         manywarnings: port to 64-bit GCC builds of Emacs
16207         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
16208         object size rather than hardwiring 2147483647.  This is needed to
16209         build GNU Emacs, which has one conditional (and used
16210         only-in-theory) call to malloc with a literal greater than
16211         2147483647.
16213 2017-08-04  Bruno Haible  <bruno@clisp.org>
16215         Relax the license of some modules with no runtime code.
16216         * modules/std-gnu11 (License): Set to 'unlimited'.
16217         * modules/c99 (License): Likewise.
16218         Reported by Reuben Thomas <rrt@sc3d.org>.
16219         * modules/d-ino (License): Set to 'LGPL'.
16220         * modules/host-os (License): Likewise.
16221         * modules/longlong (License): Likewise.
16223 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16225         renameat2: port to RHEL 7 + NFS
16226         * lib/renameat2.c (renameat2) [SYS_renameat2]:
16227         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
16228         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
16230 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
16232         renameat2: port to non-renameat platforms
16233         Problem reported for MSVC-2015 by Gisle Vanem in:
16234         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
16235         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
16236         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
16238 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16240         manywarnings: port to 32-bit GCC bug
16241         Problem reported by Pino Toscano in:
16242         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
16243         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
16244         not 2**63 - 1, to work around the following GCC bug:
16245         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
16247 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
16249         backupfile: new function to validate backup suffix
16250         * lib/backupfile.c (set_simple_backup_suffix): New function.
16251         (backupfile_internal): Use it.
16253         canonicalize: fix EOVERFLOW commentary
16254         Problem reported by Bruno Haible in:
16255         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
16256         * lib/canonicalize.c (canonicalize_filename_mode):
16257         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
16259         Don't interpret EOVERFLOW to mean nonexistence
16260         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
16261         may be EOVERFLOW; this is likely more useful than reporting the
16262         stat errno.
16263         * lib/glob.c (link_stat): Rename from link_exists2_p and
16264         return -1/0 instead of 0/1.  Caller changed.
16265         * lib/glob.c (link_exists_p):
16266         * lib/renameat2.c (rename_noreplace, renameat2):
16267         * lib/tempname.c (try_nocreate):
16268         If errno == EOVERFLOW then the directory entry exists, so do not
16269         act as if it does not exist.
16271         backup-rename: new module
16272         It is like backupfile, except it avoids some race conditions,
16273         and it does not output to stderr or exit.
16274         * MODULES.html.sh: Add backup-rename.
16275         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
16276         * modules/backup-rename: New files.
16277         * lib/backupfile.c: Turn this into an internals file, which
16278         contains code common to backupfile and backup_rename.  Include
16279         backupfile-internal.h instead of backupfile.h.  Do not include
16280         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
16281         renameat2.h and fcntl.h.
16282         (BACKUP_NOMEM): New constant.
16283         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
16284         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
16285         (backupfile_internal): Rename from find_backup_file_name.
16286         Support new arg RENAME.
16287         (backup_args, backup_types, get_version, xget_version):
16288         Move to lib/backup-find.c.
16289         * lib/backupfile.h (backup_file_rename): New decl.
16290         * modules/backupfile (Files): Add lib/backup-internal.h,
16291         lib/backup-find.c.
16292         (Depends-on): Add dirfd, fcntl, renameat2.
16293         (lib_SOURCES): Add backup-find.c.
16295         renameat2: port better to older Solaris
16296         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
16297         Add goto to use a label, to silence picky compilers.
16299         fts-tests: port to gcc -Wwrite-strings
16300         * tests/test-fts.c (base, base_d): New static vars.
16301         (argv, remove_tree, main): Use them.
16303 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
16305         relocatable-lib{,-lgpl}: improve documentation
16306         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
16307         Various other updates.
16309 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
16310             Bruno Haible  <bruno@clisp.org>
16312         relocatable-lib{,-lgpl}: add Valgrind suppressions
16313         * lib/relocatable.valgrind: New file.
16314         * modules/relocatable-lib (Files): Add relocatable.valgrind.
16315         * modules/relocatable-lib-lgpl: Likewise.
16317 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
16319         relocatable: Make the license on the sources the GPL.
16320         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
16321         LGPL, which was a special case so that the relocatable source files
16322         could be used without gnulib-tool, to GPL. They can still be used under
16323         the LGPL, using the --lgpl option to gnulib-tool.
16325 2017-07-30  Bruno Haible  <bruno@clisp.org>
16327         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
16328         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
16329         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
16330         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
16331         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
16333 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
16335         faccessat: document AT_SYMLINK_NOFOLLOW issue
16336         * doc/posix-functions/faccessat.texi: Modernize platform list.
16337         Document AT_SYMLINK_NOFOLLOW limitation.
16339         renameat2: port to Solaris 10
16340         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
16341         with AT_SYMLINK_NOFOLLOW (which is not portable).
16342         (renameat): Undef before using, to avoid endless recursion when
16343         the replacement renameat calls renameat2 which calls the
16344         replacement renameat.
16345         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
16346         * modules/renameat2 (Depends-on): Remove faccessat.
16347         * modules/renameat-tests (test_renameat_LDADD):
16348         * modules/renameat2-tests (test_renameat2_LDADD):
16349         Remove $(LIB_EACCESS).
16351         renameat2: new module
16352         Although the Linux syscall renameat2 is not in glibc (yet?), it is
16353         useful to have access to its RENAME_NOREPLACE flag.
16354         * MODULES.html.sh (func_all_modules): Add renameat2.
16355         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
16356         * modules/renameat2-tests, tests/test-renameat2.c: New files.
16357         * lib/renameat.c (renameat): Move most of the implementation
16358         to renameat2, and just call renameat2.
16359         * modules/renameat (Files): Remove lib/at-func2.c.
16360         (Depends-on): Depend only on renameat2.
16361         (Include): Remove <fcntl.h>.
16362         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
16363         since renameat (via renameat2) might use faccessat.
16365 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
16367         vc-list-files: Adjust the script to support git worktrees
16368         * build-aux/vc-list-files: Require existence, not directory.
16370 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16372         doc: bring MODULES.html.sh up to date
16373         Somehow a few months ago we stopped updating MODULES.html.sh.
16374         I don’t recall explicitly deciding this, so I updated it now.
16375         Alternatively I suppose we could remove it.
16376         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
16377         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
16378         truncate, utime, utime-h, windows-stat-inodes,
16379         windows-stat-override, windows-stat-timespec, year2038.  Sort.
16381 2017-07-26  Jim Meyering  <meyering@fb.com>
16383         fprintftime: fix build-break caused by recent renaming
16384         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
16385         "strftime.c".
16386         * modules/fprintftime: Depend directly on nstrftime.
16388 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16390         regex: work with GCC7's -Werror=implicit-fallthrough=
16391         * lib/regex_internal.h (FALLTHROUGH): New macro.
16392         * lib/regcomp.c (peek_token_bracket, parse_expression):
16393         * lib/regexec.c (check_node_accept): Use it.
16395 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16397         fts: simplify fts_build
16398         * lib/fts.c (fts_build): Simplify, and be lazier about
16399         calling leaf_optimization.
16401         fts: three levels of leaf optimization
16402         * lib/fts.c (enum leaf_optimization): New type with three values.
16403         (S_MAGIC_AFS): New macro.  Sort them.
16404         (leaf_optimization): Rename from leaf_optimization_applies, and
16405         return enum leaf_optimization instead of bool.  All uses changed.
16406         Add cases for unknown type and for AFS.
16407         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
16409         fts: cache dirent_inode_sort_may_be_useful too
16410         * lib/fts.c (struct dev_type): New struct.
16411         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
16412         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
16413         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
16414         Now takes FTSENT const *, not int.  All uses changed.  Use
16415         filesystem_type to cache.
16416         (link_count_optimize_ok): Remove.  Caller changed to use
16417         leaf_optimization_applies, which now uses shared cache.
16419         fts: introduce MIN_DIR_NLINK
16420         * lib/fts.c (MIN_DIR_NLINK): New constant.
16421         Use it instead of 2, whenever we are talking about link counts.
16423         fts: nlink_t signedness fixups
16424         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
16425         so that root need not be a special case later.
16426         (fts_read): Remove now-redundant test for fts_level.
16427         Do not assume that nlink_t is signed.
16428         (fts_build): Remove useless decrement of nlinks.
16429         (fts_stat): Avoid unlikely signed integer overflow later, if
16430         nlink_t is signed.
16432         fts-tests: new module
16433         * modules/fts-tests, tests/test-fts.c: New files.
16435 2017-07-23  Bruno Haible  <bruno@clisp.org>
16437         Rename module 'strftime' to 'nstrftime'.
16438         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
16439         * lib/nstrftime.c: Renamed from lib/strftime.c.
16440         * modules/nstrftime: Renamed from modules/strftime.
16441         (Files, Makefile.am): Update.
16442         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
16443         Fix comment.
16444         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
16445         (Files, Makefile.am): Update.
16446         * modules/strftime: New file, an obsolete indirection.
16447         * doc/posix-functions/strftime.texi: Update reference.
16448         * config/srclist.txt: Update info.
16449         * NEWS: Mention the change.
16451 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
16453         malloca: Silence a warning from clang's memory sanitizer.
16454         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
16455         (freea): Use it.
16457 2017-07-18  Bruno Haible  <bruno@clisp.org>
16459         host-cpu-c-abi: Fix detection of MIPS ABI.
16460         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
16461         ABI, not the CPU instruction set.
16463 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16465         explicit_bzero: new module
16466         The explicit_bzero function has been added to glibc.
16467         This module is intended to supports its use in GNU programs.
16468         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
16469         * m4/explicit_bzero.m4, modules/explicit_bzero:
16470         New files.
16471         * doc/gnulib.texi (Glibc string.h): Link to new doc.
16472         * lib/string.in.h (explicit_bzero): Declare.
16473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
16474         * modules/string (string.h): Substitute its vars.
16476 2017-07-16  Bruno Haible  <bruno@clisp.org>
16478         threadlib: Support static linking.
16479         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
16480         set gl_cv_have_weak to 'no'.
16482 2017-07-16  Bruno Haible  <bruno@clisp.org>
16484         unicase/locale-language: Fix link dependencies.
16485         * modules/unicase/locale-language (Link): New section.
16486         * modules/unicase/locale-language-tests (Makefile.am): Link
16487         test-locale-language program with $(LIBTHREAD).
16489 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16491         sys_socket: Add support for OpenVMS.
16492         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
16493         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
16495 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16497         sys_resource: Add support for OpenVMS.
16498         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
16499         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
16501 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
16502             Bruno Haible  <bruno@clisp.org>
16504         math: Add support for OpenVMS.
16505         * lib/math.in.h [__VMS]: Include <fp.h>.
16506         * doc/posix-headers/math.texi: Mention OpenVMS issues.
16508 2017-07-15  Bruno Haible  <bruno@clisp.org>
16510         getdtablesize: Add minimal support for OpenVMS.
16511         Reported by John E. Malmberg <wb8tyw@qsl.net>.
16512         * modules/getdtablesize (Description): Fix.
16513         * lib/getdtablesize.c: Fix comment.
16514         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
16515         getdtablesize() function, even though the test fails.
16516         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
16517         limitation on OpenVMS.
16519 2017-07-13  Bruno Haible  <bruno@clisp.org>
16521         Revisit cross-compilation guesses.
16522         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
16524 2017-07-13  Bruno Haible  <bruno@clisp.org>
16526         Improve cross-compilation guesses for native Windows.
16527         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
16528         Windows.
16529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
16530         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
16531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16532         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
16533         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
16534         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16535         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16536         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16537         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16538         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
16539         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16540         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
16541         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16542         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16543         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
16544         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16545         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
16546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16547         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16548         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
16549         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16550         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16551         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
16552         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
16553         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
16554         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16555         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16556         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16557         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16558         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
16559         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
16561         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16562         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
16563         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
16564         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16565         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16566         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16567         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16568         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16569         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16571         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
16572         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
16573         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
16574         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
16575         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
16576         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
16577         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16578         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
16579         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16580         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
16581         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
16582         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
16583         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
16584         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
16585         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
16586         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16587         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
16588         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16590         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
16591         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16592         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16593         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16595         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
16596         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16597         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
16598         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
16599         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
16600         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16601         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16602         * m4/regex.m4 (gl_REGEX): Likewise.
16603         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16604         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
16605         gl_FUNC_REMAINDERF_WORKS): Likewise.
16606         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
16607         gl_FUNC_REMAINDERL_WORKS): Likewise.
16608         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16609         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16610         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16611         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16612         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16614         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16615         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16616         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
16617         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16618         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
16619         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
16620         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16621         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16622         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16623         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16624         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16627         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16628         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
16629         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16630         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16631         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
16632         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16634         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16635         Likewise.
16636         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16637         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
16638         Windows. Enable also on Autoconf 2.70.
16639         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16640         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16641         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16642         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
16643         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16644         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
16645         for native Windows.
16646         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16647         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
16649 2017-07-13  Bruno Haible  <bruno@clisp.org>
16651         Improve cross-compilation guesses for native Windows.
16652         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
16653         Windows.
16654         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
16655         memchr.m4.
16656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16658 2017-07-13  Bruno Haible  <bruno@clisp.org>
16660         Improve cross-compilation guesses for native Windows.
16661         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
16662         native Windows.
16663         (gl_FUNC_FFLUSH): Update accordingly.
16664         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
16665         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
16667 2017-07-11  Bruno Haible  <bruno@clisp.org>
16669         More systematic m4 quoting and indentation.
16670         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
16671         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16672         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
16673         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16674         * m4/host-os.m4 (gl_HOST_OS): Likewise.
16675         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
16676         gl_WINSIZE_IN_PTEM): Likewise.
16677         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
16678         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16679         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16680         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
16681         Correct indentation.
16682         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
16683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16684         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
16685         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16686         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
16687         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16689 2017-07-10  Bruno Haible  <bruno@clisp.org>
16691         round, roundf: Avoid compiler warning in configure test.
16692         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
16693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16695 2017-07-10  Bruno Haible  <bruno@clisp.org>
16697         getlogin tests: Avoid #ifdefs when sharing code between modules.
16698         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
16699         * modules/getlogin-tests (Files): Likewise. Remove
16700         tests/test-getlogin_r.c.
16701         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
16702         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
16703         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
16704         getlogin().
16706 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16708         getlogin: don’t assume one name per uid
16709         Problem reported by Wolfgang F. Muthmann (Bug#27640).
16710         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
16711         (ttyname): Remove test.
16712         * modules/getlogin_r-tests (ttyname): Remove test.
16713         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
16714         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
16715         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
16716         getlogin rather than getlogin_r.  This avoids code duplication.
16717         (main): Use isatty and fstat rather than ttyname and stat.
16718         Use getpwnam instead of getpwuid, to be portable to test platforms
16719         that have multiple login names for the same uid.
16721 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
16722             Bruno Haible  <bruno@clisp.org>
16724         glob: Fix more memory leaks.
16725         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
16726         returning.
16727         Reported by Tim Rühsen.
16729 2017-07-10  Bruno Haible  <bruno@clisp.org>
16731         Make sure $host and $host_os are defined when used.
16732         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
16733         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
16734         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16735         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16736         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16738         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16739         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
16740         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16741         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16742         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
16743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
16744         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16745         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
16746         m4_ifdef block.
16748 2017-07-09  Bruno Haible  <bruno@clisp.org>
16750         *printf: Fix cross-compilation guess for Solaris.
16751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
16752         2010-12-21.
16754 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16755             Bruno Haible  <bruno@clisp.org>
16757         vasnprintf: port to macOS 10.13
16758         Problem reported by comex in:
16759         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
16760         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
16762 2017-07-06  Bruno Haible  <bruno@clisp.org>
16764         imaxdiv tests: Fix logic.
16765         * tests/test-imaxdiv.c (main): Use == instead of =.
16766         Reported by Coverity.
16768 2017-07-06  Bruno Haible  <bruno@clisp.org>
16770         uninorm/filter: Fix use-after-free bug.
16771         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
16772         sortbuf == filter->sortbuf invariant.
16773         Reported by Coverity.
16775 2017-07-06  Bruno Haible  <bruno@clisp.org>
16777         glob: Fix more memory leaks.
16778         * lib/glob.c (glob): Free dirname before returning.
16779         Reported by Coverity and Tim Rühsen.
16781 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16783         parse-datetime: fix uninit var bug
16784         Reported by Bruno Haible in:
16785         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
16786         * lib/parse-datetime.y (parse_datetime2): Do not use
16787         uninitialized.
16789 2017-07-05  Bruno Haible  <bruno@clisp.org>
16791         doc: Update for MSVC 14.
16792         * doc/posix-headers/*.texi: Add info about MSVC 14.
16793         * doc/posix-functions/*.texi: Likewise.
16794         * doc/pastposix-functions/*.texi: Likewise.
16795         * doc/glibc-headers/*.texi: Likewise.
16796         * doc/glibc-functions/*.texi: Likewise.
16798 2017-07-05  Bruno Haible  <bruno@clisp.org>
16800         sched: Fix build failure on native Windows (regression from 2017-06-19).
16801         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
16803 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
16805         stdioext: Port to OpenVMS.
16806         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
16807         * lib/fpending.c (fpending): Remove non-working VMS specific code.
16808         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
16809         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
16810         * lib/fpurge.c (fpurge): Likewise.
16811         * lib/freadable.c (freadable): Likewise.
16812         * lib/freadahead.c (freadahead): Likewise.
16813         * lib/freading.c (freading): Likewise.
16814         * lib/freadptr.c (freadptr): Likewise.
16815         * lib/freadseek.c (freadseek): Likewise.
16816         * lib/fseeko.c (fseeko): Likewise.
16817         * lib/fseterr.c (fseterr): Likewise.
16818         * lib/fwritable.c (fwriteable): Likewise.
16819         * lib/fwriting.c (fwriting): Likewise.
16821 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
16823         glob: Declare variables at the very start of their scope.
16824         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
16825         its separate scope, so the functions will compile on Haiku.
16827 2017-07-01  Bruno Haible  <bruno@clisp.org>
16829         logbl: Work around a glibc bug on PowerPC64LE.
16830         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
16831         numbers.
16832         * doc/posix-functions/logbl.texi: Update.
16834 2017-06-29  Bruno Haible  <bruno@clisp.org>
16836         stat, fstat: Compile stat-w32.c only on platforms that need it.
16837         Suggested by Paul Eggert.
16838         * modules/stat (configure.ac): Request stat-w32.o only on native
16839         Windows.
16840         * modules/fstat (configure.ac): Likewise.
16842 2017-06-25  Bruno Haible  <bruno@clisp.org>
16844         stat: Improve last change.
16845         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
16847 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16849         stat: port to xlc 12.01
16850         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
16851         12.01 complains "Compilation unit is empty."
16853 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
16855         xalloc-oversized: port to icc
16856         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
16857         __builtin_mul_overflow if ICC is defined, as this results in
16858         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
16859         20170213.
16861 2017-06-19  Bruno Haible  <bruno@clisp.org>
16863         classpath: Avoid including config.h twice, as it produces warnings.
16864         Reported by John E. Malmberg <wb8tyw@gmail.com>.
16865         * lib/classpath.h: Conditionalize the include of config.h.
16867 2017-06-19  Bruno Haible  <bruno@clisp.org>
16868             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
16870         sched: Fix compilation failure on OpenVMS.
16871         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
16872         test whether <pthread.h> exists and defines struct sched_param.
16873         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
16875 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16877         diffseq: port to GCC 7 with --enable-gcc-warnings
16878         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
16879         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
16880         not complain about big_snake being defined but not used.
16882 2017-06-15  Bruno Haible  <bruno@clisp.org>
16884         gettext-h: Update theoretical condition for use of variable size arrays.
16885         Reported by Paul Eggert.
16886         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
16887         to include the theoretical condition for availability of variable size
16888         arrays, if we could trust the value of __STDC_VERSION__.
16890 2017-06-12  Bruno Haible  <bruno@clisp.org>
16892         Relicense some modules under LGPLv2+.
16893         Daiki Ueno's approval is in
16894         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
16895         * modules/uniwidth/base (License): Change to LGPLv2+.
16896         * modules/uniwidth/width (License): Likewise.
16898 2017-06-11  Bruno Haible  <bruno@clisp.org>
16900         localename: Fix test failure on DragonFly BSD.
16901         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
16902         like FreeBSD.
16904 2017-06-11  Bruno Haible  <bruno@clisp.org>
16906         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
16907         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
16908         * lib/float.in.h: Likewise.
16909         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
16911 2017-06-11  Bruno Haible  <bruno@clisp.org>
16913         gnulib-tool: Clean up after autotools.
16914         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
16915         useless directory left over by the Autotools.
16917 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16919         getopt-posix: port to glibc 2.25.90
16920         Problem reported by Daniel P. Berrange in:
16921         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
16922         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
16923         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
16924         #undef if __GETOPT_PREFIX is defined.
16926 2017-06-11  Bruno Haible  <bruno@clisp.org>
16928         strtod-obsolete: Fix license.
16929         * modules/strtod-obsolete (License): Change to LGPL.
16931 2017-06-10  Jim Meyering  <meyering@fb.com>
16933         maint: update to work with GCC7's -Werror=implicit-fallthrough=
16934         * lib/savewd.c (FALLTHROUGH): Define.
16935         (savewd_save, savewd_restore): Use this, rather than a comment,
16936         whenever one switch case falls through into the next.
16938 2017-06-08  Bruno Haible  <bruno@clisp.org>
16940         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
16941         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
16942         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
16943         case.
16945 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
16947         doc: remove robots, add prereqs
16948         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
16949         builds.  Simon's robot site does not seem to be up, so remove
16950         mentions of it for now.
16952 2017-06-08  Bruno Haible  <bruno@clisp.org>
16954         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
16955         * gnulib-tool (func_symlink_target): New function, extracted from
16956         func_symlink.
16957         (func_symlink, func_symlink_if_changed): Use it.
16959 2017-06-08  Bruno Haible  <bruno@clisp.org>
16961         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
16962         * gnulib-tool (func_ln_s): Determine cp_src correctly.
16964 2017-06-07  Bruno Haible  <bruno@clisp.org>
16966         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
16967         Reported by John E. Malmberg <wb8tyw@gmail.com> in
16968         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
16969         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
16970         override, pass 2 arguments to getcwd, not 3.
16972 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
16974         same-inode: port better to VMS 8.2 and later
16975         Problem reported by John E. Malmberg in:
16976         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
16977         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
16978         Use the usual POSIX definition.
16979         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
16981 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16983         error: fix POSIX violation for va_end
16984         Problem reported by Bruno Haible in:
16985         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
16986         * lib/error.c (error_tail): Do not call va_end here.
16987         (error, error_at_line): Call it here instead.
16989 2017-05-28  Bruno Haible  <bruno@clisp.org>
16991         c-strtod: Make it usable in C++ mode.
16992         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
16994 2017-05-25  Jim Meyering  <meyering@fb.com>
16996         quotearg: fix compilation failure due to FALLTHROUGH misuse
16997         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
16998         macro back to /* fall through */ comment.  The macro can apply only
16999         to a following case statement.  Reported by Assaf Gordon.
17001 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
17003         intprops: port to recent icc
17004         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
17005         but does not support __builtin_add_overflow etc.
17006         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
17007         Define to 0.
17009 2017-05-23  Karl Berry  <karl@freefriends.org>
17011         * config/srclist.txt (iconv.m4): sync broken, comment out
17012         until (hopefully) the next gettext release.
17014 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
17016         Remove repeated words in comments.
17018 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
17020         fallthrough: reinstate a FALLTHROUGH instance in quotearg
17021         quotearg.c: Reinstate this instance which is significant
17022         when the if branch is not taken.
17024 2017-05-21  Bruno Haible  <bruno@clisp.org>
17026         gnulib-tool: Add options to create hard links.
17027         * gnulib-tool (func_usage): Document options --hardlink,
17028         --local-hardlink, --more-hardlinks.
17029         (func_symlink): Renamed from func_ln.
17030         (func_symlink_if_changed): Renamed from func_ln_if_changed.
17031         (func_hardlink): New function.
17032         (copymode, lcopymode): New variables.
17033         (symbolic, lsymbolic): Remove variables.
17034         (Options): Implement options --hardlink, --local-hardlink,
17035         --more-hardlinks.
17036         (func_should_link): Renamed from func_should_symlink. Set copyaction.
17037         (func_add_file, func_update_file): Update invocation of
17038         func_should_link. Invoke func_hardlink when appropriate.
17039         (func_import): Update comments.
17040         (func_create_testdir): Update invocation of func_should_link. Invoke
17041         func_hardlink when appropriate.
17042         Finally, invoke 'git update-index --refresh' to mitigate the effects of
17043         the hard links on git.
17045 2017-05-20  Bruno Haible  <bruno@clisp.org>
17047         argp: Simplify bit manipulation.
17048         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
17049         on a signed integer type.
17051 2017-05-20  Bruno Haible  <bruno@clisp.org>
17053         Avoid wrong configure results with gcc -fsanitize=address.
17054         This completes the work done on 2016-02-06 on this topic.
17055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
17056         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17057         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17059         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
17060         returning.
17061         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
17062         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
17063         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17064         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17065         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17066         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
17067         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
17068         free allocated memory before returning.
17069         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17070         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
17071         objects before returning.
17072         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
17073         returning.
17075 2017-05-20  Bruno Haible  <bruno@clisp.org>
17077         gnulib-tool: Don't create hard links between gnulib and its testdirs.
17078         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
17080 2017-05-20  Bruno Haible  <bruno@clisp.org>
17082         argp, tsearch tests: Fix file list.
17083         * modules/argp-tests (Files): Add tests/macros.h.
17084         * modules/tsearch-tests (Files): Likewise.
17086 2017-05-20  Bruno Haible  <bruno@clisp.org>
17088         getopt-posix tests: Remove redundant include.
17089         * tests/test-getopt.h: Don't include "macros.h". It's already included
17090         by tests/test-getopt-main.h.
17092 2017-05-19  Jim Meyering  <meyering@fb.com>
17094         dfa: two small simplifications
17095         * lib/dfa.c (build_state): Avoid repeating longer expressions.
17097 2017-05-18  Jim Meyering  <meyering@fb.com>
17099         fallthrough: update for GCC 7/8
17100         * lib/quotearg.c (FALLTHROUGH): New macro.
17101         Use it whenever one switch case falls through into the next,
17102         replacing "/* Fall through */" comments.  This exposed one
17103         instance of an unwarranted "fall through" comment: unwarranted
17104         because it preceded a "goto" label not a case statement.
17105         * lib/freopen-safer.c (freopen_safer): Likewise.
17106         * lib/fts.c (leaf_optimization_applies): Likewise.
17107         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
17108         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
17109         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
17110         tests/macros.h for the definition.
17111         * tests/test-argp.c (group1_parser): Likewise.
17112         * tests/test-getopt.h (getopt_loop): Likewise.
17114 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17116         argp: fix shift bug
17117         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
17118         behavior on shift overflow, caught by gcc -fsanitize=undefined.
17120         argp: fix pointer-subtraction bug
17121         * lib/argp-help.c (hol_append): Don’t subtract pointers to
17122         different arrays, as this can run afoul of -fcheck-pointer-bounds.
17123         See the thread containing Bruno Haible’s report in:
17124         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
17126 2017-05-19  Bruno Haible  <bruno@clisp.org>
17128         printf-posix tests: Avoid test failure with "gcc --coverage".
17129         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17130         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
17131         than 5000000.
17132         * tests/test-fprintf-posix2.c (main): Likewise.
17134 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17136         closeout: don’t close stderr when sanitizing
17137         * NEWS: Document this.
17138         * lib/closeout.c (__has_feature): New macro, if not already defined.
17139         (SANITIZE_ADDRESS): New constant.
17140         (close_stdout): Don’t close stderr if sanitizing addresses.
17142 2017-05-19  Bruno Haible  <bruno@clisp.org>
17144         get-rusage-data tests: Avoid failure on Linux/glibc.
17145         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
17146         on glibc systems.
17148 2017-05-18  Bruno Haible  <bruno@clisp.org>
17150         localename: Include necessary header files on Cygwin.
17151         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
17152         where NL_LOCALE_NAME is defined.
17154 2017-05-18  Bruno Haible  <bruno@clisp.org>
17156         gettext: Update macros from gettext git.
17157         * m4/intldir.m4: Require Autoconf >= 2.60.
17158         * m4/progtest.m4: Fix typos in copyright notice.
17160 2017-05-18  Bruno Haible  <bruno@clisp.org>
17162         copy-file tests: Fix link error (regression from 2017-05-01).
17163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17164         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
17165         $(LIB_CLOCK_GETTIME).
17167 2017-05-18  Bruno Haible  <bruno@clisp.org>
17169         unicase/special-casing: Fix incompatibility with gperf-3.0.4
17170         (regression from 2017-02-13).
17171         * lib/unicase/special-casing.in.h: Renamed from
17172         lib/unicase/special-casing.h.
17173         * modules/unicase/special-casing (Files): Add
17174         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
17175         (Makefile.am): Add rule for generating unicase/special-casing.h.
17176         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
17177         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
17178         not "special-casing.h".
17179         * lib/unicase/u*.c: Likewise.
17181 2017-05-17  Bruno Haible  <bruno@clisp.org>
17183         README: Don't ask people to read a TeXinfo file.
17184         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17185         * README: Tell people how to read the HTML formatted manual.
17187 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
17189         parse-datetime: Fix memleak
17190         * lib/parse-datetime.y (parse_datetime2): Cleanup on
17191         localtime_rz() failure.
17193 2017-05-16  Bruno Haible  <bruno@clisp.org>
17195         javacomp: Fix handle leak.
17196         Found by Coverity.
17197         * lib/javacomp.c (get_classfile_version): Close fd before returning.
17199 2017-05-16  Bruno Haible  <bruno@clisp.org>
17201         relocate: Make it easier to reclaim allocated memory.
17202         * lib/relocatable.h (relocate2): New declaration/macro.
17203         * lib/relocatable.c (relocate2): New function.
17204         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
17205         relocate2 function.
17206         * lib/localcharset.c (relocate2): Define fallback.
17207         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
17208         allocated memory.
17209         * lib/javaversion.c (relocate2): Define fallback.
17210         (javaexec_version): Invoke relocate2 instead of relocate. Free the
17211         allocated memory.
17213 2017-05-16  Bruno Haible  <bruno@clisp.org>
17215         relocate: Simplify EMX specific code.
17216         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
17217         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
17219 2017-05-16  Bruno Haible  <bruno@clisp.org>
17221         sigpipe tests: Fix file list.
17222         * modules/sigpipe-tests (Files): Add tests/macros.h.
17224 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17226         manywarnings: update for GCC 7
17227         * build-aux/gcc-warning.spec:
17228         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17229         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
17230         requires a non-comment fallthrough attribute.  This is a bit
17231         cleaner than the comment versions.
17232         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
17233         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
17234         Use it whenever one switch case falls through into the next.
17235         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
17236         Use FALLTHROUGH macro.
17238 2017-05-15  Bruno Haible  <bruno@clisp.org>
17240         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
17241         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
17242         @ALLOCA@, not @LTALLOCA@.
17244 2017-05-15  Bruno Haible  <bruno@clisp.org>
17246         sys_select: Avoid "was expanded before it was required" warning.
17247         * modules/sys_select (configure.ac): Require, not invoke,
17248         gl_HEADER_SYS_SELECT.
17250 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17252         gnulib-tool: improve GNU Make debugging
17253         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
17254         Report autoconf diagnostics when it fails, in the output makefile.
17256 2017-05-14  Bruno Haible  <bruno@clisp.org>
17258         stat-time tests: Improve comment.
17259         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
17261 2017-05-14  Bruno Haible  <bruno@clisp.org>
17263         same-inode: Adapt for windows-stat-inodes.
17264         * lib/same-inode.h: Include <sys/types.h>.
17265         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
17266         * modules/same-inode (Depends-on): Add sys_types.
17268 2017-05-14  Bruno Haible  <bruno@clisp.org>
17270         windows-stat-inodes: New module.
17271         * m4/windows-stat-inodes.m4: New file.
17272         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
17273         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
17274         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
17275         (_GL_WINDOWS_STAT_INODES): New macro.
17276         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
17277         (GetFileInformationByHandleExFunc): New variable.
17278         (initialize): Initialize it.
17279         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
17280         st_ino appropriately.
17281         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
17282         a fallback, because it does not provide st_dev and st_ino values.
17283         * modules/fstat (Depends-on): Add 'verify'.
17284         * modules/windows-stat-inodes: New file.
17285         * doc/windows-stat-inodes.texi: New file.
17286         * doc/gnulib.texi: Include it.
17287         * doc/posix-headers/sys_stat.texi: Mention the new module.
17289 2017-05-14  Bruno Haible  <bruno@clisp.org>
17291         stat-time tests: Workaround for native Windows.
17292         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
17293         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
17294         New variables.
17295         (initialize_filenames): New function.
17296         (main): Invoke it.
17297         (cleanup, prepare_test): Update.
17299 2017-05-14  Bruno Haible  <bruno@clisp.org>
17301         stat-time: Adapt for windows-stat-timespec.
17302         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
17303         entire st_ctim field.
17305 2017-05-13  Jim Meyering  <meyering@fb.com>
17307         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
17308         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
17309         file that uses the assume macro, claiming that verify.h is unused.
17311 2017-05-13  Bruno Haible  <bruno@clisp.org>
17313         Use symbolic values for _WIN32_WINNT.
17314         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
17315         * lib/sethostname.c (_WIN32_WINNT): Likewise.
17317 2017-05-13  Bruno Haible  <bruno@clisp.org>
17319         year2038: New module.
17320         * m4/year2038.m4: New file.
17321         * modules/year2038: New file.
17322         * doc/year2038.texi: New file.
17323         * doc/gnulib.texi: Include it.
17325 2017-05-13  Bruno Haible  <bruno@clisp.org>
17327         largefile: Simplify.
17328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
17329         of _GL_WINDOWS_64_BIT_ST_SIZE.
17331 2017-05-13  Bruno Haible  <bruno@clisp.org>
17333         largefile: Improve and document.
17334         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
17335         the mingw headers already define 'stat' appropriately.
17336         * modules/largefile (Description): Clarify.
17337         * doc/largefile.texi: New file.
17338         * doc/gnulib.texi: Include it.
17339         * doc/posix-headers/sys_types.texi: Update.
17341 2017-05-13  Bruno Haible  <bruno@clisp.org>
17343         truncate: New module.
17344         * lib/unistd.in.h (truncate): New declaration.
17345         * lib/truncate.c: New file.
17346         * m4/truncate.m4: New file.
17347         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
17348         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
17349         REPLACE_TRUNCATE.
17350         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
17351         HAVE_TRUNCATE, REPLACE_TRUNCATE.
17352         * modules/truncate: New file.
17353         * tests/test-unistd-c++.cc (truncate): Test signature.
17354         * doc/posix-functions/truncate.texi: Mention the new module.
17356         * tests/test-truncate.c: New file.
17357         * modules/truncate-tests: New file.
17359 2017-05-13  Bruno Haible  <bruno@clisp.org>
17361         windows-stat-timespec: New module.
17362         * modules/windows-stat-timespec: New file.
17363         * m4/windows-stat-timespec.m4: New file.
17364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
17365         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
17366         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
17367         fields st_atim, st_mtim, st_ctim.
17368         (st_atime, st_mtime, st_ctime): Define as macros.
17369         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
17370         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
17371         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
17372         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
17373         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
17374         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
17375         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
17376         FILETIME to 'struct timespec', not 'time_t'.
17377         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
17378         FILETIME to 'struct timespec', not 'time_t'.
17379         * lib/stat-time.h (STAT_TIMESPEC): Define also if
17380         _GL_WINDOWS_STAT_TIMESPEC.
17381         * doc/windows-stat-timespec.texi: New file.
17382         * doc/gnulib.texi: Include it.
17384 2017-05-13  Bruno Haible  <bruno@clisp.org>
17386         windows-stat-override: New module.
17387         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
17388         definition. Define GNULIB_defined_struct_stat.
17389         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
17390         link error if this symbol is used and the corresponding module is not
17391         in use.
17392         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
17393         GNULIB_OVERRIDES_STRUCT_STAT.
17394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17395         GNULIB_OVERRIDES_STRUCT_STAT.
17396         * modules/sys_stat (Makefile.am): Substitute
17397         GNULIB_OVERRIDES_STRUCT_STAT.
17398         * modules/windows-stat-override: New file.
17400 2017-05-13  Bruno Haible  <bruno@clisp.org>
17402         fstat: Fix module dependency conditions.
17403         * modules/fstat (Depends-on): Fix typo.
17405 2017-05-13  Bruno Haible  <bruno@clisp.org>
17407         stat, fstat: Complete removal of old native Windows code.
17408         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
17409         * lib/fstat.c: Likewise.
17410         * lib/stat-w32.c: Likewise.
17412 2017-05-13  Bruno Haible  <bruno@clisp.org>
17414         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
17415         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
17417 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17419         getopt-posix: port to mingw
17420         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
17421         Problem reported by Daniel P. Berrage in:
17422         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
17424 2017-05-11  Bruno Haible  <bruno@clisp.org>
17426         gettimeofday: Increase precision on mingw.
17427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
17428         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
17429         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
17430         GetSystemTimePreciseAsFileTime based implementation always.
17431         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
17432         mingw.
17434 2017-05-11  Bruno Haible  <bruno@clisp.org>
17436         poll: Fix confusion between SOCKETs and FDs on native Windows.
17437         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
17438         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
17440 2017-05-11  Bruno Haible  <bruno@clisp.org>
17442         doc: Clarify doc about socket functions on native Windows.
17443         This reworks doc that was added on 2008-09-29.
17444         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
17445         clearer wording.
17446         * doc/posix-functions/accept.texi: Use clearer wording.
17447         * doc/posix-functions/bind.texi: Likewise.
17448         * doc/posix-functions/connect.texi: Likewise.
17449         * doc/posix-functions/getpeername.texi: Likewise.
17450         * doc/posix-functions/getsockname.texi: Likewise.
17451         * doc/posix-functions/getsockopt.texi: Likewise.
17452         * doc/posix-functions/ioctl.texi: Likewise.
17453         * doc/posix-functions/listen.texi: Likewise.
17454         * doc/posix-functions/recv.texi: Likewise.
17455         * doc/posix-functions/recvfrom.texi: Likewise.
17456         * doc/posix-functions/send.texi: Likewise.
17457         * doc/posix-functions/sendto.texi: Likewise.
17458         * doc/posix-functions/setsockopt.texi: Likewise.
17459         * doc/posix-functions/shutdown.texi: Likewise.
17460         * doc/posix-functions/socket.texi: Likewise.
17462 2017-05-10  Bruno Haible  <bruno@clisp.org>
17464         poll: Fix link error on native Windows.
17465         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
17467 2017-05-10  Bruno Haible  <bruno@clisp.org>
17469         time: Fix missing initialization of HAVE_TIMEZONE_T.
17470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
17471         here...
17472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
17473         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
17474         gl_HEADER_SYS_TIME_H_DEFAULTS.
17475         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
17476         (configure.ac): Remove useless quoting.
17478 2017-05-10  Bruno Haible  <bruno@clisp.org>
17480         Implement a way to opt out from MSVC support, part 2.
17481         * modules/msvc-inval (Include): Document recommended idiom.
17482         * modules/msvc-nothrow (Include): Likewise.
17484         Implement a way to opt out from MSVC support.
17485         This is useful for Emacs.
17486         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
17487         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
17488         * lib/error.c: Likewise.
17489         * lib/fcntl.c: Likewise.
17490         * lib/flock.c: Likewise.
17491         * lib/fstat.c: Likewise.
17492         * lib/fsync.c: Likewise.
17493         * lib/ioctl.c: Likewise.
17494         * lib/isapipe.c: Likewise.
17495         * lib/lseek.c: Likewise.
17496         * lib/nonblocking.c: Likewise.
17497         * lib/poll.c: Likewise.
17498         * lib/select.c: Likewise.
17499         * lib/sockets.h: Likewise.
17500         * lib/sockets.c: Likewise.
17501         * lib/stdio-read.c: Likewise.
17502         * lib/stdio-write.c: Likewise.
17503         * lib/utimens.c: Likewise.
17504         * lib/w32sock.h: Likewise.
17505         * lib/w32spawn.h: Likewise.
17506         * tests/test-cloexec.c: Likewise.
17507         * tests/test-dup-safer.c: Likewise.
17508         * tests/test-dup2.c: Likewise.
17509         * tests/test-dup3.c: Likewise.
17510         * tests/test-fcntl.c: Likewise.
17511         * tests/test-pipe.c: Likewise.
17512         * tests/test-pipe2.c: Likewise.
17513         * lib/ftruncate.c: Likewise.
17514         (chsize_nothrow): Renamed from chsize.
17515         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
17516         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
17517         * lib/close.c: Likewise.
17518         * lib/dup.c: Likewise.
17519         * lib/fclose.c: Likewise.
17520         * lib/raise.c: Likewise.
17521         * tests/test-fgetc.c: Likewise.
17522         * tests/test-fputc.c: Likewise.
17523         * tests/test-fread.c: Likewise.
17524         * tests/test-fwrite.c: Likewise.
17525         * lib/getdtablesize.c: Likewise.
17526         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
17527         * lib/isatty.c: Don't include msvc-inval.h if
17528         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
17529         Include <io.h> as an alternative to msvc-nothrow.h.
17530         * lib/read.c: Likewise.
17531         * lib/write.c: Likewise.
17532         * lib/dup2.c: Likewise.
17533         (dup2_nothrow): New function.
17534         (ms_windows_dup2): Use it.
17535         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
17536         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
17537         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
17538         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
17539         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
17540         * m4/read.m4 (gl_FUNC_READ): Likewise.
17541         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
17542         * doc/windows-without-msvc.texi: New file.
17543         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
17544         section.
17546 2017-05-10  Bruno Haible  <bruno@clisp.org>
17548         wait-process: Adjust native Windows support.
17549         * lib/wait-process.c: Use the usual condition for recognizing a native
17550         Windows platform.
17552 2017-05-10  Bruno Haible  <bruno@clisp.org>
17554         doc: New chapter "Native Windows Support".
17555         * doc/gnulib.texi (Native Windows Support): New chapter.
17556         * doc/windows-libtool.texi: Small wording changes.
17557         * doc/windows-sockets.texi: Small wording and formatting changes.
17559 2017-05-10  Bruno Haible  <bruno@clisp.org>
17561         doc: Move section "Library version handling".
17562         * doc/gnulib.texi: Move section "Library version handling"
17563         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
17565 2017-05-10  Bruno Haible  <bruno@clisp.org>
17567         doc: Move section "Running self-tests under valgrind".
17568         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
17569         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
17571 2017-05-10  Bruno Haible  <bruno@clisp.org>
17573         doc: New chapter "Build Infrastructure Modules".
17574         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
17576 2017-05-10  Bruno Haible  <bruno@clisp.org>
17578         Prepare for reordering sections in the manual.
17579         * doc/gnulib.texi: Move several sections to separate files. Include
17580         these files.
17581         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
17582         * doc/obsolete.texi: Likewise.
17583         * doc/extra-tests.texi: Likewise.
17584         * doc/transversal.texi: Likewise.
17585         * doc/namespace.texi: Likewise.
17586         * doc/check-version.texi: Likewise.
17587         * doc/windows-sockets.texi: Likewise.
17588         * doc/windows-libtool.texi: Likewise.
17589         * doc/licenses-texi.texi: Likewise.
17590         * doc/build-automation.texi: Likewise.
17591         * doc/c-locale.texi: Likewise.
17593 2017-05-10  Bruno Haible  <bruno@clisp.org>
17595         Fix instructions how to update manual on www.gnu.org.
17596         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
17598 2017-05-09  Bruno Haible  <bruno@clisp.org>
17600         tzset: Expand comment about TZ problem on native Windows.
17601         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
17602         Paul Eggert.
17603         * lib/ctime.c (rpl_ctime): Likewise.
17604         * lib/localtime.c (rpl_localtime): Likewise.
17605         * lib/mktime.c (mktime): Likewise.
17606         * lib/strftime-fixes.c (rpl_strftime): Likewise.
17607         * lib/wcsftime.c (rpl_wcsftime): Likewise.
17609 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17611         intprops: don’t depend on ‘verify’
17612         Problem reported by Ævar Arnfjörð Bjarmason in:
17613         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
17614         * lib/intprops.h: Do not include verify.h, and move compile-time
17615         checks from here ...
17616         * tests/test-intprops.c (main): ... to here, if they’re not here
17617         already.  Check widths of other standard integer types.
17618         * modules/intprops (Depends-on): Remove ‘verify’.
17620 2017-05-07  Bruno Haible  <bruno@clisp.org>
17622         utimens: On native Windows, support 100ns resolution also if fd < 0.
17623         * lib/utime.in.h: Include <time.h>.
17624         (_gl_utimens_windows): New declaration.
17625         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
17626         (utime): Invoke it.
17627         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
17628         instead of utime.
17629         * modules/utime (Depends-on): Add 'time'.
17631 2017-05-07  Bruno Haible  <bruno@clisp.org>
17633         utimens: Improve error code on native Windows.
17634         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
17635         error code EACCES, not EINVAL.
17637 2017-05-07  Bruno Haible  <bruno@clisp.org>
17639         utime: Handle more Windows error codes.
17640         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
17641         Based on explanations by Billy O'Neal.
17643 2017-05-05  Bruno Haible  <bruno@clisp.org>
17645         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
17646         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
17647         union.
17648         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
17649         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
17650         value of cipher->IV.
17652 2017-05-05  Bruno Haible  <bruno@clisp.org>
17654         wctype-h-c++-tests: Update.
17655         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
17657 2017-05-05  Bruno Haible  <bruno@clisp.org>
17659         wchar-c++-tests: Update.
17660         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
17662 2017-05-05  Bruno Haible  <bruno@clisp.org>
17664         utime-h-c++-tests: New module.
17665         * tests/test-utime-h-c++.cc: New file.
17666         (utime): Declare, missing since 2017-04-30.
17667         * modules/utime-h-c++-tests: New file.
17669 2017-05-05  Bruno Haible  <bruno@clisp.org>
17671         unistd-c++-tests: Update.
17672         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
17673         (read): Declare, missing since 2011-04-15.
17674         (sethostname): Declare, missing since 2011-12-03.
17676 2017-05-05  Bruno Haible  <bruno@clisp.org>
17678         time-c++-tests: Update.
17679         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
17680         (localtime, gmtime): Declare, missing since 2017-04-30.
17681         (ctime): Declare, missing since 2017-04-30.
17682         (strftime): Declare, missing since 2017-04-30.
17683         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
17684         2015-07-24.
17686 2017-05-05  Bruno Haible  <bruno@clisp.org>
17688         sys_resource-c++-tests: New module.
17689         * tests/test-sys_resource-c++.cc: New file.
17690         (getrusage): Declare, missing since 2012-04-13.
17691         * modules/sys_resource-c++-tests: New file.
17693 2017-05-05  Bruno Haible  <bruno@clisp.org>
17695         strings-c++-tests: New module.
17696         * tests/test-strings-c++.cc: New file.
17697         (ffs): Declare, missing since 2011-07-12.
17698         * modules/strings-c++-tests: New file.
17700 2017-05-05  Bruno Haible  <bruno@clisp.org>
17702         string-c++-tests: Update.
17703         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
17704         (ffsll): Declare, missing since 2011-07-15.
17706 2017-05-05  Bruno Haible  <bruno@clisp.org>
17708         stdlib-c++-tests: Update.
17709         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
17710         2011-10-18.
17711         (ptsname_r): Declare, missing since 2011-11-07.
17712         (qsort_r): Declare, missing since 2014-08-29.
17713         (random, srandom, initstate, setstate): Declare, missing since
17714         2012-01-14.
17715         (secure_getenv): Declare, missing since 2013-02-05.
17717 2017-05-05  Bruno Haible  <bruno@clisp.org>
17719         stdio-c++-tests: Update.
17720         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
17722 2017-05-05  Bruno Haible  <bruno@clisp.org>
17724         signal-h-c++-tests: Update.
17725         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
17727 2017-05-05  Bruno Haible  <bruno@clisp.org>
17729         math-c++-tests: Update.
17730         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
17731         (fma): Declare, missing since 2011-10-17.
17732         (fmal): Declare, missing since 2011-10-17.
17734 2017-05-05  Bruno Haible  <bruno@clisp.org>
17736         locale-c++-tests: Update.
17737         * tests/test-locale-c++.cc (localeconv): Declare, missing since
17738         2012-03-25.
17740 2017-05-05  Bruno Haible  <bruno@clisp.org>
17742         inttypes-c++-tests: New module.
17743         * tests/test-inttypes-c++.cc: New file.
17744         (strtoimax): Declare, missing since 2012-01-05.
17745         (strtoumax): Declare, missing since 2012-01-05.
17746         * modules/inttypes-c++-tests: New file.
17748 2017-05-05  Bruno Haible  <bruno@clisp.org>
17750         dirent-c++-tests: Update.
17751         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
17752         (rewinddir): Declare, missing since 2011-09-13.
17753         (dirfd): Declare, missing since 2010-03-08.
17755 2017-05-04  Bruno Haible  <bruno@clisp.org>
17757         argp: Fix mistake in 2017-04-23 commit.
17758         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
17759         assume that strerror_r returns 'int', not 'char *'.
17761 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
17763         argp: Fix typo.
17764         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
17766 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
17768         utimens: port to Emacs + MS-Windows
17769         Skip the new MS-Windows-specific code if Emacs.
17770         * lib/utimens.c [EMACS_CONFIGUATION]:
17771         Avoid new MS-Windows-specific code.
17772         (USE_SETFILETIME): New macro.
17773         (fdutimens): Use it.
17775 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17777         tzset: update doc for TZ problems on MS-Windows
17778         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
17779         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
17780         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
17781         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
17782         * doc/posix-functions/wcsftime.texi:
17783         Mention some issues with TZ under MS-Windows.
17785 2017-05-01  Bruno Haible  <bruno@clisp.org>
17787         copy-file: Fix build error on mingw.
17788         * modules/copy-file (Depends-on): Add 'close'.
17790 2017-05-01  Bruno Haible  <bruno@clisp.org>
17792         tzset: Work around TZ problem on native Windows.
17793         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
17794         Windows, set REPLACE_TZSET to 1.
17795         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
17796         invoke '_tzset' instead of 'tzset'.
17797         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
17799         * modules/time_rz (Depends-on): Add tzset.
17800         * lib/time_rz.c (tzset): Remove fallback definition.
17801         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
17803 2017-05-01  Bruno Haible  <bruno@clisp.org>
17805         mktime: Fix dependencies.
17806         * modules/mktime (Depends-on): Add 'time'.
17808 2017-05-01  Bruno Haible  <bruno@clisp.org>
17810         New module 'localtime-buffer', split off from module 'gettimeofday'.
17811         * lib/localtime-buffer.h: New file.
17812         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
17813         * lib/time.in.h (tzset): New declaration.
17814         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
17815         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
17816         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
17817         moved to lib/localtime-buffer.c or lib/tzset.c.
17818         * m4/localtime-buffer.m4: New file.
17819         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
17820         HAVE_TZSET, REPLACE_TZSET.
17821         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
17822         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
17823         gl_LOCALTIME_BUFFER_NEEDED.
17824         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
17825         since 2007-01-18.
17826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
17827         tzset.
17828         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
17829         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
17830         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
17831         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
17832         * modules/localtime-buffer: New file.
17833         * modules/time (Depends-on): Remove 'gettimeofday'.
17834         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
17835         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
17836         * modules/tzset (Description): Enable hyperlink to POSIX spec.
17837         (Files): Add lib/tzset.c.
17838         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
17839         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
17840         gl_TIME_MODULE_INDICATOR.
17841         * modules/gettimeofday (Depends-on): Add localtime-buffer.
17843 2017-05-01  Bruno Haible  <bruno@clisp.org>
17845         copy-file: Preserve sub-second time stamps.
17846         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
17847         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
17848         transport the time stamps from the original file to the destination
17849         file.
17850         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
17851         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
17852         utime-h.
17854 2017-05-01  Bruno Haible  <bruno@clisp.org>
17856         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
17857         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
17858         also on MSVC.
17859         Reported by Eli Zaretskii <eliz@gnu.org>.
17861 2017-05-01  Bruno Haible  <bruno@clisp.org>
17863         wchar: Fix compilation error with the original mingw.org mingw.
17864         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
17865         <stddef.h> instead.
17866         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
17867         gl_WCTYPE_H.
17868         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
17869         gl_TYPE_WINT_T_PREREQ instead.
17870         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
17871         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
17872         Reported by Eli Zaretskii <eliz@gnu.org>.
17874 2017-04-30  Bruno Haible  <bruno@clisp.org>
17876         utimecmp: Add support for native Windows.
17877         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
17879 2017-04-30  Bruno Haible  <bruno@clisp.org>
17881         utimens: Add support for native Windows.
17882         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
17883         (fdutimens): Provide a native Windows implementation, like utime.c with
17884         added tv_nsec support.
17885         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
17886         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
17888 2017-04-30  Bruno Haible  <bruno@clisp.org>
17890         wcsftime: New module.
17891         * lib/wchar.in.h (wcsftime): New declaration.
17892         * lib/wcsftime.c: New file.
17893         * m4/wcsftime.m4: New file.
17894         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
17895         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
17896         HAVE_WCSFTIME, REPLACE_WCSFTIME.
17897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
17898         HAVE_WCSFTIME, REPLACE_WCSFTIME.
17899         * modules/wcsftime: New file.
17900         * doc/posix-functions/wcsftime.texi: Mention the new module.
17902 2017-04-30  Bruno Haible  <bruno@clisp.org>
17904         strftime-fixes: New module.
17905         * lib/time.in.h (strftime): New declaration.
17906         * lib/strftime-fixes.c: New file.
17907         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
17908         (gl_FUNC_STRFTIME): Remove macro.
17909         * m4/strftime-fixes.m4: New file.
17910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
17911         REPLACE_STRFTIME.
17912         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
17913         REPLACE_STRFTIME.
17914         * modules/strftime-fixes: New file.
17915         * doc/posix-functions/strftime.texi: Mention the new module.
17917 2017-04-30  Bruno Haible  <bruno@clisp.org>
17919         mktime: Work around TZ problem on native Windows.
17920         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
17921         from the native Windows workaround.
17922         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
17923         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
17924         'guessing no'.
17925         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
17926         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
17927         NEED_MKTIME_WINDOWS.
17928         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
17929         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
17930         NEED_MKTIME_INTERNAL.
17931         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
17932         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
17933         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
17934         not REPLACE_MKTIME.
17935         * doc/posix-functions/mktime.texi: Mention the native Windows
17936         workaround.
17938 2017-04-30  Bruno Haible  <bruno@clisp.org>
17940         localtime: New module.
17941         * lib/time.in.h (localtime): Declare also if requested by module
17942         'localtime'.
17943         * lib/localtime.c: New file.
17944         * m4/localtime.m4: New file.
17945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
17946         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
17947         * modules/localtime: New file.
17948         * doc/posix-functions/localtime.texi: Mention the new module.
17950 2017-04-30  Bruno Haible  <bruno@clisp.org>
17952         ctime: New module.
17953         * lib/time.in.h (ctime): New declaration.
17954         * lib/ctime.c: New file.
17955         * m4/ctime.m4: New file.
17956         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
17957         REPLACE_CTIME.
17958         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
17959         * modules/ctime: New file.
17960         * doc/posix-functions/ctime.texi: Mention the new module.
17962 2017-04-30  Bruno Haible  <bruno@clisp.org>
17964         gettimeofday: Provide higher resolution on native Windows.
17965         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
17966         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
17967         (initialize): Initialize it.
17968         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
17969         'struct timeval'. Don't use _ftime().
17970         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
17971         <sys/timeb.h> and _ftime.
17973 2017-04-30  Bruno Haible  <bruno@clisp.org>
17975         Document the problem with the Cygwin environment variable TZ.
17976         * doc/posix-functions/tzset.texi: Add note about TZ.
17977         * doc/posix-functions/ctime.texi: Likewise.
17978         * doc/posix-functions/localtime.texi: Likewise.
17979         * doc/posix-functions/mktime.texi: Likewise.
17980         * doc/posix-functions/strftime.texi: Likewise.
17981         * doc/posix-functions/wcsftime.texi: Likewise.
17982         * doc/pastposix-functions/ftime.texi: Likewise.
17984 2017-04-30  Bruno Haible  <bruno@clisp.org>
17986         utime-tests: New module.
17987         * tests/test-utime.c: New file, based on tests/test-utimens.h.
17988         * tests/test-utimens-common.h: Include <sys/stat.h>.
17989         * modules/utime-tests: New file.
17991 2017-04-29  Bruno Haible  <bruno@clisp.org>
17993         utime: New module.
17994         * lib/utime.in.h: Add comment for snippets.
17995         (utime): New declaration.
17996         * lib/utime.c: New file.
17997         * m4/utime.m4: New file.
17998         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
17999         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
18000         REPLACE_UTIME.
18001         * modules/utime-h (Depends-on): Add snippets.
18002         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
18003         Insert snippets.
18004         * modules/utime: New file.
18005         * doc/posix-functions/utime.texi: Mention the new module.
18007 2017-04-29  Bruno Haible  <bruno@clisp.org>
18009         utime-h: Modernize handling of 'struct utimbuf'.
18010         * lib/utime.in.h: Include next <utime.h> if it exists.
18011         (utimbuf): Define to _utimbuf on native Windows.
18012         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
18013         Set UTIME_H on native Windows.
18014         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
18015         * modules/utime-h (Depends-on): Add include_next.
18016         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
18017         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
18019         * lib/utimens.c (utimbuf): Remove fallback definition.
18020         * m4/utimens.m4 (gl_UTIMENS): Don't require
18021         gl_CHECK_TYPE_STRUCT_UTIMBUF.
18022         * m4/utimbuf.m4: Remove file.
18023         * modules/utimens (Files): Remove m4/utimbuf.m4.
18025 2017-04-29  Bruno Haible  <bruno@clisp.org>
18027         Make use of module 'utime-h'.
18028         * modules/copy-file (Depends-on): Add utime-h.
18029         * lib/copy-file.c: Assume that <utime.h> exists.
18030         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
18032         * modules/utimens (Depends-on): Add utime-h.
18033         * lib/utimens.c: Assume that <utime.h> exists.
18035 2017-04-29  Bruno Haible  <bruno@clisp.org>
18037         utime-h: New module.
18038         * m4/utime_h.m4: New file.
18039         * lib/utime.in.h: New file.
18040         * modules/utime-h: New file.
18041         * doc/posix-headers/utime.texi: Mention the new module.
18043         * tests/test-utime-h.c: New file.
18044         * modules/utime-h-tests: New file.
18046 2017-04-30  Bruno Haible  <bruno@clisp.org>
18048         Fix a few typos.
18049         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
18050         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
18051         * doc/posix-functions/fstat.texi: Fix a plural typo.
18052         * doc/posix-functions/stat.texi: Likewise.
18053         * m4/include_next.m4: Update comments.
18055 2017-04-29  Bruno Haible  <bruno@clisp.org>
18057         error: Fix mistake in 2017-04-23 commit.
18058         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
18059         assume that strerror_r returns 'int', not 'char *'.
18061 2017-04-29  Bruno Haible  <bruno@clisp.org>
18063         stat: Fix time_t values and other problems on native Windows platforms.
18064         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
18065         implementations of stat().
18066         * lib/stat.c: Include filename.h instead of dosname.h. Include
18067         malloca.h, stat-w32.h.
18068         (is_unc_root): New function.
18069         (rpl_stat): New implementation for native Windows. Remove
18070         REPLACE_FUNC_STAT_DIR code.
18071         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
18072         Don't define REPLACE_FUNC_STAT_DIR.
18073         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
18074         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
18075         (Depends-on): Remove dosname. Add filename, malloca.
18076         (configure.ac): Also compile lib/stat-w32.c.
18078 2017-04-29  Bruno Haible  <bruno@clisp.org>
18080         fstat: Fix time_t values on native Windows platforms.
18081         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
18082         * lib/stat-w32.h: New file.
18083         * lib/stat-w32.c: New file.
18084         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
18085         stat-w32.h instead.
18086         (fstat_nothrow): Remove function.
18087         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
18088         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
18089         always.
18090         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
18091         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
18092         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
18093         (configure.ac): Also compile lib/stat-w32.c.
18095 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18097         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
18098         Problem reported by Assaf Gordon and Gavin Smith in:
18099         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
18100         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
18101         #define this, too.
18103 2017-04-29  Bruno Haible  <bruno@clisp.org>
18105         strerror_r-posix: Fixes for MSVC 14.
18106         * lib/strerror_r.c: Include <stdarg.h>.
18107         (strerror_r): Provide error messages for errno values 100...140.
18108         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
18110 2017-04-28  Bruno Haible  <bruno@clisp.org>
18112         noreturn: New module.
18113         * lib/noreturn.h: New file.
18114         * modules/noreturn: New file.
18115         * tests/test-noreturn.c: New file.
18116         * modules/noreturn-tests: New file.
18117         * tests/test-noreturn-c++.cc: New file.
18118         * modules/noreturn-c++-tests: New file.
18120 2017-04-27  Bruno Haible  <bruno@clisp.org>
18122         wctype-h: Fix compilation error with the original mingw.org mingw.
18123         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
18124         HAVE_CRTDEFS_H.
18125         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
18126         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
18127         <stddef.h> instead.
18128         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
18130 2017-04-26  Pádraig Brady  <P@draigBrady.com>
18132         nap.h: Fix compilation on non windows platforms
18133         * tests/nap.h: Move misplaced endif.
18135 2017-04-26  Pádraig Brady  <P@draigBrady.com>
18136         and Paul Eggert  <eggert@cs.ucla.edu>
18138         time_rz: fix heap buffer overflow vulnerability
18139         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
18140         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
18141         whether there is enough buffer space available, thus avoiding
18142         the problematic promotion of signed to unsigned causing an invalid
18143         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
18144         the start of the buffer.
18145         * tests/test-parse-datetime.c (main): Add a test case written by
18146         Paul Eggert, which overwrites enough of the heap so that
18147         standard glibc will fail with "free(): invalid pointer"
18148         without the patch applied.
18150 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18152         xalloc: add missing integer overflow check
18153         * lib/xalloc.h (x2nrealloc): Also check for multiplication
18154         overflow when P is null.
18156 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18158         parse-datetime: make it standalone
18159         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
18160         (_GL_ATTRIBUTE_FORMAT): New macro.
18161         These are needed to get './gnulib-tool --test parse-datetime' to work.
18163 2017-04-23  Bruno Haible  <bruno@clisp.org>
18165         nap.h: Port to native Windows.
18166         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
18167         use nap_fd instead. On native Windows, close and reopen nap_fd.
18168         (nap_works): Don't compare the ctimes, because on native Windows, these
18169         are the creation times.
18170         (nap): Update.
18172 2017-04-23  Bruno Haible  <bruno@clisp.org>
18174         nap.h: Fix logic.
18175         * tests/nap.h (nap): Avoid signed integer overflow in loop.
18177 2017-04-23  Bruno Haible  <bruno@clisp.org>
18179         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
18180         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
18181         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
18182         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
18183         * lib/argp-help.c (__argp_failure): Likewise.
18185 2017-04-23  Bruno Haible  <bruno@clisp.org>
18187         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
18188         * m4/strerror_r.m4: Revert changes since 2016-10-16.
18189         * lib/strerror_r.c: Likewise.
18191 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
18193         Target a C99 subset, not a C89 subset
18194         For many years Gnulib has targeted C89 and has resisted using C99
18195         features, as some Gnulib-using programs still wanted to target
18196         C89.  As this no longer seems to be the case, relax the porting
18197         requirements to allow some C99 features.  This is merely a change
18198         to the documentation, to give other Gnulib developers a chance to
18199         weigh in on the topic.
18200         * doc/extern-inline.texi (extern inline):
18201         * doc/gnulib-readme.texi (Portability guidelines):
18202         * doc/gnulib-tool.texi (Initial import):
18203         * doc/gnulib.texi (Header files):
18204         Modernize to talk about C99 and C11 instead of C89 and C99.
18205         * doc/gnulib-readme.texi (Portability guidelines):
18206         Now a section, not merely a subsection, so that it
18207         can be split up.  Modernize a bit.
18208         (C language versions, C99 features assumed)
18209         (C99 features avoided):
18210         New sections.
18212 2017-04-23  Bruno Haible  <bruno@clisp.org>
18214         doc: New section "Modules that modify the way other modules work".
18215         * doc/gnulib.texi (Modules that modify the way other modules work): New
18216         section.
18218 2017-04-23  Bruno Haible  <bruno@clisp.org>
18220         stat-time: Update comments.
18221         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
18222         * tests/test-utimens-common.h: Add reference regarding st_ctime on
18223         Windows.
18225 2017-04-01  Bruno Haible  <bruno@clisp.org>
18227         glob: Fix more memory leaks.
18228         * lib/glob.c (glob): Free allocated memory before returning.
18229         Reported by Coverity via Tim Rühsen.
18231 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18233         poll: improve fast check for out-of-range NFD
18234         * lib/poll.c: Do not include intprops.h.
18235         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
18236         * modules/poll (Depends-on): Remove intprops.
18238         ftoastr: cite a newer paper
18239         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
18240         instead of Loitsch 2010.
18242 2017-04-22  Bruno Haible  <bruno@clisp.org>
18244         poll: Enable argument check also in the Windows implementation.
18245         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
18246         Reported by Paul Eggert.
18248 2017-04-22  Bruno Haible  <bruno@clisp.org>
18250         getlogin_r: Work around bug in Mac OS X 10.12.
18251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
18252         bug.
18253         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
18254         given size minus 1, call getlogin_r a second time, on a larger buffer.
18255         * modules/getlogin_r (Depends-on): Add malloca.
18256         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
18258 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18260         parse-datetime: fix %z and prefer signed int
18261         %z problem reported by Pádraig Brady in:
18262         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
18263         While fixing it, I decided to prefer signed ints to size_t, as
18264         they are less error-prone (e.g., ubsan catches overflow).
18265         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
18266         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
18267         counts, since signed integers make for better debugging.
18268         (date): Don’t assume %z works in printf formats.
18269         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
18270         sizes of buffers known to be small, e.g., because we’re using snprintf.
18271         (parse_datetime2): Simplify call to debug_mktime_not_ok.
18273 2017-04-22  Bruno Haible  <bruno@clisp.org>
18275         *printf: Work around rounding bug on Mac OS X.
18276         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
18277         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
18278         Mac OS X and FreeBSD.
18279         * doc/glibc-functions/*printf.texi: Likewise.
18281 2017-04-22  Bruno Haible  <bruno@clisp.org>
18283         vasnprintf tests: Avoid warnings.
18284         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
18285         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
18286         test.
18288 2017-04-22  Bruno Haible  <bruno@clisp.org>
18290         sys_file tests: Avoid warning.
18291         * tests/test-sys_file.c (main): Add a default clause to the switch
18292         statement.
18294 2017-04-22  Bruno Haible  <bruno@clisp.org>
18296         sethostname: Update doc.
18297         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
18298         Mac OS X.
18300 2017-04-22  Bruno Haible  <bruno@clisp.org>
18302         quotearg tests: Avoid warnings.
18303         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
18304         false.
18306 2017-04-22  Bruno Haible  <bruno@clisp.org>
18308         poll: Enable argument check.
18309         * lib/poll.c: Include intprops.h.
18310         (poll): Check value of nfd correctly.
18311         * modules/poll (Depends-on): Add intprops.
18313 2017-04-22  Bruno Haible  <bruno@clisp.org>
18315         get-rusage-data: Avoid warnings on Mac OS X.
18316         * lib/get-rusage-data.c: On Mac OS X, don't define
18317         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
18318         (get_rusage_data) [Mac OS X]: Just return 0.
18320 2017-04-22  Bruno Haible  <bruno@clisp.org>
18322         xbinary-io: Fix build error.
18323         * modules/xbinary-io (Depends-on): Add gettext-h.
18324         * lib/xbinary-io.c: Include gettext.h and define _().
18325         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
18326         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
18328 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18330         parse-datetime: overflow and debug cleanups
18331         This long patch was triggered by this bug report from Ruediger Meier:
18332         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
18333         I fixed the bug he noted, then found some others nearby, and then
18334         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
18335         up some of the code to follow GNU standards while I was at it.
18336         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
18337         use c_isdigit.
18338         (EPOCH_YEAR): Remove; unused.
18339         (TM_YEAR_BASE): Now an enum rather than a macro.
18340         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
18341         time zone offset, since timezones now are in terms of seconds and
18342         not minutes.
18343         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
18344         appropriate.  Verify that intmax_t is wide enough.
18345         (time_overflow, time_zone_str): New functions, used to deal
18346         more reliably with overflow.
18347         (dbg_printf): Add printf attribute, to help catch integer width errors.
18348         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
18349         (%union, to_hour, yylex, parse_datetime2):
18350         Use intmax_t instead of long int and/or long_time_t.
18351         All uses changed.
18352         (DBGBUFSIZE): Move earlier.
18353         (relative_time, set_hhmmss, parser_control):
18354         Just use int for nanoseconds and for time zones; that’s wide enough.
18355         (parser_control): Use bool for members like year_seen that can
18356         be booleans instead of counters.  All uses changed.
18357         Remove debug_default_input_timezone; no longer needed.
18358         All uses removed.
18359         (apply_relative_time): Return a bool overflow flag.
18360         All uses changed to check for overflow.
18361         (apply_relative_time, zone, date, relunit, relunit_snumber)
18362         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
18363         Check for integer overflow portably.
18364         (str_days): Use just int for N, as it’s wide enough.
18365         Prefer 2D char arrays to arrays of char * when it looks like
18366         2D is a win on typical platforms.
18367         Prefer snprintf to strncpy/strncat, for simplicity;
18368         all buffers are smaller than INT_MAX so this is safe.
18369         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
18370         (debug_print_current_time): Don’t assume tv_nsec is of type long,
18371         as this is not true on x32.  Output "." before any nanoseconds.
18372         (debug_print_current_time, parse_datetime2):
18373         Output local zones using a more-consistent format.
18374         (debug_print_current_time, date, parse_datetime2):
18375         (main) [TEST]:
18376         Don’t assume time_t is the same width as long.
18377         (print_rel_part): New function, replacing ...
18378         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
18379         (debug_print_relative_time): Use bool for boolean.
18380         (local_zone): dsts_seen now counts only tDST instances.
18381         (date): Fix printf of size_t to use %z.  Do not assume numeric
18382         tokens have negative values merely because the context suggests
18383         a syntax with "-" separating tokens.
18384         (time_zone_hhmm): Return bool success indicator, which checks for
18385         overflow.  Store result into PC->time_zone instead.  All callers
18386         changed.
18387         (tm_year_str): New function.  Return a bool success indicator and
18388         store the result into a buffer.  All callers changed.  Output the
18389         numerically correct string even if adding 1900 to the year would
18390         overflow.
18391         (to_tm_year): New function, replacing the old to_year.  All
18392         callers changed.
18393         (tm_diff): Sync with glibc.
18394         (lookup_word): Use to_uchar instead of doing it by hand.
18395         (TZBUFSIZE): Now local to the only function that needs it.
18396         (debug_strfdatetime): Simplify now that time zones are int seconds.
18397         (debug_strfdate): Work even if tm_year + 1900 would overflow.
18398         (get_effective_timezone): Remove.  All uses removed.
18399         (parse_datetime2): Use fprintf in pieces instead of snprintfing
18400         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
18401         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
18402         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
18403         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
18404         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
18405         * modules/parse-datetime (Depends-on): Add inttypes.
18407 2017-04-21  Bruno Haible  <bruno@clisp.org>
18409         gettext-h: Avoid -Wundef warning.
18410         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
18411         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
18412         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
18414 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
18416         error: Avoid "function declaration isn't a prototype" warning.
18417         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
18419 2017-04-21  Bruno Haible  <bruno@clisp.org>
18421         vasnprintf: Fix for MSVC 14.
18422         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
18423         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
18424         of !HAVE_SNPRINTF_RETVAL_C99.
18426 2017-04-21  Bruno Haible  <bruno@clisp.org>
18428         mbrtowc tests: Fix test failures on MSVC 14.
18429         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
18430         behaviour for invalid input.
18432 2017-04-21  Bruno Haible  <bruno@clisp.org>
18434         mbsinit: Fix for MSVC 14.
18435         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
18436         implementation that is in sync with mbrtowc.c. On other platforms, use
18437         an adequate ad-hoc implementation.
18439 2017-04-21  Bruno Haible  <bruno@clisp.org>
18441         Fix test-mbrtowc5.sh failure on native Windows.
18442         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
18443         "C".
18445 2017-04-21  Bruno Haible  <bruno@clisp.org>
18447         Avoid accidental use of native Windows APIs on Cygwin.
18448         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
18449         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
18450         * lib/localename.c (WINDOWS_NATIVE): Likewise.
18452 2017-04-20  Bruno Haible  <bruno@clisp.org>
18454         Remove red warnings from the generated MODULES.html.
18455         * modules/fcntl (Description): Disambiguate function references.
18456         * modules/getcwd-lgpl (Description): Likewise.
18457         * modules/hostent (Description): Likewise.
18458         * modules/servent (Description): Likewise.
18459         * modules/tempname (Description): Likewise.
18461 2017-04-20  Bruno Haible  <bruno@clisp.org>
18463         verify tests: Fix spurious failure with parallel make.
18464         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
18465         EXTRA_PROGRAMS.
18466         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
18467         * tests/test-verify-try.c: New file.
18468         * modules/verify-tests (Files): Add it.
18469         (EXTRA_PROGRAMS): Add test-verify-try.
18470         (MOSTLYCLEANFILES): Update accordingly.
18471         Reported by Adam James Stewart <ajstewart@anl.gov>.
18473 2017-04-18  Bruno Haible  <bruno@clisp.org>
18475         vma-iter: Fix compilation error on Solaris 7.
18476         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
18477         like on IRIX, OSF/1.
18478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18480 2017-04-18  Bruno Haible  <bruno@clisp.org>
18482         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
18483         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
18484         included.
18485         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
18486         <sys/procfs.h>.
18487         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
18488         <sys/procfs.h> cannot be included.
18489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18491 2017-04-18  Bruno Haible  <bruno@clisp.org>
18493         getopt-gnu: Add comments.
18494         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
18495         * modules/getopt-gnu (configure.ac): Likewise.
18497 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
18499         regex: port better to Solaris 10
18500         Solaris 10 <locale.h> includes <libintl.h>, which #defines
18501         gettext, and this causes a double #define.
18502         Problem reported by Gavin Smith in:
18503         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
18504         * lib/regex_internal.h (gettext): #undef before #defining.
18506 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
18508         intprops: improve comments
18509         * lib/intprops.h: Improve and shorten commentary.
18510         For the record, if we ever run into a pedantic compiler that
18511         behaves differently from GCC when converting an out-of-range value
18512         to a signed integer, we can work around the problem with something
18513         like the following code, where UCT is the signed counterpart of T
18514         (UCT is sometimes narrower than UT) and all callers are changed
18515         accordingly:
18516         #if __SUNPRO_C <= 0x5120
18517         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
18518            ((t) ((ut) (a) op (ut) (b)))
18519         #else
18520         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
18521            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
18522             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
18523                + TYPE_MINIMUM (t)) \
18524             : (t) (uct) ((ut) (a) op (ut) (b)))
18525         #endif
18527 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
18529         intprops: try to avoid tickling similar bugs
18530         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
18531         needs to be the same width as T; it can be wider.
18532         Change callers so that UT is at least as wide as unsigned int,
18533         as I suspect that this is less likely to run into compiler bugs.
18535         intprops: port to Oracle Studio 12.3 x86
18536         Problem reported by Gavin Smith in:
18537         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
18538         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
18539         Convert unsigned to signed via the usual rather than the standard way,
18540         to avoid a compiler bug in Oracle Studio 12.3 x86.
18542 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18544         getopt: prefer - to _ in new file names
18545         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
18546         * lib/getopt-core.h: Rename from lib/getopt_core.h.
18547         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
18548         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
18549         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
18550         All uses changed.
18552         getopt: port recent getopt changes to macOS
18553         Problem reported by Harald Maier (Bug#26398).
18554         The macOS C compiler uses __nonnull for its own purposes and that
18555         clashes with glibc's __nonnull.
18556         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
18557         * lib/getopt_cdefs.in.h (__nonnull): Remove.
18558         * lib/getopt_core.h (getopt):
18559         * lib/getopt_ext.h (getopt_long, getopt_long_only):
18560         Use _GL_ARG_NONNULL, not __nonnull.
18561         * lib/unistd.in.h: Move snippet hooks to before where the getopt
18562         .h files are included, so that _GL_ARG_NONNULL is defined in time.
18563         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
18564         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
18566 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18568         getopt-gnu: omit some duplicate code
18569         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
18570         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
18571         gnulib-tool already does this.
18572         * modules/getopt-gnu (configure.ac): Omit code duplicated from
18573         getopt-posix, which we depend on.
18575         getopt-posix: use angle-bracket include
18576         * lib/getopt1.c: Include <config.h>, not "config.h".
18578 2017-04-06  Zack Weinberg  <zackw@panix.com>
18580         getopt: annotate files with relationship to glibc
18582         As the final act in this patchset, adjust the message at the top of
18583         each file to indicate which files are synced with glibc.  (This has
18584         already been done for most of the headers.)
18586         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
18587         Mention in top-of-file boilerplate that these files are shared
18588         between glibc and gnulib.
18591         getopt: split up getopt.in.h and eliminate __need_getopt
18593         Over in glibc, all of the __need macros are being phased out in favor
18594         of small headers that declare only the necessary components, as this
18595         is much simpler and less prone to bugs.  As getopt is shared with
18596         glibc, gnulib needs to do the same for __need_getopt.
18598         __need_getopt is misnamed; what it really means is "we want only the
18599         getopt features specified in POSIX, not the GNU extensions".  glibc
18600         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
18601         these files can be shared verbatim with gnulib.  The portability
18602         wrapper, on the other hand, they have renounced altogether; glibc's
18603         getopt.h will no longer be shared with gnulib at all.  In exchange,
18604         certain glibc-specific quirks (having to do with __posix_getopt) no
18605         longer need appear in gnulib's headers at all.
18607         This patch merges getopt_core.h and getopt_ext.h from glibc, and
18608         splits up the current gnulib-side portability wrapper into three
18609         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
18610         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
18611         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
18612         unistd.in.h just use them.  All new files are clearly marked with
18613         whether they are shared with glibc.
18615         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
18616         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
18617         with glibc, and ...
18618         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
18619         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
18620         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
18621         instead of defining __need_getopt and including the full getopt.h.
18623         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
18624         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
18625         * modules/getopt-posix (Files): Add new headers and sort list.
18626         (Depends-on): No longer need snippet/arg-nonnull.
18627         (Makefile.am): Generate getopt_cdefs.h.
18630         getopt: better handling of ambiguous options
18632         glibc's getopt uses alloca to construct a linked list of possibilities
18633         for an "ambiguous" long option.  In gnulib, malloc should be used
18634         instead.  Providing for both cases complicates things a fair bit.
18636         This patch rewrites ambiguous-option handling to use a boolean vector
18637         instead of a linked list.  There is then only one allocation that
18638         might need freeing; in glibc it can honor __libc_use_alloca as usual,
18639         and in gnulib we define __libc_use_alloca to always be false, so we
18640         don't need ifdefs in the middle of the function.  This should also be
18641         slightly more efficient in the normal case of long options being fully
18642         spelled out -- I think most people aren't even aware they _can_
18643         sometimes abbreviate long options.
18645         One interesting consequence is that the list of possibilities is now
18646         printed in exactly the order they appear in the list of long options,
18647         instead of the first possibility being shuffled to the end.
18649         (The patch looks bigger than it really is because there's a fair bit
18650         of reindentation and code rearrangement.)
18652         * lib/getopt.c: When used standalone, define __libc_use_alloca
18653         as always false and alloca to abort if called.
18654         (process_long_option): Rewrite handling of ambiguous long options
18655         to use a single boolean vector, not a linked list; use
18656         __libc_use_alloca to decide whether to allocate this using alloca.
18659         getopt: refactor long-option handling
18661         There were two copies of the bulk of the code to handle long options.
18662         Now there is only one.
18664         This change temporarily removes the logic to avoid using alloca when
18665         standalone; the next patch in the series will restore it.
18667         * lib/getopt.c (process_long_option): New function split out
18668         from _getopt_internal_r.
18669         (_getopt_internal_r): Replace both copies of the long-option
18670         processing code with calls to process_long_option.
18673         getopt: tidy up _getopt_initialize a bit
18675         _getopt_data.__posixly_correct is completely redundant to
18676         _getopt_data.__ordering, and some work that logically belongs in
18677         _getopt_initialize was being done by _getopt_internal_r, making the
18678         code harder to understand.
18680         As a side effect, getenv will no longer be called if the first
18681         character of the options string is '+' or '-', which is probably a
18682         Good Thing.  (Perhaps we should have a flag character that
18683         specifically asks for the permutation behavior?)
18685         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
18686         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
18687         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
18690         getopt: merge from glibc: repetition reduction
18692         The definitions of the entry point functions 'getopt' and
18693         '__posix_getopt' can be made substantially less repetitive with a
18694         helper macro.
18696         While I was merging the const-correctness changes from gnulib into
18697         glibc I noticed there are still some unnecessary casts in
18698         _getopt_internal_r.
18700         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
18701         a macro.  Consistently cast 'argv' to 'char **' when calling
18702         _getopt_internal.
18703         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
18706         getopt: clean up error reporting
18708         getopt can print a whole bunch of error messages, and when used
18709         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
18710         cancellation point and getopt isn't, and also applying fprintf to a
18711         stream in wide-character mode is not allowed.  So every single error
18712         reporting case has an #ifdef _LIBC block in which it calls internal
18713         libc functions instead.  The counterpart patch series in glibc makes
18714         it possible to simplify all of that down to a set of #defines at the
18715         top of the file; core code is written as if it is safe to just call
18716         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
18717         call any *other* stdio functions.)
18719         * lib/getopt.c: When _LIBC is defined, define fprintf to
18720         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
18721         to _IO_funlockfile.  When neither _LIBC nor
18722         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
18723         funlockfile as no-ops.
18724         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
18725         standalone error-printing code can now be used for libc as well.
18726         Add an flockfile/funlockfile pair around one case where the error
18727         message is printed in several chunks.  Don't use fputc.
18730         getopt: fix fencepost error in ambiguous-W-option handling
18732         getopt_long contains an undocumented (AFAICT) feature in which, if you
18733         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
18734         treated as equivalent to '--foo'.  This is implemented with a partial
18735         second copy of the code for handling long options, and that code
18736         increments optind one too many times when recovering from an ambiguous
18737         abbreviated option, which can cause the main loop to walk past the end
18738         of argv and crash.
18740         I discovered this while writing a test case that tries to exercise all
18741         of getopt's error reporting paths; I wouldn't be surprised to learn
18742         that this feature is never used by real applications.
18744         * lib/getopt.c (_getopt_internal_r): Don't increment
18745         d->optind a second time when reporting ambiguous -W options.
18748         getopt: clean up getopt.c and getopt1.c file headers
18750         In getopt.c, there is no need to include wchar.h at all, and it is
18751         safe nowadays to assume that stdlib.h does declare getenv (several
18752         other gnulib modules make this assumption).
18754         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
18755         by using "" inclusions consistently, and there is no actual need to
18756         include stdlib.h (except in the #ifdef TEST block, where it should be
18757         unconditional), nor to provide a backup definition of NULL at all.
18759         * lib/getopt1.c: Simplify #ifdeffage at top of file.
18760         Move inclusion of stdlib.h to #ifdef TEST block and make
18761         unconditional.  Do not define NULL.
18762         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
18763         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
18764         * modules/getopt-gnu, modules/getopt-posix: Don't call
18765         gl_PREREQ_GETENV.
18768         getopt: harmonize comments with glibc
18770         The comments explaining how the behavior of 'getopt' varies depending
18771         on whether it's the standalone version and whether there are special
18772         characters at the beginning of the options string were inconsistent
18773         between gnulib and glibc, and also out of sync with the code.
18775         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
18778         getopt: remove USE_NONOPTION_FLAGS
18780         getopt includes code to parse an environment variable named
18781         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
18782         in decimal); but all of it has been #ifdefed out since 2001, with no
18783         official way to turn it back on.
18785         According to commentary in glibc's config.h.in, bash version 2.0
18786         set this environment variable to indicate argv elements that were
18787         the result of glob expansion and therefore should not be treated
18788         as options, but the feature was "disabled later" because "it
18789         caused problems".  According to bash's CHANGES file, "later" was
18790         release 2.01; it gives no more detail about what the problems
18791         were.
18793         Version 2.0 of bash was released on the last day of 1996, and version
18794         2.01 in June of 1997.  Twenty years later, I think it is safe to
18795         assume that this environment variable isn't coming back.
18797         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
18798         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
18799         __libc_argc and __libc_argv externs, which were only used by
18800         #ifdef USE_NONOPTION_FLAGS blocks.
18803         getopt: tabify, in preparation for merge with glibc
18805         glibc sticks to the GNU default of indenting with a mix of
18806         8-column tabs and spaces; make the gnulib copy match.
18808         getopt.h is not included because it is *not* going to be merged in its
18809         present form.
18811         * getopt.c, getopt1.c, getopt_int.h: Tabify.
18813 2017-04-02  Bruno Haible  <bruno@clisp.org>
18815         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
18816         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
18817         like it was done in modules/relocatable-lib on 2011-05-21 and in
18818         modules/relocatable-prog on 2011-08-15.
18819         Reported by Reuben Thomas <rrt@sc3d.org>.
18821 2017-03-31  Bruno Haible  <bruno@clisp.org>
18823         glob: Fix invalid free() call.
18824         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
18825         static storage to home_dir.
18826         Reported by Coverity via Tim Rühsen.
18828 2017-03-31  Bruno Haible  <bruno@clisp.org>
18830         glob: Fix memory leaks.
18831         * lib/glob.c (glob): Free allocated memory before returning.
18832         Reported by Coverity via Tim Rühsen.
18834 2017-03-31  Bruno Haible  <bruno@clisp.org>
18836         md5, sha1, sha256, sha512: Add comments regarding correctness.
18837         * lib/md5.h (buflen): Add comments regarding range.
18838         * lib/sha1.h (buflen): Likewise.
18839         * lib/sha256.h (buflen): Likewise.
18840         * lib/sha512.h (buflen): Likewise.
18841         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
18842         * lib/sha1.c (sha1_process_bytes): Likewise.
18843         * lib/sha256.c (sha256_process_bytes): Likewise.
18844         * lib/sha512.c (sha512_process_bytes): Likewise.
18845         Reported by Coverity via Tim Rühsen.
18847 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
18849         getopt: merge from glibc
18850         This does not change anything substantial; it merely simplifies
18851         hypothetical merges back to glibc.
18852         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
18853         Change copyright notice to match what is in glibc.
18854         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
18855         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
18856         __open_memstream rather than open_memstream and __glibc_likely
18857         instead of __builtin_expect.
18858         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
18860 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
18862         dfa: make [0-9] faster in non-C locales
18863         Problem reported by John P. Linderman (Bug#26193).
18864         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
18865         If both ends of the range are ASCII digits, do not worry about
18866         multi-character collating sequences and the like.  Be consistent
18867         about using isalpha as a precondition for setbit_case_fold_c.
18869 2017-03-19  Bruno Haible  <bruno@clisp.org>
18871         lock: Fix compilation error with HP-UX IA64 cc.
18872         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
18873         weak on non-glibc platforms.
18875 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18877         stdalign: tweak version# and test for HP-UX IA64
18878         Problems reported by Bruno Haible in:
18879         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
18880         * lib/stdalign.in.h (_Alignas):
18881         * m4/stdalign.m4 (gl_STDALIGN_H):
18882         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
18883         used octal (as that is how they document it), but it is decimal in
18884         practice now and the ancient implementations no longer matter.
18885         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
18887 2017-03-19  Bruno Haible  <bruno@clisp.org>
18889         vma-iter: Add support for Solaris.
18890         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
18891         approach.
18892         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
18893         * lib/get-rusage-as.c: Update comment about Solaris.
18894         * lib/get-rusage-data.c: Likewise.
18896 2017-03-19  Bruno Haible  <bruno@clisp.org>
18898         vma-iter: Prefer HP-UX specific API on HP-UX.
18899         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
18900         * lib/vma-iter.h: Update.
18901         Just in case HP-UX ever implements mquery().
18903 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
18905         stdalign: restore previous behavior for HP-UX IA64
18906         See Bruno Haible's email in:
18907         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
18908         which cites p 150 of a manual saying that 'aligned' works on Itanium.
18909         * lib/stdalign.in.h (_Alignas):
18910         Assume the '061200' applies to Itanium, not to PA-RISC.
18911         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
18913 2017-03-17  Bruno Haible  <bruno@clisp.org>
18915         stat-time, timespec: Support use of the header files in C++ mode.
18916         * lib/stat-time.h: Add "C" linkage declaration.
18917         * lib/timespec.h: Likewise.
18919 2017-03-17  Bruno Haible  <bruno@clisp.org>
18921         stdalign: Make it work with HP-UX cc.
18922         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
18923         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
18924         for HP-UX cc.
18926 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
18928         flexmember: try to detect HP-UX 11.31 cc bug
18929         Problem reported by Bruno Haible in:
18930         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
18931         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18932         Attempt to detect bug in HP-UX 11.31 cc.
18934 2017-03-16  Bruno Haible  <bruno@clisp.org>
18936         stdint: Fix test compilation failure with HP-UX 11 cc.
18937         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
18938         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
18939         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
18940         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
18942 2017-03-14  Bruno Haible  <bruno@clisp.org>
18944         gnulib-tool: Don't produce a tests directory with only snippet .h files.
18945         * gnulib-tool (func_modules_transitive_closure_separately): If
18946         testsrelated_modules ends up with no "real" modules, aside from
18947         modules with applicability 'all', set it to empty.
18949 2017-03-14  Bruno Haible  <bruno@clisp.org>
18951         vma-iter: Add support for HP-UX.
18952         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
18953         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
18954         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
18955         * lib/get-rusage-as.c: Update comment about HP-UX.
18956         * lib/get-rusage-data.c: Likewise.
18957         (get_rusage_data): Use get_rusage_data_via_setrlimit.
18959 2017-03-14  Bruno Haible  <bruno@clisp.org>
18961         limits-h: Make it work with HP-UX cc.
18962         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
18963         defined.
18965 2017-03-14  Bruno Haible  <bruno@clisp.org>
18967         Fix test failures on DragonFlyBSD.
18968         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
18969         * tests/test-select.h (test_bad_fd): Likewise.
18970         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
18972 2017-03-14  Bruno Haible  <bruno@clisp.org>
18974         freadahead: Silence warning on DragonFlyBSD.
18975         * lib/freadahead.c (__sreadahead): Declare ourselves.
18977 2017-03-14  Bruno Haible  <bruno@clisp.org>
18979         vma-iter: Add comment about AIX.
18980         * lib/vma-iter.c: Add comment about why this module is not implemented
18981         on AIX.
18983 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
18985         snippets: move unadjusted snippet sources to lib
18986         Problem reported by Michal Privoznik in:
18987         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
18988         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
18989         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
18990         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
18991         * lib/unused-parameter.h: Rename from
18992         build-aux/snippet/unused-parameter.h.
18993         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
18994         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
18995         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
18996         * modules/snippet/c++defs (Files:, CXXDEFS_H):
18997         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
18998         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
18999         Adjust to file renamings.
19001 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
19003         gnulib-tool: don't automatically distribute files from top/
19004         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
19005         not distribute top/README-release by default, don't distribute files
19006         from top/ unconditionally.
19007         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
19008         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
19010 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
19012         gnulib-tool: fix typo in comment output
19013         * gnulib-tool (func_import): Fix typo with previous change.
19015         snippets: work around GNU Make 3.82 VPATH
19016         When using 'gnulib-tool --gnu-make' on Emacs, and building
19017         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
19018         an out-of-source (VPATH) build failed because the sans-copyright
19019         snippet file was not built before the file that used it.
19020         Presumably this is some sort of VPATH thing.  Work around the
19021         problem by using the original snippet, i.e., don’t bother to
19022         remove its copyright notice.
19023         * modules/snippet/_Noreturn, modules/snippet/link-warning:
19024         Don’t assume Automake in comments.  Omit long-incorrect comment.
19025         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
19026         (MOSTLYCLEANFILES):
19027         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
19028         (MOSTLYCLEANFILES):
19029         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
19030         (MOSTLYCLEANFILES):
19031         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
19032         (MOSTLYCLEANFILES):
19033         Remove.
19034         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
19035         * modules/snippet/c++defs (CXXDEFS_H):
19036         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
19037         * modules/snippet/warn-on-use (WARN_ON_USE_H):
19038         Don’t bother to remove the copyright notice; just use the
19039         original snippet as-is.
19041 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19043         gnulib-tool: minor --gnu-make fixups
19044         * gnulib-tool (func_emit_lib_Makefile_am):
19045         Remove useless code that was a blind alley during implementation.
19046         Problem reported by Thien-Thi Nguyen in:
19047         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
19048         (func_import): Note the "--gnu-make" option in the output comment.
19050 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19052         gnulib-tool: new option --gnu-make
19053         This is for applications like GNU Emacs that use GNU Make
19054         features instead of Automake.
19055         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
19056         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
19057         Do not assume Automake.
19058         * gnulib-tool (func_determine_path_separator)
19059         (func_modules_transitive_closure, func_update_file)
19060         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19061         (func_import): Add support for --gnu-make.
19063 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
19065         gnulib-common.m4: avoid aclocal.m4 bloat
19066         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
19067         Hide AM_PROG_AR from aclocal, so that aclocal does not
19068         install irrelevant macro definitions into aclocal.m4.
19070 2017-03-10  Bruno Haible  <bruno@clisp.org>
19072         vma-iter: Let callers know about error.
19073         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
19074         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
19076 2017-03-05  Bruno Haible  <bruno@clisp.org>
19078         Fix value of LD for 64-bit compilers on AIX.
19079         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
19080         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
19082 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19084         dtotimespec: simplify
19085         * lib/dtotimespec.c (dtotimespec): Simplify.
19087 2017-03-04  Bruno Haible  <bruno@clisp.org>
19089         test-calloc-gnu: Reenable test also for GCC 7.
19090         * tests/test-calloc-gnu.c (eight): New function.
19091         (main): Don't skip test; use eight() instead.
19093 2017-03-04  Jim Meyering  <meyering@fb.com>
19095         test-calloc-gnu: port to GCC7
19096         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
19097         that attempts to calloc more than SIZE_MAX bytes, because GCC7
19098         and newer would detect that at compilation time.
19100 2017-03-04  Bruno Haible  <bruno@clisp.org>
19102         tests: Avoid compiler warning about uses of null_ptr.
19103         * tests/null-ptr.h: New file.
19104         * tests/test-canonicalize.c: Include null-ptr.h.
19105         (null_ptr): Remove function.
19106         * tests/test-canonicalize-lgpl.c: Likewise.
19107         * tests/test-memmem.c: Likewise.
19108         * tests/test-ptsname_r.c: Likewise.
19109         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
19110         * modules/canonicalize-lgpl-tests: Likewise.
19111         * modules/memmem-tests: Likewise.
19112         * modules/ptsname_r-tests: Likewise.
19113         Reported by Jim Meyering.
19115 2017-03-03  Bruno Haible  <bruno@clisp.org>
19117         doc: Mention Mac OS X deficiencies regarding semaphores.
19118         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
19119         * doc/posix-functions/sem_destroy.texi: Likewise.
19120         * doc/posix-functions/sem_getvalue.texi: Likewise.
19122 2017-03-03  Bruno Haible  <bruno@clisp.org>
19124         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
19125         Reported by Assaf Gordon <assafgordon@gmail.com> via
19126         Pádraig Brady <P@draigBrady.com>.
19127         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
19128         semaphores.
19129         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
19130         (atomic_int_semaphore): New macro.
19132 2017-02-28  Bruno Haible  <bruno@clisp.org>
19134         perror tests: Tweak for z/OS.
19135         Reported by Daniel Richard G. <skunk@iskunk.org>.
19136         * tests/test-perror.sh: Don't fail z/OS style perror output.
19138 2017-02-26  Bruno Haible  <bruno@clisp.org>
19140         nproc: Refactor large function.
19141         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
19142         from num_processors.
19143         (num_processors): In this function, only deal with OMP.
19145 2017-02-26  Pádraig Brady  <P@draigBrady.com>
19147         nproc: adjust handling of OpenMP environment variables
19148         to match the return value from omp_get_num_threads(), i.e.:
19149          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
19150          - Treat 0 as an invalid value and ignore
19151         Also remove the call to omp_get_num_threads() because
19152         it's ineffective without the omp pragmas in place.
19153         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
19154         so that it can be ignored.
19155         (num_processors): Honor OMP_THREAD_LIMIT even without
19156         OMP_NUM_THREADS being set.  Also fix a typo in the environment
19157         variable being checked, from the previous recent commit.
19159 2017-02-26  Pádraig Brady  <P@draigBrady.com>
19161         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
19162         * lib/nproc.c (parse_omp_threads): A new function refactored
19163         from num_processors() to support parsing both of the
19164         above environment variables.
19165         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
19166         to accurately reflect the current OpenMP nesting level.
19167         Also support the OMP_THREAD_LIMIT environment variable
19168         to limit the max value determined from OMP_NUM_THREADS.
19169         * modules/nproc: Depend on minmax header.
19170         Suggested by Oliver Heimlich.
19172 2017-02-25  Bruno Haible  <bruno@clisp.org>
19174         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
19175         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
19177 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19179         ftoastr: port to -Wdouble-promotion
19180         Work around -Wdouble-promotion false alarm in recent GCCs.
19181         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
19182         (ftoastr_snprintf, FTOASTR): Use it.
19184 2017-02-21  Bruno Haible  <bruno@clisp.org>
19186         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
19187         Reported by Rene Saavedra <rennes@openmailbox.org> in
19188         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
19189         * lib/glthread/lock.h: On glibc systems without
19190         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
19191         implementation of rwlocks.
19192         * lib/glthread/lock.c: Likewise.
19194 2017-02-20  Bruno Haible  <bruno@clisp.org>
19196         lock tests: Fix build failure on z/OS.
19197         Reported by Daniel Richard G. <skunk@iskunk.org>.
19198         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
19199         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
19200         exist.
19202 2017-02-19  Bruno Haible  <bruno@clisp.org>
19204         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
19205         This helps when CC=clang.
19206         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
19207         of /usr/bin/gcc.
19209         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
19210         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
19212 2017-02-19  Bruno Haible  <bruno@clisp.org>
19214         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
19215         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
19216         --with-tests --single-configure is specified.
19218 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19220         users.txt: Update links, use HTTPS where possible
19221         * users.txt: Updated to HTTPS where possible,
19222         fixed some links to new locations.
19224 2017-02-16  Bruno Haible  <bruno@clisp.org>
19226         xbinary-io: Fix inlining.
19227         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
19229 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19231         xbinary-io: rename from xsetmode
19232         This patch is taken from suggestions by Bruno Haible in:
19233         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
19234         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
19235         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
19236         not ENOTTY, when it is an inappropriate device.
19237         * lib/binary-io.h (SET_BINARY): Resurrect.
19238         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
19239         (xset_binary_mode_error): Rename from xsetmode_error.
19240         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
19241         (xset_binary_mode): Rename from xsetmode.
19242         All uses changed.
19243         * modules/xbinary-io: Rename from modules/xsetmode.
19244         Update file names.
19245         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
19246         * NEWS: Update to match revised behavior.
19248 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19250         tests: Adjust to recent SET_BINARY change
19251         * tests/test-binary-io.c (main):
19252         * tests/test-binary-io.sh: Remove test for SET_BINARY.
19253         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
19254         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
19255         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
19257         xsetmode: new module
19258         This is to fix a problem noted by Eric Blake.
19259         Code was using xfreopen to change files to binary mode, but this
19260         fails for stdout when in append mode.  Such code should use
19261         xsetmode instead.
19262         * NEWS: Document incompatible changes to binary-io module.
19263         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
19264         New function.
19265         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
19266         (set_binary_mode): New function, which also checks for tty.
19267         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
19269 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19271         headers: fix begin-end typos
19272         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
19273         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
19275         selinux-h: port to PGI 16.10
19276         * lib/se-selinux.in.h: Don't assume that include_next skips over
19277         duplicate -I DIR options.
19279         argp: port to PGI 16.10
19280         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
19282 2017-02-13  Darshit Shah  <darnir@gnu.org>
19284         unicase: Update function protoype to match definition.
19285         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
19286         uses 'size_t' as the datatype for the 'len' parameter in the functions
19287         it generates. Update the prototype specified here to match the newly
19288         generated function.
19290 2017-02-12  Bruno Haible  <bruno@clisp.org>
19292         times test: Avoid gcc warnings on Linux/x32.
19293         * tests/test-times.c (main): Really cast printf arguments from clock_t
19294         to 'long int'.
19296 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19298         glob: port better to emscripten
19299         Problem reported by Bruno Haible in:
19300         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
19301         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
19303 2017-02-11  Bruno Haible  <bruno@clisp.org>
19305         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
19306         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
19307         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
19308         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
19309         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
19310         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
19311         Distinguish hppa64 from hppa.
19313 2017-02-10  Bruno Haible  <bruno@clisp.org>
19315         search: Don't assume that tsearch() exists if 'VISIT' is defined.
19316         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
19317         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
19318         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
19320 2017-02-09  Bruno Haible  <bruno@clisp.org>
19322         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
19323         * doc/gnulib.texi (Libtool and Windows): Recommend
19324         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
19325         Reported by Reuben Thomas <rrt@sc3d.org>.
19327 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19329         stddef-tests: port to SIZE_MAX <= INT_MAX
19330         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
19331         Do not assume that INT_MAX < SIZE_MAX.
19333 2017-02-01  Bruno Haible  <bruno@clisp.org>
19335         lock tests: Fix link error.
19336         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
19337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19339 2017-01-31  Bruno Haible  <bruno@clisp.org>
19341         lock: Fix link error (regression from 2017-01-05).
19342         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
19343         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
19344         pthread_rwlockattr_destroy weak.
19345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19347 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19349         Port to PGI 16.10 x86-64
19350         This patch fixes one real bug in gl_anylinked_list2.h, along with
19351         some minor glitches that are not bugs.  It does not silence PGI’s
19352         thousands of bogus warnings when compiling test-intprops.c.
19353         Fortunately, the warnings do not cause a failure.
19354         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
19355         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
19356         My goodness, PGI goes back a long ways - this predates C89!
19357         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
19358         For example, ASYNCSAFE (const void *) should expand to
19359         ‘const void *volatile’, not to ‘volatile const void *’.
19360         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
19361         * lib/verify.h (verify) [!__GNUC__]:
19362         Use shorter albeit meaningless string to bypass silly compiler limits.
19363         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
19364         * tests/nan.h (NaNf, NaNd, NaNl):
19365         Use static functions to avoid misguided compiler diagnostics.
19366         Is there some reason we don’t use static functions on all platforms?
19368 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19370         parse-datetime: handle timezones reentrantly
19371         This API change was prompted by a report by Pádraig Brady in:
19372         https://bug.debian.org/851934#10
19373         To help fix the bug, make parse_datetime2 more reentrant.
19374         * NEWS: Document this incompatible change.
19375         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
19376         Add two arguments, the timezone and the timezone name.
19377         All callers changed.  If TZ="..." is specified, use it for
19378         calculating defaults.
19379         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
19380         this code should be usable in a library.
19381         (mktime_ok, get_effective_timezone):
19382         Accept timezone arg too.  All callers changed.
19383         (get_tz): Remove.
19384         (get_effective_timezone): Check for failures.
19386 2017-01-20  Eric Blake  <eblake@redhat.com>
19388         localename: port to cygwin 2.6
19389         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
19390         Cygwin.
19391         * modules/localename (Depends-on): Add extensions, since
19392         NL_LOCALE_NAME() is not visible without it.
19394 2017-01-17  Pádraig Brady  <P@draigBrady.com>
19396         parse-datetime: fix dependence on AC_PROG_SED
19397         * modules/parse-datetime: Use `sed` directly like all other modules.
19398         Reported by J William Piggott
19400 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19402         intprops: update doc URLs
19403         * doc/intprops.texi (Integer Range Overflow): Update URLs.
19405 2017-01-16  Bruno Haible  <bruno@clisp.org>
19407         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
19408         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
19409         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
19410         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
19411         distinguish s390 and s390x.
19412         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
19413         * NEWS: Mention the change regarding 'armel'.
19415 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19417         localeinfo: case_folded_counterparts and WEOF
19418         * NEWS: Document this.
19419         * lib/localeinfo.c (case_folded_counterparts):
19420         First arg is now wint_t, not wchar_t.  This generalizes the
19421         function to also work on WEOF, where it returns 0.
19423         dfa: port to gcc -fsanitize=undefined
19424         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
19425         as this runs afoul of gcc -fsanitize=undefined.
19427 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19429         strftime: %z is -00 if unknown
19430         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
19431         the caller's responsibility to set 'negative_number'.  All uses changed.
19432         (__strftime_internal): Put '-' before a zero UTC offset if the time
19433         zone abbreviation starts with "-", which is the recently-introduced
19434         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
19435         * tests/test-strftime.c: Test for this.
19437 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19439         dfa: port to older GCC
19440         Problem reported by Assaf Gordon in:
19441         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
19442         * modules/c99: New module.  This merely attempts to use the latest
19443         C version, which should be enough to solve this particular problem.
19444         The idea is to document which Gnulib modules assume C99 or later.
19445         * modules/dfa (Depends-on): Add it.
19447 2017-01-10  Bruno Haible  <bruno@clisp.org>
19449         Update DEPENDENCIES.
19450         * DEPENDENCIES: List only https URLs. Update recommended version for
19451         autoconf, automake, gperf.
19453 2017-01-10  Jim Meyering  <meyering@fb.com>
19455         maint.mk: enforce spelling of "timestamp" (i.e., no space)
19456         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19457         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
19459 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19461         dfa: minor simplification with emptyset
19462         * lib/dfa.c (build_state): Simplify by using emptyset.
19464 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19466         dfa: shrink constraints from 4 bits to 3
19467         * lib/dfa.c (newline_constraint, letter_constraint)
19468         (other_constraint, prev_newline_dependent)
19469         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
19470         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
19471         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
19472         Constraints need only 3 bits, not 4.  Using smaller integers
19473         shrinks the code a bit and makes grep a tad faster on x86-64.
19475         dfa: omit unnecessary ptrdiff_t check
19476         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
19477         overflow, since xnmalloc does that now.
19479         dfa: omit unnecessary allocation
19480         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
19481         an all-zero follow set works just fine.
19483         dfa: omit unused local
19484         * lib/dfa.c (build_state): Fix up recent change.
19486         maint: remove stray .texi files
19487         Although these were superseded by other files like
19488         doc/posix-functions/ctime.texi, the old files were not removed.
19489         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
19491 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
19493         getprogname: fix port to IRIX
19494         * lib/getprogname.c (getprogname) [__sgi]:
19495         Don't dump core if malloc returns NULL.
19497         dfa: fix reallocation bug when matching newlines
19498         Problem reported for sed by S. Gilles (Bug#25390).
19499         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
19500         (dfastate): Reallocate before moving any newline transition ...
19501         (build_state): ... instead of reallocating here, where it is too late.
19503 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
19505         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
19506         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
19508 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
19510         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
19511         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
19513 2017-01-07  Bruno Haible  <bruno@clisp.org>
19515         stdioext: Port to Minix 3.2 and newer.
19516         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
19517         * lib/fseeko.c (fseeko): Likewise.
19518         Reported by Nelson Beebe via Paul Eggert.
19520 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19522         getprogname: port to IRIX
19523         * lib/getprogname.c (getprogname): Port to IRIX.
19524         Based on an idea by Bastien Roucariès at:
19525         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
19526         via code from Bruno Haible at:
19527         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
19529         localename-tests: port to NetBSD 7
19530         Problem reported by Nelson H. F. Beebe.
19531         * tests/test-localename.c:
19532         Test newlocale and uselocale only if both exist.
19534         glob, intprops, xalloc: work around Clang bug
19535         Work around LLVM bug 16404, which is still not fixed.
19536         https://llvm.org/bugs/show_bug.cgi?id=16404
19537         Problem reported by Nelson H. F. Beebe.
19538         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
19539         Remove.
19540         * lib/glob.c (size_add_wrapv):
19541         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
19542         * lib/xalloc-oversized.h (xalloc_oversized):
19543         Do not use overflow builtins if Clang.
19545         dfa: fix 'return' typo
19546         Problem reported by Nelson H. F. Beebe.
19547         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
19549 2017-01-05  Pádraig Brady  <P@draigBrady.com>
19551         parse-datetime: fix generated paths for coverage files
19552         * modules/parse-datetime: Adjust the paths for parse-datetime.y
19553         within parse-datetime.c, so that gcc generates appropriate .gcno
19554         files, allowing lcov to proceed without error.  Previously it
19555         would error trying to find "lib/lib/parse-datetime.y".
19557 2017-01-05  Pádraig Brady  <P@draigBrady.com>
19559         maint.mk: support parallel execution of coverage
19560         * top/maint.mk (coverage): Run dependencies serially,
19561         thus supporting parallel processing of each one,
19562         particularly build-coverage, which builds and runs tests.
19564 2017-01-05  Bruno Haible  <bruno@clisp.org>
19566         lock tests: Prefer semaphore over mutex.
19567         * tests/test-lock.c (USE_SEMAPHORE): New constant.
19568         (struct atomic_int, init_atomic_int, get_atomic_int_value,
19569         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
19570         Suggested by Torvald Riegel <triegel@redhat.com>.
19572 2017-01-05  Bruno Haible  <bruno@clisp.org>
19574         lock: Provide guarantee to avoid writer starvation for rwlocks.
19575         The rationale is: 1) Read-preferring read-write locks are prone to
19576         writer starvation if the number of reader threads multiplied by the
19577         percentage of time they have the lock held is too high. 2) Write-
19578         preferring read-write locks are the only reliable way to avoid this.
19579         3) There have been reports of 'test-lock' hanging on glibc systems
19580         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
19581         and glibc indeed implements read-preferring rwlocks by default, see
19582         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
19583         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
19584         * m4/pthread_rwlock_rdlock.m4: New file.
19585         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
19586         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
19587         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
19588         of rwlock initialization on glibc systems without
19589         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
19590         of rwlocks altogether on non-glibc systems without
19591         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
19592         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
19593         * lib/glthread/lock.c [USE_POSIX_THREADS]
19594         (glthread_rwlock_init_for_glibc): New function.
19595         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
19596         comment.
19597         [USE_PTH_THREADS]: New implementation of rwlocks.
19598         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
19599         readers.
19600         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
19601         (Depends-on): Add 'extensions'.
19602         * tests/test-rwlock1.c: New file.
19603         * lock-tests (Files): Add it.
19604         (Depends-on): Add usleep.
19605         (Makefile.am): Add test-rwlock1 to the tests.
19607 2017-01-05  Bruno Haible  <bruno@clisp.org>
19609         thread: Fix pth port.
19610         * lib/glthread/thread.h (pth_init): Declare weak.
19611         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
19612         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
19613         function.
19615 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
19617         parse-datetime: fix debug message on lone year number
19618         Input dates such as
19619           date -d "Apr 11 22:59:00 2011"
19620         are parsed as date (Apr 11, with default year 2016), then time, then a
19621         number (2011). Based on the combination of previously seen tokens,
19622         'digits_to_date_time' determines 2011 to be a year value.
19623         This fixes the debug messages to correctly show the updated year.
19624         Before:
19625             $ date --debug -d 'Apr 11 22:59:00 2011'
19626             date: parsed date part: (Y-M-D) 2016-04-11
19627             date: parsed time part: 22:59:00
19628             date: parsed number part: today/this/now
19629         After:
19630             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
19631             date: parsed date part: (Y-M-D) 2016-04-11
19632             date: parsed time part: 22:59:00
19633             date: parsed number part: year: 2011
19634         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
19635         'debug_year_seen' member fields.
19636         (digits_to_date_time): Update 'year_seen' as needed.
19637         (debug_print_current_time): Inform about year updates.
19638         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
19640         parse-datetime: fix local timezone debug messages
19641         "Local timezones" are strings that affect only DST relative to the
19642         default timezone. The debug messages in parse-datetime.y printed
19643         wrong information when encountering local timezones.
19644         Examples:
19645         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
19646              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
19647              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
19648         When the default timezone relates to the zone strings, EET/EEST are
19649         parsed as local timezones (tLOCAL_ZONE), and only change the DST
19650         value (0/1, respectively):
19651              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
19652              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
19653         * lib/parse-datetime.y (debug_print_current_time): If local timezone
19654         was seen, inform about DST change, don't print actual timezone.
19655         (debug_strfdatetime): If local timezone was seen, use default timezone
19656         (and adjust as needed) instead of using incorrect timezone.
19657         (parse_datetime2): Use correct time-zone source string, and adjust
19658         default timezone as needed.
19660         parse-datetime: add debug warning about DST changes
19661         Incorrect date arithmetic due to daylight saving time (DST) are a
19662         common (false) bug report in coreutils.
19663         Detect two such cases and print a warning:
19664         1. year/month/day adjustments (performed on 'struct tm'),
19665            where 'mktime' returns a different isdst value.
19666         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
19667            where the result of 'localtime(3)' on the value will return a
19668            different isdst value.
19669         Note: DST changes could be harmless or unnoticeable.
19670         Examples (with 'TZ=America/New_York'):
19671         Unnoticeable: result is 2016-Dec-14
19672            $ date -d '2016-06-15 EDT + 6 months' +%b
19673            Dec
19674         Unnoticeable: result is 2016-Dec-15 11:00:00
19675            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
19676            2016-12-15
19677         This is unexpected:
19678            $ date -d '2016-06-01 EDT + 6 months' +%F
19679            2016-11-30
19680         The new debug warnings will show:
19681            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
19682            ...
19683            date: warning: daylight saving time changed after date adjustment
19684            ...
19685         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
19686         print an appropriate warning message.
19688         parse-datetime: add debug warning about date arithmetic
19689         Date arithmetic are done directly on the fields of 'struct tm',
19690         which can result in invalid dates. Normalization with 'mktime(3)'
19691         will then produce a different date - which might cause unexpected
19692         results.
19693         Examples:
19694           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
19695           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
19696         Note that date normalization is not inherently wrong and not rejected,
19697         as it has legitimate uses:
19698           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
19699         If the user asked to adjust months but 'mday' changed,
19700         or user asked to adjust years but 'month' changed - warn about it.
19701             $ ./src/date --debug -d '2016-10-31 - 1 month'
19702             ...
19703             date: warning: when adding relative months/years, \
19704                            it is recommended to specify the 15th of the month
19705             ...
19706             date: warning: month/year adjustment resulted in shifted dates:
19707             date:      adjusted Y M D: 2016 09 31
19708             date:    normalized Y M D: 2010 10 01
19709             ...
19710         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
19711         a warning message. Improve recommendation of when to use 15 of the
19712         month or noon for date arithmetic.
19714         parse-datetime: fix debug message of relative part after timezone
19715         Relative part (e.g '+8 days') after a timezone string was not
19716         reported (was only reported after a timezone number). Due to the
19717         parser's structure, timezone strings with numbers were handled
19718         separately.
19719         before:
19720              # Timezone number + relative part: OK
19721              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
19722              ...
19723              date: parsed relative part: -8 day(s)
19724              # Timezone string + relative part: missing
19725              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
19726              [ missing message ]
19727         After: messages are printed in both cases.
19728         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
19730         parse-datetime: fix incorrect debug message on lone number
19731         A lone number is an absolute value, not a relative time part.
19732         before:
19733            $ date --debug -d '20130101'
19734            date: parsed number part: today/this/now
19735         After:
19736            $ ./src/date --debug -d '20130101'
19737            date: parsed number part: (Y-M-D) 2013-01-01
19738         * lib/parse-datetime.y ('item'/'number' tokens): Call
19739         'debug_print_current_time' instead of 'debug_print_relative_time'.
19741 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19743         doc: modernize for C11 etc.
19744         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
19745         for C11, MinGW, etc.  This responds to Paul Smith's question in:
19746         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
19748         dfa: prefer functions to FETCH_WC macro
19749         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
19750         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
19751         wint_t result into DFA->lex.wctok instead of to a separate arg.
19752         All callers changed.  Move more local decls closer to where
19753         they're used.
19755         dfa: narrow more local var scopes
19756         * lib/dfa.c: Move more local decls to be more local.
19758         dfa: remove duplicate assignment
19759         Problem reported by Bruno Haible in:
19760         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
19761         * lib/dfa.c (parse_bracket_exp): Simplify.
19763 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19765         dfa: simplify constraint-dependency checking
19766         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
19767         (prev_other_constraint): Remove.
19768         (prev_newline_dependent, prev_letter_dependent):
19769         Simplify, to avoid an unnecessary bitwise AND operation.
19771         dfa: prefer functions and constants to macros
19772         * lib/dfa.c: Prefer constants to macros where either will do.
19773         (streq, isasciidigit, newline_constraint)
19774         (letter_constraint, other_constraint, succeeds_in_context)
19775         (prev_newline_constraint, prev_letter_constraint)
19776         (prev_other_constraint, prev_newline_dependent)
19777         (prev_letter_dependent, accepting, accepts_in_context):
19778         Now static functions instead of function-like macros.
19779         Use lower-case names accordingly.  All uses changed.
19781         dfa: narrow more local var scopes
19782         * lib/dfa.c: Move some more local decls down to nearer where
19783         they're needed.
19785 2016-12-31  Jim Meyering  <meyering@fb.com>
19787         dfa: narrow the scope of many local variables
19788         * lib/dfa.c: Now that we are no longer constrained to c89, move
19789         declarations of many variables (often indices) "down" into the
19790         scope(s) where used or to the point of definition.  This is a
19791         no-semantic-change diff.
19793 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19795         version-etc: new year
19796         * build-aux/gendocs.sh (version):
19797         * doc/gendocs_template:
19798         * doc/gendocs_template_min:
19799         * doc/gnulib.texi:
19800         * lib/version-etc.c (COPYRIGHT_YEAR):
19801         Update copyright dates by hand in templates and the like.
19802         * all files: Run 'make update-copyright'.
19804 2016-12-31  Eric Blake  <eblake@redhat.com>
19806         do-release-commit-and-tag: avoid shell syntax error
19807         * build-aux/do-release-commit-and-tag (curr_br): $branch can
19808         contain spaces when rebasing.
19810         maint.mk: hoist gnulib_dir definition earlier
19811         * top/maint.mk (gnulib_dir): Move near top of file.
19813 2016-12-31  Jim Meyering  <meyering@fb.com>
19815         maint.mk: do not always evaluate intprops-related shell
19816         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
19817         using gnulib_dir undefined (gnulib_dir is defined later in the
19818         file, which will be fixed separately), and besides, there is no
19819         need to incur the cost of this shell invocation for every single
19820         use of this .mk file.  Reported by Eric Blake in
19821         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
19823 2016-12-30  Jim Meyering  <meyering@fb.com>
19825         maint.mk: improve sc_prohibit_intprops_without_use
19826         * top/maint.mk (_intprops_names): Don't hard-code the list of
19827         symbol names.  Instead, derive it on the fly.
19829 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19831         dfa: shorten sbit, success
19832         * lib/dfa.c (struct regex_syntax.sbit):
19833         (struct dfa.success): Use char, not int, for array elements, since
19834         they are all in the range 0..7.
19836         dfa: simplify multibyte_prop etc.
19837         This follows up on a change made when dfa.c was in grep, namely grep
19838         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
19839         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
19840         That earlier simplification allows for some more simplification
19841         and trimming down here.
19842         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
19843         (struct lexer_state): New mamber brack.
19844         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
19845         since they must be in the range 0..3 now.
19846         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
19847         the brack member now supersedes them.
19848         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
19849         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
19850         (dfaparse): Remove unnecessary initializations of already-0 storage.
19851         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
19852         (dfassbuild): No need to clear sup->mbcsets.
19854         dfa: minor performance tweak
19855         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
19857         dfa: wrap charclass inside a struct
19858         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
19859         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
19860         about 5% faster, where list.txt is generated by 'aspell dump
19861         master | head -n 100000 >list.txt'.  See Bug#22239.
19862         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
19863         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
19864         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
19865         Adjust to this, e.g., by using charclass * rather than charclass.
19866         All callers changed as needed.
19867         (copyset): Remove.  All uses changed to simple assignment.
19868         (parse_bracket_exp): Use zeroset instead of memset.
19870 2016-12-30  Jim Meyering  <meyering@fb.com>
19872         maint.mk: update list of intprops.h symbol names
19873         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
19874         This avoids a false failure of the sc_prohibit_intprops_without_use
19875         rule in grep.
19877 2016-12-29  Eric Blake  <eblake@redhat.com>
19879         getopt: fix parallel test failure
19880         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
19881         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
19882         * tests/test-getopt-main.h (main): Use different file names
19883         in case test-getopt-gnu and test-getopt-posix run in parallel.
19885 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19887         xalloc: x2nrealloc check for ptrdiff_t overflow
19888         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
19889         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
19891 2016-12-24  Bruno Haible  <bruno@clisp.org>
19893         lock test: Fix performance problem on multi-core machines.
19894         * tests/test-lock.c (USE_VOLATILE): New macro.
19895         (struct atomic_int): New type.
19896         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
19897         functions.
19898         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
19899         as 'struct atomic_int'.
19900         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
19901         reclock_checker_thread, test_recursive_lock): Use the new functions.
19902         Reported by Eric Blake in
19903         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
19904         and by Pádraig Brady in
19905         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
19907 2016-12-19  Bruno Haible  <bruno@clisp.org>
19909         vma-iter: Fix endless loop on 64-bit Windows.
19910         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
19911         'unsigned long'.
19913 2016-12-19  Bruno Haible  <bruno@clisp.org>
19915         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
19916         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
19917         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
19918         Invoke gt_TYPE_WINT_T instead.
19919         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
19920         * modules/stdint (Files): Add m4/wint_t.m4.
19921         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
19922         * modules/wctype-h (Makefile.am): Likewise.
19923         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
19924         not only on MSVC.
19925         * lib/wctype.in.h (wint_t): Likewise.
19927 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19929         getopt-posix-tests: fix Makefile typo
19930         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
19931         Fix typo: the last ‘_’ was missing in the name.
19932         I suspect that the typo explains this build failure:
19933         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
19934         although I can’t reproduce the problem on Solaris 10 sparc.
19936 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19938         dfa: improve worst-case 'replace' performance
19939         See my note in Bug#22357#71.
19940         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
19941         (merge_constrained): New function, which is like
19942         the old 'merge' function, except with a new argument C2.
19943         Simplify the body by avoiding the need for different sections
19944         of code depending on whether one input is exhausted.
19945         (merge): Use the new function.
19946         (delete): Return the constraint of the deleted position,
19947         not the entire position.  Caller changed.
19948         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
19950 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
19952         dfa: performance improvement for removal of epsilon closure
19953         See Bug#22357#32.
19954         * lib/dfa.c (delete): Use binary search to find deleted index.
19955         (replace): New function.  It replaces a position with the followed set.
19956         (epsclosure): Replace it with a new algorithm.  Update caller.
19958 2016-12-18  Bruno Haible  <bruno@clisp.org>
19960         Split tests for getopt-posix and getopt-gnu.
19961         * tests/test-getopt-posix.c: New file.
19962         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
19963         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
19964         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
19965         GNULIB_TEST_GETOPT_GNU.
19966         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
19967         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
19968         (Makefile.am): Test test-getopt-posix instead of test-getopt.
19969         * modules/getopt-gnu-tests: New file.
19970         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
19972 2016-12-18  Bruno Haible  <bruno@clisp.org>
19974         posix-modules: Add options for specific platforms.
19975         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
19976         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
19977         Invoke func_tmpdir. Filter out the excludes.
19979 2016-12-18  Bruno Haible  <bruno@clisp.org>
19981         getopt: Fix link error for users of getopt() in <unistd.h>.
19982         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
19983         __need_getopt is defined. Undefine all macros before defining them.
19984         * modules/getopt (Include): Clarify that including <unistd.h> is also
19985         OK.
19986         * tests/test-getopt.c: Add comment.
19988 2016-12-17  Bruno Haible  <bruno@clisp.org>
19990         getaddrinfo tests: Avoid compilation error on MSVC.
19991         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
19992         getaddrinfo on native Windows.
19994 2016-12-17  Bruno Haible  <bruno@clisp.org>
19996         getlogin, getlogin_r: Fix link errors on MSVC.
19997         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
19998         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
19999         (Link): New section.
20000         * modules/getlogin_r (Files): Add m4/getlogin.m4.
20001         (configure.ac): Require gl_LIB_GETLOGIN.
20002         (Link): New section.
20003         * NEWS: Mention the new link requirements.
20004         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
20005         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
20007 2016-12-17  Bruno Haible  <bruno@clisp.org>
20009         Un-deprecate the 'progname' module.
20010         * NEWS: Describe the appropriate use-cases of 'progname' versus
20011         'getprogname'. Based on discussion summary at
20012         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
20014 2016-12-17  Bruno Haible  <bruno@clisp.org>
20016         Reorganize NEWS a bit.
20017         * NEWS: Move some not so important changes away from section
20018         "Important Notes".
20020 2016-12-17  Bruno Haible  <bruno@clisp.org>
20022         tanhf: Avoid redefinition error on MSVC.
20023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
20024         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
20025         may be defined as an inline function.
20026         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
20027         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
20029 2016-12-17  Bruno Haible  <bruno@clisp.org>
20031         tanf: Avoid redefinition error on MSVC.
20032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
20033         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
20034         may be defined as an inline function.
20035         * modules/math (Makefile.am): Substitute REPLACE_TANF.
20036         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
20038 2016-12-17  Bruno Haible  <bruno@clisp.org>
20040         sqrtf: Avoid redefinition error on MSVC.
20041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
20042         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
20043         may be defined as an inline function.
20044         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
20045         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
20047 2016-12-17  Bruno Haible  <bruno@clisp.org>
20049         sinhf: Avoid redefinition error on MSVC.
20050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
20051         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
20052         may be defined as an inline function.
20053         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
20054         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
20056 2016-12-17  Bruno Haible  <bruno@clisp.org>
20058         sinf: Avoid redefinition error on MSVC.
20059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
20060         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
20061         may be defined as an inline function.
20062         * modules/math (Makefile.am): Substitute REPLACE_SINF.
20063         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
20065 2016-12-17  Bruno Haible  <bruno@clisp.org>
20067         logf: Avoid redefinition error on MSVC.
20068         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
20069         may be defined as an inline function.
20071 2016-12-17  Bruno Haible  <bruno@clisp.org>
20073         log10l: Avoid redefinition error on MSVC.
20074         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
20075         may be defined as an inline function.
20077 2016-12-17  Bruno Haible  <bruno@clisp.org>
20079         log10f: Avoid redefinition error on MSVC.
20080         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
20081         may be defined as an inline function.
20083 2016-12-17  Bruno Haible  <bruno@clisp.org>
20085         hypotl: Avoid redefinition error on MSVC.
20086         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
20087         may be defined as an inline function.
20089 2016-12-17  Bruno Haible  <bruno@clisp.org>
20091         hypotf: Avoid redefinition error on MSVC.
20092         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
20093         may be defined as an inline function.
20095 2016-12-17  Bruno Haible  <bruno@clisp.org>
20097         fmodl: Avoid redefinition error on MSVC.
20098         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
20099         may be defined as an inline function.
20101 2016-12-17  Bruno Haible  <bruno@clisp.org>
20103         fmodf: Avoid redefinition error on MSVC.
20104         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
20105         may be defined as an inline function.
20107 2016-12-17  Bruno Haible  <bruno@clisp.org>
20109         expf: Avoid redefinition error on MSVC.
20110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
20111         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
20112         may be defined as an inline function.
20113         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
20114         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
20116 2016-12-17  Bruno Haible  <bruno@clisp.org>
20118         coshf: Avoid redefinition error on MSVC.
20119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
20120         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
20121         may be defined as an inline function.
20122         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
20123         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
20125 2016-12-17  Bruno Haible  <bruno@clisp.org>
20127         cosf: Avoid redefinition error on MSVC.
20128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
20129         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
20130         may be defined as an inline function.
20131         * modules/math (Makefile.am): Substitute REPLACE_COSF.
20132         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
20134 2016-12-17  Bruno Haible  <bruno@clisp.org>
20136         atan2f: Avoid redefinition error on MSVC.
20137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
20138         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
20139         may be defined as an inline function.
20140         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
20141         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
20143 2016-12-17  Bruno Haible  <bruno@clisp.org>
20145         atanf: Avoid redefinition error on MSVC.
20146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
20147         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
20148         may be defined as an inline function.
20149         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
20150         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
20152 2016-12-17  Bruno Haible  <bruno@clisp.org>
20154         asinf: Avoid redefinition error on MSVC.
20155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
20156         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
20157         may be defined as an inline function.
20158         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
20159         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
20161 2016-12-17  Bruno Haible  <bruno@clisp.org>
20163         acosf: Avoid redefinition error on MSVC.
20164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
20165         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
20166         may be defined as an inline function.
20167         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
20168         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
20170 2016-12-17  Bruno Haible  <bruno@clisp.org>
20172         Avoid redefinition errors on MSVC.
20173         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
20174         the function may be defined as an inline function.
20175         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
20176         the function may be defined as an inline function.
20178 2016-12-17  Bruno Haible  <bruno@clisp.org>
20180         Avoid redefinition errors on MSVC.
20181         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
20182         * lib/unistd.in.h: Include <stdio.h> when necessary.
20184 2016-12-17  Bruno Haible  <bruno@clisp.org>
20186         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
20187         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
20188         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
20189         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
20190         WINT_MAX.
20192 2016-12-17  Bruno Haible  <bruno@clisp.org>
20194         Avoid autoconf warning.
20195         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
20196         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
20198 2016-12-17  Bruno Haible  <bruno@clisp.org>
20200         fpending: Revert workaround against Emacs bug.
20201         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
20202         The Emacs bug is fixed by Eli Zaretskii in
20203         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
20205 2016-12-17  Bruno Haible  <bruno@clisp.org>
20207         getlogin_r tests: Port to mingw.
20208         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
20209         regression introduced on 2014-05-19.
20211 2016-12-17  Bruno Haible  <bruno@clisp.org>
20213         getlogin: Port to newer mingw.
20214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
20215         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
20216         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
20217         HAVE_GETLOGIN.
20218         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
20219         HAVE_GETLOGIN.
20220         * doc/posix-functions/getlogin.texi: Mention the issue.
20221         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
20222         regression introduced on 2014-05-14.
20224 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20226         builtin-expect: improve port to IBM XL C
20227         Problem reported for z/OS by Daniel Richard G. in:
20228         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
20229         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
20230         Test for <builtins.h> directly.
20232         builtin-expect: port to IBM XL C
20233         Problem reported for z/OS by Daniel Richard G. in:
20234         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
20235         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
20236         Also allow __builtin_expect defined via a standard include file.
20238         regex: fix dependency
20239         Problem reported by Bruno Haible in:
20240         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
20241         * modules/regex: Depend on builtin-expect.
20243         builtin-expect: new module
20244         Fix fnmatch to use it.
20245         Problem reported for z/OS by Daniel Richard G.
20246         * lib/fnmatch.c (__builtin_expect):
20247         * lib/glob.c (__builtin_expect):
20248         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
20249         * lib/memmem.c (__builtin_expect) [!_LIBC]:
20250         * lib/scandir.c (__builtin_expect):
20251         * lib/strstr.c (__builtin_expect) [!_LIBC]:
20252         Remove macro; config.h now does this.
20253         * lib/gl_anytreehash_list1.h (add_to_bucket):
20254         * lib/regex_internal.h (BE):
20255         Assume __builtin_expect.
20256         * m4/builtin-expect.m4, modules/builtin-expect: New files.
20257         * modules/avltreehash-list, modules/fnmatch, modules/glob:
20258         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
20259         * modules/scandir, modules/strstr-simple:
20260         Depend on builtin-expect.
20262 2016-12-15  Bruno Haible  <bruno@clisp.org>
20264         init.sh: Add possibility to not delete temporary files.
20265         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
20266         to yes, don't erase the temporary directory.
20268 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
20270         regex: fix integer-overflow bug in never-used code
20271         Problem reported by Clément Pit–Claudel in:
20272         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
20273         * lib/regex_internal.h: Include intprops.h.
20274         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
20275         behavior on integer overflow.
20276         * modules/regex (Depends-on): Add intprops.
20278         fpending: fix port to MinGW on Emacs
20279         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
20280         Problem reported by Eli Zaretskii in:
20281         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
20282         Is Plan 9 still a valid porting target, anyway?
20284 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
20286         safe-alloc: use xalloc-oversized
20287         * lib/safe-alloc.c: Include xalloc-oversized.h.
20288         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
20289         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
20291         xalloc: do not exceed PTRDIFF_MAX
20292         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
20293         xalloc_oversized check, since objects larger than PTRDIFF_MAX
20294         bytes have pointer-subtraction problems.
20296         malloca: do not exceed PTRDIFF_MAX
20297         * lib/malloca.h: Include xalloc-oversized.
20298         (nmalloca): Use xalloc_oversized instead of rolling our own.
20299         * modules/malloca (Depends-on):
20300         * modules/relocatable-prog-wrapper (Depends-on):
20301         Add xalloc-oversized.
20303         quotearg: pacify GCC better
20304         * modules/quotearg (Depends-on): Add minmax, stdint.
20305         * lib/quotearg.c: Include minmax.h, stdint.h.
20306         (nslots): Now int, as there seems little point to going to extra
20307         work merely to support the INT_MAX slot, which nobody ever uses.
20308         (quotearg_n_options): Redo size-overflow checks to pacify GCC
20309         and to catch (mostly-theoretical) ptrdiff_t problems too.
20310         This can be done via one comparison.
20312 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
20314         xalloc-oversized: check for PTRDIFF_MAX too
20315         This avoids undefined behavior when subtracting pointers to
20316         objects containing more than PTRDIFF_MAX bytes.
20317         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
20318         Also return 1 if the result would exceed PTRDIFF_MAX>
20319         * modules/xalloc-oversized (Depends-on):
20320         Add stdint.
20322         dfa: fix glitches in previous commit
20323         Sorry, I don't know how I managed to commit the wrong version.
20324         * lib/dfa.c (MIN): Move up.
20325         (xpalloc): Now static.
20327         dfa: fix some unlikely integer overflows
20328         I found these while reviewing the recent Coverity-related fix.
20329         This patch changes part of dfa.c to prefer ptrdiff_t instead of
20330         size_t for object counts.  Using ptrdiff_t is the style typically
20331         used in Emacs; although it wastes a sign bit as sizes can never be
20332         negative, it makes -fsanitize=undefined more likely to catch
20333         integer overflows in index calculation, and nowadays the upside is
20334         typically more important than the downside.  Although perhaps the
20335         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
20336         of dfa.c already does, since it uses state_num which is signed),
20337         that is a bigger change and is not needed to fix the bugs I found.
20338         * lib/dfa.c: Include stdint.h and intprops.h.
20339         (TOKEN_MAX): New macro.
20340         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
20341         (charclass_index, parse_bracket_exp, addtok, insert, merge)
20342         (realloc_trans_if_necessary, free_mbdata):
20343         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
20344         This is safe because xpalloc checks that the sizes do not exceed
20345         either SIZE_MAX or PTRDIFF_MAX.
20346         (xpalloc): New function, mostly taken from Emacs.
20347         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
20348         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
20349         (charclass_index): Check for integer overflow in computing
20350         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
20351         added to it later.
20352         (alloc_position_set): Check for integer overflow.  On typical
20353         platforms this check has zero overhead, since the constant
20354         expression is false.
20355         (realloc_trans_if_necessary):
20356         Remove assertion, which I hope Coverity no longer needs.
20358         * modules/dfa (Depends-on): Add intprops, stdint.
20360 2016-12-12  Jim Meyering  <meyering@fb.com>
20362         dfa: add an assertion to avoid coverity false positive
20363         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
20364         warned that "newalloc1 - 2" could overflow.
20366 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
20368         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
20369         * dfa.h (DFA_CASE_FOLD): Remove.
20370         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
20372 2016-12-13  John W. Eaton  <gnu@jweaton.org>
20374         link: fix test to declare use of rename()
20375         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
20376         -Werror=implicit-function-declaration
20378 2016-12-12  Bruno Haible  <bruno@clisp.org>
20380         fpending: Port to native Windows with MSVC.
20381         * lib/fpending.c: Include stdio-impl.h.
20382         (__fpending): Include all known implementations. Err out if it's not
20383         ported.
20384         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
20385         * modules/fpending (Files): Add lib/stdio-impl.h.
20386         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
20388 2016-12-12  Bruno Haible  <bruno@clisp.org>
20390         stdioext: Port to native Windows with MSVC.
20391         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
20392         (struct _gl_real_FILE): New type.
20393         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
20394         Windows.
20395         * lib/fbufmode.c (fbufmode): Add code for native Windows.
20396         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
20397         other SystemV derived implementations.
20398         * lib/fpurge.c (fpurge): Likewise.
20399         * lib/freadable.c (freadable): Likewise.
20400         * lib/freadahead.c (freadahead): Likewise.
20401         * lib/freading.c (freading): Likewise.
20402         * lib/freadptr.c (freadptr): Likewise.
20403         * lib/freadseek.c (freadptrinc): Likewise.
20404         * lib/fseeko.c (fseeko): Likewise.
20405         * lib/fseterr.c (fseterr): Likewise.
20406         * lib/fwritable.c (fwritable): Likewise.
20407         * lib/fwriting.c (fwriting): Likewise.
20408         Reported by Gisle Vanem <gvanem@yahoo.no>.
20410 2016-12-11  Jim Meyering  <meyering@fb.com>
20412         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
20413         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
20414         to work with most shells, but not with the one provided by many
20415         Solaris 10 systems, so running configure with such a /bin/sh evokes
20416         e.g., "./configure: syntax error at line 33602: `(' unexpected".
20417         Reported by Assaf Gordon in
20418         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
20420 2016-12-10  Bruno Haible  <bruno@clisp.org>
20422         threadlib: Optimize out runtime test on Solaris >= 10.
20423         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
20424         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
20425         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
20427 2016-12-10  Bruno Haible  <bruno@clisp.org>
20429         stdint: Update doc about Solaris 9.
20430         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
20432 2016-12-09  Bruno Haible  <bruno@clisp.org>
20434         c-ctype tests: Fix link error on Solaris 9.
20435         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
20436         Reported at <https://savannah.gnu.org/bugs/?46827>.
20438 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
20440         dfa: fix performance bug that recomputes trans
20441         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
20442         25 on-demand changes.  The bug caused build_state to reset all
20443         d->trans elements to -2 even when d->trans was already non-null.
20444         Use C99 style decls after statements in this function.
20446         same-inode: port to MinGW
20447         Here st_ino is always 0, so change the definition of SAME_INODE so
20448         that 1 means the two files are the same, 0 with st_ino != 0 means
20449         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
20450         reported by Bruno Haible (Bug#25146).
20451         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
20452         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
20454 2016-12-04  Bruno Haible  <bruno@clisp.org>
20456         javacomp-script: Support Java 7 and 8.
20457         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
20458         target-version 1.7, 1.8.
20460 2016-12-02  Daiki Ueno  <ueno@gnu.org>
20462         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
20463         GPLv2" rewriting.
20465 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
20467         * gnulib-tool (func_import): Adhere to the license guideline when
20468         rewriting the license text to "LGPLv3+ or GPLv2":
20469         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
20471 2016-12-02  Bruno Haible  <bruno@clisp.org>
20473         localcharset: Avoid theoretical buffer overrun.
20474         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
20475         return value from setlocale if it would lead to a buffer overrun.
20477 2016-12-01  Bruno Haible  <bruno@clisp.org>
20479         Relicense some modules under LGPLv2+.
20480         Kevin Cernekee's approval is in
20481         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
20482         * modules/fseterr (License): Change to LGPLv2+.
20483         * modules/mbchar (License): Likewise.
20484         * modules/mbiter (License): Likewise.
20485         * modules/mbsnlen (License): Likewise.
20486         * modules/wcwidth (License): Likewise.
20488 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20490         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
20491         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
20492         OS/2 kLIBC.
20494 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20496         alphasort, scandir: Port to OS/2 kLIBC
20497         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
20498         declaration.
20499         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
20501 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20503         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
20504         * lib/relocatable.c (relocate): Do not touch pathname if it is started
20505         with '/@unixroot'.
20507 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
20509         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
20510         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
20511         OS/2 kLIBC unless TCPV40HDRS is defined.
20513 2016-11-29  Jim Meyering  <meyering@fb.com>
20515         dfa: avoid new infinite loop
20516         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
20517         * lib/dfa.c (dfastate): When constructing a new state table, we could
20518         initially declare that we had found a match, and later find that
20519         constraints eliminate that possibility, yet continue to use the
20520         now stale "matched" indicator.  That would lead to an infinite loop.
20521         The solution is to update "matched" when necessary.
20522         Introduced by commit v0.1-983-g403adf1.
20524 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
20526         dfa: avoid match middle in multibyte character
20527         * lib/dfa.c (transit_state): If fails in matching single byte characters
20528         on a state including period expression in non-UTF8 multibyte locales,
20529         skip trailing bytes.
20530         (dfa_supported): Revert previous change.
20532 2016-11-27  Jim Meyering  <meyering@fb.com>
20534         dfa: avoid false match in non-UTF8 multibyte locales
20535         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
20536         as "not supported" so that callers will resort to using regex-based
20537         matcher.  This will surely hurt performance, but correctness trumps
20538         performance here, and the affected locales are less and less relevant,
20539         these days.  See grep's bug report https://bugs.gnu.org/24975.
20541 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
20543         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
20544         * lib/ptsname_r.c: Include the appropriate headers.
20545         [__sun]: Delete sys/sysmacros.h include.
20546         [_AIX || __osf__]: Likewise.
20547         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
20549 2016-11-27  Pádraig Brady  <P@draigBrady.com>
20551         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
20552         * lib/md4.c (md4_process_bytes): The existing define is made internal
20553         in recent versions of glibc, so also use this new public define.
20554         * lib/md5.c (md5_process_bytes): Likewise.
20555         * lib/sha1.c (sha1_process_bytes): Likewise.
20556         * lib/sha256.c (sha256_process_bytes): Likewise.
20557         * lib/sha512.c (sha512_process_bytes): Likewise.
20559 2016-11-27  Pádraig Brady  <P@draigBrady.com>
20561         maint: use a more standard return from mbrtowc test
20562         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
20563         from the test program as this often indicates an
20564         unhandled case in the test program.
20565         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
20566         (gl_MBRTOWC_SANITYCHECK): Likewise.
20567         (gl_MBRTOWC_NULL_ARG2): Likewise.
20568         (gl_MBRTOWC_NUL_RETVAL): Likewise.
20570 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
20572         freopen: work around glibc bug with closed fd
20573         Work around glibc bug#15589, where freopen mishandles the case
20574         where stdin etc. are already closed.
20575         * doc/posix-functions/freopen.texi (freopen): Document the bug.
20576         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
20577         instead of __need_FILE, as the latter does not work with glibc.
20578         Include <fcntl.h>, for open flags.
20579         (rpl_freopen): Work around glibc bug.
20580         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
20581         * modules/freopen (Depends-on): Add fcntl-h.
20582         * tests/test-freopen.c (main): Test for bug.
20584 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20586         fnmatch: fix typo introduced on 2016-08-17
20587         This fixes the port to non-GCC compilers that lack __builtin_expect.
20588         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
20590         dfa: simplify with new function fillset
20591         * lib/dfa.c (fillset): New function.
20592         Use it for clarity when applicable.
20594         dfa: fix glitches with on-demand states
20595         Also, adjust commentary to better match new code.
20596         Some of these glitches predate the recent change.
20597         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
20598         only non-initial states.
20599         (dfastate): Rename locals to better match new roles.
20600         Move them into nested scopes if this is easy.
20601         Omit unnecessary calls to zeroset.
20602         Simplify test for whether to throw in the positions of state 0.
20603         Omit C99-ism (decl after statement) since Gawk still wants C89.
20604         (build_state): Omit unnecessary test and assignment.
20605         Fix some confusion that counted transition tables inaccurately
20606         and could cause a memory leak.
20607         (dfaexec_main): Redo to make it clearer to the compiler that
20608         -1 and -2 are the only negative state numbers here.
20610 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
20612         dfa: addition of new state on demand
20613         * src/dfa.c (dfastate): Add argument UC, the current input character.
20614         Fill only a group including the character in transition table.
20615         (realloc_trans_if_necessary): Add the dummy state which means that a
20616         transition table is assigned but the next state is not assigned.
20617         (build_state): Return the next state.  All callers updated.
20618         (transit_state_singlebyte): If we get the dummy state,
20619         fill the transition table.
20620         (dfaexec_main): Handle the dummy state.
20621         (free_mbdata, dfafree): Consider the dummy state.
20623 2016-11-24  Daiki Ueno  <ueno@gnu.org>
20625         srclist: sync with released gettext
20626         * config/srclist.txt: Set "release" option to the files under
20627         $GETTEXT.
20629 2016-11-24  Daiki Ueno  <ueno@gnu.org>
20631         srclist: add "release" option
20632         * config/srclist.txt: Change the format so that the first column
20633         of each line points to the top-level directory of the source
20634         archive.
20635         * config/srclist-update: Accept "release" option that checks files
20636         from the most recently tagged revision in the source archive.
20638 2016-11-21  Bruno Haible  <bruno@clisp.org>
20640         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
20641         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
20642         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
20643         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
20644         Inline and remove member function 'rpl ()' of the wrapper struct.
20646 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20648         dfa: fix logic typo
20649         Problem reported by Stephane Chazelas (Bug#24973).
20650         * lib/dfa.c (using_simple_locale): Fix typo that caused some
20651         non-simple locales like fr_FR to be treated as simple.
20653 2016-11-20  Jim Meyering  <meyering@fb.com>
20655         fix test driver leaks: exclude, malloc, realloc
20656         * tests/test-exclude.c (main): Fix trivial leak.
20657         * tests/test-malloc-gnu.c (main): Likewise.
20658         * tests/test-realloc-gnu.c (main): Likewise.
20659         With these changes, grep's tests are now leak free.
20660         I.e., running them with ASAN elicits no failure:
20661           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
20662             AM_LDFLAGS='-fsanitize=address -static-libasan' check
20664 2016-11-11  Bruno Haible  <bruno@clisp.org>
20666         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
20667         * modules/libunistring: (License): Change from LGPL to
20668         "LGPLv3+ or GPLv2".
20669         * modules/libunistring-optional: Likewise.
20670         * modules/unicase/*: Likewise.
20671         * modules/uniconv/*: Likewise.
20672         * modules/unictype/*: Likewise.
20673         * modules/unigbrk/*: Likewise.
20674         * modules/unilbrk/*: Likewise.
20675         * modules/uniname/*: Likewise.
20676         * modules/uninorm/*: Likewise.
20677         * modules/unistdio/*: Likewise.
20678         * modules/unistr/*: Likewise.
20679         * modules/uniwbrk/*: Likewise.
20680         * modules/uniwidth/*: Likewise.
20682 2016-11-12  Bruno Haible  <bruno@clisp.org>
20684         Relicense some modules under LGPLv2+.
20685         Paul Eggert's approval is in
20686         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
20687         Eric Blake's approval is in
20688         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
20689         Ludovic Courtès's approval is in
20690         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
20691         * modules/isnand-nolibm (License): Change to LGPLv2+.
20692         * modules/isnanf-nolibm (License): Likewise.
20693         * modules/isnanl-nolibm (License): Likewise.
20695 2016-11-19  Bruno Haible  <bruno@clisp.org>
20697         Relicense some modules under LGPLv2+.
20698         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
20699         modules/vasnprintf.
20700         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
20701         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
20702         All other significant changes to the files in lib/ of these modules
20703         are from me.
20704         * modules/memcmp2 (License): Change to LGPLv2+.
20705         * modules/amemxfrm (License): Likewise.
20706         * modules/fpieee (License): Likewise.
20707         * modules/fpucw (License): Likewise.
20708         * modules/frexp-nolibm (License): Likewise.
20709         * modules/frexpl-nolibm (License): Likewise.
20710         * modules/printf-frexp (License): Likewise.
20711         * modules/printf-frexpl (License): Likewise.
20712         * modules/printf-safe (License): Likewise.
20713         * modules/signbit (License): Likewise.
20715 2016-11-17  Bruno Haible  <bruno@clisp.org>
20717         Enable Unicode decoder safety unconditionally.
20718         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
20719         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
20720         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20721         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20722         * lib/unistr/u8-prev.c (u8_prev): Likewise.
20723         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
20724         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
20725         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
20726         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
20727         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
20728         * lib/unistr/u16-prev.c (u16_prev): Likewise.
20729         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
20730         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
20731         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
20732         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
20733         * lib/unistr/u32-prev.c (u32_prev): Likewise.
20734         * lib/unistr/u32-next.c (u32_next): Likewise.
20735         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
20736         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
20737         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20738         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
20739         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
20740         CONFIG_UNICODE_SAFETY tests unconditionally.
20741         * tests/unistr/test-u32-mblen.c (main): Likewise.
20742         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
20743         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
20744         * tests/unistr/test-u32-next.c (main): Likewise.
20745         * tests/unistr/test-u32-strmblen.c (main): Likewise.
20746         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
20747         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
20748         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
20749         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
20750         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20751         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
20752         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
20753         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
20754         * lib/unistr/u16-check.c (u16_check): Update comment.
20755         * NEWS: Mention the changes that callers should be aware of.
20757 2016-11-19  Bruno Haible  <bruno@clisp.org>
20759         relocatable-prog-wrapper: Fix breakage on Cygwin.
20760         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
20761         (Depends-on): Remove intprops.
20762         * lib/relocwrapper.c: Update dependency tree.
20763         (strerror): Undefine.
20764         * build-aux/install-reloc (func_create_wrapper): Do not compile
20765         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
20767 2016-11-19  Bruno Haible  <bruno@clisp.org>
20769         strerror: Make it compile in C++ mode.
20770         * lib/strerror.c (strerror): Ignore the return value of memcpy().
20772 2016-11-15  Pedro Alves  <palves@redhat.com>
20774         sys_time: add gnulib::timeval for C++
20775         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
20776         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
20777         timeval macro.
20779 2016-11-14  Pedro Alves  <palves@redhat.com>
20781         snippet/c++defs: fix real-floating arg functions in C++ mode
20782         Also, define isfinite, isinf, isnan, signbit in the gnulib
20783         namespace instead of in the global namespace.
20784         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
20785         (_GL_END_NAMESPACE): New.
20786         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
20787         (isfinite, isinf, isnan, signbit) [__cplusplus &&
20788         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
20789         instead of in the global namespace.
20790         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
20791         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
20792         of in the global namespace.
20794 2016-11-13  Jim Meyering  <meyering@fb.com>
20796         strftime: don't use __THROW
20797         Each use of __THROW would provoke this from gcc-7-to-be:
20799           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
20800             on unit local functions [-Wattributes]
20801           static int iso_week_days (int, int) __THROW;
20802           ^~~~~~
20803         * lib/strftime.c (__THROW): Don't define.
20804         Remove each use of __THROW.
20805         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
20806         (tm_diff, iso_week_days, __strftime_internal): Likewise.
20808 2016-11-14  Paul Eggert  <eggert@union>
20810         obstack: port to gcc -fcheck-pointer-bounds
20811         Problem found by 'make check' failure on bleeding-edge coreutils
20812         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
20813         6.2.0-5ubuntu12), configured via "./configure
20814         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
20815         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
20816         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
20817         New macro, copied from fts_.h.
20818         (struct _obstack_chunk.contents): Use it.
20820 2016-11-14  Eric Blake  <eblake@redhat.com>
20822         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
20823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
20824         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
20826 2016-11-14  Pádraig Brady  <P@draigBrady.com>
20828         strptime: fix compile error in recent change
20829         * lib/strptime.c (__strptime_internal): Fix ported code.
20831 2016-11-11  Bruno Haible  <bruno@clisp.org>
20833         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
20834         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
20835         (func_import): Extend determination of license_incompatibilities.
20836         (func_create_testdir): Extend table of license compatibility. Handle
20837         also the licenses GPLv3+, GPL, LGPLv3+.
20839 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
20841         strftime: tune %q
20842         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
20844         Merge strftime.c changes from glibc
20845         This incorporates:
20846         2007-10-16 [BZ #5184] Add tzset_called argument
20847         2008-06-13 [BZ #6612] pass reference to tzset_called around
20848         2009-10-30 Implement Burmese language locale for Myanmar
20849         2010-01-09 Add support for XPG7 testing
20850         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
20851         2015-10-20 Convert miscellaneous function definitions to prototype style
20852         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
20853         it anyway and this lessens the difference between gnulib and glibc.
20854         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
20855         (__THROW): Define if standard headers do not.
20856         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
20857         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
20858         Declare with __THROW.
20859         (__strftime_internal): Rename from strftime_case_. Add arg for
20860         whether tzset is called.  All uses changed.  Call tzset at most
20861         once.  Allow %OC, for Burmese.
20862         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
20863         Don't assume values are in range.
20865 2016-11-12  Eric Blake  <eblake@redhat.com>
20867         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
20868         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
20869         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
20870         different value.
20872 2006-11-12  Pedro Alves  <palves@redhat.com>
20874         Fix gnulib C++ namespace support and std::frexp
20875         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
20876         _GL_CXXALIASWARN.
20878 2006-11-12  Pedro Alves  <palves@redhat.com>
20880         GNULIB_NAMESPACE::func need not pull in rpl_func
20881         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
20882         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
20883         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
20884         struct instead of a function pointer.
20886 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
20888         manywarnings: fix -Wno-missing-field-initializers detection
20889         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
20890         to be independent of -Wunused-variable.  I.E. ensure the latter
20891         warning doesn't occur so that detection of the former is accurate.
20893 2016-11-05  Pádraig Brady  <pbrady@fb.com>
20895         strftime,strptime: support %q to represent the quarter
20896         * lib/strftime.c (strftime_case_): Add %q case.
20897         * lib/strptime.c (__strptime_internal): Likewise.
20898         * tests/test-strftime.c (quarter_test): A new test case.
20900 2016-11-03  Eric Blake  <eblake@redhat.com>
20902         bootstrap: Fix get_version() for AIX 5.3
20903         * build-aux/bootstrap (get_version): Factor out sed script, since
20904         indented comments choke AIX 5.3 sed.
20905         Reported-by: Michael Felt <aixtools@gmail.com>
20907 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
20909         intprops: port to older XL C
20910         Problem reported by Alexander Samoilov in:
20911         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
20912         http://savannah.nongnu.org/bugs/?49448
20913         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
20914         Define to 1 only for XL C 12.1 or later, since this bug
20915         occurs in XL C for AIX 6.0 but not in 12.1.
20917 2016-11-02  Pádraig Brady  <P@draigBrady.com>
20919         backupfile: initialize default suffix within the implementation
20920         * lib/backupfile.c (find_backup_file_name): Initialize the
20921         global variable here, to simplify usage, and to only call
20922         getenv() when needed.
20924 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20926         futimens: remove FIXME for old Linux kernels
20927         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
20928         this in 2012" FIXME, like that for utimensat.
20930         utimensat: remove FIXME for old Linux kernels
20931         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
20932         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
20933         this in 2012" FIXME, by assuming the file system bug is absent
20934         unless demonstrated to be present.  We no longer need to worry
20935         about Linux kernel 2.6.32 when building with newer kernels.
20937 2016-10-16  Bruno Haible  <bruno@clisp.org>
20939         qsort_r: Fix macrology for platforms that lack the function.
20940         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
20941         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
20942         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
20943         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
20944         not exist.
20945         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
20946         the function exists.
20947         * modules/qsort_r: Add comments.
20949 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20951         sys_types: fix Texinfo typos
20952         * doc/glibc-functions/gnu_dev_major.texi:
20953         * doc/glibc-functions/gnu_dev_makedev.texi:
20954         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
20956 2016-10-26  John David Anglin  <dave.anglin@bell.net>
20958         getprogname: port to HP-UX
20959         See Bug#24805.
20960         * lib/getprogname.c (getprogname) [__hpux]: Port.
20961         * tests/test-getprogname.c (STREQ) [__hpux]:
20962         Special-case for HP-UX limitations on program name length.
20964 2016-10-20  Bruno Haible  <bruno@clisp.org>
20966         Update doc about target platforms.
20967         * doc/gnulib-intro.texi (Target Platforms): Update list.
20969 2016-10-15  Bruno Haible  <bruno@clisp.org>
20971         opendir, readdir, closedir: Relicense under LGPLv2+.
20972         * modules/opendir (License): Change to LGPLv2+.
20973         * modules/readdir (License): Likewise.
20974         * modules/closedir (License): Likewise.
20976 2016-10-16  Bruno Haible  <bruno@clisp.org>
20978         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20979         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
20980         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
20981         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
20982         HAVE_DECL_STRERROR_R.
20984 2016-10-16  Bruno Haible  <bruno@clisp.org>
20986         Make the 'argp' module work without the 'error' module.
20987         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
20989 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
20991         diffseq: restore TOO_EXPENSIVE heuristic
20992         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
20993         (Bug#24715).  The simplest solution is to restore the
20994         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
20995         using a higher threshold to avoid Bug#16848 on smaller files.
20996         * lib/diffseq.h (struct context): Restore member too_expensive.
20997         (struct partition): Restore members lo_minimal, hi_minimal.
20998         (diag, compareseq): Restore arg find_minimal.  All uses changed.
20999         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
21000         1993 to make 'diff' run faster (but not as well) on large inputs,
21001         but use a threshold of 4096 instead of the old 256.
21002         * lib/fstrcmp.c (strcmp_bounded):
21003         * lib/git-merge-changelog.c (compute_differences):
21004         Adjust to diffseq.h changes.
21006 2016-10-22  Bruno Haible  <bruno@clisp.org>
21008         iconv: Avoid compilation error when bootstrapping GNU libiconv.
21009         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
21010         declaration yet, define ICONV_CONST to empty.
21012 2016-10-15  Bruno Haible  <bruno@clisp.org>
21014         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
21015         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
21016         module.
21018 2016-10-16  Bruno Haible  <bruno@clisp.org>
21020         system-quote tests: Avoid compiler warning on AIX.
21021         * tests/test-system-quote-child.c (fopen): Redefine like the system's
21022         <stdio.h> does.
21024 2016-10-16  Bruno Haible  <bruno@clisp.org>
21026         Fix some "gcc -Wall" warnings.
21027         * tests/test-ffsl.c (main): Use variable x, not i.
21028         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
21029         freopen.
21030         * tests/test-sethostname1.c (main): Explicitly ignore the return value
21031         of sethostname.
21033 2016-10-16  Bruno Haible  <bruno@clisp.org>
21035         gnulib-tool: Make --create-testdir on all modules work again.
21036         * gnulib-tool (func_create_testdir): Don't include the
21037         non-recursive-gnulib-prefix-hack module.
21039 2016-10-21  Daiki Ueno  <ueno@gnu.org>
21041         libunistring: change the maintainer to 'all'
21042         * modules/gen-uni-tables, modules/libunistring:
21043         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
21044         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
21045         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
21046         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
21047         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
21048         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
21049         * modules/uniwidth/*: Change the maintainer to 'all'.
21051 2016-10-16  Bruno Haible  <bruno@clisp.org>
21053         Simplify "configure: checking ..." messages.
21054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
21055         AC_MSG_NOTICE.
21056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21058 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
21060         quotearg-tests: pacify gcc -Wall
21061         Problem reported by Bruno Haible in:
21062         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
21063         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
21064         * tests/test-quotearg.h: ... from here.
21066 2016-10-20  Pádraig Brady  <P@draigBrady.com>
21068         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
21069         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
21070         Needed on Centos <= 4.
21072 2016-10-20  Jim Meyering  <meyering@fb.com>
21074         printf.m4: fix a bug in detecting printf %j support
21075         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
21076         uintmax_t is defined in neither stdint.h nor inttypes.h.
21077         Before, this macro might have mistakenly set
21078         gl_cv_func_printf_sizes_c99=yes on such a system.
21079         Spotted by Zev Weiss.
21081 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21083         sched: substitute HAVE_SYS_CDEFS_H too
21084         Problem reported by Tom G. Christensen in:
21085         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
21086         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
21087         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
21089 2016-10-19  Pádraig Brady  <P@draigBrady.com>
21091         quotearg: never write beyond the returned length
21092         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
21093         scan of the string when we initially encounter a single quote when
21094         shell quoting, so that if we then switch to a more concise quoting method
21095         we will not have written beyond that returned length.
21096         This is significant for sh-quote, which has separate routines
21097         to determine the length and do the actual quoting.
21098         * tests/test-quotearg.h: Reinstate the buffer bounds checking
21099         now that we never write more than the returned length.
21101 2016-10-18  Bruno Haible  <bruno@clisp.org>
21103         getprogname tests: Avoid failure in packages that use libtool.
21104         * tests/test-getprogname.c (main): Strip "lt-" prefix.
21105         Based on a patch by Jim Meyering.
21107 2016-10-16  Bruno Haible  <bruno@clisp.org>
21109         getprogname: Fix test failure on Cygwin. Comments.
21110         * lib/getprogname.h: Add comments.
21111         * lib/getprogname.c: Add comments. Fix #elif indentation.
21112         * tests/test-getprogname.c (main): On Cygwin, expect a result without
21113         ".exe" suffix.
21115 2016-10-16  Bruno Haible  <bruno@clisp.org>
21117         Make sure the libunistring detection rejects older versions with a
21118         known bug.
21119         * modules/unistr/u8-strtok (configure.ac): Bump required version.
21120         * modules/unistr/u16-strtok (configure.ac): Likewise.
21121         * modules/unistr/u32-strtok (configure.ac): Likewise.
21123 2016-10-18  Bruno Haible  <bruno@clisp.org>
21125         sh-quote, system-quote: revert regression of unit test.
21126         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
21127         * tests/test-system-quote-main.c (check_one): Likewise.
21129 2016-10-16  Pádraig Brady  <P@draigBrady.com>
21131         quotearg: fix stale tests
21132         * tests/test-quotearg.c [locale_results]: Add the missing str7
21133         entries to the expected results.
21134         * tests/test-system-quote-main.c (check_one): Don't enforce that we
21135         don't write beyond the returned length, since that's no longer the
21136         case if we switch to a more concise quoting style.
21137         * tests/test-sh-quote.c (check_one): Likewise.
21138         (main): Adjust for the new more concise quoting style.
21139         Reported by Bruno Haible.
21141 2016-10-16  Jim Meyering  <meyering@fb.com>
21143         non-recursive-gnulib-prefix-hack: fix inconsequential typo
21144         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
21145         to "$1".  This macro is always invoked with $1 == lib.
21146         Spotted by Bruno Haible
21148 2016-10-16  Bruno Haible  <bruno@clisp.org>
21150         Fix a test crash.
21151         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
21152         fails.
21154 2016-10-16  Pádraig Brady  <P@draigBrady.com>
21156         test-limits-h: suppress -Woverlength-strings
21157         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
21159 2016-10-15  Bruno Haible  <bruno@clisp.org>
21161         gettime, timespec, utimens: Relicense under LGPL.
21162         * modules/gettime (License): Change to LGPL.
21163         * modules/timespec (License): Likewise.
21164         * modules/utimens (License): Likewise.
21166 2016-10-14  Bruno Haible  <bruno@clisp.org>
21167             Pádraig Brady  <P@draigBrady.com>
21169         canonicalize-lgpl: Support the case path_max > INT_MAX.
21170         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
21171         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
21173 2016-10-13  Jim Meyering  <meyering@fb.com>
21175         getprogname: IBM z/OS: avoid NULL-dereference
21176         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
21177         upon strdup failure.
21179 2016-10-12  Jim Meyering  <meyering@fb.com>
21181         test-stdint: use _GL_VERIFY rather than "verify" for some tests
21182         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
21183         and an abbreviated diagnostic rather than verify with the full one,
21184         because the full-length strings would evoke warnings from gcc with
21185         -Woverlength-strings.
21187 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21189         stdint: port SIZE_MAX to glibc s390
21190         Problem reported by Eric Blake in:
21191         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
21192         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
21193         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
21194         correct type, if possible.
21196 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
21198         getprogname: port to IBM z/OS
21199         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
21201 2016-10-11  Jim Meyering  <meyering@fb.com>
21203         maint: remove stray space after "." in AC_DEFINE comment.
21204         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
21205         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21207 2016-10-05  Jim Meyering  <meyering@fb.com>
21209         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
21210         * lib/long-options.c (parse_long_options): Add a break statement
21211         to avoid this new warning/failure:
21212         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
21213           --create-testdir --dir=/t/x --with-tests --test long-options
21214         ../../gllib/long-options.c: In function 'parse_long_options':
21215         ../../gllib/long-options.c:66:12: error: this statement may \
21216           fall through [-Werror=implicit-fallthrough]
21217                    (*usage_func) (EXIT_SUCCESS);
21218                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
21220 2016-10-05  Jim Meyering  <meyering@fb.com>
21222         utimecmp: avoid new GCC 7 warning from -Wbool-operation
21223         Testing this module would fail when using GCC 7 like this:
21224         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
21225           --dir=/tmp/x --with-tests --test utimecmp
21226         ../../gllib/utimecmp.c: In function ‘utimecmp’:
21227         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
21228           [-Werror=bool-operation]
21229                          time_t s = src_s & ~ (res == 2 * BILLION);
21230                                             ^
21231         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
21232           [-Werror=bool-operation]
21233                src_s &= ~ (res == 2 * BILLION);
21234                         ^
21235         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
21236         Instead, make it explicit that we intend to apply it to 0 or 1.
21238 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21240         dfa: save memory for states
21241         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
21242         states if dfa has a lot of caches.
21244 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
21246         wchar, wctype-h: fix for MinGW 3.22.2
21247         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
21248         special invocation, to fix issues with MinGW 3.22.2 wchar.h
21249         when included from <string.h>.
21250         * lib/wctype.in.h [__MINGW32__]: Add special invocation
21251         convention for MinGW 3.22.2, to solve issues with their
21252         wctype.h when included from <ctype.h>.
21254 2016-10-05  Jim Meyering  <meyering@fb.com>
21256         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
21257         * lib/long-options.c (parse_long_options): Add a break statement
21258         to avoid this new warning/failure:
21259         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
21260           --create-testdir --dir=/t/x --with-tests --test long-options
21261         ../../gllib/long-options.c: In function ‘parse_long_options’:
21262         ../../gllib/long-options.c:66:12: error: this statement may \
21263           fall through [-Werror=implicit-fallthrough]
21264                    (*usage_func) (EXIT_SUCCESS);
21265                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
21267         utimecmp: avoid new GCC 7 warning from -Wbool-operation
21268         Testing this module would fail when using GCC 7 like this:
21269         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
21270           --dir=/tmp/x --with-tests --test utimecmp
21271         ../../gllib/utimecmp.c: In function ‘utimecmp’:
21272         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
21273           [-Werror=bool-operation]
21274                          time_t s = src_s & ~ (res == 2 * BILLION);
21275                                             ^
21276         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
21277           [-Werror=bool-operation]
21278                src_s &= ~ (res == 2 * BILLION);
21279                         ^
21280         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
21281         Instead, make it explicit that we intend to apply it to 0 or 1.
21283 2016-10-03  Pádraig Brady  <P@draigBrady.com>
21285         quotearg: minimize shell quoting using double quotes
21286         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
21287         quote in encountered then use double quotes (c style quoting)
21288         when possible, as it simplifies the quoting.
21289         * tests/test-quotearg-simple.c: Add test cases.
21290         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
21291         for the fact we now may write beyond the returned length.
21293 2016-10-02  Jim Meyering  <meyering@fb.com>
21295         vasnprintf.c: avoid spurious warning from GCC 7
21296         The presence of cpp directives renders this "FALLTHROUGH" comment
21297         ineffective, so does not suppress the -Wimplicit-fallthrough warning
21298         from GCC 7 built from git on 2016-10-02.
21299         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
21300         directives, so that it takes effect once again.  This is clearly
21301         not a proper change, and I will revert it once this bug is fixed:
21302         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
21304 2016-10-01  Jim Meyering  <meyering@fb.com>
21306         getprogname: correct the test for a __progname variable
21307         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
21308         and AC_LINK_IFELSE to check for a global __progname.  If found,
21309         define HAVE_VAR___PROGNAME.
21310         * lib/getprogname.c (getprogname): Reflect the new name of the
21311         feature- checked preprocessor symbol:
21312         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
21314 2016-09-28  Jim Meyering  <meyering@fb.com>
21316         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
21317         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
21318         fall-through case with a /* fallthrough */ comment.
21320         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
21321         * lib/dfa.c (dfassbuild): Mark the end of this case with a
21322         /* fallthrough */ comment.
21324         getprogname: avoid __progname vs program_invocation_short_name pitfall
21325         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
21326         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
21327         not with Fedora 24's glibc-2.23.1-10.
21328         * lib/getprogname.c (__progname): Move this declaration down...
21329         (getprogname): ... into the #elif block where used, and make it
21330         explicitly "extern".
21332         getprogname: port to OpenBSD 5.1
21333         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
21334         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
21335         * modules/getprogname (configure.ac): Move most of this code...
21336         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
21337         increment serial number, and add a test for __progname.
21338         https://bugs.gnu.org/24562
21339         Reported by Nelson H. F. Beebe.
21341 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21343         sched: port to GCC 6.2.1 on macOS Sierra
21344         Problem reported by Denis Davydov in:
21345         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
21346         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
21347         Include <sys/cdefs.h> before <sched.h>.
21348         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
21349         so that we needn’t worry about the sched.h include bug here.
21350         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
21351         and include it before <sched.h> if it exists, when
21352         checking for <sched.h>.
21354         tests/init.sh: port Alpine fix to AIX 7.1
21355         * tests/init.sh (compare_): When attempting to use diff -U3,
21356         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
21357         diff -u not outputting a space after leading '+', as the users
21358         of 'compare' should not be that picky about its output format.
21359         In the AIX 7.1 case, return with diff exit status (or with 2 if
21360         trouble), instead of some random nonzero exit status.
21361         * tests/test-init.sh (test_compare): Remove space after leading
21362         '+', so that AIX 7.1 'diff' passes the test.
21364 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21366         nl_langinfo: pacify GCC
21367         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
21368         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
21370         stdint: also set GL_GENERATE_LIMITS_H
21371         Problem reported by Jim Meyering in:
21372         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
21373         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
21375         limits-h, stdint: Don't assume extensions, fix typo
21376         * m4/limits-h.m4 (gl_LIMITS_H):
21377         * m4/stdint.m4 (gl_STDINT_H):
21378         Don't assume AC_USE_SYSTEM_EXTENSIONS.
21379         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
21380         reported by Jim Meyering in:
21381         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
21383 2016-09-21  Jim Meyering  <meyering@fb.com>
21385         getprogname: port to AIX
21386         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
21387         and strdup to obtain a short program name string.  Using code from
21388         Bruno Haible and an idea from Bastien ROUCARIÈS, in
21389         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21390         Assaf Gordon reported that this new file would fail to compile on
21391         AIX-7.1 32bit.
21393 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21395         extensions: fix typo in comment
21396         * m4/extensions.m4: Sync from Autoconf master.
21398         stdint: support new _WIDTH macros
21399         * doc/posix-headers/stdint.texi: Document this.
21400         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
21401         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
21402         support for INTMAX_WIDTH, etc. as well as for support for just C99.
21403         * modules/stdint (Depends-on): Add limits-h.
21404         (Makefile.am): Substitute HAVE_C99_STDINT_H.
21405         * modules/stdint-tests (Depends-on): Add extensions, so that
21406         INTMAX_MAX etc. are defined.
21407         * tests/test-stdint.c: Verify the new macros.
21409         limits-h: new module
21410         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
21411         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
21412         * doc/posix-headers/limits.texi: Document new module.
21413         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
21414         * modules/limit-h-tests, tests/test-limits-h.c: New files.
21416         stdio: don't redefine __USE_MINGW_ANSI_STDIO
21417         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
21418         if it is already defined.  Apparently GNU Emacs relies on this.  See:
21419         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
21421 2016-09-15  Eric Blake  <eblake@redhat.com>
21423         sys_types: avoid glibc 2.25 warnings about major()
21424         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
21425         older autoconf.
21426         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
21427         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
21428         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
21429         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
21431         mountlist: include sysmacros.h for glibc
21432         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
21433         AC_HEADER_MAJOR.
21434         * lib/mountlist.c (includes): Use correct headers.
21436 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21438         extensions: port to more ISO C TSes
21439         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
21440         master, to add support for more recent ISO C TRs and TSes.
21442 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21444         intprops: new macro TYPE_WIDTH
21445         * lib/intprops.h (TYPE_WIDTH): New macro.
21446         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
21447         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
21448         * lib/parse-datetime.y (parse_datetime2):
21449         Use it.
21451         extensions: port to recent ISO C TRs
21452         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
21453         Sync from Autoconf master, to add support for recent ISO C TRs.
21454         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
21455         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
21456         the MinGW option is not an extension.
21458 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
21460         dfa: port to Solaris 9
21461         Problems reported by Tom G. Christensen in:
21462         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
21463         * modules/dfa (Depends-on): Add isblank.
21464         * modules/dfa-tests (dfa_match_aux_LDADD):
21465         Rename from test_stat_LDADD, to fix typo.
21466         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
21468 2016-09-10  Jim Meyering  <meyering@fb.com>
21470         strverscmp: avoid link failure on OS X
21471         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
21472         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
21474 2016-08-16  Jim Meyering  <meyering@fb.com>
21476         dfa: new module, importing grep's DFA matcher
21477         Since grep's DFA matcher is now being used by two gnulib-enabled
21478         projects, grep and sed, it makes sense to version-control its
21479         sources and unit tests in one place: here.
21480         * modules/dfa: New module.
21481         * modules/dfa-tests: New file.
21482         * lib/dfa.c: New file, from grep.
21483         * lib/dfa.h: Likewise.
21484         * lib/localeinfo.c: Likewise.
21485         * lib/localeinfo.h: Likewise.
21486         * tests/dfa-match-aux.c: Likewise.
21487         * tests/dfa-invalid-char-class.sh: Likewise.
21488         * tests/dfa-match.sh: Likewise, with minor changes.
21489         * MODULES.html.sh (Misc): Add "dfa" to this list.
21491 2016-09-09  Jim Meyering  <meyering@fb.com>
21493         getprogname-tests: don't depend on assert-h
21494         * modules/getprogname-tests (Depends-on): Remove assert-h.
21495         It was not needed, and in fact would cause build failure for
21496         coreutils on some systems.  Reported by Assaf Gordon in https:
21497         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
21499 2016-09-07  Jim Meyering  <meyering@fb.com>
21501         getprogname-tests: work also when EXEEXT is nonempty
21502         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
21503         * tests/test-getprogname.c (main): Use it.
21504         Suggested by Gisle Vanem.
21506 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
21508         getprogname: fix errors in previous change
21509         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
21510         s/program_invocation_name/base/
21511         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
21513 2016-09-08  Pádraig Brady  <P@draigBrady.com>
21515         parse-datetime: restrict debug output to input string
21516         * lib/parse-datetime.y (parse_datetime2): If we parse
21517         all of the input but determine it's invalid, ensure
21518         we don't output the now invalid input pointer.
21519         This issue was seen with `date -d 'now +1'`.
21521 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
21523         flexmember: new macro FLEXALIGNOF
21524         * lib/flexmember.h: Include <stddef.h>, for offsetof.
21525         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
21526         this macro.  Update comments.
21528 2016-09-07  Jim Meyering  <meyering@fb.com>
21530         getprogname: port to systems with __argv (mingw, msvc)
21531         * lib/getprogname.c (getprogname): Include "dirname.h" and use
21532         last_component: more general than open coding it with hard-coded "/".
21533         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
21534         * modules/getprogname (Depends-on): Add dirname-lgpl.
21535         (configure.ac): Check for __argv in <stdlib.h>.
21536         * modules/getprogname-tests: New file.
21537         * tests/test-getprogname.c: New file.
21538         Suggested by Gisle Vanem in
21539         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
21541 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
21543         flexmember: port better to GCC + valgrind
21544         With a char[] flexible array member in a struct with nontrivial
21545         alignment, GCC-generated code can access past the end of the
21546         array, because GCC assumes there are padding bytes to get the
21547         struct aligned.  So the common idiom of malloc (offsetof (struct
21548         s, m), n) does not properly allocate an n-byte trailing member, as
21549         malloc’s argument should be the next multiple of alignof (struct s).
21550         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
21551         Although C11 apparently permits this GCC optimization (i.e., there
21552         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
21553         See the thread containing:
21554         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
21555         * lib/flexmember.h: New file.
21556         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
21557         * lib/localename.c, lib/time_rz.c:
21558         Include flexmember.h.
21559         * lib/fnmatch_loop.c (struct patternlist):
21560         * lib/localename.c (struct hash_node):
21561         Use FLEXIBLE_ARRAY_MEMBER.
21562         * lib/fnmatch_loop.c (EXT):
21563         * lib/fts.c (fts_alloc):
21564         * lib/glob.c (glob_in_dir):
21565         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
21566         * lib/localename.c (gl_lock_define_initialized):
21567         * lib/time_rz.c (tzalloc):
21568         Use FLEXSIZEOF instead of offsetof.
21569         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21570         Check that the size of the struct can be taken.
21571         * modules/flexmember (Files): Add lib/flexmember.h.
21572         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
21573         Add flexmember.
21575 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21577         getprogname: port to Solaris 10
21578         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
21579         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
21580         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
21582         stdalign: correct mistake in alignof doc
21583         Problem reported by Joseph Myers in:
21584         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
21585         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
21586         alignof(S) where S is a structure containing a flexible array
21587         member.  The Gnulib substitute does not support this, but C11 does.
21589 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21591         main.mk: remove sc_program_name, since there is no more need to
21592         use set_program_name in tools (getprogname is enough for most
21593         of the cases).
21594         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
21595         * top/maint.mk (sc_program_name): Remove.
21597 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21599         Port tests away from progname, since modules that need the
21600         program name already depend on getprogname.
21601         * modules/acl-tests (Depends-on): Remove progname.
21602         * modules/argmatch (Depends-on): Likewise.
21603         * modules/argmatch-tests (Depends-on): Likewise.
21604         * modules/argp-tests (Depends-on): Likewise.
21605         * modules/argp-version-etc-tests (Depends-on): Likewise.
21606         * modules/array-list-tests (Depends-on): Likewise.
21607         * modules/array-oset-tests (Depends-on): Likewise.
21608         * modules/avltree-list-tests (Depends-on): Likewise.
21609         * modules/avltree-oset-tests (Depends-on): Likewise.
21610         * modules/avltreehash-list-tests (Depends-on): Likewise.
21611         * modules/carray-list-tests (Depends-on): Likewise.
21612         * modules/copy-file-tests (Depends-on): Likewise.
21613         * modules/exclude-tests (Depends-on): Likewise.
21614         * modules/fchownat-tests (Depends-on): Likewise.
21615         * modules/fdopendir-tests (Depends-on): Likewise.
21616         * modules/filenamecat-tests (Depends-on): Likewise.
21617         * modules/fstatat-tests (Depends-on): Likewise.
21618         * modules/fstrcmp-tests (Depends-on): Likewise.
21619         * modules/linked-list-tests (Depends-on): Likewise.
21620         * modules/linkedhash-list-tests (Depends-on): Likewise.
21621         * modules/mkdirat-tests (Depends-on): Likewise.
21622         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
21623         * modules/nonblocking-socket-tests (Depends-on): Likewise.
21624         * modules/obstack-printf-tests (Depends-on): Likewise.
21625         * modules/openat-tests (Depends-on): Likewise.
21626         * modules/parse-datetime-tests (Depends-on): Likewise.
21627         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
21628         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
21629         * modules/quotearg-simple-tests (Depends-on): Likewise.
21630         * modules/quotearg-tests (Depends-on): Likewise.
21631         * modules/rbtree-list-tests (Depends-on): Likewise.
21632         * modules/rbtree-oset-tests (Depends-on): Likewise.
21633         * modules/rbtreehash-list-tests (Depends-on): Likewise.
21634         * modules/spawn-pipe-tests (Depends-on): Likewise.
21635         * modules/system-quote-tests (Depends-on): Likewise.
21636         * modules/uniname/uniname-tests (Depends-on): Likewise.
21637         * modules/uninorm/nfc-tests (Depends-on): Likewise.
21638         * modules/uninorm/nfd-tests (Depends-on): Likewise.
21639         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
21640         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
21641         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
21642         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
21643         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
21644         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
21645         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
21646         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
21647         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
21648         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
21649         * modules/unlinkat-tests (Depends-on): Likewise.
21650         * modules/version-etc-tests (Depends-on): Likewise.
21651         * modules/xalloc-die-tests (Depends-on): Likewise.
21652         * modules/xmemdup0-tests (Depends-on): Likewise.
21653         * modules/xprintf-posix-tests (Depends-on): Likewise.
21654         * modules/xvasprintf-tests (Depends-on): Likewise.
21655         * tests/test-argmatch.c: Do not include progname.h.
21656         (main) Stop calling set_program_name.
21657         * tests/test-argp-version-etc.c: Likewise.
21658         * tests/test-argp.c: Likewise.
21659         * tests/test-argv-iter.c: Likewise.
21660         * tests/test-array_list.c: Likewise.
21661         * tests/test-array_oset.c: Likewise.
21662         * tests/test-avltree_list.c: Likewise.
21663         * tests/test-avltree_oset.c: Likewise.
21664         * tests/test-avltreehash_list.c: Likewise.
21665         * tests/test-carray_list.c: Likewise.
21666         * tests/test-copy-acl.c: Likewise.
21667         * tests/test-copy-file.c: Likewise.
21668         * tests/test-exclude.c: Likewise.
21669         * tests/test-fchownat.c: Likewise.
21670         * tests/test-fdopendir.c: Likewise.
21671         * tests/test-filenamecat.c: Likewise.
21672         * tests/test-fstatat.c: Likewise.
21673         * tests/test-fstrcmp.c: Likewise.
21674         * tests/test-linked_list.c: Likewise.
21675         * tests/test-linkedhash_list.c: Likewise.
21676         * tests/test-mkdirat.c: Likewise.
21677         * tests/test-nonblocking-pipe-main.c: Likewise.
21678         * tests/test-nonblocking-socket-main.c: Likewise.
21679         * tests/test-obstack-printf.c: Likewise.
21680         * tests/test-openat.c: Likewise.
21681         * tests/test-parse-datetime.c: Likewise.
21682         * tests/test-pipe-filter-gi1.c: Likewise.
21683         * tests/test-pipe-filter-gi2-main.c: Likewise.
21684         * tests/test-pipe-filter-ii1.c: Likewise.
21685         * tests/test-pipe-filter-ii2-main.c: Likewise.
21686         * tests/test-quotearg-simple.c: Likewise.
21687         * tests/test-quotearg.c: Likewise.
21688         * tests/test-rbtree_list.c: Likewise.
21689         * tests/test-rbtree_oset.c: Likewise.
21690         * tests/test-rbtreehash_list.c: Likewise.
21691         * tests/test-sameacls.c: Likewise.
21692         * tests/test-set-mode-acl.c: Likewise.
21693         * tests/test-spawn-pipe-main.c: Likewise.
21694         * tests/test-system-quote-main.c: Likewise.
21695         * tests/test-unlinkat.c: Likewise.
21696         * tests/test-version-etc.c: Likewise.
21697         * tests/test-xalloc-die.c: Likewise.
21698         * tests/test-xfprintf-posix.c: Likewise.
21699         * tests/test-xmemdup0.c: Likewise.
21700         * tests/test-xprintf-posix.c: Likewise.
21701         * tests/test-xvasprintf.c: Likewise.
21702         * tests/uniname/test-uninames.c: Likewise.
21703         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21704         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21705         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21706         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21707         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21708         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21709         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21710         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21711         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21712         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21713         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21714         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21715         * tests/test-c-stack.c: (program_name): Do not define.
21716         (main): Do not set program_name.
21717         * tests/test-closein.c: Likewise.
21718         * tests/test-xstrtol.c: Likewise.
21719         * tests/test-yesno.c: Likewise.
21721 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21723         Port modules to use getprogname explicitly, instead of requiring
21724         progname to be used (or program_name to be provided).
21725         * lib/argmatch.c: Do not include progname.h.
21726         [TEST] (program_name): Do not define.
21727         [TEST] (main): Call getprogname instead of using program_name.
21728         * lib/c-stack.c: Do not include progname.h.
21729         (program_name): Do not define.
21730         (die): Call getprogname instead of using program_name.
21731         * lib/chdir-long.c: Do not include progname.h.
21732         [TEST_CHDIR] (main): Do not set program_name.
21733         * lib/error.c [!_LIBC]: Include progname.h.
21734         [!_LIBC] (program_name): Define using getprogname.
21735         * lib/euidaccess.c: Do not include progname.h.
21736         [TEST] (main): Do not set program_name.
21737         * lib/git-merge-changelog.c: Include getprogname.h instead of
21738         progname.h.
21739         (usage): Call getprogname instead of using program_name.
21740         (main): Likewise.  Stop calling set_program_name.
21741         * lib/group-member.c: Do not include progname.h.
21742         [TEST] (main): Do not set program_name.
21743         * modules/argmatch (Depends-on): Add getprogname.
21744         * modules/c-stack (Depends-on): Likewise.
21745         * modules/error (Depends-on): Likewise.
21746         * modules/git-merge-changelog (Depends-on): Likewise.
21747         Also remove progname.
21749 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
21751         * NEWS: Document the deprecation of the 'progname' module.
21753 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
21755         getprogname: new module
21756         This provides a LGPL module for getting the name of the current
21757         program, using the same API found on *BSD systems.
21758         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
21759         * modules/getprogname: New files.
21760         * MODULES.html.sh (Misc): Add getprogname.
21762 2016-09-02  Jim Meyering  <meyering@fb.com>
21764         manywarnings: add -fno-common
21765         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
21766         to the list.  Quoting the manual, "Compiling with -fno-common is
21767         useful on targets for which it provides better performance, or if
21768         you wish to verify that the program will work on other systems that
21769         always treat uninitialized variable declarations this way [putting
21770         it in the data section]."  If diffutils had been using this sooner,
21771         it would have prevented this duplicate declaration issue:
21772         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
21774 2016-08-31  Simon Josefsson  <simon@josefsson.org>
21776         parse-datetime: Fix typo.
21777         * lib/parse-datetime.y (parse_datetime2): Fix typo.
21779 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21781         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
21782         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
21783         GCC 5 and 6 that have __builtin_sub_overflow but not
21784         __builtin_sub_overflow_p.  With the recent changes, these
21785         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
21786         implementation than with INT_SUBTRACT_OVERFLOW implementation,
21787         since the former needs just one runtime comparison whereas the
21788         latter needs two.
21790         strverscmp: sync with glibc
21791         Although this doesn't exactly synchronize with glibc
21792         byte-for-byte, it makes the code behave the same as glibc.
21793         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
21794         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
21795         difference shouldn't matter in practical use.  All uses changed
21796         back to isdigit.
21797         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
21798         (next_state): Now unsigned char array; redo elements.
21799         (result_type): Now signed char array; redo elements.
21800         (__strverscmp): Fix glibc bug 9913 by using new states.
21801         * tests/test-strverscmp.c (main): Test glibc bug 9913.
21803 2016-08-29  Jim Meyering  <meyering@fb.com>
21805         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
21806         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
21807         similarly to how it was done to intprops.h.
21809 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21811         intprops.h: port recent changes to GCC 6.2.0
21812         * lib/intprops.h (__has_builtin): Move earlier.
21813         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
21814         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
21815         the last argument can be null.  All uses changed.
21816         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
21817         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
21818         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
21819         and it's not clear which GCC versions it works for.
21820         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
21821         its definiens.
21823         intprops.h: use __typeof__ with GCC 7
21824         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
21825         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
21826         This avoids computing the expression's value (which might overflow!).
21828 2016-08-29  Jim Meyering  <meyering@fb.com>
21830         intprops.h, xalloc-oversized.h: work with gcc 7
21831         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
21832         __builtin_mul_overflow each accept a NULL pointer as the third
21833         argument.  However in gcc 7, that is no longer accepted.
21834         Instead, one must use the "_p"-suffixed names, with which, the
21835         third parameter is no longer a pointer.
21836         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
21837         the definition: not true for gcc 7 and subsequent.
21838         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
21839         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
21840         Provide new definitions for gcc 7 and subsequent.
21841         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
21842         that works with gcc-7.
21844         intprops.h: fix missing-backslash problems
21845         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
21846         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
21848 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21850         intprops: fix paren typo on old platforms
21851         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
21852         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
21853         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
21854         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
21855         && !defined LLONG_MAX]:
21856         Remove stray paren.
21858         intprops: port to OpenVMS
21859         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
21860         * doc/posix-headers/limits.texi: Document the problem.
21861         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
21862         Define if not already defined.
21864 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
21866         parse-datetime: improve debug implementation
21867         Follow-up to commit 12ad79069 ("add optional debug printing").
21868         Improve parse-datetime's debug implementation: remove macros,
21869         replace global debug flag variable with a function parameter,
21870         use nstrftime for formatting.
21871         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
21872         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
21873         (parse_datetime2): New function, accepts 'flags' parameter, supporting
21874         debug flag. Existing interface 'parse_datetime' left unmodified.
21875         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
21876         (struct parser_control): add 'parse_datetime_debug' member variable.
21877         (parse_datetime): Call new function 'parse_datetime2' without debug.
21878         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
21879         pc.parse_datetime_debug variable as needed.
21880         (to_year): Accept new flags parameter, instead of using global variable.
21881         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
21882         use struct 'debug' variable instead of global variable.
21883         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
21884         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
21885         correspnding functions directly instead of using macros.
21886         * modules/parse-datetime: Add gnulib's strftime module.
21888 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
21890         c-strcase-tests: port to EBCDIC
21891         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
21892         which assume ASCII encoding semantics to run only in ASCII
21893         mode, as they fail in EBCDIC.
21895         sigpipe-tests: fix typo
21896         * tests/test-sigpipe.sh: C, not B.
21898 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
21900         canonicalize-lgpl: fix errno after malloca fails
21901         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
21902         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
21903         * lib/canonicalize-lgpl.c (__realpath):
21904         Don't assume malloca sets errno on failure.
21906 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21908         strtod: port errno handling to z/OS
21909         * lib/strtod.c (strtod): Save and restore errno more reliably.
21911 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
21913         strtod: port to z/OS
21914         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
21915         implementation.
21917 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21919         strtod: port to z/OS
21920         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
21921         implementation.
21923         regex, string: rename to avoid '__string'
21924         * lib/regex.h, lib/string.in.h: Do not use the identifier
21925         '__string', as it is effectively reserved by string.h on z/OS.
21927         c-strcase-tests, wcwidth-tests: depend on c-ctype
21928         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
21929         Add c-ctype.
21931 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
21933         thread: port to z/OS
21934         * lib/glthread/thread.c, lib/glthread/thread.h:
21935         Rudimentary gl_thread support for z/OS.
21937         maint: port tests to z/OS errno behavior
21938         * tests/test-nonblocking-reader.h:
21939         * tests/test-nonblocking-writer.h:
21940         Accommodate z/OS errno code preferences. (I believe this should
21941         still be within spec; IBM is good at following the letter if not
21942         the spirit of such things.)
21944         maint: preprocessor changes to support z/OS
21945         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
21946         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
21947         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
21948         * tests/test-nonblocking-pipe.h:
21950         fclose, strstr-simple, wchar: port to z/OS
21951         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
21952         Changes to the Autoconf M4 code to support z/OS.  Note that
21953         fclose() is broken in a different way on z/OS than it is on other
21954         systems, thus the special-case in fclose.m4.
21956         iconv_open-utf-tests, iconv-tests: port to EBCDIC
21957         * tests/test-iconv-utf.c, tests/test-iconv.c:
21958         Added appropriately conditional #pragmas so that the test strings
21959         in test-iconv-utf.c are correctly interpreted in ASCII instead of
21960         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
21961         addressed in a more portable way by simply rewriting all the ASCII
21962         literal characters as octal escapes, but then you would lose the
21963         partial readability that the strings have now. Also, iconv_open()
21964         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
21966         c-strcase-tests, wcwidth-tests: port to EBCDIC
21967         * tests/test-c-strcasecmp.c: Include c-ctype.h.
21968         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
21969         * tests/test-wcwidth.c: Likewise.
21971 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21973         stdbool: don't require _Bool for C++
21974         Problem reported by David Seifert in:
21975         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
21976         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
21977         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
21978         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
21979         stricter about checking that bool and _Bool are compatible in C.
21981 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21983         getdelim: remove dependency on realloc-posix
21984         * lib/canonicalize-lgpl.c (alloc_failed)
21985         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
21986         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
21987         Use __set_errno where needed, for consistency.
21988         * lib/getdelim.c (alloc_failed): New function.
21989         (getdelim): Use it.
21991 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
21993         parse-datetime: add optional debug printing
21994         Print parsing information, warnings, and errors to stderr.
21995         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
21996         * lib/parse-datetime.y:
21997         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
21998         (PROGRESS*): Same as DEBUG, for progress reporting.
21999         (dbg_printf): Print message to stderr, with 'date' prefix.
22000         (struct parser_control): Add 'debug_*_seen' variables.
22001         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
22002         (debug_print_current_time, debug_print_relateive_time): Prints the
22003         current/relative date/time value of parser_control.
22004         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
22005         (to_year): Warn about 2-digit year parsing.
22006         (yylex):   Warn about unrecognized words.
22007         (get_effective_timezone): Returns current timezone in minutes.
22008         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
22009         clearly and unambigiously as possible.
22010         (debug_mktime_not_ok): Print detailed information about failed
22011         date/time values.
22012         (parse_datetime): Add DEBUG messages for failures, warnings. Add
22013         PROGRESS messages for status messages.
22014         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
22016 2016-08-06  Jim Meyering  <meyering@fb.com>
22018         tests/init.sh: exclude dash with bad "local" semantics
22019         * tests/init.sh (gl_shell_test_script_): Add a function to
22020         eliminate a shell like "dash" (unlike bash, zsh) that has
22021         surprising/risky "local var='...'" semantics.  Inspired by
22022         the problem and discussion in https://bugs.gnu.org/24116#11.
22024 2016-08-02  Ján Tomko  <jtomko@redhat.com>
22026         maint.mk: expand the prohibit_doubled_word regex
22027         This check has a static list of words that are checked for
22028         repetitions.  Expand it before running the perl script to
22029         avoid using expensive captures.  This decreases the cost
22030         for libvirt from 1.66s to 0.66s.
22031         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
22032         (sc_prohibit_doubled_word): Use it.
22034 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22036         useless-if-before-free: skip non-matching lines early
22037         * build-aux/useless-if-before-free: First match each line with the
22038         simple/quick /\bif\b/ and reject if there is no match. This often
22039         saves the cost of the much more involved regular expression.
22040         For libvirt, this decreases the cost from 1.44s to 1.02s.
22042 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22044         maint.mk: speed up sc_po_check
22045         sc_po_check would skip files based on their names, or on the
22046         existence of files with derived names. Rewrite it to use perl
22047         instead of shell to make the check faster.
22048         * top/maint.mk (perl_translatable_files_list_): Define.
22049         (sc_po_check): Use it.
22051 2016-07-30  Ján Tomko  <jtomko@redhat.com>
22053         maint.mk: speed up require_config_h_first
22054         Instead of spawning three processes per file,
22055         rewrite the check in perl and run it once for all the files.
22056         * top/maint.mk (perl_config_h_first_): Define.
22057         (sc_require_config_h_first): Use it in place of shell code.
22059 2016-07-26  Ján Tomko  <jtomko@redhat.com>
22061         maint.mk: speed up sc_po_check
22062         sc_po_check would skip files based on their names, or on the
22063         existence of files with derived names. Rewrite it to use perl
22064         instead of shell to make the check faster.
22065         * top/maint.mk (perl_translatable_files_list_): Define.
22066         (sc_po_check): Use it.
22068 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22070         obstack: pacify GCC 6 with -Wnull-dereference
22071         Problem reported by Assaf Gordon in:
22072         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
22073         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
22074         Declare with __attribute_noreturn__.
22075         * lib/obstack.h (__attribute_noreturn__): New macro.
22077 2016-07-13  Eric Blake  <eblake@redhat.com>
22079         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
22080         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
22081         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
22083 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
22085         doc: mention glibc SSIZE_MAX buglet
22086         * doc/posix-headers/limits.texi (limits.h): Document the bug.
22088 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
22090         printf-posix: Fix mingw build
22091         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
22092         expression for detecting C symbol prefixes but forgot to qoute square
22093         brackets in the command line arguments for grep.  That way when
22094         building with mingw the condition was false although it ought to be
22095         true instead.  In particular scenarios this led to the following
22096         compile error:
22098             Cannot export rpl_printf: symbol not found
22099             Cannot export rpl_scanf: symbol not found
22100             collect2: error: ld returned 1 exit status
22102         Fix this by properly quoting square brackets.
22104 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22106         mktime: call tzset as per POSIX
22107         Problem reported by Ludovic Courtès in:
22108         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
22109         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
22110         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
22112 2016-06-26  Pádraig Brady  <P@draigBrady.com>
22114         fts: handle readdir() errors
22115         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
22116         but also upon error when it will also set errno.  Therefore
22117         flag the error case from readdir().  We treat the case where
22118         no items are read the same as if the dir can't be accessed,
22119         i.e. by setting fts_errno to FTS_DNR.
22121 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22123         intprops: port better to GCC 7
22124         GCC 7 __builtin_add_overflow supports a new usage form, where the
22125         last argument is a null pointer, and which merely returns 1 if an
22126         overflow would occur.  This is a constant expression if all
22127         arguments are constants, and should generate faster code when code
22128         needs to be generated.
22129         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
22130         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
22131         Use builtin operations if available.
22132         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
22133         operations are available, as it's almost surely faster.
22135 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22137         intprops-test: port to GCC 6
22138         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
22139         since the bug is not fixed in GCC 6.1.
22141 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
22143         xalloc-oversized: port to GCC 7; fewer warnings
22144         GCC 7 will have a better way to deal with integer overflow.
22145         Plus, fix a warnings problem reported by Tim Ruehsen in:
22146         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
22147         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
22148         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
22149         For GCC 5, use __xalloc_oversized if both args are constants,
22150         or if pedantic.
22152 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22154         regex: port to Sun C
22155         Reported by Daiki Ueno.
22156         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
22157         __restrict, in prototype.  This fixes a problem I introduced in
22158         the 2016-02-19 merge from glibc.
22160 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
22162         stdbool: Restore __bool_true_false_are_defined check
22163         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
22164         __bool_true_false_are_defined is still defined, even with C++11.
22166 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
22168         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
22169         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
22171 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
22173         Use GCC_LINT, not lint
22174         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
22175         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
22176         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
22177         Document problem with lint and _Noreturn.
22178         * lib/diffseq.h (IF_LINT, IF_LINT2):
22179         * lib/fts.c (sccsid):
22180         * lib/getndelim2.c (IF_LINT):
22181         * lib/gl_anylinked_list2.h (gl_linked_iterator)
22182         (gl_linked_iterator_from_to):
22183         * lib/gl_anytree_list2.h (gl_tree_iterator)
22184         (gl_tree_iterator_from_to):
22185         * lib/gl_anytree_oset.h (gl_tree_iterator):
22186         * lib/gl_array_list.c (gl_array_iterator)
22187         (gl_array_iterator_from_to):
22188         * lib/gl_array_oset.c (gl_array_iterator):
22189         * lib/gl_carray_list.c (gl_carray_iterator)
22190         (gl_carray_iterator_from_to):
22191         * lib/idcache.c:
22192         * lib/inet_ntop.c (IF_LINT):
22193         * lib/regcomp.c (build_charclass_op, create_tree):
22194         * lib/regex_internal.c (re_acquire_state)
22195         (re_acquire_state_context):
22196         * lib/trigl.c (rcsid):
22197         * lib/trim.c (IF_LINT):
22198         * lib/vasnprintf.c (IF_LINT):
22199         * lib/verify.h (assume):
22200         Treat GCC_LINT like lint.
22202 2016-05-29  Bruno Haible  <bruno@clisp.org>
22204         secure_getenv: Port to many more platforms.
22205         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
22206         functions.
22207         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
22208         for non-BSD Unix platforms and for native Windows.
22209         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
22210         Prompted by a request from Nikos Mavrogiannopoulos.
22212 2016-05-27  Eric Blake  <eblake@redhat.com>
22214         canonicalize: Fix broken probe for realpath.
22215         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
22216         in logic introduced in 54615b95.
22218 2016-05-26  Eric Blake  <eblake@redhat.com>
22220         unsetenv: relax to LGPLv2+
22221         * modules/unsetenv (License): Match setenv license.
22223 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
22225         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
22226         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
22227         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
22228         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
22229         (commonarg, dirargs, dirs, infoarg, generate_ascii)
22230         (generate_html, generate_info, generate_tex, outdir)
22231         (source_extra, split, srcfile, texarg): Move above 'version'.
22232         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
22234 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22236         manywarnings: update for GCC 6.1
22237         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22238         Add GCC 6.1 options that apply to C.
22239         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
22240         do not apply to C, are obsolescent, etc.
22242 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
22244         glob: size_t overflow checks
22245         * lib/glob.c (__has_builtin): New macro.
22246         (size_add_wrapv, glob_use_alloca): New static functions.
22247         (glob, glob_in_dir): Check for size_t overflow in several places,
22248         and fix some size_t checks that were not quite right.
22250         glob: don't assume INT_MAX < SIZE_MAX
22251         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
22252         latter is not portable to (probably theoretical) hosts where
22253         SIZE_MAX <= INT_MAX.
22255 2016-05-09  Bruno Haible  <bruno@clisp.org>
22257         Fix undefined behaviour in gettext.h.
22258         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
22259         pointer's value after the storage it points to has been freed.
22260         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
22261         Spotted by Coverity.
22263 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22265         git-version-gen: avoid undefined shift
22266         Problem reported by Mosè Giordano in:
22267         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
22268         * build-aux/git-version-gen: Avoid undefined behavior if invoked
22269         with --prefix or --fallback but without a later argument.  While
22270         we're at it, omit unnecessary quotes.
22272 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
22274         glob: merge glibc changes into lib/glob.c
22275         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
22276         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
22277         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
22278           struct dirent [BZ #19779]
22279         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
22280           callback gl_readdir
22281         2015-10-20 Convert miscellaneous function definitions to prototype style
22282         2015-10-20 Convert 113 more function definitions to prototype style
22283           (files with assertions)
22284         2015-06-12 Fix getlogin_r namespace (bug 18527).
22285         2014-02-10 Use glibc_likely instead __builtin_expect.
22286         2013-10-20 When glob pattern contains a trailing slash match only
22287           directories. Fixes bug 10278.
22288         2013-09-04 glob: silence -Wattribute warnings
22289         2013-06-07 Avoid use of "register" as optimization hint.
22290         2012-09-25 Use size_t instead of int for internal variables in glob
22291           (bug 14621)
22292         2011-07-20 Check for overflows in expressions
22293         2011-05-28 Remove unused variable
22294         2011-05-22 Add a few more alloca size checks
22295         2010-03-27 Whitespace fixes
22296         2010-03-27 Fix one more issue with the glob patch
22297         2010-03-24 Fix glob with empty pattern
22298         2008-05-27 Remove useless more "if" tests before "free"
22299         * modules/glob (Depends-on): Add stdint.
22301 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22303         mktime: port to stricter signed overflow checking
22304         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
22305         (long_int): Require width for INT_MAX * 3 * (seconds per year),
22306         instead of merely for INT_MAX * 2.  In practice platforms that
22307         do the latter also do the former.
22308         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
22309         (shr): New static function, replacing SHR.  All uses changed.
22310         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
22311         and TIME_T_MAX.  All uses changed.
22312         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
22313         Use long_int, not time_t.
22314         (long_int_avg): New static function, replacing time_t_avg.
22315         All uses changed.  Round toward positive infinity, as that
22316         generates slightly better code.
22317         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
22318         by INT_ADD_WRAPV.
22319         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
22320         (convert_time): New static function.
22321         (ranged_convert): Use it
22322         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
22323         Use simpler test for loop exit.
22324         (__mktime_internal): Store negative of guessed offset, to simplify
22325         overflow checking.  Remove no-longer-needed test for small time_t
22326         overflows.
22328         mktime: speed up DEBUG_MKTIME benchmarks
22329         Call tzset just once, at the start, rather than for every test
22330         case.  This lets us measure the CPU cost of mktime as opposed to
22331         that of tzset.  This is relevant when TZ is not set and glibc is
22332         being used.  This speeds up tests by a factor of 40 on my Fedora
22333         23 x86-64 platform.
22334         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
22335         to call tzset and as a sanity check.  Later on, use localtime_r
22336         instead of localtime.
22338         mktime: resurrect DEBUG_MKTIME testing
22339         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
22340         Include <string.h>, for strcmp.
22342         mktime: simplify DEBUG_MKTIME
22343         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
22344         Simplify later usage accordingly.
22346         Port mktime_internal offset to unsigned time_t
22347         This avoids some assumptions about wraparound arithmetic on
22348         signed integer overflow.
22349         * lib/mktime-internal.h (mktime_offset_t): New type.
22350         (mktime_internal): Use it in decl.
22351         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
22353         * lib/mktime.c (__mktime_internal, localtime_offset):
22354         * lib/timegm.c (timegm): Use it.
22355         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
22356         (gl_FUNC_MKTIME): Require it.
22358 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
22360         xstrtol: prohibit monstrosities like "1bB"
22361         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
22362         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
22363         "B" only if the first suffix needs a base.
22364         * tests/test-xstrtol.sh: Test this.
22366 2016-04-21  Pádraig Brady  <P@draigBrady.com>
22368         xstrtod: reinstate setting of *result upon ERANGE
22369         * lib/xstrtod.c (XSTRTOD): The user may decide to use
22370         the returned limits upon ERANGE, so allow and document that.
22372 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
22374         xstrtod: modify *result only if no errors
22375         * lib/xstrtod.c (XSTRTOD).
22377 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
22379         btowc: document problems in C locale
22380         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
22381         with mbrtowc.  See: http://bugs.gnu.org/23269#32
22383 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
22385         mktime: improve integer overflow checking
22386         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
22387         (WRAPV): Remove; no longer needed.
22388         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
22389         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
22390         Remove.  Use intprops.h defns instead.
22391         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
22392         Use bool for Boolean, for clarity.
22393         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
22394         detect integer overflow.
22395         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
22397         intprops: check two's complement assumption
22398         Suggested by Eric Blake in:
22399         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
22400         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
22401         short, int, long, and (if available) long long are two's complement.
22402         * modules/intprops (Depends-on): Add 'verify'.
22404         intprops, mktime, strtol: assume two's complement
22405         These macros were not portable to every conforming C11 ones'
22406         complement platform.  It's not worth the hassle of porting to some
22407         platforms that use ones' complement or signed magnitude, as such
22408         platforms are almost purely theoretical nowadays and porting even
22409         to some of them makes the code harder to review for little
22410         practical benefit.  Problem reported by Florian Weimer in:
22411         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
22412         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
22413         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
22414         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
22415         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
22416         (TYPE_SIGNED_MAGNITUDE):
22417         Remove.  All uses rewritten to assume two's complement, which is
22418         all we can reasonably test nowadays anyway.
22419         * top/maint.mk (_intprops_names): Remove the removed macros.
22421 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
22423         stdint: port to strict C11 left shift
22424         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
22425         Pacify clang -Wshift-negative-value, which should be an issue only
22426         on clang setups where stdint.h does not conform to C11 or to C++11.
22427         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
22429 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
22431         mbrtowc: work around glibc bug#19932
22432         Fix mbrtowc so that it never returns -1 in the C locale,
22433         as this conflicts with a future version of POSIX
22434         http://austingroupbugs.net/view.php?id=663#c2738
22435         and causes problems with GNU grep: http://bugs.gnu.org/23234
22436         See glibc bug 19932:
22437         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
22438         * doc/posix-functions/mbrlen.texi (mbrlen):
22439         * doc/posix-functions/mbrtowc.texi (mbrtowc):
22440         Document the glibc bug.
22441         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
22442         Include hard-locale.h, locale.h.
22443         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
22444         if the bug is possible.
22445         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
22446         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
22447         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
22448         * modules/mbrtowc (Depends-on): Add hard-locale.
22449         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
22450         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
22451         * tests/test-mbrtowc5.sh: New file.
22453 2016-04-03  Pedro Alves  <palves@redhat.com>
22455         stdint: detect good enough pre-C++11 stdint.h in C++ mode
22456         When gnulib is configured in C++ mode for a system with a working C99
22457         implementation of stdint.h that predates C++11, gnulib ends up
22458         substituting stdint.h anyway.  This works on most targets, but on e.g.,
22459         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
22460         MinGW is LLP64.  Instead of trying to detect the right types, detect
22461         good-enough-pre-C++11 stdint.h and in such case define
22462         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
22463         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
22464         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
22465         conforms to C99.  If it does, check whether it hides symbols
22466         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
22467         does, define those macros in config.h.
22469 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22471         argp: merge changes from glibc
22472         Among other things, this should fix problems found by a Coverity
22473         scan and reported by Andrei Borzenkov:
22474         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
22475         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
22476         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
22477         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
22478         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
22479         * lib/argp.h:
22480         Merge changes from glibc.
22481         * tests/test-argp-2.sh: Adjust to match new behavior.
22483 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
22485         stddef: support configuring with g++
22486         Problem reported by Ángel González in:
22487         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
22488         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
22489         Do not define if _GCC_MAX_ALIGN_T is defined.
22491 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22493         test-framework-sh: minor cleanups
22494         * tests/init.sh (testdir_prefix_): Output a trailing newline,
22495         since strictly speaking POSIX requires this.
22496         (setup_): Do not use the variable 'fail', as that makes the
22497         trace output harder to read ('fail' is typically used by
22498         tests to mean the test failed).  Treat // portably.
22499         Check that new directory is not merely a sibling of the tmp dir.
22500         Avoid unnecessary invocation of tr.
22502         test-framework-sh: revert port to NetBSD 7.0
22503         It was a false alarm; I misinterpreted Assaf Gordon's report.
22504         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
22505         Restore.
22506         (test_dir_): Adjust to mktempd_ change.
22507         (mktempd_): Restore 2nd arg.  Use -t again.
22508         (base_template_, template_, nx_): Resurrect old code.
22510         Port better to Alpine Linux
22511         Its diff implementation does not support -c, but does support -U3.
22512         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
22513         * tests/init.sh (diff_opt_): New var.
22514         (compare_): Prefer diff -U3 to diff -c to plain diff.
22516 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22518         test-framework-sh: port to NetBSD 7.0
22519         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
22520         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
22521         Remove.  All uses removed.
22522         (test_dir_): Adjust to mktempd_ change.
22523         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
22524         (base_template_, template_, nx_): Simplify by hardcoding.
22526 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
22528         gitlog-to-changelog: suppress ignored chatter
22529         * build-aux/gitlog-to-changelog: Do not warn about skipping
22530         an SHA if it would have been ignored anyway.
22532 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
22534         setlocale: add "sv" to Windows language table
22535         * lib/setlocale.c (language_table) [W32]: Add "sv".
22536         Reported in <https://savannah.gnu.org/bugs/?44588>.
22538 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
22540         sys_select: port to new Cygwin
22541         Problem reported by Ken Brown in:
22542         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
22543         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
22544         diagnostics.
22546 2016-03-17  Jim Meyering  <meyering@fb.com>
22548         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
22549         * tests/test-userspec.c (main): Remove unnecessary braces and fix
22550         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
22551           test-userspec.c:176:9: error: statement is indented as if it were \
22552             guarded by... [-Werror=misleading-indentation]
22553                    {
22554                    ^
22555           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
22556                  if (!diag && !T[i].result)
22557                  ^~
22559 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
22561         time_rz: port to clang -Wunused-const-variable
22562         * lib/time_rz.c (TZ): Remove.  All uses removed.
22564         std-gnu11: improve clang support
22565         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
22566         2016-03-15 Also try clang
22567         2016-03-15 Port C11 and C++11 testing to clang
22569         select: port more to Intel 2016.1.150 compiler
22570         Problem reported by Balázs Hajgató in:
22571         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
22572         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
22574 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
22576         select: try to port to 2016.1.150 compiler
22577         Problem reported by Balázs Hajgató in:
22578         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
22579         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
22580         POSIX specifies 'restrict'.
22582 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
22584         localename-tests: memory allocation fixes
22585         * tests/test-localename.c (test_locale_name)
22586         (test_locale_name_thread): Don't call freelocale on a locale
22587         that was the base of a successful newlocale, as that
22588         results in a double free.  Problem reported by Assaf Gordon.
22589         (test_locale_name_thread): Free saved names after use, to pacify
22590         gcc -fsanitize=address.
22592 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22594         intprops: make .h file license match module
22595         * lib/intprops.h: Change the license wording to match glibc format.
22596         This is what is in modules/intprops anyway.  See:
22597         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
22599 2016-03-08  Eric Blake  <eblake@redhat.com>
22601         acl: fix missing return on Cygwin
22602         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
22603         fall off end of function. Fixes http://bugs.gnu.org/22949
22605 2016-03-05  Bruno Haible  <bruno@clisp.org>
22607         extern-inline: port to PGI CC
22608         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
22609         keyword 'inline'.
22610         Reported by Adam James Stewart in:
22611         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
22613 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22615         signbit: port back to pre-C++11 GCC
22616         * lib/math.in.h (signbit): Do previous change only if
22617         __cplusplus < 201103.  See Jonathan Wakely in:
22618         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
22620 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
22622         mountlist: recognize autofs-mounted remote file systems, too
22623         Originally reported at: https://bugzilla.redhat.com/1309247
22624         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
22625         "-hosts" because it is used by autofs to mount remote file systems.
22627 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22629         signbit: port to C++ with GCC 6
22630         * lib/math.in.h (signbit) [__cplusplus]:
22631         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
22632         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
22634         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
22636         regex: make it closer to libc
22637         Make Idx a signed type, rather than possibly unsigned.
22638         The unsignedness was not really buying us anything, since the code
22639         overflows for other reasons before getting to PTRDIFF_MAX.  Making
22640         it signed allows us to use -1 and -2 with abandon, like libc does,
22641         thus lessening the number of differences between gnulib and libc.
22642         Also, it should help avoid gratuitous warnings like the one
22643         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
22644         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
22647         regex: merge patches from libc
22649         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22650         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
22651         Convert miscellaneous function definitions to prototype style.
22652         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
22653         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
22654         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
22655         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
22656         (re_search_internal):
22657         Convert to prototype-style function definition.
22658         Use internal_function for internal functions.
22660 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
22662         stdalign: port to older HP and IBM cc
22663         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
22664         C compilers, by checking their version numbers.  These version
22665         numbers appear in MariaDB and in Qt code that dates way back and
22666         that conditiionally uses the 'aligned' attribute.
22668 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22670         stdalign: port to clang 3.7.0
22671         Problem reported by Herbert J. Skuhra in:
22672         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
22673         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
22674         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
22675         https://llvm.org/bugs/show_bug.cgi?id=26547
22677 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22679         readdir_r: now obsolescent
22680         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
22681         * lib/mountlist.c (read_file_system_list): Add a FIXME.
22683 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22685         misc: port better to gcc -fsanitize=address
22686         Without these patches, ./configure CFLAGS='-fsanitize=address'
22687         would compute incorrect values.  This patch fixes some (but not all)
22688         test failures with recent glibc, with this configuration.
22689         * m4/acl.m4 (gl_ACL_GET_FILE):
22690         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
22691         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
22692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
22693         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
22694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22695         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
22696         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
22697         * m4/getline.m4 (gl_FUNC_GETLINE):
22698         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
22699         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
22700         * m4/regex.m4 (gl_REGEX):
22701         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22702         * tests/test-calloc-gnu.c (main):
22703         * tests/test-duplocale.c (main):
22704         * tests/test-getgroups.c (main):
22705         * tests/test-getline.c (main):
22706         * tests/test-inttostr.c (main):
22707         * tests/test-localename.c (test_locale_name)
22708         (test_locale_name_thread, test_locale_name_environ)
22709         (test_locale_name_default):
22710         * tests/test-regex.c (main):
22711         * tests/test-setlocale1.c (main):
22712         * tests/test-stat.h (test_stat_func):
22713         Free heap-allocated storage before exiting.
22714         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
22715         Don't match *_foo symbols inserted by AddressSanitizer.
22716         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
22718 2016-02-02  Jim Meyering  <meyering@fb.com>
22720         verify-tests: also remove stray test-verify.Tpo
22721         * modules/verify-tests (Makefile.am): Arrange for "make clean"
22722         to remove the test-verify.Tpo file that is left behind by
22723         the automake-generated rule upon compilation failure.
22724         Otherwise, that .Tpo file would cause a failed "make distcheck"
22725         at least for grep.
22727 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
22729         std-gnu11: new module
22730         This makes it easier for applications to prefer C11 and C++11
22731         to older variants, when compiling C and C++ code.
22732         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
22733         a nontrivial chunk of GPLed Autoconf source code.
22734         * COPYING: Mention the m4/*.m4 copyright situation.
22735         * MODULES.html.sh (std-gnu11): New module.
22736         * m4/std-gnu11.m4, modules/std-gnu11: New files.
22738 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22740         get-permissions, strftime: fix grammar in comments
22741         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
22742         some grammar fixes Alan Mackenzie made to GNU Emacs.
22744 2016-01-25  Daiki Ueno  <ueno@gnu.org>
22746         gettext: mark as obsolete
22747         Suggested by Paul Eggert in:
22748         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
22749         * modules/gettext (Status): Mark as obsolete.
22750         (Notice): Suggest to use 'gettext-h' instead.
22751         * modules/gettext-h (Description): Suggest GNU gettext, instead of
22752         the 'gettext' module.
22754 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
22756         gnulib-tool: don't give up on ln -s so easily
22757         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
22758         because an earlier one failed.  The targets could be on different
22759         file systems.  Problem reported by KO Myung-Hun in:
22760         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
22762         closedir: fix OS/2-related typos
22763         Problem reported by KO Myung-Hun in:
22764         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
22765         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
22766         in the last couple of changes.
22768 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
22770         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
22771         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
22772         copying a directory.
22774 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
22776         regex: treat [x] as x if x is a unibyte encoding error
22777         Problem reported by Aharon Robbins in:
22778         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
22779         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
22780         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
22782         closedir, dirfd, opendir: port to OpenSolaris 5.10
22783         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
22784         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22785         * m4/opendir.m4 (gl_FUNC_OPENDIR):
22786         Don't use ${word##pat} substitution, as it doesn't work in
22787         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
22788         http://bugs.gnu.org/22443#11
22790 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22792         bootstrap: use American spelling
22793         * build-aux/bootstrap: Honor American spelling.
22795 2016-01-22  Karl Berry  <karl@freefriends.org>
22797         * doc/posix-functions/localtime.texi,
22798         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
22800 2016-01-21  Bruno Haible  <bruno@clisp.org>
22802         hash-pjw-bare: fix comment
22803         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
22805         wcwidth: Replace also on OpenBSD 5.8
22806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
22807         * doc/posix-functions/wcwidth.texi: Update.
22809 2016-01-20  Pádraig Brady  <P@draigBrady.com>
22811         gnu-web-doc-update: fix addition of new files
22812         If there were already added (emnpty) dirs,
22813         then cvs aborts the add with the message:
22814           cvs [add aborted]: there is a version in <./dirname> already
22815         * build-aux/gnu-web-doc-update: Add directories separately
22816         to the addition of files, to avoid the above issue
22817         impacting the addition of files.
22819 2016-01-19  Daiki Ueno  <ueno@gnu.org>
22821         utimens-tests: avoid pulling gettext .m4 files
22822         Although this is not the right fix to the original problem:
22823         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
22824         it makes it possible again for consumer projects to use arbitrary
22825         version of gettext, through the steps described at:
22826         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
22827         See here for details:
22828         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
22829         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
22830         'gettext'.
22831         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
22832         'gettext'.
22834 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22836         regex: pacify static checkers
22837         Problem and draft fix reported by Aharon Robbins in:
22838         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
22839         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
22840         Clear memory to pacify static checkers.
22842         regex: fix [ diagnostic
22843         Problem and fix reported by Aharon Robbins in:
22844         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
22845         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
22847         regex: fix memory leaks
22848         Problem and draft fix reported by Aharon Robbins in:
22849         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
22850         * lib/regcomp.c (build_range_exp, build_charclass_op)
22851         * lib/regex_internal.c (re_dfa_add_node):
22852         Fix memory leak on failure.
22854 2016-01-18  Pádraig Brady  <P@draigBrady.com>
22856         fts: don't unconditionally use leaf optimization for NFS
22857         NFS st_nlink are not accurate on all implementations,
22858         leading to aborts() if that assumption is made.
22859         See <https://bugzilla.redhat.com/1299169>
22860         * lib/fts.c (leaf_optimization_applies): Remove NFS from
22861         the white list, and document the issue.
22863 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22864             KO Myung-Hun  <komh@chollian.net>
22866         gnulib-tool: don't assume ln -s works
22867         * gnulib-tool (func_ln_s): New function.
22868         (func_ln): Use it.
22870 2016-01-15  KO Myung-Hun  <komh@chollian.net>
22872         utimes: detect utimes() correctly on OS/2 kLIBC
22873         utimes() of OS/2 kLIBC has some limitations.
22874         1. OS/2 itself supports a file date since 1980 year in local time.
22875         2. OS/2 itself supports only even seconds for a file time.
22876         3. utimes() of OS/2 kLIBC does not work on an opened file.
22877         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
22878         * doc/posix-functions/utimes.texi: Document the above limitations of
22879         utimes() on OS/2 kLIBC.
22881 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22882             KO Myung-Hun  <komh@chollian.net>
22884         openat_proc_name: port to OS/2 kLIBC
22885         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
22886         instead of /proc/self/fd.
22887         * lib/openat-proc.c (openat_proc_name):
22888         Don't assume file name length is less than INT_MAX.
22889         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
22891 2016-01-14  KO Myung-Hun  <komh@chollian.net>
22893         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
22894         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
22895         definitions of intptr_t and uintptr_t (which use int and unsigned)
22896         to avoid clashes with declarations of system functions like sbrk.
22897         * lib/stdint.in.h (intptr_t, uintptr_t): Check
22898         _INTPTR_T_DECLARED before defining them.
22900         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
22901         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
22902         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
22903         Declare on kLIBC.
22904         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
22905         fd associated with dirp.
22906         (_gl_register_dirp_fd): New. Register fd associated with dirp to
22907         dirp_fd_list.
22908         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
22909         (dirfd): Implemented for kLIBC.
22910         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
22911         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
22912         succeeds.
22913         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
22914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22915         (REPLACE_DIRFD): Define to 1 if replaced.
22916         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22917         * modules/closedir (Depends-on): Add dirfd.
22918         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
22919         condition.
22920         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
22921         * modules/opendir (Depends-on): Add dirfd.
22923         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
22924         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
22925         * lib/dup.c (dup_nothrow): New.
22926         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
22927         (klibc_dup2): New.
22928         * lib/fcntl.c (klibc_fcntl): New.
22929         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
22930         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
22931         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
22932         fd.
22934         pipe_filter_ii_execute: port to OS/2 kLIBC
22935         Pipes on kLIBC do not support O_NONBLOCK like Win32.
22936         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
22937         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
22938         Reuse Win32 code on OS/2 kLIBC.
22939         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
22940         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
22942         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
22943         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
22944         static inline function.  The implementation of wcwidth in wcwidth.c
22945         causes a "conflicting types" error.
22946         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
22948         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
22949         spawn() on OS/2 kLIBC is not silly like one on Windows
22950         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
22951         empty string on OS/2 kLIBC.
22953         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
22954         On OS/2 kLIBC, select() works only on sockets.
22955         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
22957         binary-io: don't put fd in binary mode if it is a console on EMX
22958         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
22959         a console on EMX.
22961 2016-01-15  Pádraig Brady  <P@draigBrady.com>
22963         doc: mention unfixed issues with unsupported localtime() values
22964         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
22965         returns nonsense for localtime(2^56).
22966         * doc/posix-functions/localtime_r.texi: Likewise.
22968 2016-01-14  Pádraig Brady  <P@draigBrady.com>
22970         doc: mention setlocale() issues on OpenBSD
22971         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
22972         never fails, and the need to check categories individually.
22974 2016-01-14  Pádraig Brady  <P@draigBrady.com>
22976         sig2str: list all signals on FreeBSD >= 7
22977         FreeBSD >= 7 is contravening POSIX by not defining NSIG
22978         to the maximal statically defined signal value.
22979         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
22980         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
22981         where available, even when NSIG is defined.
22983 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
22985         acl-permissions: port to USE_ACL==0 platforms
22986         I ran into this problem when building bleeding-edge GNU Emacs
22987         with gcc -fsanitize=address on Fedora 23.  On this platform
22988         the ACL library does not pass the 'configure' test and Emacs
22989         then does not build due in part to what appear to be typos in the
22990         ACL part of Gnulib.
22991         * lib/acl-internal.c (free_permission_context):
22992         * lib/acl-internal.h (struct permission_context):
22993         Test whether USE_ACL is nonzero, not whether it is defined.
22995 2016-01-12  Martin Sebor  <msebor@redhat.com>
22997         mktime: rename macro to avoid glibc clash
22998         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
22999         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
23001 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
23003         Port "$@" to OpenIndiana ksh93
23004         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
23005         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
23006         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
23007         bug long-dead shells, so remove the workaround.
23008         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
23009         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
23010         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
23011         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
23012         Use "$@" instead of ${1+"$@"}.
23014         Port Universal Time settings to strict POSIX
23015         * build-aux/announce-gen, build-aux/bootstrap:
23016         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
23017         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
23018         * build-aux/gnupload, build-aux/mkinstalldirs:
23019         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
23020         * build-aux/update-copyright, build-aux/useless-if-before-free:
23021         * build-aux/vc-list-files, tests/test-strftime.c:
23022         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
23023         but POSIX says the behavior of TZ="UTC" is undefined.
23025 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
23027         msvc-inval: fix problem with unset shell var
23028         Problem reported by Karl Berry in:
23029         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
23030         * modules/msvc-inval (Depends-on):
23031         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
23032         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
23034 2016-01-01  Pádraig Brady  <P@draigBrady.com>
23036         tests: for compare_(), use cmp -s where available
23037         * tests/init.sh (compare_): Only fall back to cmp without
23038         the POSIX defined -s option, where this is not available.
23040 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23042         version-etc: new year
23043         * build-aux/gendocs.sh (version):
23044         * doc/gendocs_template:
23045         * doc/gendocs_template_min:
23046         * doc/gnulib.texi:
23047         * lib/version-etc.c (COPYRIGHT_YEAR):
23048         Update copyright dates by hand in templates and the like.
23049         * all files: Run 'make update-copyright'.
23051 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
23053         human: fix output buffer overrun by 1
23054         * lib/human.c (human_readable): Fix off-by-one typo in buffer
23055         calculation that could lead to a one-byte buffer overrun.
23057 2015-12-28  Daiki Ueno  <ueno@gnu.org>
23059         maint: fix operator precedence in mbrtowc test
23060         This is a fix for test breakage introduced by commit 45228d96; the
23061         equality expression must be parenthesized when negated with '!',
23062         otherwise we always get:
23064           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
23066         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
23067         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
23069 2015-12-23  James Youngman  <jay@gnu.org>
23071         regexprops-generic: update from regex.h
23072         * doc/regexprops-generic.texi: update by running the regexprops binary
23073         from findutils (the command line is 'regexprops "Regular Expressions"
23074         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
23075         gnulib with GNU grep had made this document out-of-date.
23077 2015-12-23  Pádraig Brady  <P@draigBrady.com>
23079         strftime-tests: avoid false failure on OS X
23080         * tests/test-strftime.c (struct localtime_rz_test): Add an
23081         ahistorical member which is used to warn rather than fail
23082         when tm_isdst isn't set for such entries.  This is the case for
23083         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
23085 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
23087         fts: ensure leaf optimization is used for NFS
23088         NFS provides usable dirent.d_type but not necessarily for all entries
23089         of large directories.  See <https://bugzilla.redhat.com/1252549>
23090         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
23092 2015-12-20  Pádraig Brady  <P@draigBrady.com>
23094         fts: enable leaf optimization for XFS
23095         XFS provides usable dirent.d_type only for DT_DIR,
23096         but the noleaf optimization still applies.
23097         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
23099 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23101         intprops: comment fix
23102         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
23103         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
23105         intprops-test: work around GCC bug 68971
23106         Problem reported by Pádraig Brady in:
23107         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
23108         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
23109         (main): Add a case that better tests 64-bit long in this area.
23111 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
23113         gnulib-tool: allow multiple --local-dir usage
23114         * gnulib-tool: Use --local-dir to construct compound
23115         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
23116         PATH_SEPARATOR early.
23117         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
23118         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
23119         func_determine_path_separator because that needs to be detected
23120         earlier now.
23121         (func_determine_path_separator): New function.
23122         (func_path_foreach, func_path_foreach_inner): New functions.
23123         (func_path_prepend, func_path_append): Likewise.
23124         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
23125         (func_lookup_file, func_all_modules): Use new functions to work
23126         with local_gnulib_path.
23127         (func_modules_in_dir, func_exists_module): New callbacks for
23128         func_path_foreach.
23129         (func_exists_module, func_get_tests_module): Likewise.
23130         (func_is_local_file, func_should_symlink): New helper methods.
23131         (func_add_file, func_update_file): Use new func_should_symlink
23132         instead, DRY.
23133         (func_reconstruct_cached_local_gnulib_path): New helper.
23134         (func_reconstruct_cached_dir): New callback.
23135         (func_import): The cached_local_gnulib_dir renamed to
23136         cached_local_gnulib_path similarly to local_gnulib_dir.
23137         Use new func_reconstruct_cached_local_gnulib_path.
23138         (func_count_relative_local_gnulib_path): New sub-method.
23139         (func_create_testdir): Use func_should_symlink, DRY.
23140         (func_create_megatestdir): Use new functions to work with
23141         local_gnulib_path correctly.
23142         (func_append_local_dir): New helper.
23144 2015-12-08  Pádraig Brady  <P@draigBrady.com>
23146         fix freadptr to work with ungetc on all uClibc configs
23147         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
23148         where GNU coreutils cut(1) generates invalid output on uClibc
23149         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
23150         * lib/freadptr.c (freadptr): Return NULL if there are
23151         ungotten chars.  In this case freadseek() will iterate
23152         again to process the ungotten character.
23154 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
23156         xalloc-oversized: improve performance with GCC 5
23157         * lib/xalloc-oversized.h (xalloc_oversized):
23158         Improve performance with GCC 5 by using __builtin_mul_overflow.
23160 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23162         intprops: new public macro EXPR_SIGNED
23163         Emacs can use this macro, so make it public.
23164         * doc/intprops.texi (Arithmetic Type Properties): Rename from
23165         'Integer Type Determination', since some of these macros apply
23166         to non-integer types.  Clarify what kinds of constant expressions
23167         these macros return.  Say when the arguments can be non-integers.
23168         Mention newly published macro EXPR_SIGNED.
23169         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
23170         make it public.  All uses changed.
23172         intprops: fix typo in clang port
23173         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
23174         '__builtin_add_overflow' that is not caught by compiler.
23176 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
23178         test-timespec: fix typo in previous change
23179         * tests/test-timespec.c (main): Fix typo that reduced test quality.
23181         timespec-sub: fix overflow bug; add tests
23182         * lib/timespec-add.c (timespec_add):
23183         * lib/timespec-sub.c (timespec_sub):
23184         Work even if time_t is narrower than int (a theoretical
23185         possibility).  Redo code for a bit more clarity.
23186         * lib/timespec-sub.c (timespec_sub):
23187         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
23188         * modules/timespec-tests, tests/test-timespec.c: New files.
23190         intprops-test: suppress -Woverlength-strings
23191         Problem reported by Pádraig Brady in:
23192         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
23193         It is not worth the hassle to port this test to compilers that
23194         cannot handle long strings in diagnostics.
23195         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
23197 2015-11-03  Pádraig Brady  <P@draigBrady.com>
23199         quotearg: add quotearg_n_style_colon()
23200         This quotes with default options of the specified style,
23201         but with quoting enabled for instances of ':'.
23202         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
23203         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
23205 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23207         intprops: revise _WRAPV macros, revert _OVERFLOW
23208         The incompatible changes to the _OVERFLOW macros were too much of
23209         a hassle in practice, so revert them.  Instead, change the new
23210         _WRAPV macros to make them closer in behavior to GCC 5's new
23211         builtin_add_overflow etc. functions.  No other software was using
23212         these newly-added macros yet, so this should be OK.
23213         * NEWS: Revert previous change, since the incompatible change
23214         has been reverted, and nobody used the incompatible version.
23215         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
23216         Document revised behavior.
23217         (Integer Range Overflow): Adjust example to match above revisions.
23218         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
23219         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
23220         these can be used in integer constant expressions again.
23221         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
23222         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
23223         needed.
23224         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
23225         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
23226         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
23227         Remove, as they did not seem that useful.
23228         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
23229         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
23230         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23231         Support new semantics.
23232         (__has_builtin): New macro, if not alreay defined.
23233         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
23234         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
23235         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
23236         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
23237         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
23238         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
23239         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
23240         New macros.
23241         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
23243 2015-11-03  Jim Meyering  <meyering@fb.com>
23245         intprops: add parentheses for when OP has precedence lower than "-"
23246         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
23247         "a OP b" must be parenthesized for when OP is like "<<", which has
23248         lower precedence than the following "-". Reported by Pádraig Brady.
23250 2015-11-03  Pádraig Brady  <P@draigBrady.com>
23252         quotearg: constify get_quoting_style parameters
23253         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
23254         * lib/quotearg.c (get_quoting_style): Likewise.
23256 2015-11-02  Pádraig Brady  <P@draigBrady.com>
23258         quotearg: add support for $'' shell escaping
23259         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
23260         items and descriptions.
23261         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
23262         above types by quoting like "shell", but using $'...' syntax
23263         for non printable characters, which should provide unambiguous
23264         printable output for any input.
23265         * tests/test-quotearg-simple.c: Update accordingly.
23267 2015-11-02  Pádraig Brady  <P@draigBrady.com>
23269         maint: use a more standard return from mbrtowc test
23270         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
23271         from the test program as this is non standard and often
23272         indicates an unhandled case in the test program.
23273         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
23275 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23277         intprops: add WRAPV and const flavors for GCC 5
23278         If available, use GCC 5's builtin functions for efficient integer
23279         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
23280         and safely compute the low-order bits of the correct answer.
23281         A downside of these efficient functions is that they cannot be
23282         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
23283         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
23284         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
23285         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
23286         Document the changes.
23287         (Wraparound Arithmetic): New section.
23288         (Integer Range Overflow):
23289         Put this subsection last, since it's least useful.
23290         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
23291         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
23292         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
23293         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
23294         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
23295         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
23296         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
23297         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
23298         New macros.
23299         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
23300         Generate calls to GCC builtins if available, for speed.
23301         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
23302         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
23303         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
23304         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
23305         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
23306         (CHECK_QUOTIENT, CHECK_REMAINDER):
23307         Test WRAPV and CONST flavors (when available) too.
23309 2015-10-30  Pádraig Brady  <P@draigBrady.com>
23311         doc: use extended timezone format in iso-8601 example
23312         * doc/parse-datetime.texi: The standard states that extended format
23313         is to be used consistently throughout.
23314         Note that lib/parse-datetime.y can handle either tz format.
23316 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23318         stdalign: port to Sun C 5.9
23319         * doc/posix-headers/stdalign.texi: Document this.
23320         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
23321         __attribute__ ((__aligned__ (...))).
23323 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23325         time_rz: fix comment about tzalloc
23326         * lib/time_rz.c (tzalloc): Fix comment.
23328 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23330         stdalign: work around pre-4.9 GCC x86 bug
23331         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
23332         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
23333         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
23335 2015-10-18  Pádraig Brady  <P@draigBrady.com>
23337         maint.mk: sc_tight_scope: remove extraneous expressions
23338         * top/maint.mk (tight_scope): This is not really required since
23339         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
23340         that matches all nm entries.  But it does remove extraneous entries
23341         that may be confusing or cause issue in future maintenance.
23343 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23345         time_rz: return NULL if localtime_r fails
23346         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
23347         while still attempting to pacify bleeding-edge GCC.
23349         fts: port to C11 alignof
23350         * doc/posix-headers/stdalign.texi (stdalign.h):
23351         Document the C11 restriction.
23352         * lib/fts.c: Include stddef.h, for max_align_t.
23353         (fts_alloc): Align using max_align_t, not FTSENT.
23354         * modules/fts (Depends-on): Add stddef.
23356 2015-10-18  Jim Meyering  <meyering@fb.com>
23358         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
23359         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
23360         would see this:
23362         lib/time_rz.c: In function 'localtime_rz':
23363         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
23364           [-Werror=nonnull]
23365                    if (tm && !save_abbr (tz, tm))
23366                        ^
23368         That was complaining about "tm" because it is a parameter that was
23369         declared with the __nonnull__ attribute.
23370         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
23371         result of localtime_r.
23373 2015-10-17  Jim Meyering  <meyering@fb.com>
23375         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
23376         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
23377         name-extraction regexp mistakenly used \S+, and would mistakenly
23378         extract "*F" from "extern int *F()" rather than the desired "F".
23379         Use \w+ instead.
23381 2015-10-17  Jim Meyering  <meyering@fb.com>
23383         maint.mk: sc_tight_scope: factor and support OS X
23384         * top/maint.mk (_gl_tight_scope): Address three issues:
23385         - factor out four instances of code that wraps a string in "^...$"
23386         - allow nm-reported symbol names to have an optional leading "_"
23387         - add "main" to the list of ignored variable names, because on os x,
23388         "main" has nm-reported type "S" in the variable-checking section.
23390 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
23392         safe-alloc-tests: fix typo in license header
23393         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
23395 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
23397         copy-file: fix mem leak in error case
23398         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
23399         upon error opening or performing I/O to the src and dest files.
23401 2015-10-15  Mike Frysinger  <vapier@chromium.org>
23403         localename: control langinfo.h inclusion
23404         This header is only used to work around buggy behavior in old
23405         versions of glibc, so do not include it all the time.  Otherwise
23406         we get build failures on systems that do not provide langinfo.h.
23407         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
23408         in the source later on.
23409         The patch was originally submitted to gettext as:
23410         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
23412 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23414         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
23415         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
23416         * lib/u64.c, lib/unistd.c:
23417         Append 'typedef int dummy;', to pacify compilers that are picky
23418         about empty translation units.
23420 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
23422         accept4-tests: fix to avoid non portable flags
23423         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
23424         as they are the only documented ones, and passing others may trigger
23425         EINVAL (seen on FreeBSD 10.1-RELEASE).
23426         * doc/glibc-functions/accept4.texi: Mention that we don't provide
23427         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
23429 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
23431         gnulib-tool: fix tests of 'extensions' module
23432         This complements f8fe25fab60e3c687a124 commit.
23433         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
23434         emitting of initial gl_EARLY macros.
23435         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
23436         replaced with func_emit_pre_early_macros call.
23438 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23440         unicase/locale-language: fix typo in utf-8 cookie
23441         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
23442         Problem reported by Zbigniew Jędrzejewski-Szmek.
23444 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23446         xalloc: do not worry about GCC 5 warning on 32 bit
23447         * lib/xalloc.h: Revert previous change.
23448         I found a better way to fix this in coreutils.
23450 2015-10-02  Pádraig Brady  <P@draigBrady.com>
23452         xalloc: avoid GCC 5.1 warning on 32 bit
23453         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
23454         xalloc_oversized(), which was seen to give this warning
23455         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
23456         when simplifying conditional".
23458 2015-10-02  Daiki Ueno  <ueno@gnu.org>
23460         uniname/uniname-tests: avoid compiler warnings
23461         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
23462         unused local variables.
23463         (test_alias_lookup): Fix alias name display in failure cases.
23465 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23467         c-ctype: do not worry about EBCDIC + char signed
23468         Drop support for EBCDIC with char being signed, as this breaks too
23469         many programs.  Problem reported by Ben Pfaff in:
23470         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
23471         * lib/c-ctype.h: Verify that we are not using EBCDIC with
23472         char being signed.
23473         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
23474         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
23475         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
23476         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
23477         * tests/test-c-ctype.c (test_all):
23478         Simplify by assuming standard char values cannot be negative.
23479         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
23481 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23483         c-ctype: port better to z/OS EBCDIC
23484         Problems reported by Daniel Richard G. in:
23485         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
23486         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
23487         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
23488         (_C_CTYPE_OTHER_CNTRL): New macro.
23489         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
23490         from SCHAR_MIN, as the functions are defined only from values
23491         promoted from char or from unsigned char, not necessarily from
23492         signed char.
23494 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
23496         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
23498         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
23499         and ARFLAGS variables.  Doing this unconditionally could break
23500         later Automake's AM_PROG_AR invocation (at least it's
23501         AC_CHECK_TOOLS call to detect correct 'ar' binary).
23503         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
23504         Amsterdam Compiler Kit, so make the previous code to have effects
23505         only on ACK, and rather automatically call the Automake's
23506         AM_PROG_AR as soon as possible to decide other cases.
23508         References:
23509         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
23511         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
23512         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
23513         is possible, keep setting AR/ARFLAGS to reasonable defaults.
23514         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
23515         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
23516         'extensions' module is used.
23517         * modules/extensions (configure.ac-early): Remove as this snippet
23518         is added to gnulib-comp.m4 earlier anyway.
23520 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23522         sockets: MS Windows initalization fixes
23523         Problem reported by Test User in:
23524         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
23525         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
23526         Correct the endianness.
23527         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
23528         number mismatch, not just on <.  Cleanup before any such failure.
23530 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
23532         gc: fix detection of installed libgcrypt version
23533         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
23534         at least as recent as 1.4.4.  The previously used macro is not
23535         available now, since modules were removed in version 1.6.0.
23537 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23539         c-ctype: rewrite to use inline functions
23540         This simplifies maintenance, since it makes for just one
23541         implementation of each function, letting the compiler have the fun
23542         of optimization.  In practice this works well nowadays with GCC.
23543         E.g., c_isascii might need only three instructions even though the
23544         source code lists every ASCII character individually in a large
23545         switch statement.
23546         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
23547         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
23548         * NEWS: Document the API change.
23549         * lib/c-ctype.c: Drastically simplify, since this now just expands
23550         inline functions.
23551         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
23552         (C_CTYPE_INLINE): New macro.
23553         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
23554         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
23555         Verify that either ASCII or EBCDIC is being used.
23556         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
23557         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
23558         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
23559         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
23560         New private macros.
23561         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
23562         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
23563         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
23564         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
23565         (c_tolower, c_toupper): When converting, return the unsigned char,
23566         as that is what z/OS does.
23567         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
23568         of some c-ctype.h macros.
23569         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
23570         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
23571         c_tolower promotion to be compatible with z/OS.
23573 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
23575         gitlog-to-changelog: trim only trailing whitespaces
23576         This is fix for --format regression introduced by commit
23577         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
23578         doubled %n string) had no effect anymore.  This format
23579         specification has been used e.g. by GNU paxuitils (commit
23580         edfd8bcc3).
23582         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
23583         newlines in commmit messages.
23585 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23587         Test that c_iscntrl agrees with iscntrl, etc.
23588         Suggested by Daniel Richard G. in:
23589         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
23590         * modules/c-ctype-tests (Depends-on): Add ctype.
23591         * tests/test-c-ctype.c: Include <ctype.h>.
23592         (NCHARS): New constant.
23593         (test_agree_with_C_locale): New function.
23594         (main): Use it.
23595         (test_all): Use named constants.
23597         c-ctype: improve c_isascii testing
23598         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
23599         Add a test to count the number of ASCII characters.
23601 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23603         savewd: remove SAVEWD_CHDIR_READABLE
23604         It was problematic in the light of file systems that ignore umask.
23605         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
23606         * NEWS: Document this.
23607         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
23608         successful, -1 (setting errno) on failure, rather than something
23609         more complicated than that.
23610         * lib/mkdir-p.c (make_dir_parents):
23611         Do not use SAVEWD_CHDIR_READABLE.
23612         * lib/savewd.c (savewd_chdir):
23613         Remove support for SAVEWD_CHDIR_READABLE.
23614         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
23616         c-ctype: port better to EBCDIC
23617         Problems reported by Daniel Richard G. in
23618         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
23619         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
23620         Include "verify.h".
23621         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
23622         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
23623         Define as enum constants with value false, if not defined, so that
23624         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
23625         code more portable, as both branches of the 'if' are compiled on
23626         all platforms.
23627         (C_CTYPE_EBCDIC): New constant.
23628         Verify that the character set is either ASCII or EBCDIC.
23629         (to_char): New static function.
23630         (c_isascii, c_iscntrl):
23631         Assume standard control-character assignments for EBCDIC.
23632         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
23633         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
23634         Rewrite to use 'if' instead of 'ifdef'.
23635         Use to_char if non-ASCII.  Prefer <= to >=.
23636         Prefer true and false to 1 and 0, for booleans.
23637         (c_iscntrl): Use 'if', not 'ifdef'.
23638         * modules/c-ctype (Depends-on): Add verify.
23639         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
23640         (to_char): New function.
23641         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
23643 2015-09-21  Pádraig Brady  <P@draigBrady.com>
23645         nanosleep: fix return code for interrupted replacement
23646         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
23647         that we return -1 in the case the call is interrupted by a signal,
23648         rather than the current value of 1.
23649         Diagnosed and tested by Daniel Richard G.
23651 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
23653         Diagnose ERE '()|\1'
23654         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
23655         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
23656         track of the set of previously-completed subexpressions available
23657         before the first alternative, and restore this set just before
23658         parsing each subsequent alternative.  This lets us diagnose the
23659         invalid back-reference in the ERE '()|\1'.
23661         regex: merge patches from libc
23663         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
23664         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
23665         * lib/regex_internal.h:
23666         Include <libc-lock.h> instead of <bits/libc-lock.h>.
23668         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
23669         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
23670         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
23671         wcscoll.
23672         * lib/regexec.c (check_node_accept_bytes): Likewise.
23674         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23675         Fix regex wcrtomb namespace (bug 18496).
23676         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
23677         instead of wcrtomb.
23679         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
23680         Fix regex wctype namespace (bug 18495).
23681         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
23682         instead of towlower.
23683         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
23684         instead of iswlower.  Call __towupper instead of towupper.
23685         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
23686         instead of iswalnum.
23688         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
23689         * lib/regcomp.c (parse_bracket_exp): Initialize type to
23690         COLL_SYM in a couple of places to avoid uninitialized variable
23691         wanings on tilegx gcc 4.8.2.
23693         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23694         * lib/regex_internal.h: Remove NOT_IN_libc.
23696         2014-11-17  Andreas Schwab  <schwab@suse.de>
23697         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
23699         2014-09-11  Roland McGrath  <roland@hack.frob.com>
23700         Move findidx nested functions to top-level.
23701         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
23702         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
23703         Pass new arguments to findidx.
23704         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
23705         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
23706         Don't #include it inside the function.  Pass new arguments to findidx.
23707         * lib/regex_internal.h:
23708         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
23709         (re_string_elem_size_at): Don't #include it inside the function.
23710         Pass new arguments to findidx.
23712         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
23713         Check if DEBUG is defined in regex_internal.c
23714         * lib/regex_internal.c: Check if DEBUG is defined and is set.
23716 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
23718         ceill: detect buggy OpenBSD implementation
23719         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
23720         which returns zero for small values.  Discussed here:
23721         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
23723 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
23725         mountlist: add me_mntroot field on Linux machines
23726         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
23727         mount_entry so Linux machines based on /proc/self/mountinfo can
23728         distinguish between bind mounts and original mounts.  In reality bind
23729         mounts aren't treated differently than mountroot=/ mounts by the
23730         kernel, but the user often wants these bind mounts distinguished.
23731         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
23732         More details at https://pad.lv/1432871
23734 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
23736         doc: Describe to use multiple instances of gnulib
23737         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
23738         instances of gnulib with different modules can be used, for example one
23739         for a lib and another one for associated tools.
23741 2015-09-01  Pádraig Brady  <P@draigBrady.com>
23743         base32: mark function as __attribute__ const
23744         * lib/base32.h (isbase32): Mark __attribute__ const as
23745         suggested by GCC, and consistent with the base64 module.
23747 2015-08-20  Daiki Ueno  <ueno@gnu.org>
23749         gnulib-tool: don't transform binary files with sed
23750         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
23751         .mo and .class files.
23752         Reported by Denis Denisov.
23754 2015-08-10  Daiki Ueno  <ueno@gnu.org>
23756         gperf: respect silent rules
23757         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
23758         V_GPERF_0 for silent rules.
23759         * modules/iconv_open (Makefile.am): Use V_GPERF.
23760         * modules/unicase/locale-language (Makefile.am): Likewise.
23761         * modules/unicase/special-casing (Makefile.am): Likewise.
23762         * modules/unictype/category-byname (Makefile.am): Likewise.
23763         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
23764         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
23765         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
23766         * modules/unictype/property-byname (Makefile.am): Likewise.
23767         * modules/unictype/scripts (Makefile.am): Likewise.
23768         * modules/uninorm/composition (Makefile.am): Likewise.
23770 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23772         Improve port of stdalign to C++11
23773         Problem reported by Sundaram in:
23774         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
23775         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
23776         (__alignas_is_defined): Define if C++11 or newer.
23778 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
23780         pmccabe2html: fix gawk regex escaping
23781         * build-aux/pmccabe2html: Add one more backslash to properly
23782         escape the gsub replacement value.  Fixes this error:
23783         gawk: ./build-aux/pmccabe2html:425: \
23784         warning: escape sequence `\&' treated as plain `&'
23786 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
23788         time_rz: port to pedantic memcpy
23789         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
23790         that reject memcpy (..., NULL, 0).
23792 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
23794         time_rz: port better to MinGW
23795         Don't change tzname, as this makes MinGW dump core (Bug#21020).
23796         Instead, store the tzname copy in the struct tm_zone object.
23797         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
23798         * lib/strftime.c [!_LIBC]:
23799         * lib/time_rz.c: Include time-internal.h.
23800         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
23801         name from *TZ rather than from TZNAME, doable because *TZ now has
23802         a tzname_copy member.
23803         * lib/time-internal.h: New file, with contents taken from
23804         lib/time_rz.c.  It's separate because strftime.c now accesses
23805         struct tm_zone members.
23806         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
23807         New member tzname_copy.
23808         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
23809         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
23810         Initialize tzname_copy member.
23811         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
23812         in tzname_copy member.
23813         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
23814         (restore_tzname): Remove; no longer needed.  All calls removed.
23815         * modules/time_rz (Files): Add lib/time-internal.h.
23817         time: port __need_time_t to MinGW
23818         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
23819         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
23821 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
23823         strftime: fix newly-introduced bug on Solaris
23824         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
23825         consistently at the start, rather than doing some of the setup at
23826         the start and some in the %Z format spec.  This is cleaner, and
23827         works better with time_rz on platforms like Solaris where struct
23828         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
23829         mktime_z and localtime_rz can mess up the tzname cache.
23831         test-strftime: test for Solaris bug
23832         * modules/strftime-tests (Depends-on): Add strerror.
23833         * tests/test-strftime.c: Include <errno.h>.
23834         (posixtm_test): New function, containing the old 'main'.
23835         (struct tzalloc_test, struct localtime_rz_test): New types.
23836         (TZ, LT): New static vars.
23837         (tzalloc_test): New function.
23838         (main): Rewrite in terms of posixtm_test and tzalloc_test.
23840         time_rz: port to Solaris etc.
23841         Works around a tzname problem on platforms like Solaris that have
23842         tzname but not tm_zone, by setting tzname at the appropriate time
23843         and restoring it later.
23844         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
23845         New static vars.
23846         (save_abbr) [HAVE_TZNAME]: Set them.
23847         (revert_tz) [HAVE_TZNAME]: Clear or use them.
23848         (restore_tzname): New function.
23849         (localtime_rz, mktime_z): Use it.
23851         time_rz: now LGPL
23852         * modules/time_rz (License): Now LGPL, because strftime depends on it.
23854         time_rz: make a constant 'const'
23855         * lib/time_rz.c (local_tz): Now const.
23857         time_rz: fix off-by-one typo
23858         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
23860 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
23862         fprintftime, strftime: use timezone_t args
23863         * NEWS: Document the change.
23864         * lib/fprintftime.h (fprintftime):
23865         * lib/strftime.c (extra_args) [my_strftime]:
23866         * lib/strftime.h (nstrftime):
23867         Time zone arg is now of type timezone_t, not int.
23868         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
23869         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
23870         (my_strftime) [emacs && !my_strftime]:
23871         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
23872         Remove; Emacs doesn't need this any more.
23873         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
23874         fprintftime and nstrftime to call tzset.
23875         (ut) [!my_strftime]: Remove, replacing with ...
23876         (tz) [!my_stftime]: ... this new macro.  All uses changed.
23877         (strftime_case_): Use localtime_rz and mktime_z instead
23878         of localtime_r and mktime.
23879         * modules/fprintftime (Depends-on): Add time_rz.
23880         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
23881         * tests/test-strftime.c (main): Adjust to new nstrftime API.
23883         time_rz: new module
23884         * MODULES.html.sh: Add time_rz.
23885         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
23886         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
23887         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
23888         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
23889         New var HAVE_TIMEZONE_T (default 0).
23890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23891         New var GNULIB_TIME_RZ (default 0).
23892         * modules/time (time.h): Substitute the new vars.
23894         flexmember: license is now unlimited
23895         * modules/flexmember (License): Change to unlimited,
23896         since its only source file gives an unlimited license.
23898 2015-07-15  Eric Blake  <eblake@redhat.com>
23900         maint: update copyright paper procedures
23901         * config/srclist.txt: Drop outdated files.
23902         * doc/Copyright/conditions.txt: Update to latest.
23903         * doc/Copyright/assign.changes.manual: Delete.
23904         * doc/Copyright/assign.future.manual: Likewise.
23905         * doc/Copyright/assign.manual: Likewise.
23906         * doc/Copyright/assign.translation.manual: Likewise.
23907         * doc/Copyright/disclaim.changes.manual: Likewise.
23908         * doc/Copyright/disclaim.manual: Likewise.
23909         * doc/Copyright/disclaim.program: Likewise.
23911 2015-07-07  Daiki Ueno  <ueno@gnu.org>
23913         localename: fix link error on Illumos
23914         Illumos defines __sun, but does not have getlocalename_l nor the
23915         equivalent.  This partially reverts commit 387c214.
23916         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
23917         available, as well as uselocale.
23918         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
23919         use getlocalename_l if it is not available.
23921 2015-07-07  Daiki Ueno  <ueno@gnu.org>
23923         unistr/uN-strtok-tests: avoid a trivial leak
23924         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
23925         input and delim after the multibyte delimiter tests.
23927 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23929         file-has-acl, acl-permissions: fix HP-UX typos
23930         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
23931         * lib/file-has-acl.c (file_has_acl):
23932         * lib/set-permissions.c (context_acl_from_mode)
23933         (context_aclv_from_mode, set_acls):
23934         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
23935         They were introduced by the recent ACL changes.
23937         regex: match current GNU grep behavior
23938         These symbols have not matched GNU grep behavior for quite some time.
23939         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
23940         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
23941         Change to match current GNU behavior.
23942         Simplify by expressing it as differences from POSIX BREs and EREs.
23943         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
23945 2015-07-03  Jim Meyering  <meyering@fb.com>
23947         set-permissions.c: adjust acl_from_mode's cpp guard
23948         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
23949         directives identical to those guarding the sole use.
23950         Otherwise, on some systems, we'd get a warning about
23951         the function being defined but not used.
23952         Also, filter through cppi to correct misleading indentation
23953         of cpp directives.
23955 2015-07-03  Pádraig Brady  <P@draigBrady.com>
23957         tests: restrict shells to those that support 'local'
23958         The local keyword is very widely supported and used
23959         in tests in coreutils and grep at least.  Therefore
23960         restrict to testing with shells that support it.
23961         This mainly excludes /bin/sh on Solaris.
23962         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
23964 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
23965         and Daiki Ueno  <ueno@gnu.org>
23967         unistr/uN-strtok: handle multibyte delimiters
23968         Previously, uN_strtok moved PTR to the next unit to the token end.
23969         When DELIM contained a multibyte character, the new position could
23970         be a middle of a multibyte character.
23971         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
23972         after the token.
23973         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
23974         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
23975         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
23976         * modules/unistr/u8-strtok (Depends-on): Depend on
23977         unistr/u8-strmblen.
23978         * modules/unistr/u16-strtok (Depends-on): Depend on
23979         unistr/u16-strmblen.
23980         * modules/unistr/u32-strtok (Depends-on): Depend on
23981         unistr/u32-strmblen.
23982         * tests/unistr/test-u-strtok.h: New file.
23983         * tests/unistr/test-u8-strtok.c: New file.
23984         * tests/unistr/test-u16-strtok.c: New file.
23985         * tests/unistr/test-u32-strtok.c: New file.
23986         * modules/unistr/u8-strtok-tests: New file.
23987         * modules/unistr/u32-strtok-tests: New file.
23988         * modules/unistr/u16-strtok-tests: New file.
23990 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
23992         update-copyright: fix test failure with perl >= 5.22 (trivial)
23993         * build-aux/update-copyright: Escape a literal left curly bracket,
23994         required with perl >= 5.22
23996 2015-07-02  Daiki Ueno  <ueno@gnu.org>
23998         u{16,32}-strstr-tests: relax timeout condition
23999         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
24000         tests can take longer than 5 seconds to complete.
24001         Reported by Dagobert Michelsen in:
24002         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
24003         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
24004         seconds to 10 seconds.
24005         * tests/unistr/test-u32-strstr.c (main): Likewise.
24007 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
24009         gnulib-common.m4: change the ARFLAGS default to 'cr'
24010         In some GNU/Linux distributions people started to compile 'ar'
24011         binary with --enable-deterministic-archives (binutils project).
24012         That, however, in combination with previous autotools long time
24013         working default AR{_,}FLAGS=cru causes warnings on such
24014         installations:
24015         ar: `u' modifier ignored since `D' is the default (see `U')
24016         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
24017         set already.
24019 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
24021         selinux-h: avoid double free after *getfilecon()
24022         Originally reported by Ben Shelton on bug-tar:
24023         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
24024         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
24025         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
24026         param should be freed by freecon(3) (regardless the return value).
24028 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
24030         fix pty related tests issues on Windows (trivial)
24031         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
24032         however it's still present in tests/ subdirectory of the final project.
24033         Therefore avoid it to pass `make check`.
24034         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
24035         will just return -ENOSYS, so avoid this non applicable test allowing
24036         the build to proceed.
24038 2015-07-01  Pádraig Brady  <P@draigBrady.com>
24040         acl: fix definition of acl_from_mode on FreeBSD
24041         This was causing basic coreutils copy operations to fail
24042         with ENOTSUP or ENOENT error messages.
24043         * lib/acl-internal.h (acl_from_mode): Only define when
24044         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
24045         of acl_from_mode() defined in lib/set-permissions.c to
24046         be used on FreeBSD at least.
24047         * lib/set-permissions.c: Fix up comment spelling,
24048         and a redundant variable assignment; noticed in passing.
24050 2015-06-30  Pádraig Brady  <P@draigBrady.com>
24052         readutmp: port to FreeBSD >= 9
24053         * lib/readutmp.h: Map utmpxname() to setutxdb().
24054         With that coreutils who(1) and pinky(1) tests pass.
24056 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
24058         mgetgroups: port to strict OS X
24059         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
24060         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
24061         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
24062         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
24064 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
24066         mgetgroups: port to strict OS X
24067         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
24068         Document the getgrouplist problem.
24069         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
24070         New macro.
24071         (mgetgroups): Use it.
24072         * m4/mgetgroups.m4 (gl_MGETGROUPS):
24073         Check for OS X signature for getgrouplist.
24075 2015-06-29  Jim Meyering  <meyering@fb.com>
24077         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
24078         It started like this when building coreutils' latest on OS X,
24079         invoking ./configure with a nonempty --cache=.cache:
24081           lib/linkat.c:46:42: error: operator '||' has no right operand
24082           lib/linkat.c: In function 'rpl_linkat':
24083           lib/linkat.c:330:27: error: #if with no expression
24085         Here's linkat.c's line 46:
24087           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
24089         Here's some context:
24091           $ grep linkat_nofoll .cache
24092           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
24093           $ grep LINKAT_SYM lib/config.h
24094           #define LINKAT_SYMLINK_NOTSUP
24096         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
24097         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
24098         but that violates a tenet of AC_CACHE_CHECK: it must
24099         have no side effect other than setting its cache variable.
24101         What happens is that when the cache is set, we'd skip the
24102         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
24103         defined to whatever value it happened to have in configure's
24104         environment.  In my case, it was not defined, so this later code:
24106           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
24107             [Define to 1 if linkat can create hardlinks to symlinks])
24109         would emit code with an empty RHS.
24111         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
24112         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
24114 2015-06-28  Jim Meyering  <meyering@fb.com>
24116         mountlist: avoid an unused-label warning on OS X
24117         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
24118         Building on OS X, I saw a warning about the "free_then_fail" label
24119         being unused.  Give it the _GL_UNUSED_LABEL attribute.
24121         error.c: correct printf-style format: %d -> %u
24122         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
24123         rather than %d, to match the type of "line_number", unsigned int.
24125 2015-06-25  Pádraig Brady  <P@draigBrady.com>
24127         fts: avoid reading beyond the heap allocation
24128         GCC 5.1.1 with -O2 and -fsanitize=address reports
24129         a read of size 4 from a heap object of size 3 is indeed invalid,
24130         though this may be due to incorrect padding assumptions by GCC, see:
24131         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24132         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
24133         * modules/fts: Depend on stdalign.
24135 2015-06-24  Pádraig Brady  <P@draigBrady.com>
24137         savedir: avoid undefined behavior in qsort call
24138         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
24139         "runtime error: null pointer passed as argument 1,
24140          which is declared to never be null"
24141         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
24143 2015-06-24  Pádraig Brady  <P@draigBrady.com>
24145         userspec: avoid undefined behavior in gettext call
24146         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
24147         "runtime error: null pointer passed as argument 2,
24148          which is declared to never be null"
24149         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
24151 2015-06-20  Glenn Morris  <rgm@gnu.org>
24153         gitlog-to-changelog: improve gitmerge.el commits
24154         Let the Emacs ChangeLog generation process exclude "skipped"
24155         messages from merge commits (Bug#20717).
24156         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
24158 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24160         wchar: fix MinGW compilation warnings
24161         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
24162         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
24163         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
24165 2015-06-20  Daiki Ueno  <ueno@gnu.org>
24167         uniname/uniname-tests: use pristine data files
24168         For copyright and maintenance reasons, use the data files from UCD
24169         without modification.
24170         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
24171         (getfield): Remove.
24172         (aliases_count): New global variable.
24173         (fill_names): Skip comments and empty lines in the input.  Don't
24174         use getfield.
24175         (fill_aliases): Likewise.
24176         (main): Change the expected command line arguments to:
24177         NAMES... ["--" ALIASES...].
24178         * tests/uniname/test-uninames.sh: Adjust to the change in
24179         test-uninames.c.
24180         * tests/uniname/UnicodeDataNames.txt: Remove.
24181         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
24182         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
24183         file from Unicode 8.0.0.
24185 2015-06-19  Pádraig Brady  <P@draigBrady.com>
24187         linked-list, linkedhash-list: avoid compiler warnings
24188         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
24189         -Werror=suggest-attribute=pure (from GCC 5.1.1).
24191 2015-06-19  Daiki Ueno  <ueno@gnu.org>
24193         libunistring: bump minimum version to 0.9.6
24194         * all modules depending on updated Unicode data: Regenerate.
24195         The modules are listed by a script that does:
24196         - for each file listed by: git show --oneline --name-only 705f4efc
24197           - deduce the containing modules, based on "Files:"
24198         - deduce the modules which depend on the containing modules, based
24199           on "Depends-on:"
24201 2015-06-18  Daiki Ueno  <ueno@gnu.org>
24203         uniname/uniname: update to Unicode 8.0.0
24204         * lib/uniname/uninames.h: Regenerate.
24205         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
24206         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
24208 2015-06-18  Daiki Ueno  <ueno@gnu.org>
24210         libunistring: update to Unicode 8.0.0
24211         * lib/gen-uni-tables.c (SIZEOF): New macro.
24212         (output_numeric): Increase the maximum number of fractions from
24213         128 to 160.  Increase the level3 value width from 7 bits to 8
24214         bits.  Use SIZEOF instead of a hard-coded integer.
24215         (output_blocks): Decrease the cut-off threshold from 0x30000 to
24216         0x28000.
24217         (fill_blocks): Increase the maximum number of blocks from 256 to
24218         384.  Use SIZEOF instead of a hard-coded integer.
24219         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
24220         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
24221         value width.
24222         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
24223         a new case added to LBP22.
24224         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
24225         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
24226         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
24227         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
24228         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
24229         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24230         lib/uniwidth/width.c.
24231         * all generated files under lib/uni* and tests/uni*: Regenerate.
24233 2015-06-16  Pádraig Brady  <P@draigBrady.com>
24235         gnu-web-doc-update: add --mirror to remove stale files
24236         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
24237         out of date files from the CVS server.  Since this is usually
24238         appropriate, a prompt is given when the option is not specified,
24239         along with the `cvs remove` command that would be run.
24241 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
24243         acl-permissions: pacify -Wsuggest-attribute=const
24244         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
24245         * lib/acl-internal.h (free_permission_context):
24246         Declare with attribute const if ! (defined USE_ACL &&
24247         (HAVE_ACL_GET_FILE || defined GETACL)).
24249         fsync: document AIX misbehavior
24250         * doc/posix-functions/fsync.texi (fsync):
24251         Document failure on AIX with read-only file descriptor.
24253 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
24255         stdio: Don't redefine gets when using C++
24256         * lib/stdio.in.h (gets): Disable warning on C++.
24258 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
24260         acl-permissions: port to AIX, C89 HP-UX
24261         Problems reported by Michael Felt.
24262         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
24263         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
24264         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
24265         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
24266         Add cast for AIX, whose system calls are declared to accept
24267         char * even though the arguments are really char const *.
24268         * lib/get-permissions.c (get_permissions):
24269         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
24270         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
24271         that broke a build.
24272         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
24273         Rework types to pacify xlc.
24275 2015-06-03  Pádraig Brady  <P@draigBrady.com>
24277         vasprintf-posix: avoid compiling vasnprintf where possible
24278         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
24279         module where not required.  For example on a GNU/Linux system
24280         when gnulib-tool is run with the --conditional-dependencies option.
24282 2015-06-02  Pádraig Brady  <P@draigBrady.com>
24284         file-has-acl: fix build on Mac OS X 10
24285         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
24286         which has an incompatible 6 parameter getxattr() call.
24287         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
24288         call on Mac OS X >= 10.4.
24289         * doc/glibc-functions/fgetxattr.texi: Likewise.
24290         * lib/file-has-acl.c: Revert to more complete combined check.
24291         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
24292         Reported by Jack Howarth.
24294 2015-06-02  Pádraig Brady  <P@draigBrady.com>
24296         prefix-gnulib-mk: remove no longer needed special case
24297         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
24298         continued lib_SOURCES lines are no longer present,
24299         so special case handling of such entries is not required.
24301 2015-06-01  Pádraig Brady  <P@draigBrady.com>
24303         acl: don't depend on the deprecated qacl module
24304         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
24306 2015-06-01  Pádraig Brady  <P@draigBrady.com>
24308         gnulib-tool: concatenate lib_SOURCES to a single line
24309         * gnulib-tool: Refactor the line merging sed logic,
24310         and use that to output a single lib_SOURCES line for each module.
24311         gnulib using projects often postprocess this output to prepend
24312         subdir paths to each item, and having a single line simplifies this
24313         processing allowing better decoupling from the gnulib-tool output.
24315 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
24317         pthread_sigmask: discount system version if a simple macro (trivial)
24318         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
24319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
24320         function to ensure it's available.
24322 2015-05-31  Pádraig Brady  <P@draigBrady.com>
24324         readlinkat: avoid OS X 10.10 trailing slash bug
24325         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
24326         has this bug.
24327         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
24328         that OS X 10.10 has this function.
24329         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
24330         as done for readlink().
24331         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
24332         trailing slash bug, and assume readlinkat() has the same issue.
24333         Also fix a typo where $gl_cv_decl_readlink_works was tested,
24334         rather than the correct $gl_cv_decl_readlinkat_works.
24336 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
24338         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
24339         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
24340         module rewrite.
24342         acl-permissions: Fix build on Solaris and Cygwin
24343         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
24344         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
24345         ace_entries variables have moved into struct permission_context but
24346         they were still accessed as local variables here.
24348 2015-05-29  Pádraig Brady  <P@draigBrady.com>
24350         linkat: avoid OS X 10.10 trailing slash with symlink bug
24351         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
24352         causes the symlink to be dereferenced, and if it points
24353         to a non existent file, that file will be created as
24354         a hard link to "path1".
24355         This fixes a test failure in test-linkat.c.
24356         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
24357         this case.  The existing workaround in linkat.c for
24358         trailing slash issues, suffices for this case.
24359         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
24360         the list of platforms with trailing slash issues.
24362 2015-05-28  Pádraig Brady  <P@draigBrady.com>
24364         unlinkat: handle ignoring of ".." on Darwin 14
24365         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
24366         on Mac OS X 10.10, where it ignores paths with a trailing "..",
24367         so handle in the same manner.
24368         * m4/unlinkat.m4: Comment on this Darwin issue.
24369         * doc/posix-functions/unlink.texi: Update the latest version
24370         where the issue was seen.
24371         * doc/posix-functions/unlinkat.texi: Mention this issue.
24372         Fixes a test failure in test-unlinkat.c.
24374 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24376         qacl: split into qcopy-acl and qset-acl
24377         Emacs needs the former, but not the latter.
24378         * modules/acl-permissions: New file, containing most of the old qacl.
24379         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
24380         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
24381         * modules/qcopy-acl, modules/qset-acl: New files.
24382         * MODULES.html.sh (File system functions):
24383         Mention the new modules, and mention qacl while we're at it.
24385 2015-05-27  Glenn Morris  <rgm@gnu.org>
24387         gitlog-to-changelog: new option --ignore-line
24388         (This patch is imported from the GNU Emacs master.)
24389         This option ignores individual commit lines matching a pattern.
24390         * build-aux/gitlog-to-changelog: Add --ignore-line option.
24392 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
24394         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
24395         Implement get_permissions and set_permissions primitives for getting all
24396         the permissions of a file, storing them, and later setting them. (In the
24397         minimal case, the permissions consist only of a file mode.) Reimplement
24398         qset_acl and qcopy_acl based on these new primitives: this avoids code
24399         duplication and makes error handling more consistent.
24400         The Solaris and Cygwin code still uses duplicate code paths for setting
24401         a file mode while making sure that no acls exist and setting an explicit
24402         acl; this is no worse than before, but could be cleaned up.  The AIX
24403         code still doesn't read ACLs, it only makes sure that acls don't get in
24404         the way when setting a file mode.
24405         * lib/acl-internal.h (struct permission_context): New data structure.
24406         (get_permissions, set_permissions, free_permission_context): Declare.
24407         * lib/acl-internal.c (free_permission_context): New helper function.
24408         * lib/get-permissions.c (get_permissions): New helper function split off
24409         from qcopy_acl.
24410         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
24411         AIX, set a file's permissions based only on a file mode.
24412         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
24413         other platforms construct a temporary acl from the file mode and set
24414         that acl in the same way as setting an acl read from the source file.
24415         This should help avoid code duplication and inconsistent / buggy
24416         behavior.
24417         (set_acls): New helper function Split off from qcopy_acl.
24418         (chmod_or_fchmod): Moved here from qset-acl.c.
24419         (set_permissions): New helper function.
24420         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
24421         set_permissions.
24422         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
24423         * modules/qacl: Add get-permissions.c and set-permissions.c.
24425         file-has-acl: Split feature tests again (Bug#20667)
24426         * lib/file-has-acl.c: Instead of testing for
24427         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
24428         define them when needed.
24429         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
24430         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
24432 2015-05-27  Pádraig Brady  <P@draigBrady.com>
24434         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
24435         This avoids a conflict with "FORTIFY_SOURCE" variants
24436         of the string functions when they're replaced on NetBSD-6.0.1
24437         and Darwin-14.3.0 at least.
24438         * lib/string.in.h: Avoid including our "lib/string.h" while
24439         including the system <string.h>.
24441 2015-05-26  Eric Blake  <eblake@redhat.com>
24443         stdio: limit __gnu_printf__ witness to gcc 4.4+
24444         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
24445         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
24447         error: use correct printf attributes on mingw
24448         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
24450         inttypes: force correct mingw PRIdMAX even without <stdio.h>
24451         * modules/inttypes (Depends-on): Require extensions, so that mingw
24452         always uses GNU style inttypes.
24453         * lib/inttypes.in.h: On mingw, include <stdio.h>.
24455         stdio: fix probe on mingw under gcc 5.1
24456         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
24457         around new gcc preprocessor rules.
24459 2015-05-07  Glenn Morris  <rgm@gnu.org>
24461         gitlog-to-changelog: parse "Tiny-change"
24462         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
24463         "Copyright-paperwork-exempt".  (Bug#20324)
24465 2015-05-06  Pádraig Brady  <P@draigBrady.com>
24467         doc: document glibc posix_fallocate() issues
24468         * doc/posix-functions/posix_fallocate.texi: Mention the
24469         glibc efficiency problems and issues with NFS.
24471 2015-05-05  Karl Berry  <karl@freefriends.org>
24473         * build-aux/gendocs.sh (usage): document new css default
24474         for HTML (--htmlarg).
24476 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24478         extern-inline: no need for workaround in GCC 5.1
24479         * doc/extern-inline.texi (extern inline):
24480         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
24481         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
24482         around these bugs in GCC 5.1 and later.  Maybe in a decade or
24483         two we can remove these workarounds.
24485 2015-04-28  Pádraig Brady  <P@draigBrady.com>
24487         eealloc, pagealign_alloc, xalloc: avoid clang warnings
24488         Avoid [-Wunknown-attributes] warnings like:
24489         warning: unknown attribute '__alloc_size__' ignored
24490         * lib/xalloc.h: Don't use the __alloc_size__  attribute
24491         with clang, as support has been fully removed as of clang 3.5:
24492         https://github.com/llvm-mirror/clang/commit/c047507a
24493         * lib/eealloc.h: Likewise.
24494         * lib/pagealign_alloc.h: Likewise.
24496 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24498         tests: pacify GCC 5.1's stricter printf checking
24499         * tests/test-dirname.c (main):
24500         * tests/test-getaddrinfo.c (simple):
24501         * tests/test-getlogin.c (main):
24502         * tests/test-getndelim2.c (main):
24503         * tests/test-inttostr.c (CK):
24504         * tests/test-md5.c (main):
24505         * tests/test-read-file.c (main):
24506         * tests/test-sha1.c (main):
24507         Fix mismatches between printf format and value signedness.
24508         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
24509         Remove, as CAST_VAL always returned a value of type uintmax_t.
24511         fts: port to GCC 5.1 with --enable-gcc-warnings
24512         Without this fix, GCC 5.1 (correctly) warns about a subscript
24513         error on the fts_name component of FTSENT.  It's actually a
24514         flexible member, so define it that way on C99 or later hosts.
24515         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
24516         structure that now has a flexible array member.
24517         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
24518         (FTSENT): fts_name is now flexible on C99-or-later platforms.
24519         * modules/fts (Depends-on): Add flexmember.
24521 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24523         file-has-acl: port to CentOS 6
24524         Problem reported by Tom G. Christensen in:
24525         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
24526         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
24527         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
24528         HAVE_GETXATTR.
24529         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
24530         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
24531         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
24532         file-has-acl.c actually needs.
24534 2015-04-26  Pádraig Brady  <P@draigBrady.com>
24536         file-has-acl: always return false when ACLs aren't supported
24537         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
24538         change the GNU/Linux getxattr path, to transform "not supported"
24539         errors to a false return rather than an error.  This is handled
24540         within file_has_acl() due to the platform specific tests to
24541         determine if ACLs are not supported.
24543 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24545         gettext: propagate po/Makefile.in.in too
24546         * build-aux/po/Makefile.in.in: Copy from latest gettext.
24547         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
24548         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
24549         between Makefile.in.in and the gettext-runtime m4 files.
24551 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24553         file-has-acl: new module, split from acl
24554         And add a new module file-has-acl-tests to match.
24555         I ran into a problem with the recent changes to the acl module,
24556         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
24557         When using the fixed version with Emacs, I discovered that
24558         file-has-acl wasn't separated out well enough for Emacs (e.g., it
24559         had multiple libraries, but needed only one), so I fixed that too.
24560         * NEWS: Document this incompatible change.
24561         * modules/file-has-acl, modules/file-has-acl-tests: New files.
24562         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
24563         Initialize gl_need_lib_has_acl.
24564         (gl_FUNC_ACL): Require it.
24565         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
24566         Move the file-has-acl.c-relevant stuff to ...
24567         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
24568         use_xattrs = 0' typo, and omit some needless work.  Set
24569         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
24570         when gl_FUNC_ACL is called.
24571         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
24572         (Link): Remove $(LIB_HAS_ACL).
24573         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
24574         (check_PROGRAMS): Move stuff relevant to file-has-acl to
24575         modules/file-has-acl-tests.
24576         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
24578         manywarnings: add GCC 5.1 warnings
24579         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
24580         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
24581         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
24582         -Wsuggest-override, -Wuse-without-only.  Change
24583         -Wnormalized=... operands to match 5.1.
24584         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
24585         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
24586         -Wdiscarded-qualifiers, -Wformat-signedness,
24587         -Wincompatible-pointer-types, -Wint-conversion,
24588         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
24589         -Wshift-count-negative, -Wshift-count-overflow,
24590         -Wsizeof-array-argument, -Wsuggest-final-methods,
24591         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
24592         and add -Warray-bounds=2 as a special case.
24594 2015-04-21  Simon Josefsson  <simon@josefsson.org>
24596         doc: update FDL template to match FDL examples.
24597         * doc/alloca-opt.texi:
24598         * doc/alloca.texi:
24599         * doc/c-ctype.texi:
24600         * doc/c-strcase.texi:
24601         * doc/c-strcaseeq.texi:
24602         * doc/c-strcasestr.texi:
24603         * doc/c-strstr.texi:
24604         * doc/c-strtod.texi:
24605         * doc/c-strtold.texi:
24606         * doc/ctime.texi:
24607         * doc/error.texi:
24608         * doc/gcd.texi:
24609         * doc/gnulib-tool.texi:
24610         * doc/inet_ntoa.texi:
24611         * doc/intprops.texi:
24612         * doc/lib-symbol-visibility.texi:
24613         * doc/maintain.texi:
24614         * doc/parse-datetime.texi:
24615         * doc/quote.texi:
24616         * doc/regexprops-generic.texi:
24617         * doc/standards.texi: Remove spurious 'with' in FDL license
24618         template.
24620 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
24622         lstat: fix cross-compilation 'ln -s' problem
24623         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
24624         Have the test program call 'symlink' rather than a separate
24625         script run 'ln -s'; this is more likely to work in
24626         cross-compilation environments.  Reported by Pavel Fedin in:
24627         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
24629 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
24631         gendocs.sh: default to a common CSS style sheet for HTML output
24632         * build-aux/gendocs.sh (htmlarg): Change default value.
24634 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
24636         gnulib-tool: output bold attribute more portably
24637         * gnulib-tool (func_show_module_list): Change hexadecimal
24638         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
24639         encoded numbers as arguments to `printf' is not portable,
24640         and is not claimed by POSIX.  This is the case with FreeBSD.
24642 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
24644         qacl: Simplify HP-UX acl_nontrivial check
24645         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
24646         acl_nontrivial. Check if the acl has at most three entries instead (it must
24647         have exactly three entries according to the HP-UX documentation). Ignore
24648         uids and gids as long as an entry is either for a user (i.e., the owner),
24649         a group (i.e., the owning group), or others.
24650         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
24651         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
24653 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
24655         acl: On Linux, check for acls without libacl
24656         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
24657         library function to check for the presence of acls, avoiding a library.
24658         * lib/file-has-acl.c: Include xattr headers if we have them.
24659         (file_has_acl): On Linux, use getxattr().
24660         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
24661         file_has_acl(). Check for xattr headers and getxattr().
24663 2015-04-14  Ángel González  <keisial@gmail.com>
24665         tempname: avoid unused parameter warnings (trivial)
24666         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
24667         (try_nocreate): Likewise.
24669 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
24671         fseeko: fix build failure on NetBSD >= 6 (trivial)
24672         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
24673         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
24675 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24677         gitlog-to-changelog: port to MS-Windows
24678         * build-aux/gitlog-to-changelog (git_dir_option):
24679         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
24680         MS-Windows Perl.  Reported by Eli Zaretskii in:
24681         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
24683 2015-04-07  Karl Berry  <karl@gnu.org>
24685         gendocs: new option --tex for passing args to texi2dvi.
24686         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
24687         (TEXI2DVI): cut to just command name.
24688         (usage): mention new option, and update copyright.
24689         <generate_tex>: use it.
24691 2015-04-07  Karl Berry  <karl@gnu.org>
24693         * config/srclistvars.sh (GETTEXT): new definition.
24694         * config/srclist.txt: use it for gettext .m4 files.
24695         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
24696         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
24697         and continuing into April.
24699 2015-04-07  Daiki Ueno  <ueno@gnu.org>
24701         uniname/uniname-tests: fix failure due to alias
24702         Reported by Jack Howarth in:
24703         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
24704         * tests/uniname/test-uninames.c (name_has_alias): New function.
24705         (test_inverse_lookup): Exclude character name with valid alias,
24706         from randomly generated character names.
24707         (main): Fill unicode_aliases before calling test functions.
24709 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
24711         hash: remove deprecated hash_insert0 function
24712         * lib/hash.h (hash_insert0): Remove deprecated function.
24713         * lib/hash.c (hash_insert0): Likewise.
24715 2015-04-02  Pádraig Brady  <P@draigBrady.com>
24717         mountlist: remove dependency on libmount
24718         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
24719         directly, rather than depending on libmount, which has many
24720         dependencies due to its dependence on libselinux, as detailed at:
24721         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
24722         Note we restrict this to __linux__ as that's probably where this
24723         interface will remain.  If ever porting, it would be best
24724         to first pull the makedev() wrapper from coreutils to a gnulib module.
24725         Note also we don't add a getline dependency to the mountlist module,
24726         as all Linux versions are sufficient.
24728 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24730         stddef: port to pre-C11 GCC on x86
24731         On this platform, max_align_t should have an alignment of 8 even
24732         though the storage alignments of double, long, etc. max out at 4.
24733         Inspired by a comment of Andreas Schwab's here:
24734         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
24735         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
24736         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
24737         * tests/test-stddef.c: Test __alignof__ too, if available.
24739 2015-03-24  Pádraig Brady  <P@draigBrady.com>
24741         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
24742         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
24744 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
24746         yesno: make EOL optional in ENABLE_NLS case also (trival)
24747         * lib/yesno.c (yesno): Check for EOL before replacing.
24748         * tests/test-yesno.sh: Add a test case (test along with gettext).
24750 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24752         fdopendir-tests: test it does not close its arg
24753         * tests/test-fdopendir.c (main): Test that fdopendir does not
24754         close its argument.  From a suggestion by David Grayson in:
24755         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
24757 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24759         gitlog-to-changelog: trim trailing white space
24760         * build-aux/gitlog-to-changelog (main):
24761         Trim trailing white space from commit message lines.
24762         This is helpful for processing the GNU Emacs repository,
24763         which dates back to 1985 and contains a lot of such lines.
24765         gitlog-to-changelog: new option --ignore-matching
24766         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
24767         Support new option --ignore-matching=PAT, which ignores all
24768         commit messages whose first line matches PAT.
24770 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24772         fdopendir: port better to MinGW
24773         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
24774         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
24775         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
24776         * modules/fdopendir (Depends-on): Add dirfd.
24778 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24780         fdopendir: fix typo in comment
24781         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
24783 2015-03-09  Eric Blake  <eblake@redhat.com>
24785         error: document all entry points provided
24786         * doc/glibc-functions/error_print_progname.texi
24787         (error_print_progname): Mention the error module.
24788         * doc/glibc-functions/error_at_line.texi (error_at_line):
24789         Likewise.
24790         * doc/glibc-functions/error_message_count.texi
24791         (error_message_count): Likewise.
24792         * doc/glibc-functions/error_one_per_line.texi
24793         (error_one_per_line): Likewise.
24795 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
24797         vasnprintf: pacify clang 3.5.0
24798         Problem reported by Werner Lemberg in:
24799         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
24800         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
24801         The casts aren't needed, since the characters in question are ASCII.
24803 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24805         glob, etc.: port to MSVC v18 on MS-Windows 8.1
24806         * lib/dirent--.h (GNULIB_defined_opendir):
24807         * lib/dirent.in.h (GNULIB_defined_opendir)
24808         (GNULIB_defined_closedir):
24809         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
24810         #undef only if Gnulib defined it.
24812         poll: port to MSVC v18 on MS-Windows 8.1
24813         Problem reported by Gisle Vanem in:
24814         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
24815         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
24816         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
24817         Add sys_socket.
24819 2015-02-24  Pádraig Brady  <P@draigBrady.com>
24821         tests: support stderr verification with returns_()
24822         * tests/init.sh (returns_): Disable tracing for this wrapper
24823         function, so that stderr of the wrapped command is unchanged,
24824         allowing for verification of the contents.
24826 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
24828         passfd: avoid valgrind uninitalised data warning
24829         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
24830         to include just the fd we've initialized, rather than including
24831         the extra space used for alignment.
24833 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
24835         uniwbrk/u32-wordbreaks-tests: fix copyright
24836         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
24838         dup2: doc and test for Android bug
24839         Reported by Kevin Cernekee in:
24840         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
24841         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24842         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
24844 2015-02-23  Kevin Cernekee  <cernekee@google.com>
24846         Replace dup2() on Android
24847         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
24848         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
24849         fails.  Using rpl_dup2() fixes this because it has an explicit test
24850         for this condition.
24852 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
24854         Android doesn't define RLIM_SAVED_*
24855         Portability problem reported by Kevin Cernekee in:
24856         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
24857         * doc/posix-headers/sys_resource.texi (sys/resource.h):
24858         Mention the portability problem.
24859         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
24860         Define if not defined.
24861         * m4/dup2.m4 (gl_FUNC_DUP2):
24862         * m4/fcntl.m4 (gl_FUNC_FCNTL):
24863         Likewise.
24865 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
24867         vasnprintf-posix-tests: use consistent test
24868         * tests/test-vasnprintf-posix.c (test_function):
24869         Use "<" in assert instead of "<=", for consistency with other tests.
24871 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24873         printf, isinf, etc.: noncanonical != NaN
24874         Do not require that isinf, printf, etc. treat noncanonical
24875         values as NaNs.  Instead, require only that they do not crash.
24876         Problem reported by Joseph Myers in:
24877         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
24878         * doc/posix-functions/dprintf.texi (dprintf):
24879         * doc/posix-functions/fprintf.texi (fprintf):
24880         * doc/posix-functions/isfinite.texi (isfinite):
24881         * doc/posix-functions/isinf.texi (isinf):
24882         * doc/posix-functions/isnan.texi (isnan):
24883         * doc/posix-functions/printf.texi (printf):
24884         * doc/posix-functions/snprintf.texi (snprintf):
24885         * doc/posix-functions/sprintf.texi (sprintf):
24886         * doc/posix-functions/vdprintf.texi (vdprintf):
24887         * doc/posix-functions/vfprintf.texi (vfprintf):
24888         * doc/posix-functions/vprintf.texi (vprintf):
24889         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24890         * doc/posix-functions/vsprintf.texi (vsprintf):
24891         Document this.
24892         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
24893         * m4/isinf.m4 (gl_ISINFL_WORKS):
24894         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
24895         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
24896         * tests/test-isfinite.c (test_isfinitel):
24897         * tests/test-isinf.c (test_isinfl):
24898         * tests/test-isnan.c (test_long_double):
24899         * tests/test-isnanl.h (main):
24900         * tests/test-snprintf-posix.h (test_function):
24901         * tests/test-sprintf-posix.h (test_function):
24902         * tests/test-vasnprintf-posix.c (test_function):
24903         * tests/test-vasprintf-posix.c (test_function):
24904         Test only that noncanonical values do not cause crashes, not that
24905         they are treated as NaNs.  In some cases this means a larger
24906         output buffer is needed.
24908 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
24910         fts: remove redundant close() (trivial)
24911         * lib/fts.c (fts_read): Remove redundant call to close().
24912         Spotted by coverity.
24914 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24916         getdtablesize: port better for Android
24917         Problem reported by Kevin Cernekee in:
24918         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
24919         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
24920         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
24921         Instead, just use getrlimit, taking care to avoid Cygwin bug.
24923         poll: fixes for large fds
24924         * lib/poll.c (poll): Don't check directly for NFD too large.
24925         Don't rely on undefined behavior in FD_SET when an arg exceeds
24926         FD_SETSIZE.  Always set revents afterwards, even if to zero.
24927         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
24928         as that makes the test a bit stricter.
24930 2015-02-19  Kevin Cernekee  <cernekee@google.com>
24932         fcntl: Fix cross compiling
24933         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
24934         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
24936 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24938         dup2, fcntl: cross-compile better for Android
24939         Problem reported by Kevin Cernekee in:
24940         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
24941         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
24942         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
24943         there's little need to cross-compile for older kernels nowadays.
24944         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
24945         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
24947 2015-02-18  Pádraig Brady  <P@draigBrady.com>
24949         getopt: don't crash on memory exhaustion
24950         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
24951         memory exhaustion.  In the _LIBC case we use alloca() as is
24952         already done in glibc, so we don't need to consider the separate
24953         error path in that awkward case.  Also fix a memory leak when
24954         ambiguous options are present.
24955         Reported by Tobias Stoeckmann
24957 2015-02-17  Mike Miller  <mtmiller@ieee.org>
24959         tempname: allow compilation with C++ (trivial)
24960         * lib/tempname.h [C++]: Specify extern "C" linkage.
24961         * lib/tempname.h (try_tempname):
24962         * lib/tempname.c (__try_tempname, __gen_tempname):
24963         Rename 'try' to 'tryfunc'.
24965 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24967         dup2, fcntl: port to AIX
24968         * m4/dup2.m4 (gl_FUNC_DUP2):
24969         * m4/fcntl.m4 (gl_FUNC_FCNTL):
24970         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
24971         The former works on AIX 7.1 but the latter does not.
24972         Also, this may work better with Android; see:
24973         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
24975 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24977         getdtablesize, dup2, fcntl: port to Android
24978         Problem reported by Kevin Cernekee in:
24979         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
24980         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
24981         Mention that getdtablesize doesn't work on Android.
24982         * lib/getdtablesize.c: Use getrlimit substitute only if
24983         getdtablesize is declared.  This should suffice for Cygwin
24984         while not breaking Android.
24985         * m4/dup2.m4 (gl_FUNC_DUP2):
24986         * m4/fcntl.m4 (gl_FUNC_FCNTL):
24987         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
24988         standardized but the latter is not, and sysconf works on Android.
24989         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
24990         Also check that getdtablesize is declared.
24991         This removes the need for a special case for Android.
24993 2015-02-16  Kevin Cernekee  <cernekee@google.com>
24995         localename: Implement gl_locale_name_thread_unsafe for Android
24996         * lib/localename.c: Android API level >= 21 supports two hardcoded
24997         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
24998         the internal __locale_t struct.
25000 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
25002         fts: avoid crash when a cycle is added while traversing
25003         This could be triggered by auto-mounting a recursive bind mount.
25004         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
25005         * lib/fts.c (fts_read): Avoid removing the original hash table item
25006         when leaving a directory that caused a cycle, and preserve the FTS_DC
25007         flag.
25009 2015-02-16  Daiki Ueno  <ueno@gnu.org>
25011         uniname/uniname: support character alias
25012         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
25013         Generate one-way mapping from aliases to codepoints in the
25014         generated tables.  Special case variation selectors to reduce
25015         table size.
25016         * lib/uniname/uniname.c (unicode_character_name): Special case
25017         variation selectors.
25018         (unicode_name_character): Special case variation selectors and
25019         their aliases.
25020         * lib/uniname/uninames.h: Regenerate.
25021         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
25022         * modules/uniname/uniname-tests (Files): Add
25023         tests/uniname/NameAliases.txt.
25024         * tests/uniname/test-uninames.c: Mark as static.
25025         (ALIASLEN): Define.
25026         (struct unicode_alias): New struct.
25027         (unicode_aliases): New variable.
25028         (fill_aliases): New function.
25029         (test_alias_lookup): New test function.
25030         (main): Run the 'test_alias_lookup' test if the second argument is
25031         given.
25032         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
25033         second argument.
25035 2015-02-11  Kevin Cernekee  <cernekee@google.com>
25037         Fix FILE struct compatibility with Android API level >= 21
25038         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
25039         __sferror.  Recent versions of Bionic's stdio.h no longer define
25040         __sferror.
25041         * lib/fbufmode.c: Likewise.
25042         * lib/fflush.c: Likewise.
25043         * lib/fpurge.c: Likewise.
25044         * lib/freadable.c: Likewise.
25045         * lib/freadahead.c: Likewise.
25046         * lib/freading.c: Likewise.
25047         * lib/freadptr.c: Likewise.
25048         * lib/freadseek.c: Likewise.
25049         * lib/fseeko.c: Likewise.
25050         * lib/fseterr.c: Likewise.
25051         * lib/fwritable.c: Likewise.
25053         Assume unbroken ungetc() on Android
25054         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
25055         test case passed when running on an Android host, and the code
25056         hasn't really changed since 2009.
25058         getdtablesize: Fix Android build
25059         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
25060         versions have this symbol in the .so library (at least 32-bit
25061         platforms) but are missing the declaration in the header file,
25062         causing the m4 logic to guess incorrectly.
25064         localename: Fix Android build
25065         * modules/localename (Depends-on): Add langinfo.
25067         getugroups: Fix Android build
25068         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
25069         functions.
25071         euidaccess: Fix Android build
25072         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
25073         AT_EACCESS gets declared.
25075         linkat_nofollow: Add fallback case for cross compiling
25076         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
25078         net_if: Handle content-free <net/if.h> system headers
25079         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
25080         struct if_nameindex.  If not, enable the replacement header.
25082         signal_h: Fix Android build
25083         * lib/signal.in.h: Add Android to the list of platforms that declare
25084         pthread_sigmask() in <pthread.h> instead of <signal.h>.
25086         duplocale: Fix Android build of duplocale-tests
25087         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
25088         is included by test-duplocale.c (but not by duplocale.c).
25089         * modules/duplocale-tests (configure.ac): Check for monetary.h.
25090         * tests/test-duplocale.c: Skip test if monetary.h is absent.
25091         * doc/posix-headers/monetary.texi: Add Android to the list of
25092         platforms missing monetary.h.
25094 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25096         tests: avoid recent -Werror=unused-variable regression in test-locale
25097         * tests/test-locale.c (main): Reference the variable to avoid the
25098         "unused variable" warning.
25100 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25102         maint: various whitespace cleanups in tempname
25103         * lib/tempname.c: Normalize spacing and line length.
25104         * lib/tempname.h: Likewise.
25105         * modules/tempname: Likewise.
25107 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25109         tests: provide returns_() to simplify exit status checking
25110         * tests/init.sh (returns_): A new function for use in tests,
25111         to allow for easier checking of return values, where you expect
25112         a command to exit with failure status.  By checking for a particular
25113         exit code, you don't hide any crashes for example.
25115 2015-02-11  Pádraig Brady  <P@draigBrady.com>
25117         mountlist: only use libmount when specified
25118         There are currently many shared libs dependencies introduced by
25119         libmount with associated runtime and virt mem overhead.
25120         Therefore don't enable by default.
25121         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
25123 2015-02-08  Daiki Ueno  <ueno@gnu.org>
25125         uniname/unimame-tests: don't link with -lunistring
25126         * modules/uniname/uniname-tests (Makefile.am): Don't link against
25127         $(LIBUNISTRING).  Document the rationale why we need to
25128         conditionalize the test.
25130 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25132         fstrcmp: don't assume strlen < INT_MAX
25133         * lib/fstrcmp.c: Include stddef.h and stdint.h.
25134         (uintptr_t): Remove, as we're now assuming stdint.
25135         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
25136         Prefer ptrdiff_t to int when the value could exceed INT_MAX
25137         if the input string is long.
25138         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
25139         uintptr_t to size_t when the underlying value is a pointer casted
25140         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
25141         * modules/fstrcmp (Depends-on): Add stdint.
25143         diffseq: prefer ptrdiff_t to ssize_t
25144         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
25145         ptrdiff_t is the natural type for signed indexes.
25146         On a few older platforms, ssize_t is narrower than size_t.
25148         xalloc: fix typo that suppressed warnings
25149         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
25150         This typo, introduced a couple of years ago, mistakenly suppressed
25151         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
25152         -Wmissing-declarations warnings.
25154         full-read: fix license notice typo
25155         * lib/full-read.h: Remove a stray line in the license notice.
25156         Reported by Sam Ellis in: http://bugs.gnu.org/19808
25158         crypto/gc: fix a -Wswitch warning
25159         Reported by Bruce Korb in:
25160         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
25161         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
25163 2015-02-03  Pádraig Brady  <P@draigBrady.com>
25165         gnulib-tool: fix handling of patch(1) diagnostics
25166         * gnulib-tool: Send diagnostics from patch(1) to stderr,
25167         as otherwise gnulib-tool will reparse that output and attempt
25168         to lookup modules.
25170 2015-02-03  Pádraig Brady  <P@draigBrady.com>
25172         bootstrap: exit immediately upon gnulib-tool failure
25173         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
25174         This was noticed when gnulib-tool exited early due to failure
25175         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
25176         but various confusing errors were then given as the build proceeded.
25178 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
25180         symlinkat: include all required header files
25181         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
25182         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
25183         Reported at https://savannah.gnu.org/bugs/index.php?44151
25184         and by Jack Howarth.
25186 2015-01-29  Pádraig Brady  <P@draigBrady.com>
25188         localename: support Solaris 12 and illumos
25189         * lib/localename.c (gl_locale_name_thread_unsafe): call
25190         getlocalename_l() on newer __sun platforms.
25191         Reported by Alexander Pyhalov.
25192         Fix suggested by Rich Burridge.
25194 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
25196         locale: fix tests on illumos (trivial)
25197         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
25198         so move from global scope to main().
25200 2015-01-24  Daiki Ueno  <ueno@gnu.org>
25202         unictype: avoid undefined left-shift behavior
25203         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
25204         gcc's -fsanitize=shift and running its tests triggered:
25205           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
25206             places cannot be represented in type 'int'
25207         Cast LHS to 'unsigned int' after integer promotion.
25208         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
25209         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
25211 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25213         libunistring: bump version of unitypes dependants
25214         Due to the header file search order, all the headers which depend
25215         on unitypes.h need to be generated, when the preinstalled
25216         libunistring is older.
25217         * modules/unicase/base (configure.ac): Bump minimum version to
25218         0.9.4.
25219         * modules/uniconv/base (configure.ac): Likewise.
25220         * modules/unilbrk/base (configure.ac): Likewise.
25221         * modules/uninorm/base (configure.ac): Likewise.
25222         * modules/unistdio/base (configure.ac): Likewise.
25223         * modules/unistr/base (configure.ac): Likewise.
25224         * modules/uniwbrk/base (configure.ac): Likewise.
25225         * modules/uniwidth/base (configure.ac): Likewise.
25227 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25229         unictype/category-none: fix link with libunistring
25230         Since _UC_CATEGORY_NONE is not a public symbol, it will be
25231         prefixed with "libstring_" when compiled as part of libunistring.
25232         To avoid undefined symbol at link time, increase the minimum
25233         version when the dependant modules are updated.
25234         * modules/unictype/category-none (configure.ac): Bump minimum
25235         version to 0.9.5.
25237 2015-01-20  Daiki Ueno  <ueno@gnu.org>
25239         unitypes: fix build with installed libunistring
25240         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
25241         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
25242         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
25244 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25246         time: port to MinGW32 3.21
25247         Problem reported by Eli Zaretskii in:
25248         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
25249         * lib/time.in.h:
25250         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
25251         * modules/time (Depends-on):
25252         Fall back on unistd.h if the other include files don't define
25253         struct timespec.
25255         update-copyright: apply to self
25256         * build-aux/update-copyright: Fix copyright date.  How ironic!
25258 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25260         libunistring: update to Unicode 7.0.0
25261         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
25262         Manichaean names.
25263         * lib/unictype/joininggroup_name.h: Likewise.
25264         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
25265         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
25266         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
25267         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
25268         (fill_arabicshaping, joining_group_as_c_identifier): Support those
25269         enum values.
25270         (is_property_alphabetic): Accept newly added characters to
25271         cuneiform numeric signs.
25272         (is_property_default_ignorable_code_point): Reject U+0605.
25273         (FIELDLEN): Increase from 120 to 160.
25274         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
25275         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
25276         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
25277         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
25278         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
25279         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
25280         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
25281         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
25282         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
25283         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
25284         U+1E8D0..U+1E8D6.
25285         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
25286         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25287         lib/uniwidth/width.c.
25288         * all generated files under lib/uni* and tests/uni*: Regenerate.
25290 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25292         libunistring: update to Unicode 6.3.0
25293         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
25294         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
25295         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
25296         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
25297         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
25298         Update WB5, WB9, WB10, WB13a, and WB13b.
25299         * tests/uniwbrk/test-uc-wordbreaks.c
25300         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
25301         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
25302         (UC_BIDI_PDI): New enumeration values.
25303         (bidi_category_byname): Support those enum values.
25304         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
25305         dedicated property assigned.
25306         (is_property_case_ignorable): Check 0x0027.
25307         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
25308         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
25309         (output_wbp): Support those enum values.
25310         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
25311         (UC_BIDI_PDI): New enumeration values.
25312         * lib/unictype/bidi_byname.gperf: Add those property names.
25313         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
25314         U+180E, U+1A1B, and U+2066..U+2069.
25315         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25316         lib/uniwidth/width.c.
25317         * all generated files under lib/uni* and tests/uni*: Regenerate.
25319 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25321         libunistring: update to Unicode 6.2.0
25322         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
25323         (unilbrk_table): Adjust table size.
25324         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
25325         for LBP_RI.
25326         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
25327         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
25328         Normalize table index skipping ignored properties.
25329         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
25330         WBP_EXTEND and WBP_FORMAT, which are now computed without using
25331         the table.
25332         * lib/uniwbrk/wbrktable.h: Adjust table size.
25333         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
25334         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
25335         Support rule GB8a.
25336         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
25337         * tests/unigbrk/test-uc-is-grapheme-break.c
25338         (graphemebreakproperty_to_string): Support GBP_RI.
25339         * tests/uniwbrk/test-uc-wordbreaks.c
25340         (wordbreakproperty_to_string): Support WBP_RI.
25341         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
25342         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
25343         (output_lbp): Support LBP_RI.  Adjust some characters changed from
25344         LBP_AL to LBP_ID.
25345         (output_lbp): Support LBP_RI.
25346         (WBP_RI): New enumeration value.
25347         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
25348         (output_wbp): Support WBP_RI.
25349         (GBP_RI): New enumeration value.
25350         (output_gbp_test, fill_org_gbp): Support GBP_RI.
25351         * all generated files under lib/uni* and tests/uni*: Regenerate.
25353 2015-01-14  Daiki Ueno  <ueno@gnu.org>
25355         libunistring: update to Unicode 6.1.0
25356         * lib/gen-uni-tables.c (output_joining_group): Switch to
25357         3-level table to accommodate joining groups defined with higher
25358         codepoint value.  Since there are only 88 groups defined in
25359         Unicode 7.0.0, use 7-bit packed format for level3 entries.
25360         (get_lbp): Update for Unicode 6.1.0.
25361         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
25362         3-level table.
25363         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
25364         joining group name.
25365         * lib/unictype/joininggroup_name.h: Likewise.
25366         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
25367         (unilbrk_table): Adjust table size.
25368         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
25369         for LBP_HL.
25370         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
25371         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
25372         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
25373         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
25374         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
25375         U+302E..U+302F.
25376         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25377         lib/uniwidth/width.c.
25378         * all generated files under lib/uni* and tests/uni*: Regenerate.
25379         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
25381 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25383         uniwbrk/u32-wordbreaks-tests: add conformance test
25384         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
25385         tests/uniwbrk/test-uc-wordbreaks.c,
25386         tests/uniwbrk/test-uc-wordbreaks.sh, and
25387         tests/uniwbrk/WordBreakTest.txt.
25388         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
25389         test-uc-wordbreaks to $(check_PROGRAMS), and define
25390         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
25391         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
25392         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
25394 2015-01-15  Daiki Ueno  <ueno@gnu.org>
25396         uniwbrk: ignore Extended/Format characters at BOL not BOS
25397         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
25398         characters if the previous character property is one of
25399         WBP_NEWLINE, WBP_CR, and WBP_LF.
25401 2015-01-11  Jim Meyering  <meyering@fb.com>
25403         test-strstr.c: avoid a trivial leak
25404         * tests/test-strstr.c (main): Free haystack.
25406         update-copyright: recognize groff's \(co marker
25407         * build-aux/update-copyright (circle_c_re): Also accept
25408         uses of \(co, as found in gzip.1.
25410 2015-01-08  Pádraig Brady  <P@draigBrady.com>
25412         maint.mk: fix compatibility with OS X nm
25413         * top/maint.mk (_gl_tight_scope): Use the -g option to
25414         show exported items rather than the -e option which is
25415         ignored on all platforms except OS X where it gives an error.
25416         Reported by Assaf Gordon.
25418 2015-01-07  KO Myung-Hun  <komh@chollian.net>
25420         localcharset: improve charset detection on OS/2
25421         Use system codepage when appropriate.  Map OS/2 codepages to
25422         GNU canonical charset names if possible.
25423         * lib/config.charset: Don't output aliases if "$os" is os2*.
25424         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
25425         result for OS/2.
25426         (locale_charset) [OS2]: Use system codepage if codeset is omitted
25427         from the locale name which is neither "C" nor "POSIX".
25429 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25431         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
25432         This reverts the last patch but one, as it shouldn't be needed now
25433         that the typo is fixed.
25434         * lib/count-leading-zeros.h (count_leading_zeros_ll):
25435         * lib/count-trailing-zeros.h:
25436         * lib/count-one-bits.h:
25437         Go back to using 64-bit intrinsics.
25439         count-leading-zeros: fix pragma typos
25440         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
25441         Fix typos in declaration of intrinsics when _MSC_VER.
25443 2015-01-06  Pádraig Brady  <P@draigBrady.com>
25445         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
25446         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
25447         intrinsics in this case.
25448         * lib/count-trailing-zeros.h: Likewise.
25449         * lib/count-one-bits.h: Likewise.
25451 2015-01-06  Daiki Ueno  <ueno@gnu.org>
25453         uniname/uniname: update to Unicode 7.0.0
25454         To accommodate new characters added since Unicode 5.1.0, this
25455         changes the internal representation of codepoint ranges.
25456         Previously, we grouped codepoint ranges by manually assigned 4-bit
25457         tag, which only allowed 16 groups.  This removes the limitation by
25458         switching to binary search on a table.  For the detail rationale
25459         and the benchmark results, see:
25460         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
25461         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
25462         to INDEX, as it no longer represents a codepoint.
25463         (range): New struct.
25464         (main): Switch to intervals list from a bit-pattern based
25465         classification.
25466         * lib/uniname/uninames.h: Regenerate.
25467         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
25468         * modules/uniname/base (configure.ac): Bump minimum version to
25469         0.9.5.
25470         * modules/uniname/uniname (configure.ac): Bump minimum version to
25471         0.9.5.
25473 2015-01-05  Eric Blake  <eblake@redhat.com>
25475         doc: update INSTALL from autoconf
25476         * doc/install.texi: Resync from autoconf.
25477         * doc/INSTALL: Reflect recent autoconf update.
25478         * doc/INSTALL.ISO: Likewise.
25479         * doc/INSTALL.UTF-8: Likewise.
25481         stdio: fix use of PRIdMAX on modern mingw
25482         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
25483         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
25484         to work with modern mingw.
25486 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
25488         pthread: detect git mingw builds with only partial pollution
25489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
25490         pollution, as seen temporarily in Fedora 21.
25492 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25494         lib-symbol-versions: cache script check
25495         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
25496         Cache the check for linker version scripts.
25497         From a suggestion by Christophe Curis in:
25498         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
25500 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
25502         maint: fix grammar nits in propername (trivial change)
25503         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
25504         and use an adequate verb and tense.
25506 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
25508         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
25509         * module/gendocs: Add 'doc/gendocs_template_min'.
25511         * build-aux/gendocs.sh: Change email addresses and upstream URLs
25512         from to Gnulib's.
25513         (scripturl, templateurl): Adjust accordingly.
25515 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25517         gendocs: copyright date and version fix
25518         Reported by Karl Berry in:
25519         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
25520         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
25521         Fix copyright date.
25522         * build-aux/gendocs.sh (scriptversion): Update.
25524 2015-01-01  Karl Berry  <karl@gnu.org>
25526         * doc/install.texi,
25527         * build-aux/mdate-sh,
25528         * build-aux/depcomp,
25529         * build-aux/config.guess,
25530         * build-aux/config.sub,
25531         * build-aux/ar-lib,
25532         * build-aux/compile: revert copyright updates (some from last
25533         year) in slaved files.
25535 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25537         version-etc: new year
25538         * doc/gnulib.texi:
25539         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
25540         * all files: Run 'make update-copyright'.
25542 2014-12-30  Pádraig Brady  <P@draigBrady.com>
25544         xstrtol: ensure errno is reset
25545         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
25546         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
25548         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
25550 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25552         utimens: fix dependency typo
25553         * modules/utimens (Depends-on): Remove 'assure'.
25554         This bug was introduced in the recent 'assure' patch.
25556 2014-12-22  Eric Blake  <eblake@redhat.com>
25558         docs: mention why libgen.h is bad
25559         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
25561 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25563         assure: new module
25564         This works better than 'assert' when compiling with -DNDEBUG,
25565         as it avoids some compiler diagnostics in that case.
25566         Reported by Norihiro Tanaka in:
25567         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
25568         * MODULES.html.sh (func_all_modules): Add 'assure'.
25569         * lib/assure.h, modules/assure: New files.
25570         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
25571         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
25572         Prefer 'assure' to 'assert'.
25573         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
25574         * modules/chdir-long, modules/cycle-check, modules/fchdir:
25575         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
25576         Depend on 'assure'.
25578 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25580         stdalign: port better to HP compilers
25581         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
25582         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
25584         stdalign: work around Apple GCC 4.0 bug
25585         Reported by David Fang in:
25586         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
25587         * lib/stdalign.in.h (_Alignas):
25588         * m4/stdalign.m4 (gl_STDALIGN_H):
25589         Do not use aligned attribute with GCC 4.0 on Apple.
25591 2014-12-16  Pádraig Brady  <P@draigBrady.com>
25593         getcwd: fix test failure on OS X 10.9
25594         * m4/getcwd-path-max.m4: Avoid the replacement if it
25595         won't be effective due to the PATH_MAX limitation of lstat().
25596         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
25597         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
25598         for this case for use in tests, and also exclude this
25599         case when setting REPLACE_GETCWD.
25600         * tests/test-getcwd.c (test_long_name): Restrict the
25601         tested path length so that lstat() will not be passed
25602         a path greater than PATH_MAX.
25603         Also key a test condition on HAVE_OPENAT_SUPPORT rather
25604         than AT_FDCWD, since the latter is set unconditionally
25605         since Sep 2009 in commit 52c658e9.
25607 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
25609         parse-datetime: avoid a compiler warning with byacc (trivial)
25610         * lib/parse-datetime.y (yylex): Use the same prototype in the
25611         function definition as the declaration, to avoid a -Wstrict-prototypes
25612         warning seen when using byacc.
25614 2014-12-12  Daiki Ueno  <ueno@gnu.org>
25616         unicase/locale-language-tests: fix LOCALE_FR test
25617         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
25618         a French locale with traditional encoding.
25619         Reported by umerqayam in:
25620         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
25622 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25624         stddef: support C11's max_align_t
25625         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
25626         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
25627         Do not undef, as that might cause max_align_t to be defined twice.
25628         Instead, change use to check for _GL_STDDEF_WINT_T too.
25629         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
25630         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
25631         Check for max_align_t.
25632         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
25633         * modules/stddef-tests (Depends-on): Add stdalign.
25634         * tests/test-stddef.c: Test max_align_t.
25636 2014-12-11  Daiki Ueno  <ueno@gnu.org>
25638         unistd: fix iOS check conditional
25639         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
25640         as 0 or 1 in <TargetConditionals.h>, and the previous check always
25641         yielded true on non-iOS environment.
25642         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
25643         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
25644         they are defined.
25646 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25648         posixtm: avoid compiler warning in a better way
25649         * lib/posixtm.c (IF_LINT): Remove.
25650         (year, posix_time_parse):
25651         Return true (not 0) if successful.  All callers changed.
25652         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
25654 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
25656         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
25657         started with '/' on EMX.
25659 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
25661         freopen: workaround freopen() on OS/2 kLIBC
25662         * lib/freopen.c (rpl_freopen): Workaround.
25663         * m4/freopen.m4: Add os2* case.
25665         get_shared_library_fullname: port to EMX
25666         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
25667         on EMX, respectively.
25668         (_DLL_InitTerm): New on EMX.
25669         (get_shared_library_fullname): Implement on EMX.
25671         find_executable: port to EMX
25672         * lib/progreloc.c (find_executable): Implement on EMX.
25674         sched: check struct sched_param in spawn.h as well
25675         * lib/sched.in.h: Include spawn.h on kLIBC.
25676         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
25678 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
25680         bootstrap: Allow perl modules in $buildreq
25681         * build-aux/bootstrap: Add case for perl modules.
25683 2014-12-08  Pádraig Brady  <P@draigBrady.com>
25685         apply _GL_ATTRIBUTE_PURE to some inline functions
25686         clang 3.4.2 flagged these inline functions as pure
25687         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
25688         * lib/sig-handler.h (get_handler): Likewise.
25689         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
25690         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
25692 2014-12-06  Pádraig Brady  <P@draigBrady.com>
25694         vasnprintf: fix potential use after free
25695         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
25696         flagged by clang-analyzer 3.4.2.
25698 2014-12-05  Pádraig Brady  <P@draigBrady.com>
25700         filevercmp, posixtm: avoid compiler warnings with -O3
25701         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
25702         * lib/posixtm.c: (IF_LINT): Define.
25703         (posix_time_parse): Use it to void a "may be used uninitialized"
25704         warning, seen only with -O3.
25706 2014-12-05  Bruno Haible  <bruno@clisp.org>
25708         Fix LDBL80_WORDS macro on big endian platforms.
25709         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
25710         LDBL80_WORDS macro.
25711         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25713         * tests/test-isfinite.c (test_isfinitel): Likewise.
25714         * tests/test-isinf.c (test_isinfl): Likewise.
25715         * tests/test-isnan.c (test_long_double): Likewise.
25716         * tests/test-isnanl.h (main): Likewise.
25717         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
25718         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
25719         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
25720         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
25721         Reported by Pádraig Brady.
25723 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
25725         git-version-gen: do not print new line characters
25726         * build-aux/git-version-gen: Use printf instead of echo and tr.
25728         gnulib-tool: recognize x:* as an absolute path
25729         * gnulib-tool (func_gnulib_dir): Add ?:* case.
25730         (func_relconcat): Likewise.
25732 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
25734         argp: avoid extraneous translation and mem leak with empty pre doc
25735         * lib/argp-help.c (argp_doc): Never translate the empty string,
25736         when "\v" is the first or last character of the string, as that
25737         has a reserved meaning to return the header info from a po file.
25738         This also fixes a small memory leak in the !post case.
25739         The issue can be seen with this command for example:
25740         LC_MESSAGES=en_US grub2-mknetdir --help
25742 2014-11-27  Daiki Ueno  <ueno@gnu.org>
25744         uniname/uniname-tests: skip if system's libunistring is used
25745         * modules/uniname/uniname-tests (Makefile.am): Skip test if
25746         uniname/uniname module is not compiled.
25748 2014-11-27  Pádraig Brady  <P@draigBrady.com>
25750         printf: fix configure check on big endian systems
25751         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
25753 2014-11-22  Daiki Ueno  <ueno@gnu.org>
25755         pipe-filter-gi, pipe-filter-ii: port to AIX
25756         On AIX 7.1, 'select' is defined as static and cannot be referred
25757         to from inline function.
25758         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
25759         the definition...
25760         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
25761         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
25763 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25765         gitlog-to-changelog: add --until
25766         * build-aux/gitlog-to-changelog: Support new --until option.
25767         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
25769 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
25771         extern-inline: update commentary about GCC bugs
25772         * m4/extern-inline.m4: Add another GCC bug number to comments.
25774 2014-11-13  Daiki Ueno  <ueno@gnu.org>
25776         gen-uni-tables: untabify
25777         * lib/gen-uni-tables.c: Untabify.
25779 2014-11-13  Daiki Ueno  <ueno@gnu.org>
25781         gen-uni-tables: check out-of-range values added to 3-level tables
25782         * lib/gen-uni-tables.c (output_category, output_bidi_category)
25783         (output_joining_type, output_ident_category): Check out-of-range
25784         values added to 3-level tables.
25786 2014-11-13  Daiki Ueno  <ueno@gnu.org>
25788         gen-uni-tables: utilize 'assert'
25789         * lib/gen-uni-tables.c: Include <assert.h>.
25790         (output_category, output_combclass, output_decimal_digit_test)
25791         (output_decimal_digit, output_digit_test, output_digit)
25792         (output_numeric, get_mirror_value, fill_properties)
25793         (fill_property30, is_property_alphabetic)
25794         (is_property_default_ignorable_code_point)
25795         (is_property_uppercase, is_property_lowercase)
25796         (is_property_cased, is_property_case_ignorable)
25797         (is_property_changes_when_lowercased, is_property_iso_control)
25798         (is_property_math, fill_arabicshaping, output_joining_group)
25799         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
25800         (output_wbp, fill_org_gbp, get_decomposition)
25801         (output_decomposition, fill_composition_exclusions)
25802         (debug_output_composition_tables, output_composition_tables)
25803         (redistribute_casefolding_rules, output_casing_rules): Use
25804         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
25805         reporting.
25807 2014-11-13  Daiki Ueno  <ueno@gnu.org>
25809         gen-uni-tables: cosmetic improvements
25810         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
25811         variables specification.
25812         (is_outdigit): Remove unused function.
25814 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
25816         fcntl-h-tests: port to PA-RISC GNU/Linux
25817         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
25819 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25821         fts: port to C89
25822         Problem reported for MSVC 16 by Gisle Vanem in:
25823         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
25824         * lib/fts.c (fts_build): Avoid declaration before statement.
25826 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25828         unistd: port to iOS
25829         Problem reported by André Klitzing in:
25830         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
25831         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
25833 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25835         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
25836         Problem reported by Alan Modra in:
25837         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
25838         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
25839         Always cast the function arg, reverting this part of the previous
25840         change.
25842 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25844         obstack: avoid potentially-nonportable function casts
25845         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
25846         Remove, replacing with ...
25847         (call_chunkfun, call_freefun): New static functions.
25848         All uses changed.  Avoid potentially-nonportable casts.
25849         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
25850         (_obstack_begin_worker): Omit last two args, since they
25851         rely on potentially-nonportable casts.  All callers changed.
25852         * lib/obstack.h (_OBSTACK_CAST): New macro.
25853         Use it everywhere the old API used a potentially-nonportable cast.
25854         The new API doesn't cast.
25855         (struct obstack): Use unions rather than requiring
25856         potentially-nonportable casts.
25857         (obstack_chunkfun, obstack_freefun): Return void.
25859 2014-11-03  Alan Modra  <amodra@gmail.com>
25861         obstack: fix macro return values
25862         * lib/obstack.h (obstack_next_free): Return void *.
25863         (obstack_1grow_fast, obstack_blank_fast): Return void.
25864         For __GNUC__ macros:
25865         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
25866         For !__GNUC__ macros:
25867         (obstack_make_room, obstack_grow, obstack_grow0)
25868         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
25870 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25872         obstack: do not assume system-supplied obstack is size_t safe
25873         * m4/obstack.m4: New file.
25874         * modules/obstack (Files): Add it.
25876         obstack: port to platforms that #define __alignof__
25877         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
25878         not if !_LIBC.  We don't know of any platforms that #define
25879         __alignof__, but it might be useful in tests.  Conversely,
25880         glibc assumes GCC.
25882 2014-11-03  Pádraig Brady  <P@draigBrady.com>
25884         linkat: don't unconditionally replace on GNU/Linux
25885         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
25886         was redundant for a few reasons.  It was present to support compiling
25887         on new systems but running on the old narrow window of Linux 2.6.1[67].
25888         It setup and cleaned up test files which weren't actually used.
25889         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
25890         implicit in the following check.
25892 2014-11-03  Pádraig Brady  <P@draigBrady.com>
25894         linkat: wrap to handle symlinks on OS X 10.10
25895         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
25896         but not usable because it doesn't support creating hardlinks
25897         to symlinks.  Therefore add a generic test for this capability
25898         and fallback to our emulation if linkat() fails with ENOTSUP.
25900 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25902         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
25903         * doc/posix-functions/open.texi (open):
25904         * doc/posix-functions/openat.texi (openat):
25905         Document that these functions do not set errno to ELOOP when
25906         a symlink is opened with O_NOFOLLOW.
25908 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25910         obstack: add NEWS entry for recent incompatible changes
25911         * NEWS: Describe recent changes.
25913 2014-10-30  Pádraig Brady  <P@draigBrady.com>
25915         mountlist: don't use libmount to decide on dummy/remote
25916         * lib/mountlist.c (read_file_system_list): Don't use the libmount
25917         routines to determine whether a file system is dummy or remote,
25918         as they're not currently compatible.  For example the remoteness
25919         is determined on file system type (for which the list seems incomplete),
25920         rather than simply checking for a ':' in the device name.
25921         Also libmount currently determines that 'tmpfs' is a dummy file system
25922         even though it has associated storage.
25924 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
25926         obstack: prefer __alignof__ to alignof
25927         This is for portability to pre-4.7 GCC when compiling glibc.
25928         See Joseph S. Myers in:
25929         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
25930         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
25931         New macro, defined by including and using <alignof.h>.
25932         (MAX): New macro.
25933         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
25934         Do not use enums as they are not portable to some broken compilers.
25935         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
25937         obstack: prefer alignof to calculating alignments by hand
25938         * lib/obstack.c: Include <stdalign.h>.
25939         (struct fooalign): Remove.
25940         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
25941         * modules/obstack (Depends-on): Add stdalign.
25943 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
25945         obstack: use size_t alignments and check for overflow
25946         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
25947         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
25948         * lib/obstack.h (struct obstack.alignment_mask):
25949         Use _OBSTACK_SIZE_T, not int, for alignments.
25950         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
25951         overflows, e.g., when adding the alignment.
25953 2014-10-29  Alan Modra  <amodra@gmail.com>
25955         obstack: 64-bit obstack support, part 3
25956         This finally enables full 64-bit obstack support.  The glibc
25957         shared library specific code is removed from obstack.c too, and
25958         the error handling code conditionally compiled under control of
25959         another macro, _OBSTACK_NO_ERROR_HANDLER.
25960         * lib/obstack.h: Include string.h earlier.
25961         (_OBSTACK_INTERFACE_VERSION): Define.
25962         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
25963         * lib/obstack.c: Don't include shlib-compat.h.
25964         (OBSTACK_INTERFACE_VERSION): Delete.
25965         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
25966         glibc code is compatible with version 2.  Don't include stdio.h for
25967         __GNU_LIBRARY.
25968         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
25969         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
25970         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
25971         glibc shared library specific source.
25973         obstack: 64-bit obstack support, part 2
25974         This gets us 4G obstack support, without changing ABI
25975         compatibility, apart from possibly introducing some
25976         signed/unsigned comparison warnings in code that uses obstack.h.
25977         a) Replace "int" size parameters, return values, and macro local vars
25978            with _OBSTACK_SIZE_T, an "unsigned int" for now.
25979         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
25980         c) Make all obstack macros checking available room use obstack_room.
25981            "next_free + desired > chunk_limit" may wrap the lhs for chunks
25982            allocated near the top of memory.
25983         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
25984         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
25985         in place of "int" size parameters, return values and local vars.
25986         (_CHUNK_SIZE_T): Define.
25987         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
25988         union use an _OBSTACK_SIZE_T integer type.
25989         For __GNUC__ versions of the following macros...
25990         (obstack_room): Rename local var.
25991         (obstack_make_room): Use obstack_room.
25992         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
25993         obstack_int_grow, obstack_blank): Likewise.
25994         (obstack_finish): Use unsigned comparison when comparing aligned
25995         next_free against chunk_limit.
25996         (obstack_free): Cast OBJ to remove possible const qualifier.
25997         For !__GNUC__ versions of the following macros...
25998         (obstack_make_room): Use obstack_room.
25999         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
26000         obstack_int_grow, obstack_blank): Likewise.
26001         (obstack_finish): Use unsigned comparision when comparing aligned
26002         next_free against chunk_limit.
26003         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
26004         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
26005         _OBSTACK_SIZE_T.
26006         (_obstack_begin, _obstack_begin_1): Likewise.
26007         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
26008         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
26010         obstack: 64-bit obstack support, part 1
26011         a) Correct calls to alloc function, to use a size_t arg.  "long" is
26012            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
26013            and "size_t" 64 bits.
26014         b) Consolidate _obstack_begin and _obstack_begin1 code.
26015         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
26016         use "size_t" rather than "long".
26017         (_obstack_begin, _obstack_begin1): Likewise.
26018         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
26019         obstack_chunkfun): Update alloc function casts.
26020         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
26021         (chunkfun_type, freefun_type): New typdefs.
26022         (_obstack_begin_worker): Split out from ..
26023         (_obstack_begin, _obstack_begin_1): ..here.
26025         obstack: tidy part 2
26026         a) Don't be concerned about "not polluting the namespace with stddef.h
26027            symbols" in obstack.h, since gnulib string.h includes stddef.h
26028            anyway, and it seems unlikely that anyone would care.
26029         b) Don't roll our own slow memcpy in _obstack_newchunk.
26030         c) Rename obstack_free to _obstack_free.  This makes the naming
26031            consistent with other obstack functions and obviates the need for
26032            __obstack_free.  Ancient obstack.c defined both obstack_free and
26033            _obstack_free.  We continue to do that for _LIBC via an alias.
26034         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
26035            is clever, but nowadays gcc warns on undefined macros.  You'll get
26036            an undefined macro warning if simulating an old gcc with -U__GNUC__
26037            -U__GNUC_MINOR__ -D__GNUC__=1.
26038         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
26039         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
26040         (__obstack_free): Delete, update refs.
26041         (_obstack_free): Rename from obstack_free.
26042         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
26043         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
26044         * lib/obstack.c: Don't include stddef.h.
26045         (COPYING_UNIT): Delete.
26046         (_obstack_begin): Formatting fix.
26047         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
26048         (_obstack_free): Rename from __obstack_free, update alias.  Move
26049         undef of obstack_free to where it is needed.
26051         obstack: tidy part 1
26052         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
26053            to me, and result in overlong lines after later patches.
26054         b) Move error handling code, to avoid a forward declaration and to
26055            simplify later patches in this series.
26056         * lib/obstack.h (struct obstack <temp>): Rename fields of union
26057         and update all uses.
26058         * lib/obstack.c: Include stdlib.h earlier.
26059         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
26060         in file.
26061         (print_and_abort): Remove now redundant forward declaration.
26063 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26065         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
26066         Without this change, in bleeding-edge fileutils Autoconf complains
26067         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
26068         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
26069         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
26070         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
26072 2014-10-24  Daiki Ueno  <ueno@gnu.org>
26074         iconv: avoid false detection of non-working iconv
26075         The INBUF arguments of iconv can be either 'const char **'
26076         or 'char **'.  If CC is g++, the difference causes a compile error
26077         and thus leads to a false detection of non-working iconv.
26078         Reported by Eli Zaretskii and Werner LEMBERG in:
26079         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
26080         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
26081         iconv.  Bump serial number.
26083 2014-10-23  Pádraig Brady  <P@draigBrady.com>
26085         bootstrap: print more diagnostics for missing programs
26086         * build-aux/bootstrap: only suppress stderr when checking for
26087         alternative program names.  This supports programs issuing non
26088         standard error messages.
26090 2014-10-23  Pádraig Brady  <P@draigBrady.com>
26092         bootstrap: only update the gnulib submodule
26093         * build-aux/bootstrap: Restrict the "submodule update" command
26094         to the gnulib path.
26096 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26098         symlinkat: port to AIX 7.1
26099         * doc/posix-functions/symlinkat.texi (symlinkat):
26100         Mention AIX porting problem.
26101         * lib/symlinkat.c: Always include errno.h.
26102         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
26103         * lib/unistd.in.h (symlinkat): Add replacement machinery.
26104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
26106         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
26107         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
26108         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
26110         readlinkat: port to AIX 7.1
26111         * doc/posix-functions/readlink.texi (readlink):
26112         * doc/posix-functions/readlinkat.texi (readlinkat):
26113         Mention AIX porting problem.
26114         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
26115         New function.
26116         * lib/unistd.in.h (readlinkat): Add replacement machinery.
26117         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
26118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
26119         * modules/readlinkat (configure.ac): Also compile replacement
26120         if REPLACE_READLINKAT.
26121         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
26123 2014-10-12  Karl Berry  <karl@gnu.org>
26125         * doc/posix-functions/dirname.texi: remove spurious {.
26127 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
26129         basename, dirname: Improve documentation.
26130         * doc/posix-functions/basename.texi: Mention dirname module and
26131         base_name() function.
26132         * doc/posix-functions/dirname.texi: Mention dir_name() and
26133         mdir_name() functions.
26134         Suggested by Werner LEMBERG <wl@gnu.org>.
26136 2014-09-24  Jim Meyering  <meyering@fb.com>
26138         exclude: declare exclude_patopts static
26139         * lib/exclude.c (exclude_patopts): Declare static,
26140         to avoid triggering a -Wmissing-prototypes warning.
26141         The alternative (declaring it in the .h file) would
26142         require publicizing the private "struct patopts".
26144 2014-09-21  Werner Lemberg  <wl@gnu.org>
26146         dirname: support compilation with C++
26147         * lib/dirname.h: Add necessary C linkage declarations.
26149 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26151         qsort_r: include <config.h>
26152         Problem reported by Tom G. Christensen in:
26153         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
26154         * lib/qsort.c [!_LIBC]: Include <config.h> first.
26156 2014-09-16  Dylan Cali  <calid1984@gmail.com>
26158         avltree-list: avoid compiler warnings (trivial)
26159         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26160         -Werror=suggest-attribute=pure.
26161         * lib/gl_array_list.c: Likewise.
26162         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
26163         declaration to avoid -Werror=missing-prototypes.  This is not added
26164         to a header as only exported for tests.  Add (void) to the
26165         check_invariants() call to indicate we're discarding the result
26166         in this context which avoids -Werror=unused-value.  Note we don't
26167         use ignore_value here to avoid a dependency as we know we'll not
26168         be adding __attribute__((warn_unused_result)) to check_invariants().
26169         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
26171 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26173         qsort_r: new module, for GNU-style qsort_r
26174         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
26176 2014-09-15  Werner LEMBERG  <wl@gnu.org>
26178         strerror_r-posix: support compilation with C++
26179         * lib/strerror_r.c: Add necessary C linkage declarations.
26181 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
26183         fcntl-h: fix compilation with Intel C++ compiler (trivial)
26184         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
26186 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
26188         mountlist: use /proc/self/mountinfo when available
26189         Use libmount to propagate device IDs provided by Linux in
26190         /proc/self/mountinfo.  This will give more accurate output when
26191         using df in chroot'ed environments as the device IDs are not
26192         determined by stat() which may be inaccurate within the chroot.
26193         * lib/mountlist.c (read_file_system_list): Use the libmount routines
26194         from util-linux to parse "/proc/self/mountinfo" or fall back to
26195         standard getmntent() processing.
26196         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
26197         getmntent() is used, as is the case on GNU/Linux.
26199 2014-09-07  Eric Wong  <normalperson@yhbt.net>
26201         users.txt: add cmogstored
26202         cmogstored has used gnulib since the beginning in 2012 to support
26203         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
26205 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
26207         Trivial change.
26208         * gnulib-tool: Use same options as build-aux/bootstrap to download
26209         PO files.
26211 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
26213         Trivial change.
26214         * gnulib-tool: Fallback to wget when rsync of PO files fails.
26216 2014-09-04  Eric Blake  <eblake@redhat.com>
26218         maintainer-makefile: add syntax check for useless ';;'
26219         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
26221 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
26223         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
26224         Problem reported by Assaf Gordon in:
26225         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
26226         Apparently Ubuntu is doing some fancy link-time optimization
26227         that doesn't work with -lpthread but does work with -pthread.
26228         Work around the bug by preferring -pthread to -lpthread.
26229         * m4/pthread.m4 (gl_PTHREAD_CHECK):
26230         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
26231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26232         Treat -pthread like -lpthread.
26234 2014-09-04  Eric Blake  <eblake@redhat.com>
26236         error: drop spurious semicolon
26237         * lib/error.c (__error_at_line): Fix ';;'.
26239 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26241         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
26242         * m4/gnulib-common.m4 (AC_C_RESTRICT):
26243         Override AC_C_RESTRICT unconditionally.
26244         Update from autoconf, incorporating:
26245         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
26246         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
26248 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26250         manywarnings: add GCC 4.9 warnings
26251         Also, make it easier to maintain this in the future.
26252         * build-aux/gcc-warning.spec: Add -Wabi-tag,
26253         -Wconditionally-supported, -Wdelete-incomplete,
26254         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
26255         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
26256         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
26257         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
26258         only for older GCC versions that need them.  Handle
26259         -Wnormalized=nfc specially, so that the 'comm' command used
26260         for maintenance doesn't get confused.
26262 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26264         vasnprintf: fix bugs in width computation
26265         * lib/vasnprintf.c (VASNPRINTF):
26266         Rework previous change, which introduced a bug,
26267         to avoid the warning in a different way.
26268         Avoid undefined behavior if the width arg is less than -INT_MAX.
26269         Avoid unnecessary use of HAS_WIDTH local.
26271 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
26273         vasnprintf: Avoid signed/unsigned comparison warning.
26274         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
26275         compare end addr of generated string w/ maximum end addr.
26277 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
26279         parse-datetime: Avoid pointer difference.
26280         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
26281         instead of calculating difference of pointers.  This removes an
26282         annoying warning, devoid of any use.
26284 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26286         qsort_r: new module, for GNU-style qsort_r
26287         This works even on FreeBSD, which has an incompatible qsort_r API.
26288         * MODULES.html.sh: Add it.
26289         * doc/glibc-functions/qsort_r.texi: It's now supported.
26290         * lib/qsort.c: New file, taken from glibc with minor changes
26291         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
26292         removed.
26293         * lib/qsort_r.c: New file, compiled only on FreeBSD.
26294         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
26295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
26296         * modules/qsort_r, modules/qsort_r-tests: New files.
26297         * modules/stdlib (Makefile): Set up its defaults.
26298         * tests/test-qsort_r.c: New file.
26300 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
26302         vla: new module
26303         GNU RCS can use this, mostly for documentation I expect.  See:
26304         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
26305         * MODULES.html.sh: Add vla.
26306         * lib/vla.h, modules/vla: New files.
26308 2014-08-07  Daiki Ueno  <ueno@gnu.org>
26310         localename: make gl_locale_name_thread really thread-safe on Windows
26311         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
26312         "glthread/lock.h".
26313         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
26314         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
26316 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
26318         getpass: don't assume struct termios
26319         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
26320         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
26321         * lib/getpass.c (getpass): Port to systems lacking struct termios.
26323         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
26324         Problem reported by Jonas 'Sortie' Termansen in:
26325         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
26326         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
26327         Implement via sysconf for platforms that lack getdtablesize.
26329         vararrays: modernize AC_C_VARARRAYS for C11
26330         This backports a change I recently made to Autoconf.
26331         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
26332         VLAs are not supported, as this is what C11 does.  The old macro
26333         HAVE_C_VARARRAYS is still defined if they are supported, but is
26334         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
26336 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
26338         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
26339         * build-aux/install-reloc (func_create_wrapper): Also wrap
26340         strerror-override, stat, stat.
26342 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26344         sys_select: fix FD_ZERO problem on Solaris 10
26345         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
26346         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
26347         to expand to an expression that invoked memset without necessarily
26348         including <string.h>.  The problem was that the first include
26349         defined _SYS_TIME_H, causing the second include to short-circuit.
26350         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
26351         Also, fix what appears to be a cut-and-paste typo, by replacing
26352         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
26353         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
26355         accept: document Solaris 10 type glitch
26356         * doc/posix-functions/accept.texi (accept): Mention that
26357         Solaris 10 'accept' takes void * last arg, not socklen_t *.
26359 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
26361         extern-inline: port to FreeBSD, DragonFly
26362         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
26363         is present if either __DragonFly__ or __FreeBSD__ is defined.
26364         FreeBSD problem reported by Andrey Borzenkov in:
26365         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
26366         Also, worry about __APPLE__ only if __MACH__ is also defined,
26367         as this is more consistent with the rest of gnulib.
26368         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
26369         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
26371 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26373         regex: Make #if/#ifdef usage consistent for DEBUG
26374         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
26375         of the inconsistent usage of #if and #ifdef as that works with
26376         both Glibc and Gnulib's style.
26378 2014-07-31  Eric Blake  <eblake@redhat.com>
26380         openat-die: use _Noreturn markup
26381         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
26382         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
26383         _Noreturn.
26385 2014-07-30  Eric Blake  <eblake@redhat.com>
26387         test-open: port to cygwin, which lacks Fortify
26388         * tests/test-open.h (ALWAYS_INLINE): New macro.
26389         (__always_inline): Don't abuse internal symbol on non-glibc.
26391 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
26393         localename: Enforce declarations before statements.
26394         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
26395         first statement.
26397 2014-07-18  Jim Meyering  <meyering@fb.com>
26399         test-userspec: don't look up numeric user names
26400         * tests/test-userspec.c: I found a system for which getpwnam("0")
26401         returned a pointer to a non-root user's entry, and that made the
26402         test fail.
26403         (T): Prefix each numeric input with "+", to inhibit lookup.
26405 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
26407         localcharset, localename: MS-Windows support for non-default locales
26408         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
26409         falling back on the default system codepage, try extracting
26410         the codepage from what 'setlocale' returns.  This allows to
26411         take into account changes of the codeset due to non-default
26412         locale set by a previous call to 'setlocale'.
26413         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
26414         Define if not already defined.
26415         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
26416         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
26417         current locale by calling 'setlocale', then converting the
26418         locale name into LCID by calling 'get_lcid'.  This allows to
26419         take into account changes in the current locale from the
26420         default one, in contrast to GetThreadLocale.
26422 2014-07-14  Daiki Ueno  <ueno@gnu.org>
26424         announce-gen: avoid failure when Digest::SHA is installed
26425         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
26426         Digest::SHA1->new in print_checksums fails.
26427         * build-aux/announce-gen (digest_classes): New associative array
26428         for available message digest implementations.
26429         (print_locations): Use it.
26431 2014-07-13  Pádraig Brady  <P@draigBrady.com>
26433         gettext: revert "update macros to version 0.19"
26434         This reverts commit 9b9370ca, as it currently requires that
26435         developers of any project that explicitly uses the gettext module
26436         or implicitly uses it through the utimens-tests or
26437         futimens-tests modules, use gettext >= 0.19.
26438         However there are some stability and availablity issues with
26439         that version at present.  We can reinstate this soon, when stability
26440         is addressed and packages are more readily available.
26442 2014-07-12  Jim Meyering  <meyering@fb.com>
26444         regex: don't deref NULL upon heap allocation failure
26445         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
26446         failure in one more place.
26447         To trigger the segfault, configure grep -with-included-regex,
26448         build it, and run these commands:
26449         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
26450         I discovered this while replying to a private report from
26451         Jens Schleusener about excessive memory consumption by grep
26452         when using a regular expression like the one above.
26454 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26456         regex: fix memory leak in compiler
26457         Fix by Andreas Schwab in:
26458         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
26459         * lib/regcomp.c (parse_reg_exp): Deallocate partially
26460         constructed tree before returning error.
26462 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
26464         announce-gen: avoid perl warnings
26465         * build-aux/announce-gen: add two minor checks to avoid
26466         "use of uninitialized value" warnings when command-line parameters are
26467         missing.
26469 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
26471         localename: avoid -Wsuggest-attribute={const,pure} warnings
26472         * lib/localename.c (string_has): Tag internal function as pure.
26473         * lib/localename.h (gl_locale_name_default): Tag extern declaration
26474         as const when appropriate.
26476 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
26478         nl_langinfo: Fix last change.
26479         * lib/nl_langinfo.c (includes): Drop redundant include.
26481 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26483         error: Fix -Wundef warnings in glibc
26484         * lib/error.c [_LIBC]: Define default macros for
26485         glibc.
26486         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
26487         Check _LIBC before STRERROR_R_CHAR_P.
26489         error: Sync from glibc master
26490         * lib/error.c [_LIBC]: Remove INTUSE usage.
26491         (error_tail): Remove unused macro ALLOCA_LIMIT.
26492         Fix potential buffer overflow.  Fix potential NULL dereference
26493         in strcmp.
26495 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
26497         nl_langinfo: fix build under mingw
26498         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
26500 2014-07-09  Andrew D Warshall  <warshall@99main.com>
26502         mountlist: do not classify a bind-mounted dir entry as "dummy"
26503         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
26504         1-argument getmntent() (instead of assuming absence).
26506 2014-07-08  Eric Blake  <eblake@redhat.com>
26508         maint.mk: less syntax-check noise when SIGPIPE is ignored
26509         * top/maint.mk (_sc_header_without_use)
26510         (sc_require_config_h_first): Parse full list.
26512 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
26513             Paul Eggert  <eggert@cs.ucla.edu>
26515         nl_langinfo: CODESET on MS-Windows and more items from localeconv
26516         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
26517         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
26518         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
26519         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
26520         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
26521         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
26522         Include <stdio.h> if Microsoft Windows.
26523         Include <time.h> if !REPLACE_NL_LANGINFO.
26524         (ctype_codeset): New function, taken from rpl_nl_langinfo,
26525         and with improvements for Microsoft Windows.
26526         (rpl_nl_langinfo): Use it.
26527         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
26528         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
26529         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
26530         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
26531         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
26532         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
26533         corresponding values returned by 'localeconv'.  Compute the values
26534         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
26535         'strftime' with a suitable struct tm value.
26537 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26539         Bruno Haible has stepped down as maintainer.
26540         See Karl Berry in:
26541         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
26542         Daiki Ueno has volunteered to maintain libunistring; see:
26543         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
26544         * modules/gen-uni-tables, modules/libunistring:
26545         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
26546         * modules/unicase/base, modules/unicase/cased:
26547         * modules/unicase/empty-prefix-context:
26548         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
26549         * modules/unicase/locale-language, modules/unicase/special-casing:
26550         * modules/unicase/tocasefold, modules/unicase/tolower:
26551         * modules/unicase/totitle, modules/unicase/toupper:
26552         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
26553         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
26554         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
26555         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
26556         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
26557         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
26558         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
26559         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
26560         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
26561         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
26562         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
26563         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
26564         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
26565         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
26566         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
26567         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
26568         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
26569         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
26570         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
26571         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
26572         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
26573         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
26574         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
26575         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
26576         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
26577         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
26578         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
26579         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
26580         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
26581         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
26582         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
26583         * modules/unicase/ulc-casexfrm, modules/unicodeio:
26584         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
26585         * modules/uniconv/u16-conv-to-enc:
26586         * modules/uniconv/u16-strconv-from-enc:
26587         * modules/uniconv/u16-strconv-from-locale:
26588         * modules/uniconv/u16-strconv-to-enc:
26589         * modules/uniconv/u16-strconv-to-locale:
26590         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
26591         * modules/uniconv/u32-strconv-from-enc:
26592         * modules/uniconv/u32-strconv-from-locale:
26593         * modules/uniconv/u32-strconv-to-enc:
26594         * modules/uniconv/u32-strconv-to-locale:
26595         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
26596         * modules/uniconv/u8-strconv-from-enc:
26597         * modules/uniconv/u8-strconv-from-locale:
26598         * modules/uniconv/u8-strconv-to-enc:
26599         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
26600         * modules/unictype/bidicategory-all:
26601         * modules/unictype/bidicategory-byname:
26602         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
26603         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
26604         * modules/unictype/bidiclass-byname:
26605         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
26606         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
26607         * modules/unictype/block-all, modules/unictype/block-list:
26608         * modules/unictype/block-of, modules/unictype/block-test:
26609         * modules/unictype/category-C, modules/unictype/category-Cc:
26610         * modules/unictype/category-Cf, modules/unictype/category-Cn:
26611         * modules/unictype/category-Co, modules/unictype/category-Cs:
26612         * modules/unictype/category-L, modules/unictype/category-LC:
26613         * modules/unictype/category-Ll, modules/unictype/category-Lm:
26614         * modules/unictype/category-Lo, modules/unictype/category-Lt:
26615         * modules/unictype/category-Lu, modules/unictype/category-M:
26616         * modules/unictype/category-Mc, modules/unictype/category-Me:
26617         * modules/unictype/category-Mn, modules/unictype/category-N:
26618         * modules/unictype/category-Nd, modules/unictype/category-Nl:
26619         * modules/unictype/category-No, modules/unictype/category-P:
26620         * modules/unictype/category-Pc, modules/unictype/category-Pd:
26621         * modules/unictype/category-Pe, modules/unictype/category-Pf:
26622         * modules/unictype/category-Pi, modules/unictype/category-Po:
26623         * modules/unictype/category-Ps, modules/unictype/category-S:
26624         * modules/unictype/category-Sc, modules/unictype/category-Sk:
26625         * modules/unictype/category-Sm, modules/unictype/category-So:
26626         * modules/unictype/category-Z, modules/unictype/category-Zl:
26627         * modules/unictype/category-Zp, modules/unictype/category-Zs:
26628         * modules/unictype/category-all, modules/unictype/category-and:
26629         * modules/unictype/category-and-not, modules/unictype/category-byname:
26630         * modules/unictype/category-longname, modules/unictype/category-name:
26631         * modules/unictype/category-none, modules/unictype/category-of:
26632         * modules/unictype/category-or, modules/unictype/category-test:
26633         * modules/unictype/category-test-withtable:
26634         * modules/unictype/combining-class:
26635         * modules/unictype/combining-class-all:
26636         * modules/unictype/combining-class-byname:
26637         * modules/unictype/combining-class-longname:
26638         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
26639         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
26640         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
26641         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
26642         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
26643         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
26644         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
26645         * modules/unictype/digit, modules/unictype/joininggroup-all:
26646         * modules/unictype/joininggroup-byname:
26647         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
26648         * modules/unictype/joiningtype-all:
26649         * modules/unictype/joiningtype-byname:
26650         * modules/unictype/joiningtype-longname:
26651         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
26652         * modules/unictype/mirror, modules/unictype/numeric:
26653         * modules/unictype/property-all, modules/unictype/property-alphabetic:
26654         * modules/unictype/property-ascii-hex-digit:
26655         * modules/unictype/property-bidi-arabic-digit:
26656         * modules/unictype/property-bidi-arabic-right-to-left:
26657         * modules/unictype/property-bidi-block-separator:
26658         * modules/unictype/property-bidi-boundary-neutral:
26659         * modules/unictype/property-bidi-common-separator:
26660         * modules/unictype/property-bidi-control:
26661         * modules/unictype/property-bidi-embedding-or-override:
26662         * modules/unictype/property-bidi-eur-num-separator:
26663         * modules/unictype/property-bidi-eur-num-terminator:
26664         * modules/unictype/property-bidi-european-digit:
26665         * modules/unictype/property-bidi-hebrew-right-to-left:
26666         * modules/unictype/property-bidi-left-to-right:
26667         * modules/unictype/property-bidi-non-spacing-mark:
26668         * modules/unictype/property-bidi-other-neutral:
26669         * modules/unictype/property-bidi-pdf:
26670         * modules/unictype/property-bidi-segment-separator:
26671         * modules/unictype/property-bidi-whitespace:
26672         * modules/unictype/property-byname:
26673         * modules/unictype/property-case-ignorable:
26674         * modules/unictype/property-cased:
26675         * modules/unictype/property-changes-when-casefolded:
26676         * modules/unictype/property-changes-when-casemapped:
26677         * modules/unictype/property-changes-when-lowercased:
26678         * modules/unictype/property-changes-when-titlecased:
26679         * modules/unictype/property-changes-when-uppercased:
26680         * modules/unictype/property-combining:
26681         * modules/unictype/property-composite:
26682         * modules/unictype/property-currency-symbol:
26683         * modules/unictype/property-dash:
26684         * modules/unictype/property-decimal-digit:
26685         * modules/unictype/property-default-ignorable-code-point:
26686         * modules/unictype/property-deprecated:
26687         * modules/unictype/property-diacritic:
26688         * modules/unictype/property-extender:
26689         * modules/unictype/property-format-control:
26690         * modules/unictype/property-grapheme-base:
26691         * modules/unictype/property-grapheme-extend:
26692         * modules/unictype/property-grapheme-link:
26693         * modules/unictype/property-hex-digit:
26694         * modules/unictype/property-hyphen:
26695         * modules/unictype/property-id-continue:
26696         * modules/unictype/property-id-start:
26697         * modules/unictype/property-ideographic:
26698         * modules/unictype/property-ids-binary-operator:
26699         * modules/unictype/property-ids-trinary-operator:
26700         * modules/unictype/property-ignorable-control:
26701         * modules/unictype/property-iso-control:
26702         * modules/unictype/property-join-control:
26703         * modules/unictype/property-left-of-pair:
26704         * modules/unictype/property-line-separator:
26705         * modules/unictype/property-logical-order-exception:
26706         * modules/unictype/property-lowercase, modules/unictype/property-math:
26707         * modules/unictype/property-non-break:
26708         * modules/unictype/property-not-a-character:
26709         * modules/unictype/property-numeric:
26710         * modules/unictype/property-other-alphabetic:
26711         * modules/unictype/property-other-default-ignorable-code-point:
26712         * modules/unictype/property-other-grapheme-extend:
26713         * modules/unictype/property-other-id-continue:
26714         * modules/unictype/property-other-id-start:
26715         * modules/unictype/property-other-lowercase:
26716         * modules/unictype/property-other-math:
26717         * modules/unictype/property-other-uppercase:
26718         * modules/unictype/property-paired-punctuation:
26719         * modules/unictype/property-paragraph-separator:
26720         * modules/unictype/property-pattern-syntax:
26721         * modules/unictype/property-pattern-white-space:
26722         * modules/unictype/property-private-use:
26723         * modules/unictype/property-punctuation:
26724         * modules/unictype/property-quotation-mark:
26725         * modules/unictype/property-radical:
26726         * modules/unictype/property-sentence-terminal:
26727         * modules/unictype/property-soft-dotted:
26728         * modules/unictype/property-space:
26729         * modules/unictype/property-terminal-punctuation:
26730         * modules/unictype/property-test, modules/unictype/property-titlecase:
26731         * modules/unictype/property-unassigned-code-value:
26732         * modules/unictype/property-unified-ideograph:
26733         * modules/unictype/property-uppercase:
26734         * modules/unictype/property-variation-selector:
26735         * modules/unictype/property-white-space:
26736         * modules/unictype/property-xid-continue:
26737         * modules/unictype/property-xid-start:
26738         * modules/unictype/property-zero-width, modules/unictype/scripts:
26739         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
26740         * modules/unictype/syntax-c-whitespace:
26741         * modules/unictype/syntax-java-ident:
26742         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
26743         * modules/unigbrk/u16-grapheme-breaks:
26744         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
26745         * modules/unigbrk/u32-grapheme-breaks:
26746         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
26747         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
26748         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
26749         * modules/unigbrk/uc-is-grapheme-break:
26750         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
26751         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
26752         * modules/unilbrk/u16-width-linebreaks:
26753         * modules/unilbrk/u32-possible-linebreaks:
26754         * modules/unilbrk/u32-width-linebreaks:
26755         * modules/unilbrk/u8-possible-linebreaks:
26756         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
26757         * modules/unilbrk/ulc-possible-linebreaks:
26758         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
26759         * modules/uniname/uniname, modules/uninorm/base:
26760         * modules/uninorm/canonical-decomposition:
26761         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
26762         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
26763         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
26764         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
26765         * modules/uninorm/nfkc, modules/uninorm/nfkd:
26766         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
26767         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
26768         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
26769         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
26770         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
26771         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
26772         * modules/unistdio/base, modules/unistdio/u-printf-args:
26773         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
26774         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
26775         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
26776         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
26777         * modules/unistdio/u16-u16-sprintf:
26778         * modules/unistdio/u16-u16-vasnprintf:
26779         * modules/unistdio/u16-u16-vasprintf:
26780         * modules/unistdio/u16-u16-vsnprintf:
26781         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
26782         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
26783         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
26784         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
26785         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
26786         * modules/unistdio/u32-u32-asnprintf:
26787         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
26788         * modules/unistdio/u32-u32-sprintf:
26789         * modules/unistdio/u32-u32-vasnprintf:
26790         * modules/unistdio/u32-u32-vasprintf:
26791         * modules/unistdio/u32-u32-vsnprintf:
26792         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
26793         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
26794         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
26795         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
26796         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
26797         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
26798         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
26799         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
26800         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
26801         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
26802         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
26803         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
26804         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
26805         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
26806         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
26807         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
26808         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
26809         * modules/unistr/u16-check, modules/unistr/u16-chr:
26810         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
26811         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
26812         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
26813         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
26814         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
26815         * modules/unistr/u16-move, modules/unistr/u16-next:
26816         * modules/unistr/u16-prev, modules/unistr/u16-set:
26817         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
26818         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
26819         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
26820         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
26821         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
26822         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
26823         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
26824         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
26825         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
26826         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
26827         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
26828         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
26829         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
26830         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
26831         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
26832         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
26833         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
26834         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
26835         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
26836         * modules/unistr/u32-next, modules/unistr/u32-prev:
26837         * modules/unistr/u32-set, modules/unistr/u32-startswith:
26838         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
26839         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
26840         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
26841         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
26842         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
26843         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
26844         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
26845         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
26846         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
26847         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
26848         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
26849         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
26850         * modules/unistr/u8-check, modules/unistr/u8-chr:
26851         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
26852         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
26853         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
26854         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
26855         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
26856         * modules/unistr/u8-next, modules/unistr/u8-prev:
26857         * modules/unistr/u8-set, modules/unistr/u8-startswith:
26858         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
26859         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
26860         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
26861         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
26862         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
26863         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
26864         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
26865         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
26866         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
26867         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
26868         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
26869         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
26870         * modules/uniwbrk/base, modules/uniwbrk/table:
26871         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
26872         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
26873         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
26874         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
26875         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
26876         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
26877         * modules/uniwidth/width, modules/utf16-ucs4:
26878         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
26879         * modules/utf8-ucs4-unsafe:
26880         Change maintainer from Bruno Haible to Daiki Ueno.
26881         This is my guess at the libunistring modules; please feel free
26882         to fix if I guessed incorrectly.
26883         * modules/accept4, modules/acl, modules/acos, modules/acosf:
26884         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
26885         * modules/areadlink, modules/array-list, modules/array-mergesort:
26886         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
26887         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
26888         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
26889         * modules/binary-io, modules/bison-i18n, modules/btowc:
26890         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
26891         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
26892         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
26893         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
26894         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
26895         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
26896         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
26897         * modules/closedir, modules/concat-filename, modules/copy-file:
26898         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
26899         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
26900         * modules/csharpcomp-script, modules/csharpexec:
26901         * modules/csharpexec-script, modules/ctype, modules/diffseq:
26902         * modules/dprintf, modules/dprintf-posix, modules/dup:
26903         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
26904         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
26905         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
26906         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
26907         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
26908         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
26909         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
26910         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
26911         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
26912         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
26913         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
26914         * modules/findprog, modules/findprog-lgpl, modules/floor:
26915         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
26916         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
26917         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
26918         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
26919         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
26920         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
26921         * modules/freadable, modules/freadahead, modules/freadptr:
26922         * modules/freadseek, modules/freopen, modules/frexp:
26923         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
26924         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
26925         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
26926         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
26927         * modules/ftello, modules/full-read, modules/full-write:
26928         * modules/fwritable, modules/fwriteerror, modules/gcd:
26929         * modules/get-rusage-as, modules/get-rusage-data:
26930         * modules/getdtablesize, modules/getrusage, modules/gettext:
26931         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
26932         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
26933         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
26934         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
26935         * modules/iconv, modules/iconv-h, modules/iconv_open:
26936         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
26937         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
26938         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
26939         * modules/integer_length_ll, modules/ioctl, modules/isatty:
26940         * modules/isblank, modules/isnand, modules/isnand-nolibm:
26941         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
26942         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
26943         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
26944         * modules/javaexec, modules/javaexec-script, modules/javaversion:
26945         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
26946         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
26947         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
26948         * modules/lib-symbol-visibility, modules/libsigsegv:
26949         * modules/linked-list, modules/linkedhash-list, modules/list:
26950         * modules/localcharset, modules/locale, modules/localeconv:
26951         * modules/localename, modules/lock, modules/log, modules/log-ieee:
26952         * modules/log10, modules/log10-ieee, modules/log10f:
26953         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
26954         * modules/log1p, modules/log1p-ieee, modules/log1pf:
26955         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
26956         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
26957         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
26958         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
26959         * modules/logf, modules/logf-ieee, modules/login_tty:
26960         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
26961         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
26962         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
26963         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
26964         * modules/mbscspn, modules/mbsinit, modules/mbslen:
26965         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
26966         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
26967         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
26968         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
26969         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
26970         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
26971         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
26972         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
26973         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
26974         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
26975         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
26976         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
26977         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
26978         * modules/posix_spawn, modules/posix_spawn-internal:
26979         * modules/posix_spawn_file_actions_addclose:
26980         * modules/posix_spawn_file_actions_adddup2:
26981         * modules/posix_spawn_file_actions_addopen:
26982         * modules/posix_spawn_file_actions_destroy:
26983         * modules/posix_spawn_file_actions_init:
26984         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
26985         * modules/posix_spawnattr_getpgroup:
26986         * modules/posix_spawnattr_getschedparam:
26987         * modules/posix_spawnattr_getschedpolicy:
26988         * modules/posix_spawnattr_getsigdefault:
26989         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
26990         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
26991         * modules/posix_spawnattr_setschedparam:
26992         * modules/posix_spawnattr_setschedpolicy:
26993         * modules/posix_spawnattr_setsigdefault:
26994         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
26995         * modules/pow, modules/powf, modules/printf-frexp:
26996         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
26997         * modules/progname, modules/propername, modules/pselect:
26998         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
26999         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
27000         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
27001         * modules/read, modules/readdir, modules/readlink:
27002         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
27003         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
27004         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
27005         * modules/relocatable-script, modules/remainder:
27006         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
27007         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
27008         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
27009         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
27010         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
27011         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
27012         * modules/setlocale, modules/sh-quote, modules/shutdown:
27013         * modules/signal, modules/signbit, modules/sigpipe:
27014         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
27015         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
27016         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
27017         * modules/snippet/link-warning, modules/snippet/unused-parameter:
27018         * modules/snprintf, modules/snprintf-posix, modules/spawn:
27019         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
27020         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
27021         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
27022         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
27023         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
27024         * modules/streq, modules/strerror_r-posix, modules/striconv:
27025         * modules/striconveh, modules/striconveha, modules/strncat:
27026         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
27027         * modules/sublist, modules/sys_resource, modules/sys_utsname:
27028         * modules/sys_wait, modules/system-posix, modules/system-quote:
27029         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
27030         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
27031         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
27032         * modules/truncf, modules/truncf-ieee, modules/truncl:
27033         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
27034         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
27035         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
27036         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
27037         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
27038         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
27039         * modules/wait-process, modules/waitpid, modules/wcpcpy:
27040         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
27041         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
27042         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
27043         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
27044         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
27045         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
27046         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
27047         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
27048         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
27049         * modules/write, modules/xconcat-filename, modules/xlist:
27050         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
27051         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
27052         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
27053         * modules/y0, modules/y1, modules/yn:
27054         Remove Bruno Haible as maintainer; if he's the sole maintainer,
27055         change the maintainer to 'all'.  Let's hope someone volunteers.
27057 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
27059         mktime: merge #if/#ifdef usage from glibc
27060         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
27061         as that works with both Glibc's and Gnulib's style.
27062         See thread starting at Siddhesh Poyarekar's bug report at:
27063         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
27065 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
27067         git-version-gen: improve option descriptions
27068         * build-aux/git-version-gen: Mention that --prefix and --fallback
27069         have a mandatory argument.
27071 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27073         regex: fix memory leak in compiler
27074         Fix by Andreas Schwab in:
27075         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
27076         * lib/regcomp.c (parse_expression): Deallocate partially
27077         constructed tree before returning error.
27079         regex: merge patch from libc
27080         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
27081         Combine __USE_BSD and __USE_SVID into __USE_MISC.
27082         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
27084 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
27086         acl: port to gcc -Wredundant-decls
27087         From a request by Dmitry Antipov in:
27088         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
27089         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
27090         "#ifndef _GL_ACL_H".
27092 2014-06-11  Bruce Korb  <bkorb@gnu.org>
27093         Jim Meyering  <meyering@fb.com>
27095         parse-duration: eliminate 68-year duration limit
27096         * lib/parse-duration.c: Include "intprops.h".
27097         (TIME_MAX): Rename to MAX_DURATION and define to
27098         TYPE_MAXIMUM(time_t).
27099         * modules/parse-duration (Depends-on): Add intprops.
27100         Reported by Jonas 'Sortie' Termansen.
27102 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27104         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
27105         * modules/pthread (Depends-on): Add 'extensions', as it defines
27106         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
27107         (configure.ac-early): New section.
27108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
27109         it is no longer needed.
27111 2014-06-14  Pádraig Brady  <P@draigBrady.com>
27113         pthread: define thread-safe macros on some platforms
27114         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
27115         for thread-safe operation on some platforms.
27117 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27119         regex: don't be multithreaded if USE_UNLOCKED_IO.
27120         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
27121         * lib/regex_internal.h: Do not use multithreaded version if
27122         USE_UNLOCKED_IO is defined.  This is a hack, but it works
27123         around a porting bug with coreutils 8.22 on AIX 7.1.
27125 2014-06-11  Daiki Ueno  <ueno@gnu.org>
27127         gettext: update macros to version 0.19
27128         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
27129         depend on gl_EXTERN_INLINE and drop support for older Bison
27130         versions.
27132 2014-06-10  Pádraig Brady  <P@draigBrady.com>
27134         select,poll: fix console handle check on windows 8
27135         lib/poll.c (IsConsoleHandle): Change from testing the lower
27136         2 bits of the handle to the more expensive but accurate syscall.
27137         lib/select.c: Likewise.
27139 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
27141         select: fix waiting on anonymous pipes on MS-Windows
27142         * lib/select.c (rpl_select): Fall back to polling when select()
27143         indicates there is nothing to check, while due to the timeout not
27144         expiring, activity is indicated on one of the handles.
27145         Also clear the TIMEOUT argument if the timer does expire.
27147 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
27149         times: fix to return non constant value on MS-Windows
27150         * lib/times.c (times): Don't use the process creation time,
27151         rather clock() which on windows returns the number of
27152         clock ticks since the process started.
27154 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
27156         isatty: fix to work on windows 8
27157         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
27158         2 bits of the handle to the more expensive but accurate syscall.
27160 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
27162         maint: fix typo in fdl.texi
27163         * doc/fdl.texi: Fix typo (missing '@').
27164         Somehow this was in fdl.texi but not fdl-1.3.texi.
27166 2014-06-06  Ben Walton  <bdwalton@gmail.com>
27168         mountlist: avoid hasmntopt const type warning on solaris
27169         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
27170         with char * instead of const char *.  Passing the constant string
27171         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
27172         to avoid the warning.
27174 2014-06-04  Eric Blake  <eblake@redhat.com>
27176         maintainer-makefile: delete obsolete code
27177         * top/maint.mk (build_aux): Drop old code, as threatened.
27179         maintainer-makefile: avoid spurious error messages
27180         * top/maint.mk (syntax-check): Guard definition and use of
27181         $(shell) by whether Makefile is present.
27183 2014-06-03  Ben Walton  <bdwalton@gmail.com>
27185         rename: avoid unused-but-set-variable compiler warning
27186         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
27187         it is possible that dst_exists may be set but not used.  Mark it with
27188         the unused attribute to avoid compiler warnings.
27190 2014-06-02  Ben Walton  <bdwalton@gmail.com>
27192         rename: mark a label as potentially unused
27193         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
27194         by marking the out label as potentially unused.
27195         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
27197 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27199         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
27200         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
27202 2014-06-02  Ben Walton  <bdwalton@gmail.com>
27204         acl: apply pure attribute to two functions
27205         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
27206         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
27208 2014-06-01  Pádraig Brady  <P@draigBrady.com>
27210         gnulib-common.m4: add _GL_UNUSED_LABEL
27211         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
27212         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
27214 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27216         dup2, fcntl, fcntl-h: port to AIX 7.1
27217         This fixes some porting problems discovered when testing the latest
27218         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
27219         in grep but it could be important for other applications.
27220         * doc/posix-functions/dup2.texi:
27221         * doc/posix-functions/fcntl.texi:
27222         * doc/posix-headers/fcntl.texi:
27223         Document AIX bugs.
27224         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
27225         Define to 0 if outside 'int' range.
27226         * m4/dup2.m4 (gl_FUNC_DUP2):
27227         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27228         Check for getdtablesize.  If it's available, test a value just
27229         outside its range instead of testing 1000000.  When cross-compiling,
27230         guess that AIX will fail this improved test.
27232 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27234         printf, config.rpath: Port to FreeBSD 10.
27235         Problem reported by Tijl Coosemans in:
27236         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
27237         * build-aux/config.rpath (hardcode_libdir_flag_spec)
27238         (hardcode_direct): Simplify FreeBSD configuration.
27239         (library_names_spec): Don't mishandle FreeBSD 10+.
27240         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
27241         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
27242         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
27243         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
27244         Don't mishandle FreeBSD 10+ when cross-compiling.
27246         ftoastr: work around compiler bug in IBM xlc 12.1
27247         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
27248         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
27249         around a compiler bug in IBM xlc 12.1.0.0: it complains
27250         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
27251         _GL_FLT_PREC_BOUND.'
27253 2014-05-30  Kieran Colford  <colfordk@gmail.com>
27255         valgrind-tests: fixed misleading help message
27256         * m4/valgrind-tests.m4: The help message generated by configure
27257         implied that valgrind was disabled by default, which it wasn't.
27258         Adjusted the help message using s/enable/disable/ to clarify.
27260 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
27262         isfinite, isinf, isnan tests: fix for little-endian PowerPC
27263         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
27264         first double of a PowerPC "double double" pair.
27265         * tests/test-isinf.c (test_isinfl): Likewise.
27266         * tests/test-isnan.c (test_long_double): Likewise.
27267         * tests/test-isnanl.h (main): Likewise.
27268         * tests/test-signbit.c (test_signbitl): Likewise.
27270 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
27272         exclude-tests: port to AIX 7.1
27273         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
27274         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
27275         the regex code uses locks.
27277 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
27279         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
27280         Without this fix, Emacs would sometimes call sigprocmask instead
27281         of pthread_sigmask, which is a no-no in multithreaded applications.
27282         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
27283         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
27284         Suppress check for pthread_sigmask working without -lpthread if
27285         the application always links with -lpthread.  Do not link with
27286         $LIBMULTITHREAD if gl_THREADLIB is not defined.
27287         * m4/timer_time.m4 (gl_TIMER_TIME):
27288         Require gl_THREADLIB only if it is defined.  Do not append
27289         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
27291 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
27293         gnulib-tool: wget translations using --no-verbose rather than --quiet
27294         This allows the user to see error messages if any (--quiet hides them)
27295         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
27297 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
27299         gnulib-tool: adjust translation wget to avoid a https redirection
27300         Context: http://translationproject.org/latest/gnulib redirects to
27301            https://translationproject.org/latest/gnulib/
27302         Rationale: if the user falls back to wget, she doesn't have rsync and
27303         is probably in a minimal build environment, where packages such as
27304         'ca-certificates' are missing as well, resulting in a failed (and
27305         difficult to detect since ignored) translation initial fetch.
27306         Consequently let's avoid https if possible, and add the missing
27307         trailing slash.  This also avoids an unnecessary 302 redirection.
27308         * gnulib-tool: Add trailing slash to gnulib URL.
27310 2014-05-22  Pádraig Brady  <P@draigBrady.com>
27312         getlogin_r-tests: check return value rather than errno
27313         * tests/test-getlogin_r.c (main): As per POSIX we should be
27314         verifying the return value from getlogin_r() rather than errno.
27316 2014-05-22  Pádraig Brady  <P@draigBrady.com>
27318         getlogin_r-tests: fix various issues in recent change
27319         * tests/test-getlogin_r.c: Include required headers that were
27320         missed in recent commit eec20b4e.
27321         Also consistently check the errno rather than the return value from
27322         getlogin_r as POSIX only specifies that non zero is returned on error.
27323         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
27325 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
27327         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
27328         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
27329         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
27330         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
27331         * lib/spawn-pipe.c:
27332         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
27333         and then 'int open64(const char *, int, ...);', which means the
27334         declaration for 'open' gets lost if we later '#undef open'.
27335         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
27336         where the compilation reported the non-fatal error "In function
27337         'openat_proc_name' ... warning: implicit declaration of function
27338         'open'".  In this case the error is relatively harmless, but in
27339         other cases it might not be so minor.
27341 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27343         xalloc: don't potentially generate invalid code for xmemdup calls
27344         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
27345         this function can initialize the newly-allocated storage with new
27346         pointers, which means this function is not malloc-like.  See:
27347         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
27349 2014-05-19  Pádraig Brady  <P@draigBrady.com>
27351         getlogin_r-tests: avoid false failure under sudo/ssh etc.
27352         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
27353         changes from commit 97249cf29 to not depend on environment variables.
27355 2014-05-18  Pádraig Brady  <P@draigBrady.com>
27357         getlogin-tests: avoid false failure under cron
27358         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
27359         since that's not what's under test.  Centos 6 was seen to return
27360         EINVAL for ttyname() when run from cron.
27362 2014-05-16  Jim Meyering  <meyering@fb.com>
27364         mbrtowc.m4: fix a comment typo
27365         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
27366         emitted documentation string.
27368 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27370         mbrlen, mbrtowc: fix bug with empty input
27371         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
27372         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
27373         so this is mainly for documentation.
27374         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
27375         (gl_FUNC_MBRTOWC): Use it.
27376         * tests/test-mbrtowc.c (main): Test for the bug.
27378 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
27380         doc: document mbrtowc and mbrlen problem with empty input
27381         * doc/posix-functions/mbrlen.texi (mbrlen):
27382         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27383         Document portability problem when the input string is empty.  See:
27384         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
27386         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
27387         Problem reported by Eli Zaretskii in:
27388         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
27389         * doc/posix-functions/execl.texi (execl):
27390         * doc/posix-functions/execle.texi (execle):
27391         * doc/posix-functions/execlp.texi (execlp):
27392         * doc/posix-functions/execv.texi (execv):
27393         * doc/posix-functions/execve.texi (execve):
27394         * doc/posix-functions/execvp.texi (execvp):
27395         Mention spawn+exit problem on non-Cygwin Windows platforms.
27397 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
27399         getlogin-tests: avoid false failure under sudo/ssh etc.
27400         * modules/getlogin-tests (configure.ac): Check for ttyname().
27401         * tests/test-getlogin.c (main): Don't depend on environment variables
27402         to correlate with getlogin(), since sudo and ssh etc. can tamper
27403         with the LOGNAME and USER env vars.  Instead lookup the name from
27404         the uid associated with the stdin tty.
27406 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27408         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
27409         These were found when building the latest grep snapshot on IRIX 6.5.
27410         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
27411         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
27412         never used later.
27413         * lib/quotearg.c (quoting_options_from_style):
27414         * lib/xstrtol.c (__xstrtol):
27415         Use enum instead of 0, to pacify IRIX 6.5 cc.
27417 2014-04-18  Pádraig Brady  <P@draigBrady.com>
27419         gitlog-to-changelog: revert inclusion of git-log-fix file
27420         * build-aux/git-log-fix: Delete dummy file.
27421         * modules/gitlog-to-changelog: Don't reference (overwrite)
27422         the project specific git-log-fix file.
27424 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
27426         maint.mk: Relax the copyright check to cater for non FSF projects
27427         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
27428         to not require the "Free" suffix after the copyright years.
27430 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
27432         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
27433         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
27434         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
27435         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
27436         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
27438 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
27440         exclude: port to strict C99
27441         Strict C does not allow converting a function pointer to void *
27442         and vice versa.  Pass a pointer to a function pointer instead.
27443         * lib/exclude.c (add_exclude_file):
27444         Pass the address of the function pointer.
27445         (call_addfn): And deference the address here, to match.
27447 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
27449         regex: do not depend on malloc-gnu
27450         * modules/regex (Depends-on): Remove malloc-gnu.
27451         It's no longer needed, because of the 2012-12-29 patch
27452         "regex: port to hosts where malloc (0) == NULL".
27453         Reported by Nathan Kennedy in:
27454         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
27456 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
27458         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
27459         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
27460         * doc/posix-functions/expl.texi: Mention the workaround.
27462 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27464         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
27465         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
27466         size to be zero even when the pointer is nonnull.  This
27467         accommodates the use case where P is malloc (0) and *PN is 0 on a
27468         host where malloc (0) yields nonnull.
27470 2014-04-09  Eric Blake  <eblake@redhat.com>
27472         fts: avoid unnecessary strlen calls
27473         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
27475 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27477         fts: avoid unnecessary strlen calls
27478         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
27479         when that can be faster than strlen.
27481 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27483         fts: avoid unnecessary strlen calls
27484         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
27485         (fts_build): Store the length of the dp->d_name entry in a local variable
27486         instead of calling strlen() several times via the above, removed macro.
27487         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
27488         run by ~4%, yet this reduces the execution time by about a third if run
27489         via "ltrace -c rm -rf some-dir".
27491 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27493         obstack: Remove ancient NeXTSTEP gcc support conditional
27494         This change will ease merging with glibc.  The "#if ... __NEXT__"
27495         causes a warning with -Wundef which glibc now enables by default.
27496         Problem reported by Will Newton in
27497         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
27498         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
27499         so go with that.
27500         * lib/obstack.h (__extension__):
27502 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27504         obstack: merge with glibc changes
27505         * lib/obstack.c, lib/obstack.h: Merge from glibc.
27506         This is mostly indenting and commentary changes.
27507         Instances of 'register' have been removed.
27509 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27511         strftime: wrap macros in "do {...} while(0)"
27512         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
27513         this macro in "do {...} while(0)" to prevent false use as a
27514         single statement, e.g., in an un-braced "{}" else-block.
27515         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
27516         (strftime_case_): Remove 'else' after 'goto' - which was the
27517         only non-fatal, un-braced use of one of the above macros.
27518         Spotted by coverity (NESTING_INDENT_MISMATCH).
27520 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
27522         modechange: avoid memory leaks for invalid octal modes
27523         * lib/modechange.c (mode_compile): During the parsing of
27524         notations like +40, free the 'mc' buffer for invalid mode
27525         strings like +17777 (greater than the maximum octal mode),
27526         =18 (bad octal mode characters) or u=1 ('affected' with
27527         octal modes).
27528         Reproducer, e.g.:
27529             $ valgrind --leak-check=full chmod +17777 file
27530         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
27531         add notations +40, 00440, etc.".
27532         Spotted by coverity (RESOURCE_LEAK).
27534 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27536         gitlog-to-changelog: include a dummy git-log-fix file
27537         Problem reported by Nathan Stratton Treadway in:
27538         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
27539         * build-aux/git-log-fix: New file.
27541 2014-03-13  Jim Meyering  <meyering@fb.com>
27543         gitlog-to-changelog: also include the file, git-log-fix
27544         * modules/gitlog-to-changelog (Files): Add git-log-fix.
27545         Reported by Assaf Gordon.
27547 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
27549         regex: port to OS X 10.8.5 en_US.UTF-8 locale
27550         This fixes a bug when ignoring case and when comparing the
27551         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
27552         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
27553         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
27554         titlecase letter is neither lowercase nor uppercase, but
27555         uppercasing the titlecase letter (via towupper) yields the
27556         uppercase letter, so the two letters should match when ignoring case.
27557         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
27558         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
27559         Don't test whether a character is lowercase before uppercasing it.
27561 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
27563         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
27564         This is basically one of the options Bruno Haible proposed in:
27565         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
27566         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
27567         * lib/stdint.in.h: Use it.
27568         * modules/stdint (Depends-on): Add sys_types.
27570 2014-02-26  Pádraig Brady  <P@draigBrady.com>
27572         parse-datetime: fix crash or infloop in TZ="" parsing
27573         * lib/parse-datetime.y (parse_datetime): Break out of the
27574         TZ="" parsing loop once the second significant " is found.
27575         Also skip over any subsequent whitespace to be consistent
27576         with the non TZ= case.
27577         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
27579 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27581         savedir: new symbol for fast-read version
27582         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
27583         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
27584         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
27585         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
27587 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27589         unistd: port readlink to Mac OS X 10.3.9
27590         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
27591         around self-include problem in Mac OS X 10.3.9 when combined with
27592         readlink module.  Problem reported by Klaus Zietler in
27593         <http://bugs.gnu.org/16825>.
27595 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27597         diffseq: remove TOO_EXPENSIVE heuristic
27598         Problem with diffutils reported by Vincent Lefevre in
27599         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
27600         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
27601         Although appropriate for circa-1993 hardware, these days the heuristic
27602         seems to be more trouble than it's worth.
27603         * lib/diffseq.h: Modernize citations.
27604         (struct context): Remove member too_expensive.
27605         All uses changed.
27606         (struct partition): Remove members lo_minimal, hi_minimal.
27607         All uses changed.
27608         (diag, compareseq): Remove arg find_minimal.  All uses changed.
27609         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
27610         1993 to make 'diff' run faster (but not as well) on large inputs.
27611         These days, computers are fast enough that it's typically better
27612         to run slower but more accurately.
27613         * lib/fstrcmp.c: Remove duplicate comment.
27614         * lib/fstrcmp.c (strcmp_bounded):
27615         * lib/git-merge-changelog.c (compute_differences):
27616         Adjust to diffseq.h changes.
27617         * NEWS: Document the change.
27619         savedir: simplify by using stpcpy
27620         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
27621         (streamsavedir): Use stpcpy instead.
27622         * modules/savedir (Depends-on): Add stpcpy.
27624 2014-02-21  Pádraig Brady  <P@draigBrady.com>
27626         spawn: fix link error on uclibc
27627         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
27628         to incorporate -lrt if needed (on uclibc for example).
27629         * modules/posix_spawn: Reference the substituted LIB.
27631 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
27632         timer: fix uClibc detection of threading
27633         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
27634         enabled in uClibc.
27636 2014-02-21  Eric Blake  <eblake@redhat.com>
27638         maintainer-makefiles: provide AC_PROG_SED for older autoconf
27639         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
27641 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
27643         exclude: add support for posix regexps
27645         This commit adds support for POSIX extended regular expressions
27646         and fixes a long-standing memory leak (pattern buffer was never
27647         freed).  It also implements a new interface function to read
27648         exclude patterns from a FILE, which passes an additional parameter
27649         to its callback function, thereby allowing to preserve its state
27650         between invocations.
27652         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
27653         (pattern_buffer): New struct.
27654         (exclude): New member patbuf.
27655         (exclude_add_pattern_buffer): New function.
27656         (free_exclude_segment): Free regexps.
27657         (free_exclude): Free allocated pattern buffers.
27658         (exclude_patopts): New function.
27659         (file_pattern_matches): Use exclude_patopts.
27660         (add_exclude): support regexps.
27661         (add_exclude_fp): New function.
27662         (add_exclude_file): Rewrite using add_exclude_fp.
27663         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
27664         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
27665         (add_exclude_fp)
27666         (add_exclude_file): Rewrite using add_exclude_fp.
27667         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
27668         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
27669         (add_exclude_fp)
27670         (exclude_add_pattern_buffer): New prototypes.
27671         * modules/exclude: Depends on regex and filename.
27673 2014-02-20  Eric Blake  <eblake@redhat.com>
27675         maintainer-makefiles: use $(SED) for syntax check
27676         * modules/maintainer-makefile (configure.ac): Check for sane sed.
27677         * top/maint.mk: Change sed to $(SED).
27679 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
27680             Paul Eggert  <eggert@cs.ucla.edu>
27682         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
27683         Patch based on an idea by Dick Streefland in
27684         <https://savannah.gnu.org/patch/?7892>.
27685         * NEWS: Document this.
27686         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
27687         (direntry_t, comparison_function): New types.
27688         (direntry_cmp_name): New function.
27689         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
27690         (streamsavedir, savedir): New arg OPTION.
27691         (streamsavedir): Simplify memory allocation.
27692         (fdsavedir): Remove.
27693         * lib/savedir.h (enum savedir_option): New type.
27694         (streamsavedir, savedir): New arg OPTION.
27695         (fdsavedir): Remove.
27697 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27699         file-type: add support for doors and other less-common file types
27700         Problem with S_ISDOOR reported by Rich Burridge.
27701         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
27702         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
27703         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
27705 2014-01-23  Eric Blake  <eblake@redhat.com>
27707         pthread: work around winpthread header pollution on mingw
27708         * lib/time.in.h: Move pthread workarounds...
27709         * lib/pthread.in.h: ...here.
27710         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
27711         detect macro pollution on mingw.
27712         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
27714 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27716         qacl: check for fchmod
27717         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
27718         and qset-acl.c both use HAVE_FCHMOD.
27720 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27722         fdopen-tests: port to Tru64
27723         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
27724         descriptor that is not open, as POSIX doesn't specify the
27725         resulting behavior and the test does not work on Tru64.
27726         Problem reported by Steven M. Schweda in:
27727         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
27729         stdalign: port to HP-UX compilers
27730         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
27731         if __HP_cc or __HP_aCC are nonzero.
27733 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
27735         strtoimax: port to platforms lacking 'long long'
27736         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
27737         check whether strtoll is declared, which causes the C file to
27738         wrongly report an error.  Problem reported by Steven M. Schweda in:
27739         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
27740         * lib/strtoimax.c (strtoull):
27741         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
27742         (strtoll): Declare only if HAVE_LONG_LONG_INT.
27744 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
27746         relocatable-perl: fix texi syntax
27747         * doc/relocatable-maint.texi: Escape braces.
27749 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
27751         relocatable-perl: like relocatable-script, but for Perl scripts
27752         * build-aux/relocatable.pl.in: Add.
27753         * doc/relocatable-maint.texi: Add documentation.
27754         * modules/relocatable-perl: Add.
27756 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
27758         tests: fix export bug in previous patch
27759         Problem reported by Jim Meyering.
27760         * tests/init.sh (re_shell): New var, which is exported instead of
27761         re_shell_.
27763         tests: simplify porting to Solaris 10 /bin/sh
27764         Some test cases in 'grep' need a shell that groks '$(';
27765         export re_shell_ for their benefit.  Problem reported for 'grep'
27766         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
27767         * tests/init.sh (re_shell_): Export if it's used.
27769 2014-01-06  Eric Blake  <eblake@redhat.com>
27771         md5, sha1, sha256, sha512: support older autoconf
27772         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
27773         for autoconf < 2.63b.
27775         include_next: port to autoconf 2.63
27776         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
27778 2014-01-04  Jim Meyering  <meyering@fb.com>
27780         maint: add a gnulib-local rule to keep non-ascii out of .texi files
27781         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
27782         so that "make sc_maint" will ding anyone who puts non-ascii
27783         in any of gnulib's .texi files.
27785 2014-01-03  Jim Meyering  <meyering@fb.com>
27787         freadable, fwritable, fwriting: declare with the "pure" attribute
27788         * lib/freadable.h (freadable): Declare with the "pure" attribute.
27789         * lib/fwritable.h (fwritable): Likewise.
27790         * lib/fwriting.h (fwriting): Likewise.
27791         Suggested by Bruno Haible.
27793         maint.mk: adapt openat.h-include-without-use test
27794         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
27795         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
27796         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
27797         With this change, running "make sc_maint" in gnulib's top-level
27798         directory now passes for me.
27800 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
27802         doc: use ASCII in .texi files where UTF-8 isn't needed
27803         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
27804         * doc/posix-functions/setkey.texi, doc/regex.texi:
27805         Use ASCII input, not UTF-8.
27807 2014-01-02  Jim Meyering  <meyering@fb.com>
27809         freading: declare with the "pure" attribute
27810         * lib/freading.h (freading): Declare with the "pure" attribute.
27812         manywarnings: remove -Wmudflap
27813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
27814         it is no longer supported in gcc-4.9-to-be.
27816 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27818         relocatable-script: remove unused code
27819         Problem reported by Reuben Thomas in:
27820         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
27821         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
27823 2014-01-01  Jim Meyering  <meyering@fb.com>
27825         maint: fix public-submodule-commit to work with newer git
27826         * top/maint.mk (public-submodule-commit): Remove excess quoting.
27827         We were over-quoting the test arguments, and somewhere prior to
27828         version 1.8.5.2.229, git stopped removing those excess quotes,
27829         which made the test fail, since the unexpanded strings would
27830         always differ; using GIT_TRACE=1 confirmed that the git merge-base
27831         command wasn't even being run.
27833 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27835         doc: update main copyright year
27836         * doc/gnulib.texi: Update copyright date.
27838 2014-01-01  Eric Blake  <eblake@redhat.com>
27840         version-etc: new year
27841         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
27842         * all files: run 'make update-copyright'
27844 2013-12-24  Eric Blake  <eblake@redhat.com>
27846         passfd: give nicer error for recvfd at eof
27847         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
27848         * tests/test-passfd.c (main): Enhance test to cover this.
27850 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27852         gettimeofday: port recent C++ fix to Emacs
27853         Without this further patch, Emacs won't build due to
27854         the portcheck failing.  Also, this simplifies the patch a bit.
27855         * lib/time.in.h (localtime, gmtime): Don't replace unless
27856         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
27857         * lib/time.in.h (localtime, gmtime):
27858         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
27859         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
27860         * modules/time (time.h):
27861         Don't worry about the possibility of localtime and gmtime
27862         being absent; they're present in all C libraries we know about.
27863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
27864         Don't assume sys_time is present and has been initialized.
27865         Instead, use a hack that should work even if it hasn't been.
27866         Don't use a portcheck for gmtime or localtime; this supports
27867         the hack.
27868         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
27870 2013-12-17  John W. Eaton  <jwe@gnu.org>
27872         gettimeofday: fix C++ crosscompilation
27874         Never replace gmtime and localtime by macros when compiling with
27875         C++, this prevents <ctime> from being included.
27877         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
27878         define gmtime and localtime as preprocessor macros.  Instead
27879         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
27880         REPLACE_LOCALTIME substitutions.
27881         * lib/time.in.h: Declare gmtime and localtime when needed.
27882         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
27883         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
27884         * modules/time: Depend on gettimeofday, and substitute the above
27885         variables in time.h.
27887 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
27889         qacl: port to Windows better
27890         See Eli Zaretskii in
27891         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
27892         * lib/file-has-acl.c (acl_access_nontrivial):
27893         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
27894         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
27896 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
27898         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
27899         * lib/gl_openssl.h: Cast void pointers to a specific type.
27901 2013-12-07  Pádraig Brady  <P@draigBrady.com>
27903         open-tests: fix build failure with -Werror=old-style-declaration
27904         * tests/test-open.h: Reorder the inline to avoid the issue.
27906 2013-12-07  Pádraig Brady  <P@draigBrady.com>
27908         md5, sha1, sha256, sha512: fix link error with partial libcrypto
27909         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
27910         init time, so that if early checks find crypto routines,
27911         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
27912         avoiding link failures.
27914 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
27916         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
27917         This provides a new way to specify the default for
27918         gl_CRYPTO_CHECK, one that is reflected in the --help message.
27919         Emacs uses this, as well as the old way.
27920         This attempts to implement a suggestion by Pádraig Brady in
27921         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
27922         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
27923         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
27925         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
27926         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
27927         Add support for a new option, --with-openssl=auto, which causes
27928         the library to be used if available and silently ignored if not.
27929         Add support to allow configure.ac to specify its own
27930         default, by setting with_openssl_default before invoking gl_INIT.
27932 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
27934         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
27935         Problem reported by Daiki Ueno in:
27936         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
27937         * tests/test-open.h (__always_inline):
27938         New macro, if not already defined.
27939         (test_open): Use it.
27941 2013-12-04  Eric Blake  <eblake@redhat.com>
27943         include_next: minimize code duplication
27944         * modules/include_next (Depends-on): Add absolute-header.
27945         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
27946         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
27948 2013-12-04  Pádraig Brady  <P@draigBrady.com>
27950         getcwd: fix compile error in configure check
27951         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
27953 2013-12-04  Pádraig Brady  <P@draigBrady.com>
27955         regex: suppress core dumps from detection code
27956         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
27957         to suppress core dumps that may well occur on glibc systems.
27958         These core dumps might not be cleaned up automatically, or could
27959         trigger some system core dump handling logic.
27961 2013-12-03  Pádraig Brady  <P@draigBrady.com>
27963         md5, sha1, sha256, sha512: support mandating use of openssl
27964         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
27965         description, to list the now 3 separate options.  also don't
27966         mention the default=no, since this is implicit given the option
27967         is described as --with-openssl rather than --without-openssl.
27968         If projects change the default they're free to document that.
27969         with --with-openssl[=yes] we now error out when the specified
27970         hash algorithm is not available in libcrypto.
27972 2013-12-03  Ivailo  <xakepa10@gmail.com>
27974         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
27975         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
27976         -Wformat-nonliteral checks, as these edge cases are part of the test.
27978 2013-12-03  Eric Blake  <eblake@redhat.com>
27980         regex: avoid glibc deadlock during configure
27981         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
27982         glibc bug 15078 in turn triggers bug 16159.
27983         Reported by Michal Privoznik.
27985 2013-12-02  Pádraig Brady  <P@draigBrady.com>
27987         md5, sha1, sha256, sha512: use openssl routines if available.
27988         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
27989         routines will be used if available, requiring apps to link @LIB_CRYPTO@
27990         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
27991         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
27992         in the standard system location.
27993         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
27994         * m4/sha256.m4: Likewise with SHA256.
27995         * m4/sha512.m4: Likewise with SHA512.
27996         * m4/md5.m4: Likewise with MD5.
27997         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
27998         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
27999         * lib/sha256.h: Likewise with SHA256.
28000         * lib/sha512.h: Likewise with SHA512.
28001         * lib/md5.h: Likewise with MD5.
28002         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
28003         * lib/sha256.c: Likewise with SHA256.
28004         * lib/sha512.c: Likewise with SHA512.
28005         * lib/md5.c: Likewise with MD5.
28006         * modules/crypto/sha1 (Link:): Add the new optional lib.
28007         (Depends-on:): Add dependency on extern-inline.
28008         * modules/crypto/sha256: Likewise.
28009         * modules/crypto/sha512: Likewise.
28010         * modules/crypto/md5: Likewise.
28011         * modules/crypto/sha1-tests: Reference the lib here too.
28012         * modules/crypto/md5-tests: Likewise.
28013         * modules/crypto/gc-des-tests: Likewise.
28014         * modules/crypto/gc-hmac-md5-tests: Likewise.
28015         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28016         * modules/crypto/gc-hmac-sha256-tests: Likewise.
28017         * modules/crypto/gc-hmac-sha512-tests: Likewise.
28018         * modules/crypto/gc-md5-tests: Likewise.
28019         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28020         * modules/crypto/gc-sha1-tests: Likewise.
28021         * modules/crypto/gc-tests: Likewise.
28022         * modules/crypto/hmac-md5-tests: Likewise.
28023         * modules/crypto/hmac-sha1-tests: Likewise.
28024         * modules/crypto/hmac-sha256-tests: Likewise.
28025         * modules/crypto/hmac-sha512-tests: Likewise.
28027 2013-11-29  RV1971  <rv1971@web.de>
28029         base64: (trivial) fix compilation regression on some compilers
28030         * lib/base64.c: Don't return the void function,
28031         instead split to a separate return statement.
28033 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28035         ignore-value: revert previous code change
28036         * lib/ignore-value.h (ignore_value): Use __extension__ and
28037         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
28038         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
28039         Change the comment to try to explain this better.
28041 2013-11-27  Pádraig Brady  <P@draigBrady.com>
28043         selinux-h: improve stub types and add more stub functions
28045         * lib/se-selinux.in.h: Change security_context_t to a typedef
28046         rather than a define, as it's a pointer type and so is better
28047         as a typedef to avoid issues declaring multiple variables
28048         with the comma operator.  Also add stub for string_to_security_class().
28049         * lib/se-context.in.h: Add stub functions for
28050         context_{type,range,role,user}_get().
28052 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28054         ignore-value: prefer GCC version back through 2.0
28055         The code didn't match the comments, so I did a bit of software
28056         archaeology.  GCC 2.0 seems to support __extension__ and
28057         __typeof__, so fix both code and comments to use 2.0.
28058         * lib/ignore-value.h (ignore_value): Use __extension__ and
28059         __typeof__ for GCC 2.0 through 3.3, too.
28061 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
28063         pty: Activate the signature wrapper of forkpty.
28064         The intended preprocessor macro HAVE_FORKPTY is
28065         never defined, yet `lib/forkpty.c' depends on it.
28067         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
28068         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
28069         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
28071 2013-11-18  Jim Meyering  <meyering@fb.com>
28072         and Paul Eggert  <eggert@cs.ucla.edu>
28074         quotearg: don't attempt to store 1 << 31 into an "int"
28075         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
28076         gcc's new -fsanitize=undefined and running its tests triggered some
28077         new test failures due to undefined behavior, all with this diagnostic:
28078           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
28079             cannot be represented in type int
28080         Rather than shifting "1" left to form a mask, shift the bits right and
28081         simply use "1" as the mask.
28083 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
28085         error: depend on stdio
28086         Problem reported by Nikos Mavrogiannopoulos in
28087         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
28088         * modules/error (Depends-on): Add stdio.
28090 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
28092         * doc/relocatable-maint.texi (Supporting Relocation): Improve
28093         wording.
28094         Reported by Reuben Thomas <rrt@sc3d.org>.
28096 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28098         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
28099         New function and macro, to work around _DARWIN_C_SOURCE problem.
28100         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
28102 2013-11-11  Pádraig Brady  <P@draigBrady.com>
28104         base64: provide a fast path for encoding well sized buffers
28105         Avoid conditionals in the base64 encoding loop,
28106         which was seen to give 60% better throughput.
28107         * lib/base64.c (base64_encode_fast): A new function to be called
28108         when we don't want to NUL terminate, and we have enough space
28109         in the output to encode the given input.
28110         (base64_encode): Call the _fast() version when appropriate.
28111         Also remove a redundant mask with 0x3F on the first encoded byte.
28113 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
28115         extern-inline: port better to OS X 10.9
28116         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
28117         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
28118         OS X 10.9, except for g++ where the bug is still present.
28119         See <http://trac.macports.org/ticket/41033>.
28121 2013-11-08  Eric Blake  <eblake@redhat.com>
28123         fpending: fix regression on DragonFly BSD
28124         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
28125         * lib/fpending.h (__fpending): Don't declare twice.
28126         Reported by GW in
28127         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
28129 2013-11-05  Jim Meyering  <meyering@fb.com>
28131         hash: relax license to LGPLv2+, for libguestfs
28132         * modules/hash (License): Change from GPL to LGPLv2+.
28134 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28136         intprops: port to Oracle Studio c99
28137         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
28138         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
28140 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28142         obstack: pacify HP C
28143         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
28144         warning "conversion from pointer to smaller integer" from HP
28145         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
28146         C89 or later nowadays, so cast to void instead of int.  Privately
28147         reported by H.Merijn Brand.  Also, change header to match glibc's,
28148         to make checking against glibc easier.
28150 2013-10-29  Jim Meyering  <meyering@fb.com>
28152         maint.mk: prefer gpgv2 over gpgv
28153         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
28154         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
28155         Reported by Gary Vaughan.
28157 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28159         isnan: port to VAX
28160         Reported by John Klos for NetBSD-5/VAX in
28161         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
28162         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
28163         (FUNC): Use it.
28165 2013-10-28  Jim Meyering  <meyering@fb.com>
28167         gnulib-tool: protect against CDPATH
28168         * gnulib-tool: Many "cd" built-in functions print a directory name
28169         to stdout when CDPATH is set, e.g.,
28170           $ bash -c 'CDPATH=/; cd tmp'
28171           /tmp
28172         Unset it, when possible.  Prompted by a comment from Bruce Korb.
28174         maint.mk: restore functionality removed by recent change...
28175         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
28176         the context of a shallow-cloned gnulib repository: "git describe"
28177         would fail in such a directory.  However, that change made it so
28178         the reported gnulib revision no longer includes the version number
28179         or a commit count, even when run from a full clone.
28180         * top/maint.mk (gnulib-version): Use the full "git describe"
28181         output when possible, e.g., the form above, rather than the
28182         abbreviated, no-tag, no-commit-count string, and fall back to
28183         using a 10-byte hash, rather than the default minimal-length
28184         hash prefix, since while the minimal-length one may be fine today,
28185         it is likely not to be unique for very long.
28187 2013-10-26  Jim Meyering  <meyering@fb.com>
28189         maint.mk: fix "release" target to build _version
28190         This fixes a bug in README-release whereby following the outlined
28191         steps, one would publish a tarball whose programs would report
28192         --version output not consistent with the package version number.
28193         This bug caused grep-2.15 to produce a grep program whose
28194         --version option made it print 2.14.56-1e3d rather than 2.15.
28195         * top/maint.mk (release): Making this target build "_version"
28196         ensures that the new version number is reflected in configure.
28198 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
28200         install-reloc: Support multi-binary installation.
28201         * build-aux/install-reloc: Support installing multiple programs in
28202         one invocation, as done by Automake starting with commit
28203         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
28204         Haible <bruno@clisp.org>, archived at
28205         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
28206         Reported by Sylvain <beuc@gnu.org>.
28208 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28210         selinux-h: Really build without selinux when library is missing.
28211         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
28212         continue without selinux, as already told in the warning message.
28214 2013-10-21  Jim Meyering  <meyering@fb.com>
28216         regex: also remove dependency on HAVE_WCSCOLL
28217         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
28219 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
28221         xfreopen: Fix typo. s/frepoen/freopen/
28222         * lib/xfreopen.c: Fix description.
28223         * modules/xfreopen: Likewise.
28225 2013-10-21  Jim Meyering  <meyering@fb.com>
28227         regex: don't depend on wcscoll
28228         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
28229         It is no longer used.
28231 2013-10-20  Jim Meyering  <meyering@fb.com>
28233         error: add the printf attribute to a static function
28234         * lib/error.c (error_tail): Add the printf attribute, to placate
28235         gcc's -Werror=suggest-attribute=format option.
28237 2013-09-30  Jim Meyering  <meyering@fb.com>
28239         fpending, obstack, strerror-override: use pure+const function attrs
28240         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
28241         * lib/obstack.c (_obstack_allocated_p): Likewise.
28242         * lib/obstack.h (_obstack_memory_used): Likewise.
28243         (_obstack_memory_used): Likewise.
28244         * lib/strerror-override.h (strerror_override): Declare with
28245         the "const" attribute.
28247 2013-10-18  Eric Blake  <eblake@redhat.com>
28249         extern-inline: make safe for -Wundef usage
28250         Reported by Vladimir 'phcoder' Serbinenko in
28251         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
28252         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
28254 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28256         mkfifo-tests, etc.: allow HP-UX 11.11 bug
28257         Problem reported by Daniel Richard G. in
28258         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
28259         * doc/posix-functions/mkfifo.texi (mkfifo):
28260         * doc/posix-functions/mkfifoat.texi (mkfifoat):
28261         * doc/posix-functions/mknod.texi (mknod):
28262         * doc/posix-functions/mknodat.texi (mknodat):
28263         Document the HP-UX 11.11 bug.
28264         * tests/test-mkfifo.h (test_mkfifo):
28265         Allow the HP-UX 11.11 bug.
28267 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
28269         acl: allow cross-compilation to Gentoo
28270         Problem reported by Gabriel Marcano in
28271         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
28272         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
28273         test only whether it links.
28275 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28277         mgetgroups: remove dependency on realloc-gnu
28278         The dependency violates the comment in realloc-gnu, which
28279         says that tests can't depend on realloc-gnu; some tests depend
28280         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
28281         Problem reported by Daniel Richard G. in
28282         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
28283         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
28284         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
28285         not realloc-gnu.
28287 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28289         regex-tests: port to HP-UX 11.11
28290         Problem reported by Daniel Richard G. in
28291         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
28292         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
28294 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28296         verify: document some 'assume' pitfalls
28297         * doc/verify.texi (Compile-time Assertions):
28298         Mention that 'assume (E)' can sometimes slow things down.
28299         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
28301 2013-10-10  Eric Blake  <eblake@redhat.com>
28303         strtoumax: fix typo in previous commit.
28304         * modules/strtoumax (Depends-on): Fix typo.
28305         * modules/strtoimax (Depends-on): Likewise.
28307 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28309         strtoumax: port to Solaris 8
28310         This problem was introduced in the recent HP-UX patch.
28311         Reported by Tom G. Christensen in
28312         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
28313         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
28314         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
28316 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28318         strtoimax, strtoumax: port to HP-UX 11.11
28319         Problem reported by Daniel Richard G. in
28320         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
28321         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
28322         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
28323         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
28324         REPLACE_STRTOUMAX.
28325         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
28326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
28327         Replace the function if defined as a macro but not as a function.
28328         * modules/inttypes-incomplete (inttypes.h): Substitute
28329         REPLACE_STRTOUMAX.
28330         * modules/strtoumax (configure.ac): Replace strtoumax if
28331         REPLACE_STRTOUMAX.
28333 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28335         strtoimax: port to HP-UX 11.11
28336         Problem reported by Daniel Richard G.
28337         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
28338         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
28339         they might clash with inttypes.h.
28341 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28343         New module 'count-trailing-zeros'.
28344         * MODULES.html.sh: Mention it.
28345         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
28346         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
28347         * modules/count-trailing-zeros-tests:
28348         * tests/test-count-trailing-zeros.c:
28349         New files.
28351         count-leading-zeros: port to MSC; support types wider than 64 bits
28352         The ideas behind the MSC port are stolen from Emacs.
28353         * lib/count-leading-zeros.h:
28354         Don't include verify.h: it's no longer needed, as types wider than
28355         64 bits are now supported.
28356         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
28357         performance with MSC.  All uses changed.  Do not assume that TYPE
28358         has at most 64 bits.
28359         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
28360         All uses changed.  Fold the subtraction from 31 into the table.
28362         count-one-bits: port to MSC; support types wider than 64 bits
28363         The ideas behind the MSC port are stolen from Emacs.
28364         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
28365         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
28366         Don't include verify.h: it's no longer needed, as types wider than
28367         64 bits are now supported.
28368         (COUNT_ONE_BITS_GENERIC): New macro.
28369         (popcount_supported) [_MSC_VER]: New inline function.
28370         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
28371         performance with MSC.  All uses changed.  Do not assume that TYPE
28372         has at most 64 bits.
28373         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
28375 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
28377         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
28378         * lib/mountlist.c (read_file_system_list): fix leak of directory
28379         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
28381 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28383         tests: improve diagnostic when an assertion fails
28384         * tests/macros.h (ASSERT): Report the assertion that failed.
28386 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28388         verify: new macro 'assume'
28389         This is taken from Emacs, and should be generally useful.
28390         * doc/verify.texi (assume): Document it.
28391         * lib/verify.h (assume): New macro.
28392         (__has_builtin): Expand to 0 if not defined.
28394 2013-09-26  Eric Blake  <eblake@redhat.com>
28396         dup2, dup3: work around another cygwin crasher
28397         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
28398         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
28399         * tests/test-dup2.c (main): Likewise.
28400         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
28401         * lib/dup3.c (dup3): Likewise.
28402         * doc/posix-functions/dup2.texi (dup2): Document it.
28403         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28405         getdtablesize: work around cygwin issue
28406         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
28407         * modules/getdtablesize (configure.ac): Build replacement.
28408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
28409         * modules/unistd (Makefile.am): Expose the witness.
28410         * lib/unistd.in.h (getdtablesize): Declare replacement.
28411         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
28412         * tests/test-getdtablesize.c (main): Test it.
28413         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
28415 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28417         pmccabe2html: escaping of special characters
28418         Escape all '<', '>', and '&' in HTML output.
28419         * build-aux/pmccabe2html (html_fnc): Call gsub()
28420         instead of sub() to capture all '<', '>', and '&'.
28421         Neither of '<' and '>' is special in a regexp,
28422         so first arguments to gsub() are corrected. Also,
28423         in replacement strings, ampersand must be escaped.
28424         Finally, '&' must be handled first, then '<' and '>'.
28426 2013-09-24  Eric Blake  <eblake@redhat.com>
28428         manywarnings: enable nicer gcc warning messages
28429         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
28430         some -f options for optimal warnings.
28432 2013-09-21  Jim Meyering  <meyering@fb.com>
28434         timespec: use the new TIMESPEC_RESOLUTION in a few more places
28435         * lib/timespec-add.c (timespec_add): Also replace 999999999
28436         with TIMESPEC_RESOLUTION - 1.
28437         * lib/timespec-sub.c (timespec_sub): Likewise.
28439 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28441         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
28442         Problem reported by Dagobert Michelsen via Eric Blake in
28443         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
28444         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
28445         not AC_COMPILE_IFELSE.
28447 2013-09-23  Eric Blake  <eblake@redhat.com>
28449         configmake: support new --runstatedir option
28450         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
28451         even if autoconf was too old to provide the command line option.
28452         * modules/configmake (Makefile.am): Propagate it to .h file.
28454 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28456         ctype, string: depend on extern-inline
28457         This is needed to complete the recent OS X fixes.
28458         Also, fix related documentation as suggested by Eric Blake.
28459         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
28460         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
28461         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
28462         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
28463         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
28464         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
28465         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
28466         * doc/posix-functions/toupper.texi:
28467         List the 'ctype' gnulib module.
28468         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
28469         * doc/posix-functions/strncpy.texi:
28470         List the 'string' gnulib module.
28471         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
28472         Add string.
28473         * modules/ctype, modules/string (Depends-on): Add extern-inline.
28475 2013-09-19  Pádraig Brady  <P@draigBrady.com>
28477         userspec: support optional parameters to parse_user_spec()
28478         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
28479         then avoid group processing and treat the full spec as a user.
28480         (parse_with_separator): Allow the USERNAME and GROUPNAME to
28481         be optional params (NULL), in which case they're ignored.
28483 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28485         timespec: new function make_timespec, and new constants
28486         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
28487         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
28488         (make_timespec): New function.
28489         * lib/dtotimespec.c (dtotimespec):
28490         * lib/timespec-add.c (timespec_add):
28491         * lib/timespec-sub.c (timespec_sub):
28492         * lib/utimens.c (validate_timespec):
28493         * lib/utimensat.c (rpl_utimensat):
28494         Use these new constants and functions.
28496         stdio: OS X port of putc_unlocked + extern inline
28497         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
28498         * doc/posix-functions/putc_unlocked.texi:
28499         * doc/posix-functions/putchar_unlocked.texi:
28500         Document this portability problem.
28502         signal: OS X port of sigaddset etc. + extern inline
28503         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
28504         (sigismember): #undef on problematic Apple platforms.
28505         * doc/posix-functions/sigaddset.texi:
28506         * doc/posix-functions/sigdelset.texi:
28507         * doc/posix-functions/sigemptyset.texi:
28508         * doc/posix-functions/sigfillset.texi:
28509         * doc/posix-functions/sigismember.texi:
28510         Document this portability problem.
28512         extern-inline: do not always suppress extern inline on OS X
28513         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
28514         extern inline on Apple only if the particular compile-time
28515         configuration is known to have the problem.
28516         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
28517         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
28518         other Gnulib modules.
28520         extern-inline: document fixes for ctype and wctype macros
28521         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
28522         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
28523         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
28524         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
28525         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
28526         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
28527         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
28528         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
28529         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
28530         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
28531         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
28532         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
28533         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
28534         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
28535         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
28536         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
28537         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
28538         * doc/posix-functions/strncpy.texi:
28539         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
28540         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
28541         Document that Gnulib fixes portability problems with these
28542         functions on OS X 10.8 and earlier when called from plain inline
28543         or extern inline functions.
28545 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
28547         fflush, freadahead, fseeko: Fix for Android
28548         Suggested by Bruno Haible in:
28549         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
28550         * lib/stdio-impl.h: Use local __sfileext definition.
28552 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
28554         pmccabe2html: Portability to other awk versions.
28555         The functions systime() and strftime() are available
28556         in Gawk only.  Properly close two HTML-tags 'style'
28557         and 'span'.
28558         * build-aux/pmccabe2html (BEGIN): Store timing
28559         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
28560         systime() in HTML_COMMENT.
28561         (html_header): Correctly close tag 'style'.
28562         (END): Replace strftime() by CHRONOS_TIME.  Close
28563         tag 'span' correctly, not as 'div'.
28565 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28567         getgroups: statement without effect
28568         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
28569         Change equality conditional to expected assignment.
28571 2013-09-09  Eric Blake  <eblake@redhat.com>
28573         glob: fix compilation
28574         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
28576 2013-09-07  Eric Blake  <eblake@redhat.com>
28578         glob: fix build for platforms without __THROW
28579         * lib/glob.in.h (__THROW): Add definition again.
28581 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
28583         regex-quote: fix buffer access out of bounds
28584         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
28585         * lib/regex-quote.c (regex_quote_spec_pcre):
28586         Fix typo that resulted in an out-of-bounds read.
28588 2013-09-04  Eric Blake  <eblake@redhat.com>
28590         glob: avoid -Wattribute warnings on glibc
28591         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
28592         __THROWNL, not __THROW, on static functions.
28593         * lib/glob.in.h (__THROW): Adjust...
28594         (__THROWNL): ...accordingly.
28596 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
28598         headers: check that _GL_INLINE_HEADER_BEGIN is defined
28599         Suggested by Bruce Korb in:
28600         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
28601         * doc/extern-inline.texi (extern inline):
28602         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
28603         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
28604         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
28605         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
28606         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
28607         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
28608         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
28609         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
28610         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
28611         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
28612         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
28613         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
28614         * lib/xtime.h:
28615         Check that _GL_INLINE_HEADER_BEGIN is defined.
28617 2013-08-29  Pádraig Brady  <P@draigBrady.com>
28619         bootstrap: remove the --version requirement from ancillary tools
28620         * build-aux/bootstrap (check_exists): A new refactored function to
28621         determine if a command exists.
28622         (find_tool): Use the new function which does not require the
28623         --version option to be supported.
28624         (check_versions): Use the new function.
28626 2013-08-26  Simon Josefsson  <simon@josefsson.org>
28628         gc: support HMAC-SHA256 and HMAC-SHA512.
28629         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
28630         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
28631         functions.
28632         (gc_hmac_md5): Use symbolic constant.
28633         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
28634         (gc_hmac_sha256, gc_hmac_sha512): New functions.
28635         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
28636         * m4/sha256.m4: Protect against empty expansion.
28637         * m4/sha512.m4: Likewise.
28638         * lib/hmac-sha256.c: New file.
28639         * lib/hmac-sha512.c: Likewise.
28640         * m4/gc-hmac-sha256.m4: Likewise.
28641         * m4/gc-hmac-sha512.m4: Likewise.
28642         * m4/gc-sha256.m4: Likewise.
28643         * m4/gc-sha512.m4: Likewise.
28644         * modules/crypto/gc-hmac-sha256: Likewise.
28645         * modules/crypto/gc-hmac-sha256-tests: Likewise.
28646         * modules/crypto/gc-hmac-sha512: Likewise.
28647         * modules/crypto/gc-hmac-sha512-tests: Likewise.
28648         * modules/crypto/hmac-sha256: Likewise.
28649         * modules/crypto/hmac-sha256-tests: Likewise.
28650         * modules/crypto/hmac-sha512: Likewise.
28651         * modules/crypto/hmac-sha512-tests: Likewise.
28652         * tests/test-gc-hmac-sha256.c: Likewise.
28653         * tests/test-gc-hmac-sha512.c: Likewise
28654         * tests/test-hmac-sha256.c: Likewise.
28655         * tests/test-hmac-sha512.c: Likewise
28657 2013-08-24  Daiki Ueno  <ueno@gnu.org>
28659         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
28660         of AC_CHECK_DECLS.
28662 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28664         selinux-at: omit unnecessary include
28665         * lib/selinux-at.c: Don't include dosname.h; not needed, since
28666         this source file doesn't use its macros, and subsidiary files that
28667         use the macros already include it.
28669 2013-08-21  Eric Blake  <eblake@redhat.com>
28671         d-ino: avoid false negative on symlink
28672         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
28673         Reported by Stephane Chazelas.
28675 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
28677         bootstrap: port to OpenBSD sed
28678         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
28679         does not interpret `-' as a file argument to mean stdin.
28681 2013-08-15  Eric Blake  <eblake@redhat.com>
28683         warnings: minor optimization
28684         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
28686         warnings: check -Wfoo rather than -Wno-foo
28687         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
28688         -Wno-, test if the compiler recognizes the positive form instead.
28690 2013-08-15  Karl Berry  <karl@gnu.org>
28692         * config/srclist-update: add option "doclicense" to placate
28693         pulling *.texi files from Emacs.  Write terse usage
28694         documentation at the top.
28696 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
28698         xvasprintf-tests: port to GCC with hardening flags
28699         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
28700         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
28701         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
28703 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28705         fpending: port to recent Cygwin change to stdio_ext.h
28706         Reported by LRN in
28707         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
28708         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
28709         just declare __fpending unless it's a macro.
28710         A duplicate decl shouldn't hurt.
28711         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
28712         call compiles and links, instead of separately checking for
28713         decl and lib function.
28714         * modules/fpending (configure-ac):
28715         Adjust to fpending.m4's renaming of shell variable.
28717 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28719         sys_time: port to OpenBSD
28720         * lib/sys_time.in.h: Simply delegate to the system's header
28721         in the BSDish cases as well.  Problem reported by Mike Miller in
28722         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
28723         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
28724         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
28725         wider than time_t.
28727 2013-08-09  Pádraig Brady  <P@draigBrady.com>
28729         bootstrap: support checksum utils having -c but not --status
28730         * build-aux/bootstrap: Only look for sha1sum if updating po files.
28731         Add sha1 to the list of supported checksum utils since it's now
28732         supported through adjustments below.
28733         (update_po_files): Remove the use of --status
28734         in a way that will suppress all error messages, but since this is
28735         only used to minimize updates, it shouldn't cause an issue.
28736         Exit early if there is a problem updating the po file checksums.
28737         (find_tool): Remove the check for --version support as this
28738         is optional as per commit 86186b17.  Don't even check for the
28739         presence of the command as if that is needed, it's supported
28740         through configuring prerequisites in bootstrap.conf.
28741         Prompt that when a tool isn't found, one can define an environment
28742         variable to add to the hardcoded search list.
28744 2013-08-05  Jim Meyering  <meyering@fb.com>
28746         regex: port to non-glibc/lock-using systems
28747         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
28748         system with GNULIB_LOCK would fail due to absence of the
28749         included "glthread/lock.h".  This would affect any package
28750         for which the "lock" module is used only by the regex module,
28751         and not explicitly used.
28752         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
28753         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
28754         Add a dependency on the "lock" module.
28756 2013-07-20  Daiki Ueno  <ueno@gnu.org>
28758         localecharset: make locale_charset thread-safe on Mac OS X
28759         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
28760         instead of MB_CUR_MAX.
28762 2013-07-20  Daiki Ueno  <ueno@gnu.org>
28764         gettext: update to version 0.18.3
28765         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
28766         require AC_PROG_SED to allow user to specify custom sed command when
28767         generating en@quot PO file.
28769 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
28771         bootstrap: use correct source when copying build-aux files
28772         * build-aux/bootstrap (gnulib_extra_files): This variable is
28773         relative to upstream gnulib layout, not downstream.
28775 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
28777         tmpdir: fix bug in VMS port
28778         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
28779         See Steven M. Schweda in
28780         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
28782 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28784         tmpdir: port to VMS, to // != /, and to long dirs
28785         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
28786         __secure_getenv, so that we're more like the glibc version.
28787         All uses changed.
28788         (path_search): Don't put slash after directory if __VMS.
28789         Problem reported by Steven M. Schweda in
28790         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
28791         Simplify code to add slash; no need for a loop.
28792         Do not remove trailing slash from "//".
28793         Do not assume dlen <= INT_MAX.
28795 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28797         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
28798         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
28799         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
28800         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
28802         accept4, dup3, pipe2: port to Cygwin
28803         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
28804         * lib/accept4.c (accept4) [O_BINARY]:
28805         * lib/dup3.c (dup3) [O_BINARY]:
28806         * lib/pipe2.c (pipe2) [O_BINARY]:
28807         Use set_binary_mode, not setmode.
28808         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
28809         * modules/binary-io (Depends-on): Remove module indicator.
28810         These last two bits undo the previous change to pipe2 and binary-io.
28812 2013-07-09  Pádraig Brady  <P@draigBrady.com>
28814         mountlist: add support for deallocating returned list entries
28815         * lib/mountlist.c (free_mount_entry): A new exported function
28816         to deallocate a mount list entry.
28817         (read_file_system_list): Refactor to use the new deallocation function.
28818         Suggested by Anton Ovchinnikov.
28820 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
28822         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
28823         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
28824         * lib/stdalign.in.h (_Alignas, _Alignof):
28825         Port to FreeBSD 9.1, and to C11 and C++11.
28826         (_Alignas): Also support ICC.
28827         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
28828         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
28830 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28832         fnmatch: don't goto over declaration
28833         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
28834         undefined behavior for goto over a declaration.
28835         Problem reported by Charlie Brown in
28836         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
28838         pipe2: decouple from binary-io a bit
28839         This is for Emacs, which needs pipe2 but not binary-io.
28840         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
28841         * modules/binary-io (Depends-on): Add module indicator.
28843 2013-07-03  Eric Blake  <eblake@redhat.com>
28845         mgetgroups: relax license to LGPLv2+
28846         * modules/getugroups (License): Change from GPLv3+.
28847         * modules/mgetgroups (License): Likewise.
28848         * modules/getgroups (License): Change from LGPLv3+.
28850         xalloc-oversized: relax license to LGPLv2+
28851         * modules/xalloc-oversized (License): Change from GPLv3+.
28853         nproc: relax license to LGPLv2+
28854         * modules/nproc (License): Change from LGPLv3+.
28856         bootstrap: honor --no-git
28857         * build-aux/bootstrap: Don't even try to use git when user is
28858         pointing to a static checkout.
28860 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28862         ignore-value: port to gcc -pedantic
28863         * lib/ignore-value.h (ignore_value):
28864         Port to gcc -pedantic, by using __extension__.
28865         Reindent as per usual gnulib style nowadays.
28866         Simplify GCC version check.
28868 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
28870         extern-inline: port to gcc -std=c89
28871         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
28872         Do not use __gnu_inline__ if pedantic and pre-C99.
28874 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
28876         doc: document extern-inline
28877         * doc/extern-inline.texi: New file.
28878         * doc/gnulib.texi (alloca-opt): Include it.
28879         * m4/extern-inline.m4: Move some comments to documentation,
28880         and others closer to what they describe.
28882         doc: chatter less
28883         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
28884         (updated-stamp): Use it.  This causes 'make' to output just
28885         one file name rather than zillions.
28887         fflush, fseeko: port to musl cross-compiles
28888         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
28889         on some implementation that (1) is not known to be buggy,
28890         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
28891         cross-compiled to so we can't easily check for lack of
28892         conformance.  This is for cross-compiling to musl.
28893         Reported by Rich Felker in
28894         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
28895         * m4/fclose.m4 (gl_FUNC_FCLOSE):
28896         * m4/fflush.m4 (gl_FUNC_FFLUSH):
28897         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
28898         Adjust to above change.
28899         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
28900         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
28901         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
28902         known not to work, or unknown.
28904 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
28906         msvc-inval: port to mingw-w64
28907         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
28908         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
28909         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
28911 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
28913         getcwd-lgpl: port to Tru64
28914         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
28915         Problem reported by Steven M. Schweda in
28916         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
28918         tests: port large-fd POSIX spawn tests to OS X
28919         Problem reported by Daiki Ueno in
28920         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
28921         * tests/test-posix_spawn_file_actions_addclose.c:
28922         * tests/test-posix_spawn_file_actions_adddup2.c:
28923         * tests/test-posix_spawn_file_actions_addopen.c:
28924         Include <limits.h>, for OPEN_MAX, if available.
28925         (big_fd): New static function.
28926         (main): Use it.
28928 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
28930         tests/nap.h: use an adaptive delay to avoid ctime update issues
28931         The recent change in nap.h (5191133e) decreased the probability of lost
28932         races to about a third, however such problems could still be observed
28933         in virtual machines and openSUSE's OBS.
28934         Before, nap() detected the needed time once empirically and then used
28935         that delay (together with a small correction multiplier) in further
28936         calls.  This problem has been reported and discussed several times,
28937         including guesses about possible kernel issues:
28938         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
28939         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
28940         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
28941         http://bugs.gnu.org/12820
28942         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
28943         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
28944         Now, nap() avoids the race alltogether by verifying on a reference
28945         file whether a timestamp difference has happened.
28946         * tests/nap.h (nap_fd): Define file descriptor variable for the
28947         witness file.
28948         (nap_works): Change return value to bool.  Change passing
28949         the old file's status by value instead of by reference as this function
28950         does no longer update that timestamp; rename the function argument from
28951         st to old_st.  Remove the local variables cdiff and mdiff because that
28952         function now returns true/false instead of the precise delay.
28953         (guess_delay): Remove function.
28954         (clear_tmp_file): Add new function to close and unlink the witness file.
28955         (nap): Instead of re-using the delay which has been calculated during
28956         the first call, avoid the race by actually verifying that a timestamp
28957         difference can be observed on the current file system.  Use an adaptive
28958         approach for the delay to minimize execution time.  Assert that the
28959         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
28960         = 2^31 - 1 = 2.1s.
28961         Use atexit to call clear_tmp_file when the process terminates.
28963 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
28965         sig2str: port to C++
28966         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
28967         Reported by Daniel J Sebald in
28968         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
28970 2013-05-30  Eric Blake  <eblake@redhat.com>
28972         docs: mention cygwin shortcoming in <sys/un.h>
28973         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
28975         vasnprintf: silence mingw compiler warning
28976         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
28978 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
28980         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
28981         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
28982         This fixes a porting bug I recently reintroduced in regex, and
28983         some other instances that I discovered while testing the fix.
28984         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
28985         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
28986         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
28987         with an empty argument if this is a pedantic pre-C99 GCC.
28988         * lib/verify.h: Do not use _Static_assert if this is a pedantic
28989         pre-C11 GCC.
28991         regex: adapt to locking regime instead of depending on pthread
28992         Instead of depending on pthread, adapt to whatever thread
28993         modules are in use.  Problem reported by Ludovic Courtès in
28994         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
28995         and by Mats Erik Andersson in
28996         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
28997         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
28998         Support either the 'lock' module, or the 'pthread' module, or
28999         no module.
29000         (lock_lock, lock_unlock): New macros.
29001         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
29002         * modules/lock, modules/pthread (configure.ac): Add module indicator.
29003         * modules/regex (Depends-on): Remove pthread.
29005 2013-05-22  Eric Blake  <eblake@redhat.com>
29007         getgroups: document portability issues
29008         * doc/glibc-functions/initgroups.texi (initgroups): Mention
29009         multithread safety.
29010         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
29011         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
29012         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
29013         getugroups.
29014         * doc/posix-functions/getgroups.texi (getgroups): Mention
29015         multithread safety and mgetgroups.
29017 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
29019         test-lchown, test-chown: also skip test if chown fails with EPERM
29020         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
29021         skip this test, to handle FAT file systems.
29022         * tests/test-chown.h (test_chown): Likewise.
29024 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29026         regex: fix dfa race in multithreaded uses
29027         Problem reported by Ludovic Courtès in
29028         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
29029         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
29030         New macros.  All uses of __libc_lock_define, __libc_lock_init
29031         changed to use the first two of these.
29032         (__libc_lock_lock, __libc_lock_unlock): New macros, for
29033         non-glibc platforms.
29034         (struct re_dfa_t): Define the lock unconditionally.
29035         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
29036         '#ifdef _LIBC"s.
29037         * modules/regex (Depends-on): Add pthread, if we use the
29038         included regex.
29040         * lib/regcomp.c: Do actions that are not needed for glibc,
29041         but may be needed elsewhere.
29042         (regfree, re_compile_internal): Destroy the lock.
29043         (re_compile_internal): Check for lock-initialization failure.
29045         malloca: port to compilers that reject size-zero arrays
29046         This fixes a bug introduced in my previous patch.
29047         * lib/malloca.c (struct preliminary_header): Use an int
29048         rather than a character array of size int; that's simpler.
29049         (struct header): Remove, replacing with ...
29050         (union header): New type.  This avoids the need for declaring a
29051         character array of size zero, which is not allowed on some platforms.
29052         All uses changed.
29054 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29056         parse-datetime, tests: don't use "string" + int
29057         Recent versions of 'clang' complain about C source code that
29058         uses expressions of the form '"string literal" + integer',
29059         I guess on the theory that it's confusing for readers who are
29060         used to C++.  On those grounds I suppose it's OK to make this
29061         minor style change.
29062         * lib/parse-datetime.y (parse_datetime):
29063         * tests/test-fchdir.c (main):
29064         * tests/test-snprintf-posix.h (test_function):
29065         * tests/test-snprintf.c (main):
29066         * tests/test-vasnprintf-posix.c (test_function):
29067         * tests/test-vasnprintf.c (test_function):
29068         * tests/test-vsnprintf.c (main):
29069         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
29070         Rewrite '"str" + E' to '&"str"[E]'.
29072 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
29074         argmatch: port to C++
29075         * lib/argmatch.h [__cplusplus]: Add extern "C".
29077         argp: typo fix
29078         * lib/argp-help.c: Typo in comment.
29080 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29082         manywarnings: update for GCC 4.8.0
29083         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
29084         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
29085         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
29086         -Wmissing-noreturn, as they are duplicates of other warnings.
29087         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
29088         was documented to be flaky in earlier versions of GCC.
29090         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
29091         * tests/test-spawn.c (main):
29092         * tests/test-sys_socket.c (main):
29093         * tests/test-sys_wait.c (main):
29094         Don't have a switch value that isn't covered by a case.
29096         getaddrinfo-tests: port --enable-gcc-warnings to clang
29097         * tests/test-getaddrinfo.c (simple):
29098         Avoid casts from looser to stricter-aligned pointers.
29100         thread: port --enable-gcc-warnings to clang
29101         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
29102         Include <signal.h>, to pacify a warning about pthread_sigmask.
29104         stdio: use __REDIRECT for fwrite, fwrite_unlocked
29105         * lib/stdio.in.h (fwrite):
29106         When working around bug 11959, use __REDIRECT rather than '#define
29107         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
29108         fix the -Wunused-value issue with clang, and it works with GCC too.
29109         Problem with targeting reported by Eric Blake in
29110         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
29111         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
29112         debugging the fwrite issue.
29114         stdio: port --enable-gcc-warnings to clang
29115         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
29116         since the GCC workaround for fwrite does not pacify clang.
29118         sig2str: port --enable-gcc-warnings to clang
29119         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
29121         obstack: port --enable-gcc-warnings to clang
29122         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
29123         Avoid casts from looser to stricter-aligned pointers.
29125         memchr2: port --enable-gcc-warnings to clang
29126         * lib/memchr2.c (memchr2):
29127         Avoid casts from looser to stricter-aligned pointers.
29129         mbsstr: port --enable-gcc-warnings to clang
29130         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
29131         Avoid casts from looser to stricter-aligned pointers.
29133         malloca: port --enable-gcc-warnings to clang
29134         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
29135         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
29137         inttostr: port --enable-gcc-warnings to clang
29138         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
29140         warnings: port to clang
29141         Problem reported by Daniel P. Berrange via Eric Blake in
29142         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
29143         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
29144         (gl_WARN_ADD): Use it.
29146 2013-05-11  Jim Meyering  <meyering@fb.com>
29148         quotearg: do not read beyond end of buffer
29149         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
29150         end of an ARG for which no length was specified.  With an N-byte
29151         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
29152         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
29153         via coreutils' misc/sort-debug-keys.sh test and detected by running
29154         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
29155         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
29156         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
29157         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
29158         characters correctly."
29160 2013-05-11  Daiki Ueno  <ueno@gnu.org>
29162         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
29163         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
29164         compilation target is Mac OS X 10.6.
29165         Problem reported by parafin and Andoni Morales in
29166         <http://savannah.gnu.org/bugs/?37844> and
29167         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
29169 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29171         mkdir-p: remove assumptions about umask and mode
29172         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
29173         umask is 0, or that MODE is a subset of MODE_BITS.
29175 2013-05-10  Eric Blake  <eblake@redhat.com>
29177         maint.mk: catch more abuse of HAVE_DECL in syntax-check
29178         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
29180 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
29182         deps: require Automake >= 1.9.6 in generated Makefile fragments
29184         That is the same minimal version required in the DEPENDENCIES file.
29185         Moreover, the old code generated a requirement of Automake >= 1.5,
29186         and that is an insanely outdated version.
29188         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
29189         * tests/havelib/rpathlx/Makefile.am: Likewise.
29190         * tests/havelib/rpathly/Makefile.am: Likewise.
29191         * tests/havelib/rpathlyx/Makefile.am: Likewise.
29192         * tests/havelib/rpathlz/Makefile.am: Likewise.
29193         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
29194         * tests/havelib/rpathx/Makefile.am: Likewise.
29195         * tests/havelib/rpathy/Makefile.am: Likewise.
29196         * tests/havelib/rpathz/Makefile.am: Likewise.
29198 2013-05-08  Eric Blake  <eblake@redhat.com>
29200         bootstrap: AC_INIT may have more than four parameters
29201         * build-aux/bootstrap (extract_package_name): Correctly extract
29202         non-empty tarname field.  Avoid range in regex.
29203         Based on a report by Sami Kerola <kerolasa@iki.fi>.
29205 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
29207         qacl: port to MS-Windows port of GNU Emacs
29208         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
29209         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
29210         port of GNU Emacs.  Problem reported by Eli Zaretskii in
29211         <http://bugs.gnu.org/14295#14>.
29213 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
29215         acl: include quote.h
29216         * lib/copy-acl.c: Include quote.h.
29217         * lib/set-acl.c: Likewise.
29219 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
29221         fchownat, renameat, unlinkat: update statat dependencies
29222         These modules use statat and lstatat, not fstatat; so depend on
29223         the statat module, which was split out recently from fstatat.
29224         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
29225         * modules/renameat: Likewise.  Also delete fstat.
29226         URL: http://bugs.gentoo.org/468790
29228 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
29230         Assume gnulib is checked out from Git, not CVS
29232         In fact, access to the gnulib repository through CVS has been
29233         disabled, or more precisely, got broken and was never restored; see:
29234         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
29236         Note that support for CVS is not removed completely and unthinkingly
29237         by this change: only support for CVS checkouts of gnulib itself is
29238         removed.  For example, the 'bootstrap' script still cater to .cvsingore
29239         files and CVS directories, for the benefit of those poor gnulib clients
29240         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
29242         * gnulib-tool: Simplify accordingly.
29243         * posix-modules: Likewise.
29244         * MODULES.html.sh: Likewise.
29245         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
29246         repository.
29247         * doc/gnulib-intro.texi: Likewise.
29248         * doc/gnulib-readme.texi: Likewise.
29249         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
29250         sample '.gitignore' file rather than a sample '.cvsignore'.
29251         * NEWS: Update.
29252         * m4/extensions.m4: While at it, remove a comment mistakenly referring
29253         to "CVS Autoconf" rather than "git Autoconf".
29255 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
29257         utimensat-tests, etc.: try to fix some races
29258         Problem reported by Bernhard Voelker in
29259         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
29260         I don't know whether this patch fixes that race condition, but it
29261         fixes *some* race conditions, so it should be a win.
29262         * modules/chown-tests (Depends-on):
29263         * modules/fchownat-tests (Depends-on):
29264         * modules/fdutimensat-tests (Depends-on):
29265         * modules/futimens-tests (Depends-on):
29266         * modules/lchown-tests (Depends-on):
29267         * modules/stat-time-tests (Depends-on):
29268         * modules/utimens-tests (Depends-on):
29269         * modules/utimensat-tests (Depends-on):
29270         Depend on nanosleep, not usleep.
29271         * modules/chown-tests (test_chown_LDADD):
29272         * modules/lchown-tests (test_lchown_LDADD):
29273         * modules/stat-time-tests (test_stat_time_LDADD):
29274         New macro.
29275         * modules/fchownat-tests (test_fchownat_LDADD):
29276         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
29277         * modules/futimens-tests (test_futimens_LDADD):
29278         * modules/utimens-tests (test_utimens_LDADD):
29279         * modules/utimensat-tests (test_utimensat_LDADD):
29280         Add $(LIB_NANOSLEEP).
29281         * modules/stat-time-tests (Files): Add tests/nap.h.
29282         * tests/nap.h: Include <limits.h>, for INT_MAX.
29283         (lt_mtime): Remove.
29284         (diff_timespec): New function.
29285         (get_stat): Rename from get_mtime.  All callers changed.
29286         (nap_works): Determine the needed delay by inspecting the
29287         file system's timestamp jumps; this should be more reliable.
29288         Look at both mtime and ctime, and take the maximum of the two jumps.
29289         (nap_works, guess_delay):
29290         Return a nanosecond count, not a microsecond count.
29291         All callers changed.
29292         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
29293         failure.
29294         (nap): Multiply the guess by 1.125, to accommodate the case where
29295         the file system's clock is a bit slower than nanosleep's clock.
29296         * tests/test-stat-time.c (BASE): New macro.
29297         Include nap.h.
29298         (nap): Remove; nap.h now defines this.  This removes a duplicate
29299         implementation of 'nap'.
29301         utimens, utimensat: work around Solaris UTIME_OMIT bug
29302         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
29303         Linux kernel 2.6.32 does.  Work around it in the same way.
29304         * doc/posix-functions/futimens.texi (futimens):
29305         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
29306         * lib/utimens.c (fdutimens, lutimens):
29307         * lib/utimensat.c (rpl_utimensat): Work around the bug.
29309         gettext: now it's your responsibility to add -I$(top_builddir)/intl
29310         Formerly, it was your responsibility to do this for all Makefile.ams
29311         other than Gnulib's.  Now it's your responsibility to do it for
29312         Gnulib's Makefile.am, too.
29313         * NEWS: Document this.
29314         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
29316         acl: include errno.h to get errno
29317         Reported by Daiki Ueno in
29318         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
29319         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
29321 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29323         tests: don't assume getdtablesize () <= 10000000
29324         * modules/cloexec-tests:
29325         * modules/dup2-tests:
29326         * modules/dup3-tests:
29327         * modules/nonblocking-tests:
29328         * modules/posix_spawn_file_actions_addclose-tests:
29329         * modules/posix_spawn_file_actions_adddup2-tests:
29330         * modules/posix_spawn_file_actions_addopen-tests:
29331         * modules/unistd-safer-tests:
29332         Depend on the getdtablesize module.
29333         * tests/test-cloexec.c:
29334         * tests/test-dup-safer.c:
29335         * tests/test-dup2.c:
29336         * tests/test-dup3.c:
29337         * tests/test-fcntl.c:
29338         * tests/test-nonblocking.c:
29339         * tests/test-posix_spawn_file_actions_addclose.c:
29340         * tests/test-posix_spawn_file_actions_adddup2.c:
29341         * tests/test-posix_spawn_file_actions_addopen.c:
29342         Don't assume getdtablesize () <= 10000000.
29344 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
29346         extern-inline: work around bug in Sun c99
29347         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
29348         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
29350 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29352         qacl: new module, broken out from the acl module
29353         This is for GNU Emacs, which wants the acl functions but does
29354         not want 'error' invoked when they fail.
29355         * lib/acl-internal.h: Do not include error.h, quote.h.
29356         (ENOSYS, ENOTSUP): Remove; no longer needed.
29357         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
29358         * lib/acl.h: Include <stdbool.h>.
29359         (acl_errno_valid): New function.
29360         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
29361         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
29362         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
29363         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
29364         (ACL_INTERNAL_INLINE): Remove; no longer needed.
29365         * lib/file-has-acl.c (file_has_acl):
29366         * lib/qcopy-acl.c (qcopy_acl):
29367         * lib/qset-acl.c (qset_acl):
29368         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
29369         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
29370         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
29371         lib/file-has-acl.c, m4/acl.m4 to qacl module.
29372         Add lib/set-acl.c.
29373         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
29374         Add qacl.
29375         (configure.ac): Move gl_FUNC_ACL to qacl module.
29376         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
29377         Rename set-mode-acl.c to set-acl.c.
29378         * lib/acl-errno-valid.c: New file.
29379         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
29380         copy_acl function remains in copy-acl.c.
29381         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
29382         (_): Remove; not needed.
29383         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
29384         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
29385         * modules/qacl: New file, moved from the old modules/acl.
29386         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
29387         Remove set-mode-acl.c, copy-acl.c.
29388         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
29390         alignof, intprops, malloca: port better to IBM's C compiler
29391         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
29392         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
29393         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
29395 2013-04-25  Daiki Ueno  <ueno@gnu.org>
29397         wctype-h: fix gettext link error on mingw
29398         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
29399         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
29400         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
29401         rpl_towupper and rpl_towupper.
29403 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
29405         regex-tests, regex: allow glibc re_search behavior
29406         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
29407         re_search input data to make the multi-character collating element
29408         in it clearly visible, and treat re_search return code 0 as valid.
29409         * m4/regex.m4 (gl_REGEX): Likewise.
29411 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29413         stdalign: doc fix
29414         * doc/posix-headers/stdalign.texi (stdalign.h):
29415         Gnulib doesn't support '_Alignof expr'.
29417 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
29419         stdalign: port to stricter ISO C11
29420         ISO C11 says that _Alignof's operand must be a parenthesized type.
29421         Problem reported by Eli Zaretskii in
29422         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
29423         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29424         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
29426 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29428         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
29429         Problem reported by Marco Atzeri in
29430         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
29431         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
29432         Simply delegate to the system <sys/select.h> in this case too.
29433         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
29434         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
29435         be needed on Solaris either.
29436         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
29437         Simply delegate to the system <sys/time.h> in this case.
29439 2013-03-19  Karl Berry  <karl@gnu.org>
29441         * build-aux/gnupload: check for erroneous (with gnupload) use of
29442         ftp-upload.gnu.org, tweak help.
29444 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29446         copy-file, rpmatch: fix problems found by cppcheck
29447         Reported by Arno Onken in
29448         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
29449         * lib/rpmatch.c (try): Fix memory leak.
29450         * lib/copy-file.c: Include "ignore-value.h".
29451         (qcopy_file_preserving): Ignore chown value.
29452         * modules/copy-file (Depends-on): Add ignore-value.
29454 2013-01-27  Jim Meyering  <jim@meyering.net>
29456         prefix-gnulib-mk: give better diagnostics
29457         * build-aux/prefix-gnulib-mk: Don't just "die".
29458         Give better diagnostics upon failure.
29460 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29462         putenv: port to Solaris 10
29463         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
29464         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
29465         is not what is wanted here.
29466         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
29467         declaration, not for its existence.
29469 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
29471         mktime: fix configure typo
29472         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
29474 2013-03-12  Eric Blake  <eblake@redhat.com>
29476         regex-tests: skip UTF-8 test on mingw
29477         * modules/regex-tests (Depends-on): Add localcharset.
29478         * tests/test-regex.c (main): Use it to skip test on mingw.
29480 2013-03-11  Eric Blake  <eblake@redhat.com>
29482         tests: make it easier to bypass alarm time in debugger
29483         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
29484         * tests/test-memmem.c (main): Likewise.
29485         * tests/test-passfd.c (main): Likewise.
29486         * tests/test-ptsname.c (main): Likewise.
29487         * tests/test-ptsname_r.c (main): Likewise.
29488         * tests/test-strcasestr.c (main): Likewise.
29489         * tests/test-strstr.c (main): Likewise.
29491         regex: port to mingw's recent addition of undeclared alarm
29492         * doc/posix-functions/alarm.texi (alarm): Document that alarm
29493         exists but still doesn't work in newer mingw.
29494         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
29495         not existence.  Ensure SIGALRM is not trapped.
29496         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
29497         * m4/regex.m4 (gl_REGEX): Likewise.
29498         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
29499         * tests/test-regex.c (main): Use correct probe for alarm.
29501         putenv: avoid compilation warning on mingw
29502         * lib/putenv.c (_unsetenv): Protect variable declaration.
29503         (putenv): Fix indentation.
29505 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
29507         unistd: don't prevent Tru64 Unix from using gnulib strtod.
29508         * lib/unistd.in.h: be careful not to include un-needed system
29509         stdlib.h from here, because that prevents gnulib stdlib.h from
29510         defining rpl_strtod correctly.
29512 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
29514         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
29515         changesets, but for the 'precision 0' test.
29516         * tests/test-vasprintf-posix.c (test_function): Don't insist on
29517         round-to-even, since POSIX says rounding is implementation-defined
29518         and OS X 10.8.2 rounds 1.51 to 1 here.
29520         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
29521         changeset.
29522         * tests/test-vasprintf-posix.c (test_function): Don't insist on
29523         round-to-even, since POSIX says rounding is implementation-defined
29524         and OS X 10.8.2 rounds 1.5 to 1 here.
29526 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29528         vasnprintf-posix-tests: allow rounding 1.5 to 1
29529         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
29530         round-to-even, since POSIX says rounding is implementation-defined
29531         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
29532         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
29534         bootstrap: port to FreeBSD
29535         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
29536         that treat '--' differently.  Reported by Mats Erik Andersson in
29537         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
29539 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
29541         regex: rename remaining __attribute calls to __attribute__.
29542         2012-02-25 changed definition of __attribute, but left some uses
29543         unchanged, preventing compilation of regex module on most non-gcc
29544         environments.
29545         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
29546         (lookup_collation_sequence_value, build_range_exp)
29547         (build_collating_symbol): Set attributes with newly renamed
29548         __attribute__ decorator.
29549         * lib/regex_internal.c (re_string_peek_byte_case)
29550         (re_node_set_compare, re_node_set_contains): Likewise.
29551         * lib/regexec.c (acquire_init_state_context): Likewise.
29553 2013-03-06  Bruno Haible  <bruno@clisp.org>
29555         execute: Revert last change, but use a different condition.
29556         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
29557         on Windows.
29559 2013-03-05  Eric Blake  <eblake@redhat.com>
29561         execute: drop dead code
29562         * lib/execute.c (nonintr_close, nonintr_open): Delete.
29564 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
29566         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
29567         * m4/non-recursive-gnulib-prefix-hack.m4
29568         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
29569         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
29570         <http://bugs.gnu.org/10305#237>.
29572 2013-03-04  Eric Blake  <eblake@redhat.com>
29574         test-getsockopt: avoid compiler warning
29575         * tests/test-getsockopt.c (includes): Ensure close is declared.
29577 2013-03-02  Bruno Haible  <bruno@clisp.org>
29579         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
29580         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
29582 2013-03-02  Bruno Haible  <bruno@clisp.org>
29584         gettext: Update to version 0.18.2.
29585         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
29586         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
29587                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
29589 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
29591         regex: merge patches from libc
29593         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29594         * lib/regex_internal.h (__attribute__): Rename from __attribute.
29595         All uses changed.
29596         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
29597         (re_string_wchar_at, re_string_elem_size_at):
29598         Mark function as possibly unused.
29600         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
29601         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
29602         elements compare against the byte sequence of it, not its name.
29604 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29606         putenv: port better to native Windows
29607         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
29608         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
29609         (_unsetenv): Use _putenv if available.
29610         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
29611         a bit less likely to cause damage.
29612         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
29613         Fix the wrong value with SetEnvironmentVariable.
29614         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
29615         code better.
29617 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29619         regex: ignore old-style-definition warnings
29620         * lib/regex.c: Add pragma to ignore these warnings.
29621         Problem reported for GNU tar by Pavel Raiskup.
29623 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29625         getcwd: support coreutils better
29626         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
29627         but this might not be correct in coreutils, which disables
29628         the raw decl checks.  Problem reported by Nagendra in
29629         <http://bugs.gnu.org/10305#192>.
29630         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
29631         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29632         Test the getcwd function, not any macro, since getcwd.c wants the
29633         function.
29634         * m4/getcwd.m4 (gl_FUNC_GETCWD):
29635         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
29636         compile, as might happen if there's a macro but no function.
29638         strtod: support coreutils better
29639         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
29640         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
29641         disables the raw decl checks.  This assumes there is an underlying
29642         strtod, but that's a safe assumption these days.
29643         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
29645         mountlist: port to HP NonStop
29646         Reported by Joachim Schmitz in
29647         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
29648         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
29649         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
29651 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29653         extern-inline: avoid compilation error with HP-UX cc
29654         Reported by Richard Lloyd in
29655         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
29656         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
29657         Suppress extern inline with HP-UX cc.  This should be safe,
29658         though it may hurt performance.  Perhaps someone with some HP-UX
29659         experience can come up with a higher-performance fix.
29661 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
29663         putenv: fix heap corruption with mixed putenv/_putenv
29664         Problem reported by Michael Goffioul in
29665         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
29666         * lib/putenv.c (putenv) [HAVE__PUTENV]:
29667         Rely on _putenv to allocate the new environment.
29668         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
29669         * modules/putenv (configure.ac): Use it.
29671 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
29673         unsetenv etc.: port to Solaris 11 + GNU Emacs
29674         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
29675         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
29676         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
29677         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
29678         idea but is too painful to fix right now), and without this gnulib
29679         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
29680         compiling unsetenv.c on Solaris 11.  Fix the problem for
29681         unsetenv.c, and fix other similar occurrences.
29683 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29685         secure_getenv: fix C++ declaration typo
29686         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
29687         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
29688         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
29690 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29692         careadlinkat: stop exporting careadlinkatcwd
29693         Only Emacs used it directly, and Emacs no longer needs it.
29694         * NEWS: Document this simplification.
29695         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
29696         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
29697         for readlink.
29698         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
29699         Don't include stdlib.h; no longer needed.
29700         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
29701         * lib/relocwrapper.c: Adjust comment to match new dependencies.
29702         * modules/areadlink (Depends-on): Add readlink.
29703         (Maintainer): Add self.
29704         * modules/careadlinkat (Depends-on): Remove readlink.
29706         extensions: port better to HP-UX
29707         This is merged from git Autoconf.
29708         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
29709         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
29710         so that it's compatible with the value used when compiling.
29712         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
29713         Problem reported by Mats Erik Andersson in
29714         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
29715         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
29716         openpty function exists, not merely when we intend to replace it.
29717         This corrects the 2013-01-31 patch, which mistakenly defined
29718         HAVE_OPENPTY even on hosts that lacked it.
29720 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
29722         secure_getenv: fix include typo
29723         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
29725         secure_getenv: port better to FreeBSD and Solaris
29726         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
29727         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
29728         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
29729         This works better on BSDish platforms.
29730         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
29731         Test for issetugid if __secure_getenv is missing.
29733 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29735         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
29736         Some of these changes are merged in from git Autoconf.
29737         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
29738         When deciding whether to define _XOPEN_SOURCE, inspect the
29739         preprocessor macro __hpux instead of the more-heavyweight
29740         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
29741         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
29742         as the key for __EXTENSIONS__.
29744         unistd: avoid namespace pollution on non-glibc systems
29745         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
29746         This avoids namespace pollution on non-glibc systems, by causing
29747         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
29748         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
29749         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
29751 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29753         tmpdir: use secure_getenv
29754         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
29755         Define to secure_getenv, not getenv.
29756         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
29757         as that's now secure_getenv's job.
29758         * modules/tmpdir (Depends-on): Add secure_getenv.
29760         tempname: use secure_getenv
29761         * lib/tempname.c (__secure_getenv) [!_LIBC]:
29762         Define to secure_getenv, not getenv.
29763         * modules/tempname (Depends-on):
29764         Add secure_getenv.
29766         secure_getenv: new module
29767         * MODULES.html.sh (Extra functions based on ANSI C 89):
29768         Add secure_getenv.
29769         * doc/glibc-functions/secure_getenv.texi: New file.
29770         * doc/gnulib.texi: Include it.
29771         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
29772         New files.
29773         * lib/stdlib.in.h (secure_getenv): New decl.
29774         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
29775         * modules/stdlib (stdlib.h):
29776         Add secure_getenv checks.
29778 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
29780         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
29781         Reported for OS X 10.8.2 by Assaf Gordon in
29782         <http://bugs.gnu.org/13516>.
29783         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
29784         !HAVE_OPENAT && !HAVE_FDOPENDIR.
29785         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
29786         so that they can be kept in sync more easily.  Avoid PATH_MAX
29787         test on the Hurd.  Sync from test-getcwd.c for errno tests after
29788         mkdir or chdir failure.
29789         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
29790         lib/getcwd.c.
29791         (test_abort_bug): Do not test for the deep directory bug unless we
29792         have openat support.  Avoid PATH_MAX test on the Hurd.
29794         regex-tests, regex: fix bug: memset undeclared
29795         * tests/test-regex.c: Don't include regex.h twice.  Include
29796         string.h, to declare memset.  Christensen's report also mentioned
29797         this issue.
29798         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
29799         test-regex.c, to avoid future problems like this.  Remove
29800         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
29801         twice.
29803         regex-tests: fix link errors on older Solaris
29804         These need to link with @LIBINTL@ to get libintl_gettext.
29805         Problem reported by Tom G. Christensen in
29806         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
29807         * modules/regex-tests (test_regex_LDADD): New macro.
29809 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
29811         regex-tests: new module
29812         * modules/regex-tests, tests/test-regex.c: New files.
29814         regex: fix off-by-one error in configure test
29815         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
29817 2013-01-31  Eric Blake  <eblake@redhat.com>
29819         regex: avoid infinite configure test
29820         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
29822 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
29824         openpty: fix bug where HAVE_OPENPTY wasn't defined
29825         See the thread starting at:
29826         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
29827         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
29828         openpty function exists, not merely when we intend to replace it.
29830 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
29832         sys_time: port to Solaris 2.6
29833         There is a circularity problem on Solaris 2.6, where <time.h> includes
29834         <sys/time.h> for struct timespec.  The include nesting is gnulib
29835         <time.h>, system <time.h>, gnulib <sys/time.h>, system
29836         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
29837         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
29838         <sys/siginfo.h>; the last, innermost file needs struct
29839         timestruc_t, which is defined in <sys/time.h>, which has not been
29840         fully parsed.  Problem reported by Tom G. Christensen in
29841         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
29842         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
29843         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
29844         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
29845         uses split double-inclusion guards.
29847 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
29849         regex: test for buffer overrun
29850         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
29851         for the just-fixed regex bug.
29853 2013-01-29  Andreas Schwab  <schwab@suse.de>
29855         regex: fix buffer overrun in regexp matcher [BZ #15078]
29856         * lib/regexec.c (extend_buffers): Add parameter min_len.
29857         (check_matching): Pass minimum needed length.
29858         (clean_state_log_if_needed): Likewise.
29859         (get_subexp): Likewise.
29861 2013-01-28  Pádraig Brady  <P@draigBrady.com>
29863         mountlist: don't consider "devtmpfs" as dummy
29864         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
29865         as there is storage associcated with it.
29867 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
29869         futimens-tests, utimens-tests: Depend on gettext.
29870         This works around a problem introduced in my 2013-01-12 patch,
29871         which added @LIBINTL@ to these modules.
29872         * modules/futimens-tests (Depends-on):
29873         * modules/utimens-tests (Depends-on): Add gettext.
29875 2013-01-26  Eric Blake  <eblake@redhat.com>
29877         test-getpeername: fix typo
29878         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
29880 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
29882         bootstrap: remove the need for a sorted .gitignore file
29883         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
29884         rename to insert_if_absent(), so that we don't need or generate
29885         a sorted .gitignore file.  We do require a .gitignore with no
29886         existing duplicate entries and enforce that.
29887         (sort_patterns): Remove this function as we now use the simpler
29888         technigue of inserting blacklist entries at the top of the file,
29889         assuming gnulib won't be inserting !whitelist entries.
29891 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29893         readlinkat: don't depend on gl_FUNC_OPENAT
29894         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
29895         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
29896         renameat.m4, symlinkat.m4; but one thing at a time.
29898         statat: new module, split out from fstatat
29899         GNU Emacs needs the POSIX-specified fstatat, but not the
29900         gnulib-specified statat and lstat.  Split the latter two into a
29901         new module 'statat'.
29902         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
29903         * lib/openat.h, lib/statat.c (STATAT_INLINE):
29904         Rename from FSTATAT_INLINE. All uses changed.
29905         * modules/fstatat (Files): Remove lib/statat.c.
29906         (gl_MODULE_INDICATOR([fstatat])): Remove.
29907         (lib_SOURCES): Remove.
29908         (Maintainer): Add self.
29909         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
29910         * tests/test-fstatat.c (BASE): Don't define if already defined.
29911         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
29913 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29915         tests: don't assume fd 99 is closed
29916         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
29917         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
29918         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
29919         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
29920         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
29921         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
29922         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
29923         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
29924         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
29925         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
29926         * tests/test-fwrite.c, tests/test-getpeername.c:
29927         * tests/test-getsockname.c, tests/test-getsockopt.c:
29928         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
29929         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
29930         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
29931         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
29932         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
29933         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
29934         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
29935         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
29936         * tests/test-unlinkat.c, tests/test-unlockpt.c:
29937         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
29938         Close file descriptor 99, instead of assuming it's already closed.
29940 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
29942         stpncpy: port to OS X 10.8
29943         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
29944         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
29946 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29948         unistd: port to recent mingw
29949         * lib/unistd.in.h: Remove special invocation convention for mingw,
29950         which breaks for the latest mingw version.  See John W. Eaton in
29951         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
29953         largefile: port better to Mac OS X 10.5
29954         This patch is backported from Autoconf git.
29955         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
29956         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
29957         with ino_t size being different for configuration time versus
29958         build/run time.  Problem reported by PHO in
29959         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
29961 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29963         doc: clarify -Werror
29964         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
29965         clarify that it's intended for developers, not for ordinary builds,
29966         and mention --enable-gcc-warnings as one possible use.
29968 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
29970         stdint: fix build with Android's Bionic fox x86
29971         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
29972         was already included as _SSIZE_T_DEFINED_ might also be defined
29973         in include/machine/_types.h, which is included by stdio.h
29975 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29977         net_if-tests: port to Solaris 7 + GCC 3.4.6
29978         Problem reported by Tom G. Christensen in
29979         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
29980         * tests/test-net_if.c (ni): Move to next the code that uses it,
29981         so that it's declared only if needed.
29983 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29985         net_if-tests: port to older Solaris
29986         Problem reported by Tom G. Christensen in
29987         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
29988         * modules/net_if-tests (NET_IF_LIB): New substitution.
29989         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
29990         (HAVE_IF_NAMEINDEX): New C macro.
29991         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
29993         system-quote-tests: port to older Solaris
29994         Problem reported by Tom G. Christensen in
29995         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
29996         * tests/test-system-quote-child.c (fopen, fread): Undef.
29998         c-xvasprintf etc.: fix link errors on older Solaris
29999         These need to link with @LIBINTL@ to get libintl_gettext.
30000         Problem reported by Tom G. Christensen in
30001         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
30002         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
30003         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
30004         * modules/futimens-tests (test_futimens_LDADD):
30005         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
30007 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
30009         locale: port to Solaris 2.6 and 7 + GNU gettext
30010         * lib/locale.in.h: Just include_next <locale.h> when
30011         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
30012         when combining the localename module with GNU gettext 0.18.2.
30013         Problem reported by Tom G. Christensen in
30014         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
30016 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30018         stdlib: port to Solaris 2.6
30019         Also, the code worked on Solaris 7 through 9 only by accident.
30020         Problem reported by Tom G. Christensen in
30021         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
30022         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
30023         simply include the system stdlib.h.
30024         * lib/getopt.in.h (__need_system_stdlib_h):
30025         * lib/pthread.in.h (__need_system_stdlib_h):
30026         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
30027         Define when including <stdlib.h>, to avoid problems at least for
30028         the pthread case on Solaris 2.6 and 7.  These .h files can get by
30029         with the system stdlib.h.
30031 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30033         doc: update main copyright year
30034         * doc/gnulib.texi: Update copyright date.
30036         doc: improve ISO 8601 discussion
30037         * doc/parse-datetime.texi (Combined date and time of day items):
30038         Specify more carefully what formats are supported and what is
30039         done with excess precision.
30041 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
30043         doc: avoid small caps
30044         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
30045         they're more trouble than they're worth.  Suggested by Karl Berry
30046         in <http://bugs.gnu.org/13360>.
30048         regex: conform to strict C
30049         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
30050         From Aharon Robbins.
30052         gnulib-tool: fix incompatibility with autopoint 0.18.2
30053         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
30054         Problem reported by Tom G. Christensen in
30055         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
30057 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30059         fprintftime: bring back and reword fwrite comment
30060         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
30062         stdio: remove now-unnecessary stdio.c
30063         Since stdio.in.h no longer uses inline functions, we no longer
30064         need to compile the extern versions.
30065         * lib/stdio.c: Remove.
30066         * modules/stdio (Files): Remove lib/stdio.c.
30067         (lib_SOURCES): Remove.
30069         unicodeio: depend on stdio, not ignore-value
30070         * lib/unicodeio.c: Do not include ignore-value.h.
30071         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
30072         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
30074         fprintftime: depend on stdio, not ignore-value
30075         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
30076         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
30077         since the stdio module arranges to silence that warning now.
30078         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
30080 2012-10-04  Simon Josefsson  <simon@josefsson.org>
30082         stdint-tests: Fix expanded-before-required-warning.
30083         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
30085 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30087         fwrite: silence __wur only for older glibc versions
30088         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
30089         This will help us remove this workaround some time in the far future.
30091 2013-01-03  Eric Blake  <eblake@redhat.com>
30093         fwrite: silence __wur without using inline
30094         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
30095         just gcc, and in a way that avoids inline issues.
30096         * modules/stdio (Depends-on): Drop extern-inline.
30098 2013-01-03  Jim Meyering  <jim@meyering.net>
30100         update-copyright: avoid copyright notice date corruption
30101         Given a sequence of copyright year numbers in which the final
30102         one was a two-digit number that happened to be a substring of
30103         a preceding four-digit year number, we would mistakenly update
30104         the substring (from two- to four-digit) rather than the two-digit
30105         number at the end, which, combined with the addition of the current
30106         4-digit year number would yield two 5-digit year numbers, e.g.,
30107         here, it would convert the first "99" to "1999, 2013" rather than
30108         the final one:
30109           1991, 99
30110           11999, 20131, 1999
30111         * build-aux/update-copyright: Tighten a regexp.
30112         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
30113         Reported by Joseph Myers in
30114         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
30116 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30118         regex: omit needless signed-pointer casts
30119         * lib/regcomp.c (build_charclass, build_charclass_op):
30120         Use char *, not unsigned char *, for class name and extra.
30121         The char values are always nonnegative so there's no need to
30122         insist on unsigned char * here, and using char * removes the need
30123         for casts.  Reported by Aharon Robbins in
30124         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30126         regex: support Gawk, which never uses alloca
30127         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
30128         Do not include in this case.  Gawk doesn't supply a substitute
30129         alloca.h and doesn't need one.
30131         regex: port __libc_lock_define usage to C89
30132         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
30133         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
30134         does not conform to C89, as it has an empty macro argument.
30135         Reported by Aharon Robbins in
30136         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30138 2013-01-01  Eric Blake  <eblake@redhat.com>
30140         maint: update all copyright year number ranges
30141         Run "make update-copyright".
30143         version-etc: bump copyright year reported in --version
30144         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
30146 2012-12-31  Eric Blake  <eblake@redhat.com>
30148         sigprocmask-tests: skip test if pid is unexpectedly large
30149         * tests/test-sigprocmask.c (main): Add range check.
30151         git-version-gen: avoid test -z portability glitch
30152         * build-aux/git-version-gen: Prefer portable test spelling, since
30153         git-version-gen is run on more than just developer machines.
30155 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
30157         git-version-gen: add --fallback option to use if git is not present
30158         * build-aux/git-version-gen: Add support for the new option --fallback,
30159         which comes into play when there is no $tarball_version_file and
30160         git is not working.
30161         (scriptversion): Update.
30163         maint.mk: handle missing git with more grace
30164         * top/maint.mk (no-submodule-changes, public-submodule-commit):
30165         Quietly proceed if git is not present.
30167 2012-12-31  Eric Blake  <eblake@redhat.com>
30169         dup2: work around cygwin bug
30170         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
30171         * lib/dup2.c (rpl_dup2): Work around it.
30172         * doc/posix-functions/dup2.texi (dup2): Document it.
30174 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
30176         regex: remove unnecessary dependency on localcharset.h
30177         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
30178         hasn't been needed for years.
30179         * modules/regex (Depends-on): Remove localcharset.
30181         regex: revert single-byte change
30182         * lib/regexec.c (check_node_accept_bytes): Revert previous change
30183         to this function.  This was alredy fixed in a different way, at
30184         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
30185         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
30186         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
30188         regex: simplify based on Gawk version
30189         * lib/regex_internal.c (re_dfa_add_node): Simplify.
30190         Reported by Aharon Robbins in
30191         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30193 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
30195         regex: check that pattern char is single-byte
30196         Reported by Aharon Robbins in
30197         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30198         * lib/regexec.c (check_node_accept_bytes):
30199         Return 0 if the pattern string has a multibyte character here.
30201         regex: implement rational ranges
30202         Reported by Aharon Robbins in
30203         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30204         * lib/regcomp.c (build_range_exp) [!_LIBC]:
30205         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
30206         Implement rational ranges.
30208         regex: avoid redefining __wctype
30209         Reported by Aharon Robbins in
30210         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30211         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
30212         #undef before defining.
30214         regex: port to hosts where malloc (0) == NULL
30215         Reported by Aharon Robbins in
30216         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30217         * lib/regex_internal.c (re_node_set_alloc):
30218         Don't assume that malloc (0) yields nonnull.
30219         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
30220         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
30221         * modules/regex (Files): Add m4/eealloc.m4.
30223         regex: port to C89
30224         Reported by Aharon Robbins in
30225         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
30226         * lib/regcomp.c (init_word_char): Declaration before statement.
30228         regex: merge glibc changes
30229         Also, copy the license wording from glibc.  This simplifies
30230         merging changes.  gnulib-tool will change the wording to GPL as
30231         appropriate, when importing it to other packages.  The only
30232         glibc change made since the last merge, which needs merging, is:
30233         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
30234         * lib/regex_internal.h (gettext): Remove use of INTUSE.
30236         * users.txt: Add Emacs.
30238         doc: omit mention of version when not needed
30239         * doc/gnulib-intro.texi (Portability and Application Code):
30240         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
30241         Don't mention particular dates or versions when not necessary, so
30242         that the documentation won't go out of date so quickly.
30244         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
30246 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
30248         bootstrap: pass --force to autoreconf.
30249         * build-aux/bootstrap (AUTORECONFFLAGS): New.
30250         Add "--force" so that Automake's ylwrap and other such tools
30251         be updated at each bootstrap invocation.
30252         Use it.
30254 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
30256         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
30257         The earlier patch forgot to update one of the #if conditions, causing
30258         a problem on Debian testing i386 reported by Mats Erik Andersson
30259         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
30260         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
30261         (__argp_fmtstream_puts, argp_fmtstream_puts)
30262         (__argp_fmtstream_write, argp_fmtstream_write)
30263         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
30265         * doc/gnulib-readme.texi: Minor fixups.
30266         (Portability guidelines): Modernize URLs.  Remove some repetition.
30267         (Indent with spaces not TABs): Reword to avoid too-long lines.
30268         Remove some '@ifset standalone' stuff that isn't used.
30270         * doc/gnulib-readme.texi (Portability guidelines):
30271         ctype.h, not ctime.h.
30273         Correct name of POSIX.1-2001.
30274         * doc/posix-functions/fgetc.texi (fgetc):
30275         * doc/posix-functions/fgets.texi (fgets):
30276         * doc/posix-functions/fread.texi (fread):
30277         * doc/posix-functions/fscanf.texi (fscanf):
30278         * doc/posix-functions/getc.texi (getc):
30279         * doc/posix-functions/getchar.texi (getchar):
30280         * doc/posix-functions/scanf.texi (scanf):
30281         POSIX.1-2001, not POSIX-2001.
30283         doc: move README into manual
30284         * README: Move contents to new file doc/gnulib-readme.texi.
30285         Replace with a one-line summary.
30286         * doc/gnulib.texi (Brief Overview): New section,
30287         with old intro preface.  Include gnulib-readme.texi for contents.
30288         (Philosophy): Rename from "Introduction", since this
30289         section no longer introduces the rest.  Write a new preface.
30290         * doc/gnulib-readme.texi: New file, with the old contents of
30291         README texinfo-ized.  This way, the README info appears
30292         in the online and printed manual.
30294 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
30296         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
30297         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
30298         c_vasprintf() prototype.
30300 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
30302         c-vasprintf: Fix "empty declaration" warning reported by GCC.
30303         * lib/c-vasprintf.h: Remove stray semicolon.
30305 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
30307         gettext: avoid obsolete macro AM_PROG_MKDIR_P
30308         It is obsolete and is planned to be removed from Automake 1.14; see
30309         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
30310         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
30311         (installdirs-data, installdirs-data-yes):
30312         Use $(MKDIR_P), not $(mkdir_p).
30313         * m4/intl.m4 (AM_INTL_SUBDIR):
30314         * m4/po.m4 (AM_PO_SUBDIRS):
30315         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
30317 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
30319         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
30320         On this platform, we are not optimizing but we are using
30321         the substitute for extern inlines, so compile as if
30322         C99-style extern inline, or a substitute, is available.
30323         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
30324         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
30325         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
30326         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
30327         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
30328         Declare as ARGP_FS_EI, not as extern.
30329         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
30330         (__option_is_short, _option_is_end, __option_is_end)
30331         [!_LIBC && __USE_EXTERN_INLINES]:
30332         Declare as ARGP_EI, not as extern.
30334 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
30336         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
30337         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
30338         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
30339         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
30340         ...), as the latter is fatal with older Autoconfs.
30341         Problem reported and fix suggested by Eric Blake in thread starting at
30342         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
30344 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30346         AC_PROG_MKDIR_P: don't workaround if not buggy
30347         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
30348         Define only for Autoconf versions before 2.62.
30349         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
30350         undocumented m4_PACKAGE_VERSION, for consistency with the
30351         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
30352         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
30353         was introduced in 2.62.
30355 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
30357         New 'c-*printf' modules for formatted output in C locale.
30359         New module 'c-vasnprintf'.
30360         * modules/c-vasnprintf: New file.
30361         * lib/c-vasnprintf.c: New file.
30362         * lib/c-vasnprintf.h: New file.
30364         New module 'c-snprintf'.
30365         * modules/c-snprintf: New file.
30366         * modules/c-snprintf-tests: New file.
30367         * lib/c-snprintf.c: New file.
30368         * lib/c-snprintf.h: New file.
30369         * tests/test-c-snprintf.c: New file.
30370         * tests/test-c-snprintf.sh: New file.
30372         New module 'c-vsnprintf'.
30373         * modules/c-vsnprintf: New file.
30374         * modules/c-vsnprintf-tests: New file.
30375         * lib/c-vsnprintf.c: New file.
30376         * lib/c-vsnprintf.h: New file.
30377         * tests/test-c-vsnprintf.c: New file.
30378         * tests/test-c-vsnprintf.sh: New file.
30380         New module 'c-vasprintf'.
30381         * modules/c-vasprintf: New file.
30382         * modules/c-vasprintf-tests: New file.
30383         * lib/c-asprintf.c: New file.
30384         * lib/c-vasprintf.c: New file.
30385         * lib/c-vasprintf.h: New file.
30386         * tests/test-c-vasprintf.c  +: New file.
30387         * tests/test-c-vasprintf.sh: New file.
30389         New module 'c-xvasprintf'.
30390         * modules/c-xvasprintf: New file.
30391         * modules/c-xvasprintf-tests: New file.
30392         * lib/c-xasprintf.c: New file.
30393         * lib/c-xvasprintf.c: New file.
30394         * lib/c-xvasprintf.h: New file.
30395         * tests/test-c-xvasprintf.c: New file.
30396         * tests/test-c-xvasprintf.sh: New file.
30398 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
30400         argp: better 'inline'
30401         Use extern-inline module to declare extern inline functions.
30402         This avoids some bogus warning diagnostics.  Problem discovered
30403         when modifying GNU tar to use the manywarnings module.
30404         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
30405         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
30406         Define based on extern-inline.
30407         * modules/argp (Depends-on): Add extern-inline.
30409 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30411         filemode, sys_stat: Handle MPX files a la AIX.
30412         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
30413         * lib/sys_stat.in.h (S_ISMPX): New macro.
30414         * tests/test-sys_stat.c: Add tests for MPX files.
30416 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30418         x-to-1: honor $PERL
30419         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
30420         a chance to use his preferred version of Perl.  This is typically
30421         required by Darwin users whose default /usr/bin/perl does not have all
30422         the libraries required by help2man, and who need to use their MacPorts
30423         installation of Perl instead.
30425 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
30427         gnu-web-doc-update: add all the new files, even in new directories
30428         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
30429         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
30430         Use it.
30431         (main): Don't use cvsutils to get the list of unknown files,
30432         just add all the existing files and directories.
30434 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
30436         gnu-web-doc-update: improve --help
30437         * build-aux/gnu-web-doc-update: Move comments into --help.
30439 2012-12-07  Eric Wong  <normalperson@yhbt.net>
30441         mountlist: recognize more "dummy" file systems
30442         * lib/mountlist.c (ME_DUMMY_0):
30443         Add these dummy FS names to the list:
30444         - "debugfs" virtual filesystem for kernel debugging
30445         - "devpts" PTY slave filesystem
30446         - "devtmpfs" device filesystem on top of tmpfs/ramfs
30447         - "fusectl" control filesystem for FUSE
30448         - "mqueue" enumerates POSIX message queues
30449         - "rpc_pipefs" kernel <-> userspace bridge for NFS
30450         - "sysfs" is for exporting kernel objects
30451         - "devfs" device filesystem for Linux 2.4 and FreeBSD
30453 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
30455         extern-inline: avoid incompatibility with Darwin Libc
30456         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
30457         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
30458         Problem reported by Akim Demaille in
30459         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
30461 2012-12-11  Simon Josefsson  <simon@josefsson.org>
30463         gnupload: Work with GnuPG using gpg-agent (for smartcards).
30464         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
30465         let it handle password prompting.
30467 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
30469         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
30470         * lib/canonicalize.c (canonicalize_filename_mode):
30471         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
30472         fetching the current directory.  Don't overrun the beginning of
30473         rpath if there's no slashes after the MS-Windows drive letter.
30475 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
30477         maint.mk: avoid extra forks
30478         * top/maint.mk (_cfg_mk): The GNU make manual documents that
30479         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
30480         So use that instead of "$(shell test -f FILE && echo FILE)".
30482 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30484         vasnprintf: fix ASCII_ONLY typo
30485         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30486         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30487         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
30488         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
30489         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
30491 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30493         list, oset, xlist, xoset: fix extern inline issue with C99
30494         This was introduced by my recent changes for 'inline'.
30495         Problem reported for gettext by Daiki Ueno in
30496         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
30497         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
30498         (gl_list_nx_create, gl_list_size, gl_list_node_value)
30499         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
30500         (gl_list_previous_node, gl_list_get_at)
30501         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
30502         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
30503         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
30504         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
30505         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
30506         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
30507         (gl_list_iterator_free, gl_sortedlist_search)
30508         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
30509         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
30510         (gl_sortedlist_remove):
30511         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
30512         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
30513         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
30514         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
30515         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
30516         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
30517         (gl_list_add_at, gl_sortedlist_add):
30518         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
30519         Wrap these extern decls inside "#if 0", because they are implemented
30520         as inline functions, and extern inline is not what's wanted here.
30521         It would simplify these .h files to remove the extern decls entirely,
30522         although a downside would be less-clear separation between
30523         specification and implementation.
30525 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
30527         sys_stat: no 'static inline'
30528         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
30529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
30531         extern-inline: no 'static inline'
30532         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30533         Do not require AC_C_INLINE.
30534         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
30535         'static inline', for older compilers.
30537         snippet/warn-on-use: no 'static inline'
30538         * build-aux/snippet/warn-on-use.h:
30539         Remove unnecessary 'inline' in comment.
30541         rbtree-list, rbtreehash-list: no 'static inline'
30542         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
30543         * lib/gl_anytree_list2.h (node_at):
30544         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
30545         (gl_oset_first, add_nodes_to_buckets):
30546         Now static, not static inline.
30548         regex: no 'static inline'
30549         * lib/regex_internal.c (calc_state_hash):
30550         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
30551         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
30552         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
30553         Now static, not static inline.
30554         (inline) [__GNUC__ < 3 && _LIBC]:
30555         Remove macro; no longer needed.
30557         xvasprintf: no 'static inline'
30558         * lib/xvasprintf.c (xstrcat):
30559         Now static, not static inline.
30560         * m4/xvasprintf.m4 (gl_XVASPRINTF):
30561         Do not require AC_C_INLINE.
30563         parse-datetime, parse-duration: no 'static inline'
30564         * lib/parse-datetime.y (to_uchar):
30565         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
30566         (scale_n_add):
30567         Now static, not static inline.
30568         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
30569         * modules/parse-duration (configure.ac):
30570         Do not require AC_C_INLINE.
30572         getaddrinfo: no 'static inline'
30573         * lib/getaddrinfo.c (validate_family):
30574         Now static, not static inline.
30575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
30576         Do not require AC_C_INLINE.
30578         ftruncate, fts, lstat, openat, raise: no 'static inline'
30579         * lib/ftruncate.c (chsize_nothrow):
30580         * lib/fts.c (opendirat, diropen):
30581         * lib/lstat.c (orig_lstat):
30582         * lib/openat.c (orig_openat):
30583         * lib/raise.c (raise_nothrow):
30584         Now static, not static inline.
30585         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
30586         * m4/fts.m4 (gl_FUNC_FTS_CORE):
30587         * m4/lstat.m4 (gl_PREREQ_LSTAT):
30588         * m4/openat.m4 (gl_PREREQ_OPENAT):
30589         * m4/raise.m4 (gl_PREREQ_RAISE):
30590         Do not require AC_C_INLINE.
30592         fflush, stat: no 'static inline'
30593         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30594         (clear_ungetc_buffer, disable_seek_optimization)
30595         (restore_seek_optimization, update_fpos_cache):
30596         * lib/stat.c (orig_stat):
30597         Now static, not static inline.
30598         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
30599         (update_fpos_cache):
30600         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
30601         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
30602         * m4/stat.m4 (gl_PREREQ_STAT):
30603         Do not require AC_C_INLINE.
30605         error, filevercmp: no 'static inline'
30606         * lib/error.c (is_open, flush_stdout):
30607         * lib/filevercmp.c (order):
30608         Now static, not static inline.
30609         * m4/error.m4 (gl_PREREQ_ERROR):
30610         * modules/filevercmp (configure.ac):
30611         Do not require AC_C_INLINE.
30613         dup, execute, fatal-signal, etc.: no 'static inline'
30614         * lib/dup.c (dup_nothrow):
30615         * lib/execute.c (nonintr_close, nonintr_open):
30616         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
30617         * lib/fopen.c (orig_fopen):
30618         * lib/freadseek.c (freadptrinc):
30619         * lib/freopen.c (orig_freopen):
30620         * lib/fstat.c (orig_fstat, fstat_nothrow):
30621         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
30622         (get_rusage_as_via_iterator):
30623         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
30624         * lib/getdtablesize.c (_setmaxstdio_nothrow):
30625         * lib/isatty.c (_isatty_nothrow):
30626         * lib/open.c (orig_open):
30627         * lib/read.c (read_nothrow):
30628         * lib/sigprocmask.c (signal_nothrow):
30629         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
30630         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
30631         * lib/wait-process.c (unregister_slave_subprocess):
30632         * lib/write.c (write_nothrow):
30633         Now static, not static inline.
30634         * lib/spawn-pipe.c (nonintr_open): Define only if
30635         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
30636         * m4/dup.m4 (gl_PREREQ_DUP):
30637         * m4/execute.m4 (gl_EXECUTE):
30638         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
30639         * m4/fopen.m4 (gl_PREREQ_FOPEN):
30640         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
30641         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
30642         * m4/fstat.m4 (gl_PREREQ_FSTAT):
30643         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
30644         * m4/isatty.m4 (gl_PREREQ_ISATTY):
30645         * m4/open.m4 (gl_PREREQ_OPEN):
30646         * m4/read.m4 (gl_PREREQ_READ):
30647         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
30648         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
30649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
30650         * m4/wait-process.m4 (gl_WAIT_PROCESS):
30651         * m4/write.m4 (gl_PREREQ_WRITE):
30652         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
30653         Do not require AC_C_INLINE.
30655         c-strtod, memcoll, readutmp: no 'static inline'
30656         * lib/c-strtod.c (c_locale):
30657         * lib/memcoll.c (strcoll_loop):
30658         * lib/readutmp.c (desirable_utmp_entry):
30659         Now static, not static inline.
30660         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
30661         * m4/memcoll.m4 (gl_MEMCOLL):
30662         * m4/readutmp.m4 (gl_READUTMP):
30663         Do not require AC_C_INLINE.
30665         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
30666         * lib/arctwo.c (to_uchar):
30667         * lib/md4.c (set_uint32):
30668         * lib/md5.c (set_uint32):
30669         * lib/sha1.c (set_uint32):
30670         * lib/sha256.c (set_uint32):
30671         * lib/sha512.c (set_uint64):
30672         Now static, not static inline.  This is a bit simpler, and doesn't
30673         affect performance with GCC and default optimization.
30674         * m4/arctwo.m4 (gl_ARCTWO):
30675         * m4/md4.m4 (gl_MD4):
30676         * m4/md5.m4 (gl_MD5):
30677         * m4/sha1.m4 (gl_SHA1):
30678         * m4/sha256.m4 (gl_SHA256):
30679         * m4/sha512.m4 (gl_SHA512):
30680         Do not require AC_C_INLINE.
30682         cond, lock, thread: better 'inline'
30683         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
30684         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
30685         New macros.  Use them instead of static inline, for header functions.
30686         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
30687         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
30688         * lib/glthread/lock.c (gl_waitqueue_init)
30689         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
30690         * lib/glthread/thread.c (get_current_thread_handle):
30691         Change 'static inline' to 'inline'.
30692         * lib/glthread/cond.h, lib/glthread/thread.h:
30693         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30694         * m4/cond.m4 (gl_COND):
30695         * m4/lock.m4 (gl_PREREQ_LOCK):
30696         * m4/thread.m4 (gl_THREAD):
30697         Do not require AC_C_INLINE.
30698         * modules/cond, modules/thread (Depends-on): Add extern-inline.
30700         chdir-long, cycle-check, savewd: better 'inline'
30701         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
30702         (find_non_slash):
30703         * lib/cycle-check.c (is_zero_or_power_of_two):
30704         * lib/savewd.c (savewd_delegating):
30705         Change 'static inline' to 'inline'.
30706         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
30707         Replace all remaining uses of 'static inline' with it.
30708         * lib/savewd.h:
30709         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30710         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
30711         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30712         * m4/savewd.m4 (gl_SAVEWD):
30713         Do not require AC_C_INLINE.
30714         * modules/savewd (Depends-on): Add extern-inline.
30716         base32, base64: no need for 'inline'
30717         * lib/base32.c (to_uchar, get_8, decode_8):
30718         * lib/base64.c (to_uchar, get_4, decode_4):
30719         Change 'static inline' to 'inline'.
30720         * m4/base32.m4 (gl_PREREQ_BASE32):
30721         * m4/base64.m4 (gl_PREREQ_BASE64):
30722         Do not require AC_C_INLINE.
30724         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
30725         * lib/gl_array_oset.c (gl_array_nx_add_at):
30726         (gl_array_remove_at):
30727         * lib/gl_linkedhash_list.c (hash_resize_after_add)
30728         (add_to_bucket, remove_from_bucket):
30729         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
30730         Change 'static inline' to 'static', as it's simpler to omit
30731         'inline' unless there's a significant performance advantage.
30733         list, oset, xlist, xoset, xsublist: simplify via extern inline
30734         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
30735         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
30736         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
30737         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
30738         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
30739         New macro.  Replace all uses of 'static inline' with it.
30740         [HAVE_INLINE]: Implement functions as *_INLINE functions,
30741         instead of as macros FOO that are defined to static inline
30742         functions FOO_inline.
30743         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
30744         * lib/gl_xsublist.c:
30745         Reimplement from scratch, by defining the corresponding *_INLINE
30746         macro and including the corresponding .h file.  This is simpler.
30747         * modules/list, modules/oset, modules/xlist, modules/xoset:
30748         (Files): Remove m4/gl_list.m4.
30749         (configure.ac): Remove gl_LIST.
30750         * m4/gl_list.m4: Remove.
30751         * modules/list, modules/oset, modules/xlist, modules/xoset:
30752         * modules/xsublist:
30753         (Depends-on): Depend on extern-inline, not inline.
30755         xalloc: better 'inline'
30756         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
30757         New macro.  Replace all uses of 'static inline' with it.
30758         (static_inline): Remove.
30759         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30760         Let 'extern inline' do the work automatically, instead of doing
30761         it by hand.
30762         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
30763         Remove.  All uses removed.
30764         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
30766         gethrxtime: better 'inline'
30767         * lib/xtime.c: New file.
30768         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
30769         * lib/xtime.h (XTIME_INCLUDE):
30770         New macros.  Replace all uses of 'static inline' with them.
30771         * lib/gethrxtime.c (gethrxtime): Define only if
30772         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
30773         this source file is now always compiled, because of the extern inline.
30774         * lib/gethrxtime.h, lib/xtime.h:
30775         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30776         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
30777         if gethrtime works, as they're not needed in that case.
30778         (gl_XTIME): Do not require AC_C_INLINE.
30779         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
30780         compiled now.  Move the check into gl_GETHRXTIME.
30781         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
30782         (Depends-on): Add extern-inline.
30783         (configure.ac): gethrxtime is always compiled now.
30784         (lib_SOURCES): Add gethrxtime.c.
30786         wctype-h: better 'inline'
30787         * lib/wctype-h.c: New file.
30788         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
30789         New macro.  Replace all uses of 'static inline' with it.
30790         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30791         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
30792         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
30793         (Depends-on): Add extern-inline.
30795         unistd: better 'inline'
30796         * lib/unistd.c: New file.
30797         * lib/unistd.in.h (_GL_UNISTD_INLINE):
30798         New macro.  Replace all uses of 'static inline' with it.
30799         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30800         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
30801         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
30802         (Depends-on): Add extern-inline.
30804         sys_socket: better 'inline'
30805         * lib/sys_socket.c: New file.
30806         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
30807         New macro.  Replace all uses of 'static inline' with it.
30808         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
30810         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
30811         (Depends-on): Add extern-inline.
30813         stdio: better 'inline'
30814         * lib/stdio.c: New file.
30815         * lib/stdio.in.h (_GL_STDIO_INLINE):
30816         New macro.  Replace all uses of 'static inline' with it.
30817         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30818         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
30819         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
30820         (Depends-on): Add extern-inline.
30822         sigaction: better 'inline'
30823         * lib/sig-handler.c: New file.
30824         * lib/sig-handler.h (SIG_HANDLER_INLINE):
30825         New macro.  Replace all uses of 'static inline' with it.
30826         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30827         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
30828         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
30829         (Depends-on): Add extern-inline.
30831         selinux-h: better 'inline'
30832         * lib/se-context.c, lib/se-selinux.c: New files.
30833         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
30834         * lib/se-context.in.h (SE_CONTEXT_INLINE):
30835         New macro.  Replace all uses of 'static inline' with it.
30836         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30837         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
30838         New macro.  Replace all uses of 'static inline' with it.
30839         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30840         * modules/selinux-h (Files, lib_SOURCES):
30841         Add lib/se-context.c, lib/se-selinux.c.
30842         (Depends-on): Add extern-inline.
30843         (configure.ac): Do not require AC_C_INLINE.
30845         pthread: better 'inline'
30846         * lib/pthread.c: New file.
30847         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
30848         New macro.  Replace all uses of 'static inline' with it.
30849         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30850         * m4/pthread.m4 (gl_PTHREAD_CHECK):
30851         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
30852         * modules/pthread (Files): Add lib/pthread.c.
30853         (Depends-on): Add extern-inline.
30855         math: better 'inline'
30856         * lib/math.c: New file.
30857         * lib/math.in.h (_GL_MATH_INLINE):
30858         New macro.  Replace all uses of 'static inline' with it.
30859         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30860         * m4/math_h.m4 (gl_MATH_H):
30861         Do not require AC_C_INLINE.
30862         * modules/math (Files, lib_SOURCES):
30863         Add lib/math.c.
30864         (Depends-on): Add extern-inline.
30866         count-one-bits: better 'inline'
30867         * lib/count-one-bits.c: New file.
30868         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
30869         New macro.  Replace all uses of 'static inline' with it.
30870         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30871         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
30872         Do not require AC_C_INLINE.
30873         * modules/count-one-bits (Files, lib_SOURCES):
30874         Add lib/count-one-bits.c.
30875         (Depends-on): Add extern-inline.
30877         count-leading-zeros: better 'inline'
30878         * lib/count-leading-zeros.c: New file.
30879         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
30880         New macro.  Replace all uses of 'static inline' with it.
30881         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30882         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
30883         Do not require AC_C_INLINE.
30884         * modules/count-leading-zeros (Files, lib_SOURCES):
30885         Add lib/count-leading-zeros.c.
30886         (Depends-on): Add extern-inline.
30888         bitrotate: better 'inline'
30889         * lib/bitrotate.c: New file.
30890         * lib/bitrotate.h (BITROTATE_INLINE):
30891         New macros.
30892         Replace all uses of 'static inline' with them.
30893         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30894         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
30895         (Depends-on): Add extern-inline.
30896         (configure.ac): Do not require AC_C_INLINE.
30898 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
30900         maint.mk: avoid gratuitous failure
30901         Reported by Stefano Lattarini in
30902         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
30903         * top/maint.mk (public-submodule-commit): Quote more safely.
30905 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
30907         canonicalize, canonicalize-lgpl: support MS-Windows file names
30908         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
30909         for test cases, which it'd be nice to add at some point.
30910         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
30911         * lib/canonicalize.c (canonicalize_filename_mode):
30912         * lib/canonicalize-lgpl.c (__realpath):
30913         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
30914         slash is at the beginning of the file name.  Use ISSLASH, instead
30915         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
30916         the first character with '/'.  Test for
30917         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
30918         with a drive letter.
30919         * lib/canonicalize.c (SLASHES): New macro.
30920         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
30922 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
30924         fts: introduce FTS_VERBATIM
30925         * lib/fts_.h (FTS_VERBATIM): New bit flag.
30926         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
30927         * lib/fts.c (fts_open): Honor it.
30929 2012-11-09  Pádraig Brady  <P@draigBrady.com>
30931         getlogin-tests: allow errno == ENXIO
30932         * tests/test-getlogin.c (main): Skip tests if getlogin fails
30933         with errno == ENXIO (No controlling tty).
30934         getlogin_r-tests: Likewise. Also allow errno == ENOENT
30935         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
30936         with errno == ENOENT.  This was reported to happen in various
30937         situations on GNU/Linux.
30939 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30941         getlogin-tests: allow errno == ENOENT
30942         * tests/test-getlogin.c (main): Skip tests if getlogin fails
30943         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
30944         when running a test in an Emacs shell buffer.
30946 2012-11-08  Jim Meyering  <jim@meyering.net>
30948         tests/nap.h: avoid warning about unused variable
30949         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
30951         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
30952         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
30953         white space before each of the special-cased file names, to avoid
30954         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
30955         in http://bugs.gnu.org/12830.
30957 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30959         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
30960         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
30961         fails with errno == EBADF when fd is opened with O_PATH.
30962         Reported by Jim Meyering in
30963         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
30964         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
30965         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
30967 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30969         test-utimens: speed up by taking shorter naps
30970         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
30971         New functions.
30972         (nap): Use them, to do a better job of guessing the delay.
30973         On Fedora 17 with ext4 atop md atop hard disks, this made
30974         test-utimens run 10x faster, because the test napped for
30975         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
30976         <http://bugs.gnu.org/12820#11>.
30978 2012-11-07  Jim Meyering  <jim@meyering.net>
30980         mountlist.c: fix a compilation failure
30981         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
30982         I introduced while transforming commit v0.0-7683-g613bcb6
30984 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30986         errno: port to LynxOS 178 2.2.2
30987         Problem reported by Joel Brobecker in
30988         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
30989         * doc/posix-headers/errno.texi (errno.h): Document this.
30990         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
30991         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
30992         Supply a string for EILSEQ.
30993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
30995 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30997         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
30998         Linux kernel 2.6.39 introduced O_PATH (see
30999         <http://lwn.net/Articles/433854/>) and this is a better fallback
31000         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
31001         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
31002         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
31003         * lib/fcntl.in.h (O_ACCMODE):
31004         * tests/test-fcntl-h.c (main):
31005         Do not reject O_ACCMODE merely because it has more than the
31006         minimal number of bits, as POSIX allows extensions here.
31008 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
31010         mountlist: do not classify a bind-mounted dir entry as "dummy"
31011         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
31012         the "none"-testing clause.
31013         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
31014         exception for bind-mounted directories.
31016 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
31018         quote: provide a means to escape strings with nul characters
31019         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
31020         (quote, quote_n): Rename formal arguments for consistency with
31021         quotearg.
31023 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31025         test-raise: don't assume 199 is an invalid signal
31026         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
31028         sh-quote-tests: port to Solaris 9
31029         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
31030         Problem reported by Dagobert Michelsen in
31031         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
31033 2012-10-28  Jim Meyering  <jim@meyering.net>
31035         maint.mk: rename a new configurable variable
31036         * top/maint.mk (_gl_translatable_string_re): Rename from
31037         translation-markers: _gl_ prefix to insulate from user Makefile code,
31038         and the _re suffix to inform that it's a regular expression.
31040 2012-10-26  Eric Blake  <eblake@redhat.com>
31042         maint.mk: let packages tweak sc_po_check pattern
31043         * top/maint.mk (sc_po_check): Add translation-markers, to allow
31044         finding files with other translation markers.
31046 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31048         euidaccess: speed up 'configure' on GNU hosts
31049         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
31050         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
31051         it's needed only in this case.  Use AC_CHECK_DECLS, not
31052         AC_CHECK_DECLS_ONCE.
31053         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
31054         or AC_REQUIRE for AC_FUNC_GETGROUPS.
31056         * lib/regexec.c (re_search_internal): Fix grammar in comment.
31058 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31060         fchmodat, fchownat, fstatat: port to non-inlining compilers
31061         Problem reported for FreeBSD 9 by Jim Meyering in
31062         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
31063         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
31064         New files, which define FCHMODAT_INLINE etc.
31065         * lib/fchmodat.c (FCHMODAT_INLINE):
31066         * lib/fchownat.c (FCHOWNAT_INLINE):
31067         * lib/fstatat.c (FSTATAT_INLINE):
31068         Remove, as chmodat.c etc. now do this.
31069         * modules/fchmodat (Files): Add lib/chmodat.c.
31070         * modules/fchownat (Files): Add lib/chownat.c.
31071         * modules/fstatat (Files): Add lib/statat.c.
31073 2012-10-15  Jim Meyering  <jim@meyering.net>
31075         fchmodat.c, fchownat.c: compile-impeding typos
31076         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
31077         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
31078         Introduced in commit v0.0-7636-gd202279.
31080 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
31082         fcntl-h: support GNU flags like O_IGNORE_CTTY
31083         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
31084         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
31085         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
31086         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
31087         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
31088         Define to 0 if not already defined.
31089         * tests/test-fcntl-h.c: Test these new flags.
31091 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31093         faccessat, etc.: support AT_FDCWD-only use
31094         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
31095         this function only if its first argument is AT_FDCWD.
31096         Emacs wants faccessat for AT_EACCESS but not for any first-arg
31097         values other than AT_FDCWD, so it doesn't want all the openat
31098         machinery with fchdir etc.
31099         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
31100         * modules/fstatat, modules/mkdirat, modules/openat (Files):
31101         * modules/unlinkat (Files):
31102         Remove lib/openat-priv.h, as at-internal supplies this file.
31103         Removing this file here allows us to support programs like Emacs
31104         that avoid at-internal.
31106         faccessat: speed up 'configure' on mainstream hosts
31107         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
31108         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
31109         since it's only on unusual platforms that we need to check for
31110         'access', and it's better not to slow 'configure' down on all
31111         platforms.
31113         faccessat: port to Solaris 10
31114         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
31115         Needed on Solaris 10, which doesn't have AT_EACCESS,
31116         so we need the Gnulib fcntl.h, which defines it.
31118 2012-10-14  Pádraig Brady  <P@draigBrady.com>
31119         canonicalize: fix C89 compilation
31120         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
31121         declarations so C89 is supported.  Also remove the comment
31122         referencing memorty allocation as the suggested feature could
31123         not be implemented as suggested.
31124         Reported by Michael Goffioul.
31126 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31128         group-member: omit unnecessary dependencies
31129         This is for Emacs, which has its own allocator and where we
31130         don't want to use xalloc.
31131         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
31132         since we no longer use xmalloc.  Do not include stdbool.h, since
31133         the changes below happen to remove the only use of bool.
31134         (GROUPBUF_SIZE): New constant.
31135         (struct group_info): Remove n_groups member.  Add groupbuf member.
31136         This lets us get the groups without using malloc, usually.
31137         (free_group_info, get_group_info): Adjust to this.
31138         (get_group_info): Return the number of groups found, or -1 on error.
31139         Use plain malloc not xmalloc, and treat its failure as if there
31140         are no groups, as the user already loses in case of error.
31141         (group_member): Simplify, based on changes to get_group_info.
31142         * modules/group-member (Depends-on): Remove dependencies on
31143         xalloc and stdbool.  Add dependency on xalloc-oversized.
31145 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
31147         gethrxtime: port to C++
31148         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
31150 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
31152         ptsname: fix macro-name typo
31153         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
31155 2012-10-03  Simon Josefsson  <simon@josefsson.org>
31157         inttostr: Relax license.
31158         * modules/inttostr (License): Change from LGPL to LGPLv2+.
31160 2012-10-03  Eric Blake  <eblake@redhat.com>
31162         ptsname_r: support ptys returned by FreeBSD posix_openpt
31163         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
31164         lives in /dev/pts/.
31166 2012-10-02  Eric Blake  <eblake@redhat.com>
31168         pselect: reject invalid file descriptors
31169         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
31170         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
31171         * modules/pselect (Depends-on): Add dup2.
31172         * doc/posix-functions/pselect.texi (pselect): Document this.
31174         select: reject invalid file descriptors
31175         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
31176         * lib/select.c (rpl_select) [!win32]: Work around it.
31177         * modules/select (Depends-on): Add dup2.
31178         * doc/posix-functions/select.texi (select): Document this.
31180         select: enhance test
31181         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
31182         New functions.
31183         (test_function): Enhance test.
31184         (do_select_bad_fd): Avoid any stale errno values.
31186         ptsname: reject invalid file descriptors
31187         http://www.austingroupbugs.net/view.php?id=503
31188         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
31189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
31190         * modules/stdlib (Makefile.am): Replace witness.
31191         * lib/stdlib.in.h (ptsname): Allow for replacement.
31192         * modules/ptsname (configure.ac): Trigger replacement.
31193         * doc/posix-functions/ptsname.texi (ptsname): Document this.
31195 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
31197         hash-pjw-bare: new module
31198         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
31199         * lib/hash-pjw-bare.h: Likewise.
31200         * modules/hash-pjw-bare: New file.
31201         * MODULES.html.sh (Misc): Add it.
31203 2012-10-02  Eric Blake  <eblake@redhat.com>
31205         manywarnings: cater to more gcc infelicities
31206         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
31207         -Wuninitialized without -O.
31209 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
31211         select, poll tests: Make setsockopt invocation effective.
31212         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
31213         the bind() call.
31214         * tests/test-select.h (open_server_socket): Likewise.
31216 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
31218         sockets, sys_stat: restore AC_C_INLINE
31219         This undoes the 2012-09-22 patch.
31220         * m4/sockets.m4 (gl_SOCKETS):
31221         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
31222         Restore AC_C_INLINE, since MSVC requires __inline or _inline
31223         and does not support plain 'inline'.  Reported by Bruno Haible in
31224         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
31226 2012-09-30  Bruno Haible  <bruno@clisp.org>
31228         localeconv tests: Avoid test failure on OpenIndiana.
31229         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
31230         skip the 'grouping' and 'mon_grouping' tests.
31231         Reported by Jim Meyering.
31233 2012-09-30  Bruno Haible  <bruno@clisp.org>
31235         havelib: Follow libtool developments.
31236         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
31237         Suggested by Simon Josefsson.
31239 2012-09-29  Jim Meyering  <meyering@redhat.com>
31241         fstatat.c: fix a compile-impeding typo
31242         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
31243         Introduced in commit v0.0-7636-gd202279.
31244         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
31246 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
31248         extern-inline: provide a -Wundef safe config.h
31249         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
31250         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
31251         to produce a -Wundef warning free config.h.
31253 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31255         hash-pjw: relax license to LGPLv2+
31256         * modules/hash-pjw (License): Relax, with consent of author.
31258 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
31260         maint.mk: fix strict vs. lazy variable issues with RELEASE
31261         * top/maint.mk (_equal): New function.
31262         (member_check): Strip the result to avoid spurious spaces.
31263         (url_dir_list): Do not use ifeq, which is strict, as it will
31264         require RELEASE_TYPE to be defined.
31265         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
31266         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
31267         (announcement_Cc_alpha,announcement_mail_headers_alpha)
31268         (announcement_Cc_beta,announcement_mail_headers_beta)
31269         (announcement_Cc_stable,announcement_mail_headers_stable): these.
31270         (release): Do not depend on $(release-type), as it forces its
31271         evaluation.  Bounce to it.
31273 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
31275         maint.mk: formatting changes
31276         * top/maint.mk: Indent bodies of if's.
31278 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
31280         maint.mk: factor the validation of RELEASE_TYPE
31281         With help from Jim Meyering.
31282         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
31283         * top/maint.mk (_empty, _sp): Move their definition earlier.
31284         (member-check, release-type): New.
31285         Use the latter instead of $(RELEASE_TYPE).
31286         Remove now useless local checks.
31288 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
31290         maint.mk: provide "make upload" to ease uploading
31291         See
31292         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
31293         Do not depend simply on the current $(VERSION), as there may have been
31294         new commits since the tarball generation.  Rather, rely on $(RELEASE),
31295         as "make release-commit" already does.
31297         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
31298         "make TYPE".
31300         * top/maint.mk (upload_command, upload, release): New.
31301         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
31302         (VERSION): first word of $(RELEASE) is always right.
31303         (emit_upload_commands): Adjust.
31304         * top/README-release: Update.
31306 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
31308         maint.mk: silent rules
31309         With help from Stefano Lattarini.
31310         * top/maint.mk (writable-files): Use $(AM_V_GEN).
31311         (announcement): Use $(AM_V_at).
31313 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31315         localename: port gl_locale_name_thread_unsafe to FreeBSD
31316         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
31317         and use the simpler FreeBSD implementation on Mac OS X as well.
31318         Original idea suggested by Ed Maste in
31319         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
31321 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31323         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
31324         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
31325         * lib/mbuiter.c, lib/xsize.c: New files.
31326         * lib/binary-io.h (BINARY_IO_INLINE):
31327         * lib/eealloc.h (EEALLOC_INLINE):
31328         * lib/mbfile.h (MBFILE_INLINE):
31329         * lib/mbiter.h (MBITER_INLINE):
31330         * lib/mbuiter.h (MBUITER_INLINE):
31331         * lib/xsize.h (XSIZE_INLINE):
31332         New macros.
31333         Replace all uses of 'static inline' with them.
31334         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31335         * m4/eealloc.m4 (gl_EEALLOC):
31336         * m4/mbfile.m4 (gl_MBFILE):
31337         * m4/mbiter.m4 (gl_MBITER):
31338         * m4/xsize.m4 (gl_XSIZE):
31339         Do not require AC_C_INLINE.
31340         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
31341         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
31342         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
31343         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
31344         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
31345         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
31346         * modules/binary-io, modules/eealloc, modules/mbfile:
31347         * modules/mbiter, modules/mbuiter:
31348         (Depends-on): Add extern-inline.
31350         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
31351         * lib/pipe-filter-aux.c: New file.
31352         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
31353         Replace all uses of 'static inline' with it.
31354         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31355         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
31356         (filter_retcode): No real need for inline here.
31357         * modules/pipe-filter-gi, modules/pipe-filter-ii:
31358         (Files): Add lib/pipe-filter-aux.c.
31359         (Depends-on): Add extern-inline.
31360         (configure.ac): Do not require AC_C_INLINE.
31361         (lib_SOURCES): Add pipe-filter-aux.c.
31363         fdutimensat: omit unnecessary AC_C_INLINE
31364         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
31366         fchmodat, fchownat, fstatat: use extern-inline
31367         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
31368         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
31369         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
31370         New macros.
31371         * lib/openat.h:
31372         Replace all uses of 'static inline' with them.
31373         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31374         * modules/fchmodat, modules/fchownat, modules/fstatat:
31375         * modules/openat-h:
31376         (Depends-on):
31377         Add extern-inline.
31378         (configure.ac): Remove AC_C_INLINE.
31380         acl, mbchar, priv-set: use extern-inline
31381         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
31382         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
31383         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
31384         New macros.
31385         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
31386         Replace all uses of 'static inline' with it.
31387         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31388         * m4/acl.m4 (gl_FUNC_ACL):
31389         * m4/mbchar.m4 (gl_MBCHAR):
31390         * m4/priv-set.m4 (gl_PRIV_SET):
31391         Remove AC_C_INLINE, since 'inline' is no longer used directly.
31392         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
31393         Add extern-inline.
31395         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
31396         * m4/sockets.m4 (gl_SOCKETS):
31397         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
31398         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
31399         environments where it's already guaranteed to work, so we needn't
31400         check for it at 'configure'-time.
31402         tls-tests: omit unnecessary 'inline'
31403         * tests/test-tls.c (perhaps_yield): No longer inline.
31404         Simplicity and portability trump efficiency in test cases.
31406         utimens-tests: avoid unnecessary 'inline'
31407         * modules/fdutimensat-tests (configure.ac):
31408         * modules/futimens-tests (configure.ac):
31409         * modules/utimens-tests (configure.ac):
31410         * modules/utimensat-tests (configure.ac):
31411         Remove AC_C_INLINE.
31412         * tests/test-utimens-common.h (ctime_compare):
31413         No longer inline.  Simplicity and portability trump efficiency here.
31415         misc: don't limit commentary to inline functions
31416         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
31417         * lib/xalloc-oversized.h, lib/xsize.h:
31418         Contrast macros to functions in general, not just to inline functions,
31419         when the commentary does not apply only to inline functions.
31421 2012-09-20  Jim Meyering  <meyering@redhat.com>
31423         non-recursive-gnulib-prefix-hack: new module
31424         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
31425         the file that originated in Bison.
31426         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
31427         largely copied from a snippet that resided in bison's configure.ac.
31428         * modules/non-recursive-gnulib-prefix-hack: New file.
31429         * MODULES.html.sh (Support for maintaining and releasing projects):
31430         Add it.
31432 2012-09-18  Jim Meyering  <meyering@redhat.com>
31434         maint.mk: generalize _gl_tight_scope for non-recursive make
31435         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
31436         that *.h would describe additional .h files in the directory
31437         specified by $(_gl_TS_dir).  I.e., add this...
31438         (_gl_TS_other_headers): New variable.
31440         maint.mk: exempt trailing blanks found in "binary" files
31441         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
31442         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
31443         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31445 2012-09-17  Jim Meyering  <meyering@redhat.com>
31447         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
31448         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
31449         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
31450         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31452 2012-09-17  Jim Meyering  <meyering@redhat.com>
31454         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
31455         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
31456         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
31457         It is not in the same category as "exit (0)" or "exit (1)", and
31458         besides, I know of no symbolic name for that 77.  Reported by
31459         Richard W.M. Jones in
31460         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31462 2012-09-17  Jim Meyering  <meyering@redhat.com>
31464         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
31465         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
31466         all uses of #define, not just those that start in column 1.
31467         Richard W.M. Jones reported a false positive in
31468         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
31470 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31472         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
31473         * lib/localcharset.c (locale_charset) [DARWIN7]:
31474         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
31475         as these two values are incompatible.  Problem reported by Max Horn.
31476         For more discussion, please see
31477         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
31479         doc: document sticky-EOF issue
31480         * doc/posix-functions/fgetc.texi (fgetc):
31481         * doc/posix-functions/fgets.texi (fgets):
31482         * doc/posix-functions/fread.texi (fread):
31483         * doc/posix-functions/fscanf.texi (fscanf):
31484         * doc/posix-functions/getc.texi (getc):
31485         * doc/posix-functions/getchar.texi (getchar):
31486         * doc/posix-functions/scanf.texi (scanf):
31487         Mention that glibc and default Solaris do not conform to
31488         C99 and POSIX-2001 or later, with respect to how getchar
31489         etc. behave when feof reports nonzero.
31491 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
31493         poll: fix poll(0, NULL, msec)
31494         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
31495         but nfd is 0.  In that case poll should behave like select.
31497 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
31498             Paolo Bonzini  <bonzini@gnu.org>
31500         poll: fix for systems that can't recv() on a non-socket
31501         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
31502         is readable.  In this case POLLHUP will not be supported.
31503         * doc/posix-functions/poll.texi: Document this.
31505 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
31507         poll/select: document portability problems not fixed by Gnulib.
31508         * doc/posix-functions/poll.texi: poll does not work well on
31509         pipes under Windows.  It has the same limitations as select on
31510         BeOS.
31511         * doc/posix-functions/select.texi: select does not work well
31512         on pipes under Windows.
31514 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31516         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
31517         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
31518         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
31519         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
31521 2012-09-06  Eric Blake  <eblake@redhat.com>
31523         net_if: give more details about the bug being fixed
31524         * doc/posix-headers/net_if.texi: Add clarification.
31526 2012-09-05  Eric Blake  <eblake@redhat.com>
31528         net_if: new module
31529         * modules/net_if: New module, borrowing ideas from netinet_in.
31530         * m4/net_if_h.m4: New file.
31531         * lib/net_if.in.h: Likewise.
31532         * doc/posix-headers/net_if.texi (net/if.h): Document it.
31533         * MODULES.html.sh (lacking POSIX:2008): Likewise.
31534         * tests/test-net_if.c: Make function checks conditional.
31535         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
31537 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31539         readutmp: fix non-portable UT_PID use
31540         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
31541         Use `UT_PID (u) > 0' as absolute condition.
31543 2012-09-04  Jim Meyering  <meyering@redhat.com>
31545         fts: reduce two or more trailing spaces to just one, usually
31546         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
31547         or more slashes, trim all but the final one.  But if a name consists
31548         solely of two slashes, don't modify it.  If it consists solely of
31549         three or more slashes, strip all but one.
31551         This is part of the solution to a minor problem with rm:
31552         it would print a bogus ELOOP diagnostic when failing to remove
31553         the slash-decorated name of a symlink-to-directory:
31555             $ mkdir d && ln -s d s && env rm -r s/
31556             rm: cannot remove 's': Too many levels of symbolic links
31558         With the change below and a trivial don't-trim-trailing-slashes
31559         adjustment to remove.c, it does this:
31561             $ env rm -r s/
31562             rm: cannot remove 's/': Not a directory
31564         Improved by: Eric Blake
31566         fts: when there is no risk of overlap, use memcpy, not memmove
31567         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
31569 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31571         stdbool: be more compatible with mixed C/C++ compiles
31572         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
31573         Define to bool, true, false, respectively, as GCC's builtin
31574         stdbool.h does.  Problem reported by Michael Goffioul in
31575         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
31577 2012-08-28  Jim Meyering  <meyering@redhat.com>
31579         revert last change: it was not needed
31580         * tests/test-vc-list-files-git.sh: There's already a test for
31581         a working git, just below.
31583 2012-08-28  Jim Meyering  <meyering@redhat.com>
31585         tests: test-vc-list-files-git.sh: skip if git is not available
31586         * tests/test-vc-list-files-git.sh: Skip this test when git is
31587         not available.
31589 2012-08-26  Bruno Haible  <bruno@clisp.org>
31591         gnulib-tool: Remove no-op option --no-changelog.
31592         * gnulib-tool (func_usage): Don't mention --no-changelog.
31593         (do_changelog): Remove variable.
31594         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31596 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31598         doc: remove fdl-1.2.texi
31599         It is no longer used or maintained, and its use of @acronym
31600         is problematic.  See the thread containing
31601         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
31602         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
31603         * doc/old-licenses/fdl-1.2.texi: Remove.
31605         execinfo: port to FreeBSD
31606         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
31607         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
31608         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
31609         * modules/execinfo (Link): Add $(LIB_EXECINFO).
31611 2012-08-23  Jim Meyering  <meyering@redhat.com>
31613         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
31614         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
31615         to placate gcc's -Wold-style-declaration.
31617 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31619         doc: do not use @acronym
31620         * doc/inet_ntoa.texi (inet_ntoa):
31621         * doc/parse-datetime.texi (Seconds since the Epoch)
31622         (Specifying time zone rules):
31623         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
31624         Don't use @acronym.  Problem reported by John Darlington in
31625         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
31627 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31629         stdnoreturn: port to newer GCCs
31630         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
31631         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
31632         Problem reported by Jim Meyering in
31633         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
31634         Also, rename the 'test' function to a void a clash with the
31635         already-supplied 'main' function; this fixes a bug that incorrectly
31636         rejected GCC 4.7.1's <stdnoreturn.h>.
31637         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
31638         Document GCC problem.
31640 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
31642         pipe-filter: fix comment typo
31643         * lib/pipe-filter.h: Mention correct function.
31645 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
31647         execinfo: new module
31648         This is for Emacs.  Currently, it provides a no-effect stub
31649         on all platforms where it does not already work.
31650         It already works on glibc-based systems, and on Solaris 11.
31651         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
31652         New files.
31653         * doc/glibc-headers/execinfo.texi (execinfo.h):
31654         * MODULES.html.sh (Misc): Document it.
31656 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31658         extern-inline: support old GCC 'inline'
31659         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
31660         if available.  This applies to GCC versions 2.7 through 4.2, or
31661         when newer GCC is using -fgnu89-inline.  The goal is to address
31662         some of the performance issues mentioned by Bruno Haible in
31663         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
31665 2012-08-20  Eric Blake  <eblake@redhat.com>
31667         maint.mk: avoid redundant file name in message
31668         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
31669         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
31670         (sc_makefile_path_separator_check): Remove bogus $(ME).
31672 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
31674         timer-time: fix link order when static linking on glibc
31675         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
31676         _after_ -lrt so that it's significant.
31678 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31680         timespec: omit unnecessary AC_C_INLINE
31681         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
31683         stat-time: omit unnecessary AC_C_INLINE
31684         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
31685         Do not require AC_C_INLINE.
31687         ignore-value: omit unnecessary AC_C_INLINE
31688         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
31690         sys_select: avoid 'static inline'
31691         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
31693         mktime: avoid 'static inline'
31694         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
31695         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
31697 2012-08-19  Bruno Haible  <bruno@clisp.org>
31699         gnulib-tool: Improve coding style.
31700         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
31701         func_emit_lib_Makefile_am.
31702         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31704 2012-08-19  Bruno Haible  <bruno@clisp.org>
31706         gnulib-tool: Fix indentation.
31707         * gnulib-tool (func_import): Fix indentation.
31709 2012-08-19  Bruno Haible  <bruno@clisp.org>
31711         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
31712         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
31713         on the list of removed files.
31715 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31717         test-parse-datetime: avoid glibc leap-second glitch
31718         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
31719         with the 2012 rules.  Problem reported by Bruce Dubbs in
31720         <http://bugs.gnu.org/12206>.
31722 2012-08-14  Bruno Haible  <bruno@clisp.org>
31724         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
31725         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
31726         from argument.
31727         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31729 2012-08-14  Eric Blake  <eblake@redhat.com>
31731         ldexp: relax license
31732         * modules/ldexp (License): Trivial relax, since the module only
31733         provides a permissively licensed m4 file.
31735 2012-08-13  Bruno Haible  <bruno@clisp.org>
31737         gnulib-tool: Fix persistence of --witness-c-macro option.
31738         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
31739         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
31741 2012-08-11  Eric Blake  <eblake@redhat.com>
31743         count-leading-zeros: use a lookup table on non-gcc compilers
31744         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
31745         alternate implementation, suggested by Jim Meyering.
31747 2012-08-10  Eric Blake  <eblake@redhat.com>
31749         count-leading-zeros: new module
31750         * modules/count-leading-zeros: New module.
31751         * m4/count-leading-zeros.m4: New file.
31752         * lib/count-leading-zeros.h: Likewise.
31753         * modules/count-leading-zeros-tests: New test.
31754         * tests/test-count-leading-zeros.c: New file.
31755         * MODULES.html.sh (Integer arithmetic functions): Document it.
31757 2012-08-07  Simon Josefsson  <simon@josefsson.org>
31758             Jim Meyering  <meyering@redhat.com>
31760         maintainer-makefile: Fix syntax error with dash.
31761         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
31762         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
31764 2012-08-05  Jim Meyering  <meyering@redhat.com>
31766         extern-inline: also ignore -Wmissing-declarations
31767         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
31768         required with gcc-4.8.0-to-be.
31770         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
31771         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
31772         for /error ?([^,]*)/.  This avoids false-positives for strings like
31773         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
31775 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
31777         gnumakefile: better interaction with Automake-NG
31778         * modules/gnumakefile [Makefile.am]: The makefiles generated by
31779         Automake-NG always contain a definition of VPATH, even in non-VPATH
31780         builds (its value being simply '.' in that case).  So, in the
31781         'clean-GNUmakefile' rule, to determine whether running under a
31782         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
31783         '$(VPATH)' expands to the empty string.
31785 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
31787         base64: Use extern C scope in header file, for C++.
31788         * lib/base64.h: Add C++ namespace protection.
31790 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
31792         stat-time, timespec, u64: support naive out-of-dir builds
31793         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
31794         Use '#include "foo.h"', not '#include <foo.h>', when including
31795         one's own interface.  This works better when configuring with
31796         out-of-directory builds, since packages need not add an
31797         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
31799 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
31801         utimens: use extern-inline
31802         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
31803         * lib/utimens.h: Add copyright notice, since this is now large enough
31804         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31805         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
31806         * modules/utimens (Depends-on): Add extern-inline.
31808         u64: use extern-inline
31809         * lib/u64.c: New file.
31810         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31811         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
31812         * modules/u64 (Files): Add lib/u64.c.
31813         (Depends-on): Add extern-inline.
31814         (configure.ac): No need to require AC_C_INLINE, since extern-inline
31815         does that now.
31816         (lib_SOURCES): Add u64.c.
31818         timespec: use extern-inline
31819         * lib/timespec.c: New file.
31820         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31821         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
31822         * modules/timespec (Files): Add lib/timespec.c.
31823         (Depends-on): Add extern-inline.
31824         (lib_SOURCES): Add timespec.c.
31826         stat-time: use extern-inline
31827         * lib/stat-time.c: New file.
31828         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31829         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
31830         * modules/stat-time (Files): Add lib/stat-time.c.
31831         (Depends-on): Add extern-inline.
31832         (lib_SOURCES): Add stat-time.c.
31834         extern-inline: new module
31835         * modules/extern-inline, m4/extern-inline.m4: New files.
31836         This is for better support of 'extern inline' a la ISO C99,
31837         with a portable alternative on compilers that do not support
31838         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
31839         of the Emacs executable, when compiled with debugging disabled,
31840         which is a typical way that Emacs is built while developing.
31842 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
31844         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
31845         * build-aux/do-release-commit-and-tag: Move variable definitions
31846         together.
31847         ($branch): Instead of defaulting to "master", default to the current
31848         branch (as gnu-web-doc-update does).
31849         (help): Display the current values of the option arguments.
31850         * top/maint.mk (release-commit): New.
31851         * top/README-release: Simplify the corresponding step.
31853 2012-07-30  Eric Blake  <eblake@redhat.com>
31855         passfd: fix comment on recvfd
31856         * lib/passfd.c (recvfd): Fix comment.
31857         Reported by Jann Horn <jannhorn@googlemail.com>.
31859 2012-07-30  Jim Meyering  <meyering@redhat.com>
31861         maint.mk: avoid a sub-shell
31862         * top/maint.mk (release-prep): Remove unneeded sub-shell.
31864 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
31866         maint.mk: use silent-rules support from Automake
31867         * top/maint.mk (news-check, vc-diff-check, announcement)
31868         (no-submodule-changes, alpha beta stable, release-prep)
31869         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
31871 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
31873         maint.mk: provide a web-manual-update target
31874         * top/maint.mk: here.
31875         * top/README-release: Use it to simplify the web manual update step.
31877 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
31879         README-release: shorten the circuit to post a news
31880         * top/README-release: Point directly to the news submission form.
31882 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
31884         gnu-web-doc-update: fix --help
31885         * build-aux/gnu-web-doc-update: The information "top level" was written
31886         twice.
31888 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
31890         maint.mk: absolute VPATH issue
31891         * top/maint.mk (release-prep): Help Git find .git/.
31892         From Jim Meyering.
31894 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
31896         gitlog-to-changelog: fix previous change
31897         * build-aux/gitlog-to-changelog: Fix condition.
31898         Add missing ";".
31900 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
31902         gitlog-to-changelog: don't expect .git to be in $srcdir
31903         Reported by Bruno Haible.
31904         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
31905         * build-aux/gitlog-to-changelog (&git_dir_option): New.
31906         Use it.
31908 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
31910         maint.mk: absolute VPATH build fix
31911         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
31912         $(srcdir) is not a parent of $(builddir).
31914 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
31916         clean-temp: Fix memory leak.
31917         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
31918         'files' members of tmpdir.
31920 2012-07-27  Jim Meyering  <meyering@redhat.com>
31922         maint.mk: new rule: refresh-gnulib-patches
31923         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
31924         Use this rule to refresh them.
31925         * top/maint.mk (refresh-gnulib-patches): New rule.
31927 2012-07-24  Bruno Haible  <bruno@clisp.org>
31929         gnulib-tool: Fix handling of inctests variable.
31930         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
31931         Reported by Nick Bowler <nbowler@elliptictech.com>.
31933 2012-07-22  Bruno Haible  <bruno@clisp.org>
31935         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
31936         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
31937         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
31938         Remove exemption for getpass.h.
31939         Suggested by Eric Blake.
31941 2012-07-20  Eric Blake  <eblake@redhat.com>
31943         verify: document conflict with -Wnested-externs
31944         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
31946         maint.mk: forbid exit(-1)
31947         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
31949 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31951         fsusage: port back to Solaris
31952         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
31953         error (fsd not declared) on Solaris 10.  Reported privately by
31954         Andrew Borodin.
31956 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
31958         gnu-web-doc-update: fix error messages
31959         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
31961         gnu-web-doc-update: check the requirements.
31962         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
31963         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
31964         * build-aux/bootstrap (find_tool): Comment change.
31966 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
31968         maint.mk: minor simplication.
31969         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
31970         for default values.
31972 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
31974         gitlog-to-changelog: VPATH build issues
31975         If builddir is not a subdirectory of srcdir, running git from it will
31976         fail.
31977         * build-aux/gitlog-to-changelog (--srcdir): New option.
31979 2012-07-15  Bruno Haible  <bruno@clisp.org>
31981         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
31982         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
31983         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
31984         Remove exemption for fpending.h.
31985         Suggested by Eric Blake.
31987 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31989         pthread_sigmask: fix bug on FreeBSD 9
31990         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
31991         Include string.h.
31992         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
31993         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
31994         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
31995         but pthread_sigmask (1729, NULL, NULL) returns zero.
31996         See <http://bugs.gnu.org/11884>.
31997         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
31998         by inspecting whether the main call changed the old mask.
32000 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
32002         README-release: make it more legible
32003         * top/README-release: Improve typography slightly.
32005 2012-07-15  Jim Meyering  <meyering@redhat.com>
32007         maint: require that each sc_... command start with "@"
32008         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
32009         "make sc_maint" helps us avoid this nit.
32011 2012-07-15  Jim Meyering  <meyering@redhat.com>
32013         maint.mk: add leading "@" to quiet new "make syntax-check" rule
32014         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
32016 2012-07-13  Eric Blake  <eblake@redhat.com>
32018         maint.mk: new syntax check for HAVE_DECL checks
32019         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
32020         * cfg.mk
32021         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
32022         Exempt some false positives.
32023         Based on a report by Karel Zak.
32025         argp: make HAVE_DECL usage consistent
32026         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
32027         macros, not whether they are defined.
32028         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
32029         convention with other declaration checks.
32030         Reported by Karel Zak, with suggestions from Paul Eggert.
32032         stat-time: relax license to LGPLv2+
32033         * modules/stat-time (License): Relax, with consent of all authors.
32035         strndup: fix m4 usage error
32036         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
32037         defined, to either 0 or 1.
32038         Reported by Karel Zak.
32040 2012-07-11  Jim Meyering  <meyering@redhat.com>
32042         maint: enable the sc_avoid_if_before_free syntax-check rule
32043         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
32044         (if_before_free_offenders_): Define.
32045         (if_before_free_basename_re_): Define.
32046         Exempt current files with useless if-before-free.
32048 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32050         gettext: do not assume '#define ... defined ...' behavior
32051         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
32052         Do not use '#define FOO ... defined BAR ...', as the C standard says
32053         it's not portable to expect that this works after macro expansion.
32054         Problem reported for gzip by Steven M. Schweda in
32055         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
32057 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
32059         getloadavg: clean out old Emacs and Autoconf cruft
32060         See Glenn Morris in <http://bugs.gnu.org/11905>.
32061         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
32062         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
32063         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
32064         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
32066 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
32068         bootstrap: let warn be like tests/init.sh's warn_
32069         Reported by Jim Meyering.
32070         * build-aux/bootstrap (warn): Remove, replaced by...
32071         (warnf_, warn_): these.
32072         Adjust callers.
32073         Shorten messages that no longer fit in 80 columns.
32075 2012-07-09  Bruno Haible  <bruno@clisp.org>
32077         getopt: Simplify after Emacs changed.
32078         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
32079         (gl_GETOPT_IFELSE): Remove macro.
32081 2012-07-09  Jim Meyering  <meyering@redhat.com>
32083         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
32084         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
32086         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
32087         Bugs in both of those conspired to make the
32088         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
32089         _sc_search_regexp's handling of non-empty $in_files would filter
32090         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
32091         choice of in_files value meant there would be no match in most
32092         projects, due to the presence of two or more Makefile.in files.
32093         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
32094         Fix a bug in how a non-empty $$in_files was processed:
32095         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
32096         in spite of the name, it's a regexp, not a list of file names.
32098 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32100         getloadavg, getopt: fix commentary re configure.in
32101         Autoconf is deprecating the name 'configure.in', so change it to
32102         to the new name 'configure.ac' in a couple of places.
32103         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
32104         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
32105         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
32106         Emacs has renamed it to configure.ac, and it no longer refers
32107         to these macros anyway.
32109         timespec: mark functions with const attributes
32110         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
32111         Mark with _GL_ATTRIBUTE_CONST.
32113 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
32115         canonicalize[-lgpl]: handle "guessing" values when cross-building
32116         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32117         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
32118         matches "*yes" instead of just "yes".  Regression introduced in commit
32119         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
32121 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
32122             Bruno Haible  <bruno@clisp.org>
32124         canonicalize: make the right guess when cross-compiling to GNU
32125         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
32126         determine whether cross-compiling to glibc systems, so as to
32127         include GNU/Hurd.
32129 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32131         timespec-sub: avoid duplicate include
32132         * lib/timespec-sub.c: Do not include <config.h> twice.
32133         Reported by Juanma Barranquero.
32135 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
32137         bootstrap: use a more consistent error reporting scheme
32138         * build-aux/bootstrap (warn, die): New.
32139         Use them.
32141 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32143         sys_time: allow too-wide tv_sec
32144         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
32145         timeval even if tv_sec is wider than time_t.  This allows
32146         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
32147         as without this patch gnulib replaces struct timeval
32148         and OpenBSD futimes therefore has a type mismatch.
32149         * doc/posix-headers/sys_time.texi: Mention this.
32151         pthread: check for both pthread_create and pthread_join
32152         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
32153         alter the check so that it tests for both pthread_create and
32154         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
32155         Suggested by Bruno Haible and Richard Yao in
32156         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
32158         parse-datetime: doc tuneup
32159         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
32160         spacing issues.
32162 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
32164         do-release-commit-and-tag: fix the previous commit
32165         * build-aux/do-release-commit-and-tag: Actually the test was right,
32166         but the comment and the error message were misleading.
32167         Fix comment, and improve error message.
32168         Perform check first, so that NEWS is not modified uselessly.
32170         do-release-commit-and-tag: fix typo
32171         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
32172         _not_ start with a stub.
32174 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
32176         pthread: check for pthread_create, not pthread_join
32177         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
32178         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
32179         pthread_join in libc.  I hope this removes the need for all the
32180         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
32181         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
32183 2012-07-04  Jim Meyering  <meyering@redhat.com>
32185         parse-datetime: fix failure to diagnose invalid input
32186         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
32187         rather than diagnosing the invalid input.  Now it reports this:
32188         date: invalid date '\260'
32189         * lib/parse-datetime.y (to_uchar): Define.
32190         (yylex): Don't sign-extend "other" bytes.
32191         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
32192         Thanks to Bruno Haible for the patch to this file.
32193         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
32194         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
32196 2012-07-03  Jim Meyering  <meyering@redhat.com>
32198         bootstrap: do not require now-removed build-aux/missing
32199         Now that build-aux/missing is, er, missing, bootstrap would
32200         silently fail.
32201         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
32202         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
32203         no longer part of gnulib.
32204         Diagnose the failure.
32206 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32208         alloca: add support for HP NonStop TNS/E native
32209         * lib/alloca.in.h (alloca): Support the new host.
32210         From a suggestion by Joachim Schmitz in
32211         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
32213 2012-07-02  Pádraig Brady  <P@draigBrady.com>
32215         fsusage: remove code not needed on non GNU/Linux systems.
32217         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
32218         Don't include headers no longer needed in this case.
32219         * lib/fsusage.c [STAT_STATVFS &&
32220         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
32221         STAT_STATFS2_FRSIZE to exclude code not used in this case.
32223 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32225         fsusage: include files needed for glibc 2.6 fallback
32226         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
32227         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
32228         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
32229         Problem reported by Ludovic Courtès in
32230         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
32232         fsusage: avoid needless check on GNU/Linux
32233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
32234         on GNU/Linux systems, since it can't possibly work.
32236 2012-07-01  Bruno Haible  <bruno@clisp.org>
32238         log: Fix an autoconf >= 2.64 warning.
32239         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
32240         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32242 2012-06-28  Bruno Haible  <bruno@clisp.org>
32244         log10f: Fix possible configuration problem.
32245         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
32246         $LOGF_LIBM.
32247         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32249 2012-06-28  Bruno Haible  <bruno@clisp.org>
32251         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
32252         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
32253         not gl_cv_func_unlink_works.
32254         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
32256 2012-06-27  Eric Blake  <eblake@redhat.com>
32258         config: drop scripts that automake says are not independent
32259         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
32260         * build-aux/elisp-comp: Delete.
32261         * build-aux/missing: Likewise.
32262         * build-aux/ylwrap: Likewise.
32263         * modules/elisp-comp: Likewise.
32264         * MODULES.html.sh: Drop mention of elisp-comp.
32265         * NEWS: Mention this.
32267 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32269         root-uid: new module
32270         This is for portability to Tandem's NonStop Kernel.
32271         * lib/root-uid.h, modules/root-uid: New files.
32272         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
32273         * lib/write-any-file.c, tests/test-sethostname2.c:
32274         Include "root-uid.h".
32275         * lib/euidaccess.c (euidaccess):
32276         * lib/pt_chown.c (main):
32277         * lib/unlinkdir.c (cannot_unlink_dir):
32278         * lib/write-any-file.c (can_write_any_file):
32279         * m4/mknod.m4 (gl_FUNC_MKNOD):
32280         * tests/test-sethostname2.c (geteuid, main):
32281         Don't assume ROOT_UID == 0.
32282         * modules/euidaccess (Depends-on):
32283         * modules/pt_chown (Depends-on):
32284         * modules/sethostname-tests (Depends-on):
32285         * modules/unlinkdir (Depends-on):
32286         * modules/write-any-file (Depends-on):
32287         Add root-uid.
32289         regex: use locale-independent comparison for codeset name
32290         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
32291         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
32292         for codeset name.
32293         * lib/regex_internal.h: Do not include <strings.h>, since we
32294         no longer use strcasecmp.
32295         * modules/regex (Depends-on): Remove strcase.
32297 2012-06-23  Bruno Haible  <bruno@clisp.org>
32299         getopt-posix: No longer guarantee that option processing is resettable.
32300         * doc/posix-functions/getopt.texi: Drop description of problem with
32301         internal state. Fix info about mingw and msvc9.
32302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
32303         option processing by getopt(). Run three test programs instead of one.
32304         Simplify cross-compilation guess.
32305         * NEWS: Mention the change.
32306         Reported by Rich Felker <dalias@aerifal.cx>.
32308 2012-06-26  Bruno Haible  <bruno@clisp.org>
32310         argp, regex: Ensure strcasecmp gets declared.
32311         * lib/argp-help.c: Include <strings.h>.
32312         * lib/regex_internal.h: Likewise.
32313         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
32315 2012-06-24  Bruno Haible  <bruno@clisp.org>
32317         ptsname_r: Make it consistent with ptsname on AIX.
32318         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
32319         implementation as for OSF/1.
32320         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
32321         a pty master.
32323         ptsname_r: Make it consistent with ptsname on OSF/1.
32324         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
32325         OSF/1.
32327 2012-06-24  Bruno Haible  <bruno@clisp.org>
32329         ttyname_r: Fix result on OSF/1, Solaris.
32330         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
32332 2012-06-24  Bruno Haible  <bruno@clisp.org>
32334         ptsname_r: Add support for Solaris.
32335         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
32336         Solaris.
32338         ptsname_r: Fix test failure on native Windows.
32339         * modules/ptsname_r (Depends-on): Add isatty.
32341         ptsname_r: Fix test failures on IRIX, Solaris.
32342         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
32343         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
32344         accordingly.
32345         * lib/ptsname_r.c: Include <fcntl.h>.
32346         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
32347         set errno if fd is invalid.
32348         * tests/test-isatty.c (main): Update comments.
32350 2012-06-24  Bruno Haible  <bruno@clisp.org>
32352         ptsname test: Extend test.
32353         * tests/test-ptsname.c: Include <errno.h>.
32354         (main): Test behaviour with invalid file descriptor.
32356 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32358         time: fix obsolete comment
32359         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
32360         reference to HAVE_STRUCT_TIMESPEC in comment.
32362 2012-06-23  Bruno Haible  <bruno@clisp.org>
32364         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
32365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
32366         does not handle abbreviated long options with equivalent
32367         disambiguations, set gl_replace_getopt to yes.
32368         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
32370 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32372         time_r: fix typo that always overrode localtime_r decl
32373         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
32374         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
32375         not in a standard include.
32377 2012-06-22  Bruno Haible  <bruno@clisp.org>
32379         Write "Mac OS X" instead of "MacOS X".
32380         * README: Write "Mac OS X" instead of "MacOS X".
32381         * build-aux/bootstrap: Likewise.
32382         * build-aux/install-reloc: Likewise.
32383         * lib/acl-internal.h: Likewise.
32384         * lib/acl_entries.c: Likewise.
32385         * lib/argp-ba.c: Likewise.
32386         * lib/argp-pv.c: Likewise.
32387         * lib/config.charset: Likewise.
32388         * lib/copy-acl.c: Likewise.
32389         * lib/csharpexec.c: Likewise.
32390         * lib/euidaccess.c: Likewise.
32391         * lib/fbufmode.c: Likewise.
32392         * lib/fflush.c: Likewise.
32393         * lib/file-has-acl.c: Likewise.
32394         * lib/filemode.h: Likewise.
32395         * lib/fpurge.c: Likewise.
32396         * lib/freadable.c: Likewise.
32397         * lib/freadahead.c: Likewise.
32398         * lib/freading.c: Likewise.
32399         * lib/freadptr.c: Likewise.
32400         * lib/freadseek.c: Likewise.
32401         * lib/fseeko.c: Likewise.
32402         * lib/fseterr.c: Likewise.
32403         * lib/fsusage.c: Likewise.
32404         * lib/fwritable.c: Likewise.
32405         * lib/fwriting.c: Likewise.
32406         * lib/get-rusage-as.c: Likewise.
32407         * lib/get-rusage-data.c: Likewise.
32408         * lib/getdomainname.c: Likewise.
32409         * lib/idpriv-drop.c: Likewise.
32410         * lib/idpriv-droptemp.c: Likewise.
32411         * lib/localcharset.c: Likewise.
32412         * lib/locale.in.h: Likewise.
32413         * lib/localename.c: Likewise.
32414         * lib/mbsrtowcs-state.c: Likewise.
32415         * lib/nproc.c: Likewise.
32416         * lib/passfd.c: Likewise.
32417         * lib/posix_openpt.c: Likewise.
32418         * lib/printf-parse.c: Likewise.
32419         * lib/progreloc.c: Likewise.
32420         * lib/safe-read.h: Likewise.
32421         * lib/safe-write.h: Likewise.
32422         * lib/sched.in.h: Likewise.
32423         * lib/set-mode-acl.c: Likewise.
32424         * lib/signal.in.h: Likewise.
32425         * lib/stdint.in.h: Likewise.
32426         * lib/stdio-impl.h: Likewise.
32427         * lib/stdlib.in.h: Likewise.
32428         * lib/strtod.c: Likewise.
32429         * lib/sys_select.in.h: Likewise.
32430         * lib/tcgetsid.c: Likewise.
32431         * lib/unistd.in.h: Likewise.
32432         * lib/unlockpt.c: Likewise.
32433         * lib/vasnprintf.c: Likewise.
32434         * lib/vma-iter.c: Likewise.
32435         * lib/wcsrtombs-state.c: Likewise.
32436         * m4/acl.m4: Likewise.
32437         * m4/acosl.m4: Likewise.
32438         * m4/asinl.m4: Likewise.
32439         * m4/atanl.m4: Likewise.
32440         * m4/c-stack.m4: Likewise.
32441         * m4/cosl.m4: Likewise.
32442         * m4/expl.m4: Likewise.
32443         * m4/extensions.m4: Likewise.
32444         * m4/fdatasync.m4: Likewise.
32445         * m4/fmal.m4: Likewise.
32446         * m4/frexp.m4: Likewise.
32447         * m4/frexpf.m4: Likewise.
32448         * m4/frexpl.m4: Likewise.
32449         * m4/fsusage.m4: Likewise.
32450         * m4/getdomainname.m4: Likewise.
32451         * m4/getloadavg.m4: Likewise.
32452         * m4/getopt.m4: Likewise.
32453         * m4/gettext.m4: Likewise.
32454         * m4/gnulib-common.m4: Likewise.
32455         * m4/intdiv0.m4: Likewise.
32456         * m4/intlmacosx.m4: Likewise.
32457         * m4/largefile.m4: Likewise.
32458         * m4/ldexpl.m4: Likewise.
32459         * m4/link-follow.m4: Likewise.
32460         * m4/locale-ar.m4: Likewise.
32461         * m4/locale-fr.m4: Likewise.
32462         * m4/locale-ja.m4: Likewise.
32463         * m4/locale-tr.m4: Likewise.
32464         * m4/locale-zh.m4: Likewise.
32465         * m4/locale_h.m4: Likewise.
32466         * m4/lock.m4: Likewise.
32467         * m4/logl.m4: Likewise.
32468         * m4/mathfunc.m4: Likewise.
32469         * m4/minus-zero.m4: Likewise.
32470         * m4/mktime.m4: Likewise.
32471         * m4/mmap-anon.m4: Likewise.
32472         * m4/multiarch.m4: Likewise.
32473         * m4/nanosleep.m4: Likewise.
32474         * m4/nocrash.m4: Likewise.
32475         * m4/poll.m4: Likewise.
32476         * m4/printf-frexpl.m4: Likewise.
32477         * m4/printf.m4: Likewise.
32478         * m4/signbit.m4: Likewise.
32479         * m4/sinl.m4: Likewise.
32480         * m4/sqrtl.m4: Likewise.
32481         * m4/strerror_r.m4: Likewise.
32482         * m4/tanl.m4: Likewise.
32483         * m4/threadlib.m4: Likewise.
32484         * m4/ttyname_r.m4: Likewise.
32485         * m4/unlink.m4: Likewise.
32486         * m4/visibility.m4: Likewise.
32487         * m4/wcwidth.m4: Likewise.
32488         * tests/minus-zero.h: Likewise.
32489         * tests/test-alloca-opt.c: Likewise.
32490         * tests/test-copy-acl.sh: Likewise.
32491         * tests/test-copy-file.sh: Likewise.
32492         * tests/test-fdatasync.c: Likewise.
32493         * tests/test-file-has-acl.sh: Likewise.
32494         * tests/test-flock.c: Likewise.
32495         * tests/test-fsync.c: Likewise.
32496         * tests/test-localename.c: Likewise.
32497         * tests/test-malloca.c: Likewise.
32498         * tests/test-nonblocking-pipe.h: Likewise.
32499         * tests/test-nonblocking-socket.h: Likewise.
32500         * tests/test-openpty.c: Likewise.
32501         * tests/test-posix_openpt.c: Likewise.
32502         * tests/test-ptsname.c: Likewise.
32503         * tests/test-ptsname_r.c: Likewise.
32504         * tests/test-sameacls.c: Likewise.
32505         * tests/test-select.h: Likewise.
32506         * tests/test-set-mode-acl.sh: Likewise.
32507         * tests/test-snprintf-posix.h: Likewise.
32508         * tests/test-sprintf-posix.h: Likewise.
32509         * tests/test-strtod.c: Likewise.
32510         * tests/test-time.c: Likewise.
32511         * tests/test-vasnprintf-posix.c: Likewise.
32512         * tests/test-vasprintf-posix.c: Likewise.
32513         * doc/acl-resources.txt: Likewise.
32514         * doc/**/*.texi: Likewise.
32515         Reported by Max Horn <max@quendi.de>.
32517 2012-06-22  Bruno Haible  <bruno@clisp.org>
32519         grantpt: Relax requirement regarding invalid file descriptors.
32520         * lib/grantpt.c: Don't include <fcntl.h>.
32521         (grantpt): Don't verify the validity of the file descriptor.
32522         * modules/grantpt (Depends-on): Remove fcntl-h.
32523         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
32524         file descriptors.
32525         * doc/posix-functions/grantpt.texi: Document more platforms on which
32526         grantpt succeeds for invalid file descriptors.
32527         Reported by Rich Felker <dalias@aerifal.cx>.
32529 2012-06-22  Bruno Haible  <bruno@clisp.org>
32531         fbufmode test: Don't test unportable behaviour.
32532         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
32533         (main): Invoke it three times.
32534         Reported by Szabolcs Nagy <nsz@port70.net>
32535         and Rich Felker <dalias@aerifal.cx>.
32537 2012-06-21  Bruno Haible  <bruno@clisp.org>
32539         gnulib-tool: Refactor inctests variable.
32540         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
32541         (func_modules_transitive_closure,
32542         func_modules_transitive_closure_separately,
32543         func_import, func_create_testdir): Update.
32545         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
32546         * gnulib-tool: Accept option --without-tests.
32547         (func_usage): Document --without-tests option. Rearrange.
32548         (inctests): Normalize according to the mode.
32549         * NEWS: Mention the change.
32550         Suggested by Simon Josefsson.
32552 2012-06-21  Bruce Korb  <bkorb@gnu.org>
32554         parse-duration test: Avoid spurious output.
32555         * tests/test-parse-duration.sh: Reindent with leading tabs.
32557 2012-06-21  Jim Meyering  <meyering@redhat.com>
32559         maint: disable the strncpy prohibition
32560         * cfg.mk: Do not prohibit strncpy here.
32562 2012-06-21  Bruno Haible  <bruno@clisp.org>
32564         nonblocking: Avoid compilation error on mingw64.
32565         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
32566         fscanf.
32567         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
32568         * modules/vfscanf (configure.ac): Likewise.
32569         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
32570         definition only if stdio.h has prepared it.
32571         Reported by Daniel P. Berrange <berrange@redhat.com>.
32573 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
32575         gnulib-tool: Use readlink if it is available.
32576         * gnulib-tool (func_readlink): Choose function more appropriately.
32578 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32580         posixtm-tests: port to buggy compiler
32581         Problem reported by Simon Josefsson in
32582         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
32583         * modules/posixtm-tests (Depends-on): Add stdint.
32584         * tests/test-posixtm.c (struct posixtm_test.t_expected):
32585         Now of type int_least64_t, not int64_t, both because that's
32586         what INT64_C returns and because int_least64_t works even
32587         on 72-bit hosts.
32588         (T): Use INT64_C on constants outside the traditional int range,
32589         to work around compiler bug noted by Simon.
32591         mktime: fix integer overflow in 'configure'-time test
32592         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
32593         after integer overflow.  Problem reported by Rich Felker in
32594         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
32595         Also, don't look for further instances of a bug if we've already
32596         found one instance; this helps 'configure' run faster.
32598 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
32600         tmpfile, clean-temp: Fix invocation of GetVersionEx.
32601         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
32602         GetVersionEx correctly.
32603         * lib/clean-temp.c (supports_delete_on_close): Likewise.
32605 2012-06-20  Bruno Haible  <bruno@clisp.org>
32607         fdopen: Allow implementations that don't reject invalid fd arguments.
32608         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
32609         succeeds.
32610         Reported by Rich Felker <dalias@aerifal.cx>.
32612 2012-06-20  Simon Josefsson  <simon@josefsson.org>
32614         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
32615         bring in LIBINTL.
32617 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32619         init.sh: do not rely on autoupated PWD
32620         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
32621         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
32622         Although Nelson's bug was not necessarily fixed by this patch,
32623         it seems wise to make the change for safety.
32624         * tests/init.sh (path_prepend_): Do not rely on PWD updating
32625         automagically after 'cd'; this is not reliable on older shells.
32626         (setup_): Fail if we cannot cd to temporary directory.
32628 2012-06-19  Bruno Haible  <bruno@clisp.org>
32630         stat, fstat: Avoid warnings on mingw64.
32631         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
32632         redefining.
32633         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
32634         Reported by Daniel P. Berrange <berrange@redhat.com>.
32636 2012-06-19  Bruno Haible  <bruno@clisp.org>
32638         stdioext: Add support for musl libc.
32640         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
32641         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
32643         * m4/fseterr.m4: New file.
32644         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
32645         function exists.
32646         * modules/fseterr (Files): Add m4/fseterr.m4.
32647         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
32648         __fseterr does not exist.
32649         (Makefile.am): Remove fseterr.c from lib_SOURCES.
32651         * lib/freadable.h: Update comment.
32653         * lib/fwritable.h: Update comment.
32655         * lib/freading.h: Update comment.
32657         * lib/fwriting.h: Update comment.
32659         * m4/freadahead.m4: New file.
32660         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
32661         that function exists.
32662         * modules/freadahead (Files): Add m4/freadahead.m4.
32663         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
32664         __freadahead does not exist.
32665         (Makefile.am): Remove freadahead.c from lib_SOURCES.
32667         * m4/freadptr.m4: New file.
32668         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
32669         function exists.
32670         * modules/freadptr (Files): Add m4/freadptr.m4.
32671         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
32672         __freadptr does not exist.
32673         (Makefile.am): Remove freadptr.c from lib_SOURCES.
32675         * m4/freadseek.m4: New file.
32676         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
32677         exists.
32678         * modules/freadseek (Files): Add m4/freadseek.m4.
32679         (configure.ac): Invoke gl_FUNC_FREADSEEK.
32681         * lib/fpurge.c (fpurge): Update comment.
32683         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
32685 2012-06-19  Bruno Haible  <bruno@clisp.org>
32687         *printf-posix: Put more info into config.log.
32688         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
32689         exit code into config.log.
32691 2012-06-19  Bruno Haible  <bruno@clisp.org>
32693         getopt-gnu: Fix exit code overflow in autoconf test.
32694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
32695         to keep them below < 128.
32697 2012-06-17  Jim Meyering  <meyering@redhat.com>
32699         maint.mk: fix typo in code to derive GPG key at release time
32700         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
32702 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32704         regex: avoid warning when pointers are not long
32705         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
32706         and uintptr_t, not long, for portability to hosts where pointers and
32707         long have different sizes.  Issue noted by Daniel P. Berrange in
32708         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
32709         and fix suggested by Bruno Haible in
32710         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
32712 2012-06-17  Bruno Haible  <bruno@clisp.org>
32714         dummy: Relicense into the public domain.
32715         * modules/dummy (License): Set to "public domain".
32716         Suggested by Reuben Thomas.
32718 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
32720         announce-gen: VPATH issues
32721         * build-aux/announce-gen (--srcdir): New option, used to trim the
32722         $srcdir part of the path from $builddir to NEWS.
32723         * top/maint.mk (announcement): Adjust.
32725 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
32727         gnu-web-doc-update: VPATH builds
32728         * build-aux/gnu-web-doc-update (--builddir): New option.
32729         Revamp the handling of options.
32730         Prefer $(...) to `...`.
32731         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
32732         the template, and it is GNU mktemp specific.
32733         Prefer set -e to long series of &&.
32734         Restore the initial git branch, not "master".
32735         Properly initialize submodules (don't rely only on bootstrap).
32736         Do not reconfigure blindly, use config.status.
32737         * top/README-release: Update instructions for gnu-web-doc-update.
32739 2012-06-11  Jim Meyering  <meyering@redhat.com>
32741         maint.mk: revert most of the previous change re "all these"
32742         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
32743         For rationale, see the discussion at
32744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
32746 2012-06-10  Karl Berry  <karl@gnu.org>
32748         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
32750         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
32752 2012-06-10  Bruce Korb  <bkorb@gnu.org>
32754         parse-duration: Relicense under LGPLv2+.
32755         * modules/parse-duration (License): Change to LGPLv2+.
32757 2012-06-10  Jim Meyering  <meyering@redhat.com>
32759         maint.mk: prohibit common grammar error: "all these"
32760         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
32761         the list of prohibited word sequences.  It should be "all of these".
32762         * lib/tempname.c (__gen_tempname): Fix one of them.
32764 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
32766         do-release-commit-and-tag: support VPATH builds
32767         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
32768         (noteworthy): Defined earlier to factor its value.
32769         (noteworthy_stub): New.
32770         Use it to factor.
32771         (help_version): Split into...
32772         (help, version): these.
32773         Adjust the option processing part.
32774         Support "--option=value" in addition to "--option value".
32775         (builddir): New.
32776         (--builddir): New option.
32777         * top/README-release: Document this.
32778         Reword slightly so that the reader cannot understand that he
32779         has to do these steps before calling do-release-commit-and-tag.
32781 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
32783         readme-release: also require announce-gen and maintainer-makefile
32784         * modules/readme-release (Depends-on): here.
32785         * modules/announce-gen, modules/do-release-commit-and-tag,
32786         modules/gnu-web-doc-update, modules/maintainer-makefile
32787         (Description): Point to readme-release.
32789 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
32791         maint.mk: fix VPATH issues.
32792         * top/maint.mk (news-check): GNU Make understand $< very well.
32793         (release-prep): NEWS is in $(srcdir).
32795 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
32797         readme-release: require the promoted modules.
32798         * modules/readme-release (Depends-on): Add
32799         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
32800         in this text.
32802 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
32803             Bruno Haible  <bruno@clisp.org>
32805         error, strerror-override: Support mingw64 from Fedora 17.
32806         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
32807         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
32808         EINPROGRESS.
32809         * lib/strerror-override.h (strerror_override): Test it.
32810         * lib/strerror-override.c (strerror_override): Likewise.
32811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
32813 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
32814             Bruno Haible  <bruno@clisp.org>
32816         error, strerror-override: Support mingw64 from Fedora 17.
32817         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
32818         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
32819         * lib/strerror-override.h (strerror_override): Test it.
32820         * lib/strerror-override.c (strerror_override): Likewise.
32822 2012-06-03  Bruno Haible  <bruno@clisp.org>
32824         error, strerror-override: Support new errno values from POSIX:2008.
32825         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
32826         ENOTRECOVERABLE.
32827         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
32828         platforms.
32829         * lib/strerror-override.c (strerror_override): Conditionalize the
32830         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
32831         * lib/strerror-override.h (strerror_override): Declare also if
32832         GNULIB_defined_EOWNERDEAD is defined.
32833         * tests/test-errno.c (e130, e131): New variables.
32834         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
32835         ENOTRECOVERABLE.
32836         Reported by Paolo Bonzini.
32838 2012-05-31  Jim Meyering  <meyering@redhat.com>
32840         savewd: add missing dependency on sys_wait module
32841         * modules/savewd (Depends-on): Add sys_wait, needed at least
32842         for MSVC.  Report and suggested change by Michael Goffioul.
32844 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32846         system-quote-tests: port to CentOS 5
32847         Problem reported by Tom G. Christensen in
32848         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
32849         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
32851 2012-05-29  Jim Meyering  <meyering@redhat.com>
32853         maint: fix typos in comments and ChangeLog
32854         Culprits identified and fixed mostly automatically using these commands:
32855         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
32856         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
32857         using http://github.com/lyda/misspell-check
32858         * ChangeLog: Fix typos.
32859         * doc/solaris-versions: Likewise.
32860         * lib/regexec.c (re_search_stub): Likewise.
32861         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32863 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32865         manywarnings: remove duplicate -Wmultichar entry
32866         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
32867         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
32868         so keep the entry marked as documented.
32870 2012-05-27  Karl Berry  <karl@gnu.org>
32872         * config/srclist.txt (mktime.c): remove last libc sync,
32873         perhaps just temporarily.
32875 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32877         regex: don't assume uint64_t or uint32_t
32878         * lib/regcomp.c (init_word_char): Don't assume that the types
32879         uint64_t and uint32_t exist.  The C standard doesn't guarantee
32880         them, and on some 32-bit compilers there is no uint64_t.
32881         Problem reported by Gianluigi Tiesi in
32882         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
32884 2012-05-25  Jim Meyering  <meyering@redhat.com>
32886         maint.mk: add strncpy-prohibiting syntax-check rule
32887         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
32889 2012-05-24  Jim Meyering  <meyering@redhat.com>
32891         maint.mk: compute $(gpg_key_ID) more portably
32892         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
32893         That use of sed is not portable to some fringe systems.
32894         Reported by Paul Eggert in
32895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
32897 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32899         mktime: sync from glibc
32900         * config/srclist.txt: Uncomment mktime.c.
32901         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
32902         First, indent with tabs, since glibc uses tabs and doesn't want to
32903         change and we'd rather be identical to glibc.  Also, two small
32904         coding changes:
32905         (isdst_differ): Use &&, not &, as && is the usual style.
32906         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
32907         for clarity.
32909 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
32911         announce-gen: du -h is more portable than du --human
32912         * build-aux/announce-gen (sizes): Invoke du with -h instead
32913         of --human.  Accept leading white space in its output.
32915 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
32917         announce-gen: Improve diagnostics.
32918         * build-aux/announce-gen: When parsing command line options,
32919         prefer "announce-gen: option --release-type requires an argument"
32920         to "Option release-type requires an argument".
32922 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
32924         maint.mk: gpg_key_ID: use sed more portably
32925         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
32926         the closing brace.
32927         (refresh-po): Fuse two sed invocations into one.
32929 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
32931         gitlog-to-changelog: support the log message format used in Bison.
32932         * build-aux/gitlog-to-changelog: Support --strip-tab and
32933         --strip-cherry-picked.
32935 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
32937         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
32938         the rest of the current time slice to another thread in the current
32939         process. So if the thread that feeds the file decscriptor we're
32940         polling is not in the current process, we get busy-waiting.
32941         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
32942         Patch from Theodore Leblond.
32943         * lib/select.c: Split polling out of the loop that sets the output
32944         fd_sets.  Check for zero result and loop if the wait timeout is
32945         infinite.
32947 2012-05-21  Simon Josefsson  <simon@josefsson.org>
32949         select: Fix build error on IRIX 6.5.
32950         * lib/select.c: Include stddef.h for NULL.
32952 2012-05-21  Simon Josefsson  <simon@josefsson.org>
32954         gc: fix libgcrypt detection on older machines.
32955         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
32956         copyright years because the file has been distributed every year
32957         since it was created.
32959 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32961         crypto: fix bug in large buffer handling
32962         Problem reported by Serge Belyshev for glibc in
32963         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
32964         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
32965         * lib/md4.c (md4_process_block):
32966         * lib/md5.c (md5_process_block):
32967         * lib/sha1.c (sha1_process_block):
32968         * lib/sha256.c (sha256_process_block):
32969         Don't assume the buffer length is less than 2**32.
32970         * lib/sha512.c (sha512_process_block): Likewise.
32971         Here, the bug is present only in the rare case where the host does
32972         not support uint64_t or where size_t is wider than 64 bits.
32973         Use u64size to work around the problems.
32974         * lib/u64.h (u64size): New macro.
32976 2012-05-15  Pádraig Brady  <P@draigBrady.com>
32978         fsusage: fix block size returned on older Linux 2.6
32980         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
32981         which is available since Linux 2.6.
32982         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
32983         when the member is available so it can be used as a fallback.
32984         * doc/posix-functions/statvfs.texi: Mention the hang issue
32985         on Linux < 2.6.36.
32987 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32989         bootstrap: suppress stderr chatter
32990         * build-aux/bootstrap (insert_sorted_if_absent, main program):
32991         Omit unnecessary chatter to stderr.  The main program chatter
32992         was there only inadvertantly.
32994         bootstrap: .gitignore files created by autopoint, libtool
32995         I ran into this problem when bootstrapping the latest diffutils.
32996         After './bootstrap', 'git status' reported lots of untracked files
32997         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
32998         autopoint and do not need to be version-controlled.
32999         * build-aux/bootstrap: Put into .gitignore the files that
33000         autopoint and libtool create, by keeping track of files that exist
33001         after but not before these programs are run.
33002         (version_controlled_file): Move up.  2nd arg is now full file
33003         name, not base name; this is more convenient.  Put CVS at the end,
33004         as it's now somewhat deprecated.
33006 2012-05-14  Jim Meyering  <meyering@redhat.com>
33008         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
33009         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
33010         definition.  Reported by Bruno Haible.
33012 2012-05-13  Bruno Haible  <bruno@clisp.org>
33013             Paul Eggert  <eggert@cs.ucla.edu>
33015         binary-io: Define set_binary_mode function.
33016         * lib/binary-io.h (set_binary_mode): New function.
33017         (SET_BINARY): Define in terms of set_binary_mode.
33018         * modules/binary-io (configure.ac): Require AC_C_INLINE.
33019         * tests/test-binary-io.c (main): Accept an argument, and test either
33020         set_binary_mode or SET_BINARY depending on the argument.
33021         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
33022         argument. Clean up also t-bin-out0.tmp.
33024 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
33026         bootstrap: take advantage of POSIX shell features
33028         The 'bootstrap' script offered by Gnulib script already uses POSIX
33029         shell features (like $((...)) arithmetic expansions) that are not
33030         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
33031         means that bootstrap must already be run using a proper POSIX shell,
33032         which will thus provide more features, like ${var#pattern} parameter
33033         expansion or inversion of a command exit status with '!'.  We can
33034         thus use these features to improve the clarity and the performances
33035         of the bootstrap script.
33037         Suggested by Eric Blake.
33039         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
33040         of sed/expr plus command substitutions, to save some forks.  While
33041         we are at it, prefer the POSIX $(...) form of command substitution,
33042         rather than the legacy form `...` (since the former is visually
33043         clearer and interacts better with quoting), and prefer the idiom:
33044           "if ! CMD; then ACTION ..."
33045         over the idiom:
33046           "if CMD; then :; else ACTION ..."
33047         which was required by legacy Bourne shells not supporting '!'.
33049 2012-05-12  Bruno Haible  <bruno@clisp.org>
33051         system-quote: Add more comments.
33052         * lib/system-quote.h: Add more comments about wilcards and limitations.
33053         Suggested by Eli Zaretskii <eliz@gnu.org>.
33055         sh-quote, system-quote: Add comments about wildcards.
33056         * lib/sh-quote.h: Clarify what happens with wildcard characters.
33057         * lib/system-quote.h: Likewise.
33058         Reported by Eli Zaretskii <eliz@gnu.org>.
33060 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33062         fsusage: check for GNU/Linux statvfs problem dynamically
33063         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
33064         Define STAT_STATFS2_BSIZE too, since in this case the code now
33065         checks dynamically whether statvfs is reliable, falling back on
33066         Linux-style statfs otherwise.
33067         (statvfs_works): New function, for dynamically testing statvfs.
33068         (get_fs_usage) [STAT_STATVFS]: Use it.
33069         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
33070         statvfs on GNU/Linux hosts, since it's now done dynamically.
33072 2012-05-10  Bruno Haible  <bruno@clisp.org>
33074         system-quote, execute, spawn-pipe: Escape '?' on Windows.
33075         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
33076         '?' character.
33077         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
33078         * tests/test-system-quote-main.c (check_all): Check also strings like
33079         "??????????".
33080         Reported by Eli Zaretskii <eliz@gnu.org>.
33082 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33084         _Noreturn: port config.h to gcc -Wundef
33085         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
33086         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
33087         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
33089 2012-05-10  Bruno Haible  <bruno@clisp.org>
33091         system-quote: Refactor.
33092         * lib/system-quote.h (system_quote_copy): Fix comment.
33093         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
33094         New functions, extracted from system_quote_copy.
33095         (system_quote_length, system_quote_copy): Use these functions.
33096         Reported by Paul Eggert.
33098 2012-05-08  Bruno Haible  <bruno@clisp.org>
33100         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
33101         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
33103 2012-05-08  Bruno Haible  <bruno@clisp.org>
33105         Tests for module 'system-quote'.
33106         * modules/system-quote-tests: New file.
33107         * tests/test-system-quote.sh: New file.
33108         * tests/test-system-quote-main.c: New file.
33109         * tests/test-system-quote-child.c: New file.
33111         New module 'system-quote'.
33112         * lib/system-quote.h: New file.
33113         * lib/system-quote.c: New file.
33114         * modules/system-quote: New file.
33116 2012-05-08  Bruno Haible  <bruno@clisp.org>
33118         sh-quote: Make C++ safe and allow multiple inclusion.
33119         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
33120         declarations in extern "C".
33122 2012-05-08  Bruno Haible  <bruno@clisp.org>
33124         sh-quote tests: Make tests stricter.
33125         * tests/test-sh-quote.c (check_one): Check the return value of
33126         shell_quote_copy.
33127         (main): Check a string with a CR character. Check a string that
33128         contains UCHAR_MAX.
33130 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
33132         warnings.m4: provide a means to specify the program to compile.
33133         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
33134         (gl_WARN_ADD): here.
33135         Use gl_AS_VAR_APPEND.
33136         Support an argument to specify the program to compile.
33137         (gl_WARN_ADD): Accept an argument to specify the program to compile.
33138         AC_SUBST the WARN_CFLAGS when they are used.
33139         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
33140         leave this to gl_WARN_ADD.
33142 2012-05-08  Eric Blake  <eblake@redhat.com>
33144         doc: recommendations on gettext version
33145         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
33146         choice between versions.
33147         * DEPENDENCIES (gettext): Cover both approaches.
33149 2012-05-08  Jim Meyering  <meyering@redhat.com>
33151         init.sh: explain why EXEEXT support uses aliases rather than functions
33152         * tests/init.sh: Add a comment.
33154         init.sh: don't let bash aliases interfere with tests
33155         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
33156         is bash.  This avoids problems for those who alias standard commands to
33157         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
33158         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
33160 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
33162         stdint: be more consistent with glibc, SunOS libc
33163         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
33164         (gl_int_fast16_t, gl_uint_fast16_t)
33165         (gl_int_fast32_t, gl_uint_fast32_t)
33166         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
33167         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
33168         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
33169         Be consistent with glibc by default, and with SunOS 5.10 and later
33170         if __sun is defined.  This lessens the likelihood of clashes if
33171         code compiled for older hosts is combined with code compiled for
33172         newer ones.  Problem reported by Niels Möller in
33173         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
33175 2012-05-07  Eric Blake  <eblake@redhat.com>
33177         isatty: relax license to LGPLv2+
33178         * modules/isatty (License): Relax license.
33180 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33182         stat-size: comment fix
33183         * lib/stat-size.h: Remove obsolete comment about indenting.
33185 2012-05-06  Bruno Haible  <bruno@clisp.org>
33187         Tests for module 'sh-quote'.
33188         * modules/sh-quote-tests: New file.
33189         * tests/test-sh-quote.c: New file.
33191 2012-05-06  Bruno Haible  <bruno@clisp.org>
33193         sh-quote: Improve shell_quote_argv's signature.
33194         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
33195         * lib/sh-quote.c (shell_quote_argv): Likewise.
33197 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33199         stdint: document issues with int_fast8_t etc.
33200         * doc/posix-headers/stdint.texi (stdint.h): Say that other
33201         stdint.h substitutes may define these types differently.  See
33202         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
33204 2012-05-05  Bruno Haible  <bruno@clisp.org>
33206         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
33207         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
33208         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
33209         or 'guessing no (mishandles large arguments)'.
33211 2012-05-05  Bruno Haible  <bruno@clisp.org>
33213         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
33214         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
33215         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
33216         set gl_cv_func_link_follows_symlink to "guessing no".
33218 2012-05-05  Bruno Haible  <bruno@clisp.org>
33220         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
33221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
33222         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
33223         "guessing no".
33224         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
33226 2012-05-05  Bruno Haible  <bruno@clisp.org>
33228         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
33229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
33230         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
33231         set gl_cv_struct_dirent_d_ino to "guessing yes".
33233 2012-05-05  Bruno Haible  <bruno@clisp.org>
33235         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
33236         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
33237         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
33238         "guessing yes".
33240 2012-05-05  Bruno Haible  <bruno@clisp.org>
33242         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
33243         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
33244         compiling to a glibc system, set gl_cv_func_signbit and
33245         gl_cv_func_signbit_gcc to "guessing yes".
33247 2012-05-05  Bruno Haible  <bruno@clisp.org>
33249         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
33250         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
33251         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
33252         to "guessing yes".
33253         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
33254         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
33256 2012-05-05  Bruno Haible  <bruno@clisp.org>
33258         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
33259         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
33260         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
33261         gl_cv_func_realpath_works to "guessing yes".
33263 2012-05-05  Bruno Haible  <bruno@clisp.org>
33265         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
33266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
33267         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
33269 2012-05-04  Bruno Haible  <bruno@clisp.org>
33271         Tweak last commit.
33272         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
33273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33275 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
33277         unistd_h: make it easier to avoid sys_types_h
33278         This is useful for Emacs, which has its own method of porting to
33279         Windows, and which therefore does not need the sys_types_h module.
33280         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
33281         code moved here from gl_SYS_TYPES_H.
33282         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
33283         using the code directly.
33284         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
33285         gl_SYS_TYPES_H.
33286         * modules/sys_types (Files):
33287         * modules/unistd (Files): Add m4/off_t.m4.
33289 2012-05-03  Bruno Haible  <bruno@clisp.org>
33291         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
33292         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
33293         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
33294         "guessing yes" or "guessing no".
33295         (gl_FUNC_LSTAT): Update.
33296         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
33297         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
33298         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
33300 2012-05-03  Bruno Haible  <bruno@clisp.org>
33302         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
33303         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
33304         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
33305         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
33306         cross-compiling, choose the first alternative on glibc systems.
33307         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
33309 2012-05-03  Bruno Haible  <bruno@clisp.org>
33311         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
33312         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
33313         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
33315 2012-05-03  Bruno Haible  <bruno@clisp.org>
33317         chown: Avoid "guessing no" when cross-compiling to glibc systems.
33318         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
33320 2012-05-03  Bruno Haible  <bruno@clisp.org>
33322         Avoid "guessing no" guesses when cross-compiling to glibc systems.
33323         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
33324         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
33325         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
33326         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
33327         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
33328         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
33329         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
33330         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
33331         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
33332         compiling to glibc systems, set gl_cv_func_chown_slash_works,
33333         gl_cv_func_chown_ctime_works to "guessing yes".
33334         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
33335         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
33336         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
33337         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
33338         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
33339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
33340         compiling to glibc systems, set gl_cv_func_open_directory_works to
33341         "guessing yes".
33342         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
33343         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
33344         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
33345         "guessing yes".
33346         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
33347         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
33348         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
33349         compiling to glibc systems, set gl_cv_func_floorf_ieee to
33350         "guessing yes".
33351         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
33352         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
33353         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
33354         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
33355         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
33356         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
33357         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
33358         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
33359         "guessing yes".
33360         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
33361         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
33362         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
33363         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
33364         "guessing yes".
33365         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
33366         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
33367         "guessing yes".
33368         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
33369         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
33370         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
33371         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
33372         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
33373         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
33374         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
33375         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
33376         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
33377         compiling to glibc systems, set gl_cv_func_log10f_ieee to
33378         "guessing yes".
33379         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
33380         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
33381         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
33382         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
33383         "guessing yes".
33384         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
33385         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
33386         "guessing yes".
33387         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
33388         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
33389         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
33390         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
33391         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
33392         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
33393         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
33394         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
33395         compiling to glibc systems, set gl_cv_func_mkfifo_works to
33396         "guessing yes".
33397         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
33398         compiling to glibc systems, set gl_cv_func_mknod_works to
33399         "guessing yes".
33400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
33401         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
33402         "guessing yes".
33403         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
33404         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
33405         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
33406         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
33407         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
33408         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
33409         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
33410         compiling to glibc systems, set gl_cv_func_svid_putenv to
33411         "guessing yes".
33412         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
33413         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
33414         "guessing yes".
33415         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
33416         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
33417         "guessing yes".
33418         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
33419         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
33420         to "guessing yes".
33421         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
33422         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
33423         to "guessing yes".
33424         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
33425         compiling to glibc systems, set gl_cv_func_rmdir_works to
33426         "guessing yes".
33427         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
33428         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
33429         gl_cv_func_unlink_parent_fails to "guessing yes".
33430         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
33431         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
33432         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
33433         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
33434         gl_cv_func_rename_dest_works to "guessing yes".
33435         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
33436         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
33437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
33438         compiling to glibc systems, set gl_cv_func_roundf_ieee to
33439         "guessing yes".
33440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
33441         compiling to glibc systems, set gl_cv_func_roundl_ieee to
33442         "guessing yes".
33443         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
33444         compiling to glibc systems, set gl_cv_func_setenv_works to
33445         "guessing yes".
33446         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
33447         compiling to glibc systems, set gl_cv_func_unsetenv_works to
33448         "guessing yes".
33449         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
33450         compiling to glibc systems, set gl_cv_func_sleep_works to
33451         "guessing yes".
33452         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
33453         compiling to glibc systems, set gl_cv_func_stat_file_slash to
33454         "guessing yes".
33455         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
33456         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
33457         "guessing yes".
33458         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
33459         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
33460         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
33461         compiling to glibc systems, set gl_cv_func_truncf_ieee to
33462         "guessing yes".
33463         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
33464         compiling to glibc systems, set gl_cv_func_truncl_ieee to
33465         "guessing yes".
33466         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
33467         compiling to glibc systems, set gl_cv_func_usleep_works to
33468         "guessing yes".
33469         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
33470         compiling to glibc systems, set gl_cv_func_futimesat_works to
33471         "guessing yes".
33473 2012-05-03  Bruno Haible  <bruno@clisp.org>
33475         Say "guessing yes" or "guessing no" when cross-compiling.
33476         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
33477         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
33478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
33479         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
33480         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
33481         am_cv_func_working_getline to "guessing yes" or "guessing no".
33482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
33483         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
33484         (gl_FUNC_MEMMEM): When cross-compiling, set
33485         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
33486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
33487         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
33488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
33489         set gl_cv_func_strcasestr_works_always to "guessing yes" or
33490         "guessing no".
33491         (gl_FUNC_STRCASESTR): When cross-compiling, set
33492         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
33493         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
33494         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
33495         (gl_FUNC_STRSTR): When cross-compiling, set
33496         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
33497         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
33498         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
33499         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
33500         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
33502 2012-05-01  Bruno Haible  <bruno@clisp.org>
33504         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
33505         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
33506         * build-aux/reloc-ldflags: Likewise.
33507         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
33509 2012-05-01  Bruno Haible  <bruno@clisp.org>
33511         gnulib-tool: Remove transitional code.
33512         * gnulib-tool: Don't warn about --import with 0 arguments any more.
33513         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33515 2012-05-01  Bruno Haible  <bruno@clisp.org>
33517         getcwd: Fix misindentation.
33518         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
33520 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
33522         exclude: process exclude and include directives in order
33523         This restores the pre-2009 behavior, and is part of a fix of a
33524         grep bug reported by Quentin Arce in
33525         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
33526         * lib/exclude.c (struct exclude): Remove 'tail' member.
33527         (new_exclude_segment): Prepend the new segment instead of appending.
33528         Return void, since that's now more convenient.
33529         (file_pattern_matches): Renamed from excluded_file_pattern_p.
33530         (file_name_matches): Renamed from excluded_file_name_p.
33531         (file_pattern_matches, file_name_matches):
33532         Return true if the pattern matches, not if it excludes.
33533         All callers changed.
33534         (excluded_file_name): Process the list in reverse order;
33535         since the list is now reversed this restores the pre-2009 behavior.
33536         (add_exclude): Adjust to new reversed-order list.  Use local var
33537         rather than macro, for clarity.
33538         * tests/test-exclude7.sh: Adjust to corrected behavior.
33540         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
33541         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
33542         it's not possible here.  Handle the case of \ at end of pattern
33543         without dumping core.
33544         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
33546         _Noreturn: future-proof non-GNU and non-MSVC compilers
33547         * build-aux/snippet/_Noreturn.h (_Noreturn):
33548         * m4/gnulib-common.m4 (gl_COMMON_BODY):
33549         Do not define _Noreturn if __STDC_VERSION__ indicates this is
33550         C11 or later.  This is more likely to work with random future C
33551         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
33552         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
33554         exclude: handle wildcards with FNM_EXTMATCH
33555         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
33556         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
33557         comment that "has wildcards" really means "has or may have
33558         wildcards".  Simplify by avoiding the need to call strcspn.
33560 2012-04-29  Bruno Haible  <bruno@clisp.org>
33562         gnulib-tool: Fix list of authors.
33563         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
33565 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
33567         bootstrap: support Automake-NG in $buildreq
33568         * bootstrap (check_versions): Handle automake and aclocal from
33569         Automake-NG specially.  They can be specified as respectively
33570         the "automake-ng" and "aclocal-ng" requirements.
33572 2012-04-25  Eric Blake  <eblake@redhat.com>
33574         bootstrap: only force latest Makefile.in.in for gettext module
33575         * build-aux/bootstrap (with_gettext): Only install latest
33576         Makefile.in.in for projects requesting bleeding edge gettext.
33578 2012-04-22  Bruno Haible  <bruno@clisp.org>
33580         doc: Mention reason for replacement on glibc/Linux systems.
33581         * doc/posix-functions/dprintf.texi: Mention the problem with special
33582         'long double' values.
33583         * doc/posix-functions/fprintf.texi: Likewise.
33584         * doc/posix-functions/printf.texi: Likewise.
33585         * doc/posix-functions/snprintf.texi: Likewise.
33586         * doc/posix-functions/sprintf.texi: Likewise.
33587         * doc/posix-functions/vdprintf.texi: Likewise.
33588         * doc/posix-functions/vfprintf.texi: Likewise.
33589         * doc/posix-functions/vprintf.texi: Likewise.
33590         * doc/posix-functions/vsnprintf.texi: Likewise.
33591         * doc/posix-functions/vsprintf.texi: Likewise.
33592         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
33593         platforms with F_DUPFD_CLOEXEC problems.
33594         * doc/posix-functions/glob.texi: Mention which platforms are affected
33595         by the problem with symbolic links.
33596         * doc/posix-functions/linkat.texi: Mention the problem with
33597         AT_SYMLINK_FOLLOW on Linux.
33599 2012-04-22  Bruno Haible  <bruno@clisp.org>
33601         pwrite: Don't replace on all platforms.
33602         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
33604 2012-04-22  Bruno Haible  <bruno@clisp.org>
33606         rint* tests: Avoid gcc warnings.
33607         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
33608         * tests/test-rintf.c (INFINITY, NAN): Likewise.
33609         * tests/test-rintl.c (INFINITY, NAN): Likewise.
33611 2012-04-21  Bruno Haible  <bruno@clisp.org>
33613         users.txt: Update.
33614         * users.txt: Add freedink, wdiff. Update URLs for projects that have
33615         switched from CVS to git, bzr, or svn.
33617 2012-04-21  Bruno Haible  <bruno@clisp.org>
33619         Large File Support for native Windows platforms.
33621         * m4/largefile.m4 (gl_LARGEFILE): New macro.
33622         * modules/largefile (configure.ac): Require gl_LARGEFILE.
33624         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
33625         type.
33626         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
33627         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
33628         * doc/posix-headers/sys_types.texi: Mention the effect of the
33629         'largefile' module.
33631         * lib/fcntl.in.h: Add comments about off_t.
33632         * modules/fcntl-h (Depends-on): Add sys_types.
33634         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
33635         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
33636         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
33637         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
33638         * modules/unistd (Depends-on): Add sys_types.
33639         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
33641         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
33642         instead of lseek.
33643         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
33644         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
33645         * modules/lseek (Depends-on): Add sys_types.
33647         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
33648         msvc-nothrow.h.
33649         (SetFileSize): New function.
33650         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
33651         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
33652         if Large File Support is requested.
33653         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
33654         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
33656         * lib/stdio.in.h: Add comments about off_t.
33657         * modules/stdio (Depends-on): Add sys_types.
33659         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
33660         instead of ftello.
33661         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
33662         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
33663         (gl_PREREQ_FTELLO): New macro.
33664         * modules/ftello (Depends-on): Add sys_types.
33665         (configure.ac): Incoke gl_PREREQ_FTELLO.
33667         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
33668         instead of fseeko.
33669         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
33670         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
33671         (gl_PREREQ_FSEEKO): New macro.
33672         * modules/fseeko (Depends-on): Add sys_types.
33673         (configure.ac): Invoke gl_PREREQ_FSEEKO.
33675         * lib/sys_stat.in.h: Add comments about off_t.
33676         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
33677         64-bit integer for st_size in 'struct stat'.
33678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
33679         Define _GL_WINDOWS_64_BIT_ST_SIZE.
33680         * modules/sys_stat (Depends-on): Add sys_types.
33681         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
33683         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
33684         instead of stat or _stat.
33686         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
33687         'struct _stati64' instead of fstat and 'struct stat'.
33688         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
33689         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
33691         Reported by Ray Satiro <raysatiro@yahoo.com>.
33693 2012-04-19  Eric Blake  <eblake@redhat.com>
33695         bootstrap: accommodate older libtool
33696         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
33697         Reported by Daniel P. Berrange.
33699 2012-04-19  Jim Meyering  <meyering@redhat.com>
33701         announce-gen: avoid failure due to lack of Digest::SHA1
33702         Even with the preferred Digest::SHA available, this script
33703         would fail when the backup module, Digest::SHA1, was not installed.
33704         * build-aux/announce-gen: Quote the conditional use of "use".
33705         Reported by Reuben Thomas in:
33706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
33708         bootstrap: don't let a user's CDPATH setting affect this script
33709         When CDPATH is set, cd will sometimes generate output.
33710         When "cd" is run in a subshell whose output matters, that
33711         surprising-to-some output can cause malfunction.
33712         Unsetting CDPATH turns off this shell "feature."
33713         * build-aux/bootstrap (CDPATH): Unset.
33714         Reported by Reuben Thomas in:
33715         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
33716         and inspired by his patch here:
33717         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
33719 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
33720         and Jim Meyering  <meyering@redhat.com>
33722         maint.mk: catch "see @xref{}" and similar
33723         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
33724         prohibit "See also @xref{", "Also see @pxref{", and similar.
33726 2012-04-16  Jim Meyering  <meyering@redhat.com>
33728         bootstrap: really use gnulib's po/Makefile.in.in
33729         * build-aux/bootstrap: Correct the source file name in previous change.
33730         Reported by Akim Demaille.
33732         configmake: correct minor inconsistency in Makefile rule
33733         * modules/configmake (Makefile.am): All other rules like this one
33734         run the final "mv -f ..." in the same backslash-continued command
33735         as the one that does everything else.  This one put the mv -f ...
33736         command on a separate, non-backslash-continued line.
33737         Make it like the others.
33739         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
33740         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
33741         the one from gettext.  Reported by Akim Demaille.
33743 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
33745         Fix recursion of install-* into po directories.
33746         Bison's install-pdf bug reported by Hans Aberg at
33747         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
33748         * build-aux/po/Makefile.in.in (install-dvi, install-html)
33749         (install-info, install-pdf, install-ps): New targets.
33751 2012-04-16  Jim Meyering  <meyering@redhat.com>
33753         maint: avoid spurious "make sc_maint" failure
33754         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
33755         exempt all *.class file names, for lib/javaversion.class.
33757 2012-04-15  Bruno Haible  <bruno@clisp.org>
33759         lseek: Make configure test independent of environment.
33760         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
33761         Windows, we know that lseek() on pipes is broken; skip the runtime
33762         test.
33764 2012-04-14  Bruno Haible  <bruno@clisp.org>
33766         stat: Bypass buggy override in mingw64.
33767         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
33768         * lib/stat.c (stat) [mingw64]: Define to _stat.
33769         * doc/posix-functions/stat.texi: Mention mingw64 bug.
33771 2012-04-14  Bruno Haible  <bruno@clisp.org>
33773         pathmax: Fix compilation error on MSVC 9.
33774         * modules/pathmax (Depends-on): Add unistd.
33776 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33778         README: document pointer comparison assumption
33779         * README (Portability guidelines): Document assumption about
33780         pointer comparisons, in response to a recent bug-gnulib comment by
33781         Jeffrey Kegler.
33783 2012-04-12  Bruno Haible  <bruno@clisp.org>
33785         Tests for module 'getrusage'.
33786         * modules/getrusage-tests: New file.
33787         * tests/test-getrusage.c: New file.
33789         New module 'getrusage'.
33790         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
33791         warn-on-use.h.
33792         (getrusage): New declaration.
33793         * lib/getrusage.c: New file.
33794         * m4/getrusage.m4: New file.
33795         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
33796         is declared.
33797         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
33798         HAVE_GETRUSAGE.
33799         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
33800         snippet/c++defs, snippet/warn-on-use.
33801         (Makefile.am): Update generation of sys/resource.h. Substitute
33802         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
33803         * modules/getrusage: New file.
33804         * doc/posix-functions/getrusage.texi: Mention the new module.
33806 2012-04-12  Bruno Haible  <bruno@clisp.org>
33808         Tests for module 'sys_resource'.
33809         * modules/sys_resource-tests: New file.
33810         * tests/test-sys_resource.c: New file.
33812         New module 'sys_resource'.
33813         * lib/sys_resource.in.h: New file.
33814         * m4/sys_resource_h.m4: New file.
33815         * modules/sys_resource: New file.
33816         * doc/posix-headers/sys_resource.texi: Mention the new module.
33818 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
33820         ioctl: Fix compilation error on mingw.
33821         * lib/ioctl.c: Include <windows.h>.
33822         Also reported by Ray Satiro <raysatiro@yahoo.com>.
33824 2012-04-04  Jim Meyering  <meyering@redhat.com>
33826         regex: correct #pragma guard expression
33827         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
33828         not 4.3.  Correct its cpp guard expression.
33830 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33832         regex: remove unnecessary type punning
33833         Problem reported by Vladimir Serbinenko in
33834         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
33835         * lib/regex.h (struct re_pattern_buffer): Change the type of
33836         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
33837         Fix comment to match code.
33838         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
33839         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
33840         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
33841         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
33842         (set_regs):
33843         Omit no-longer-necessary casts.
33845 2012-04-03  Bruno Haible  <bruno@clisp.org>
33847         Tests for module 'ilogbl'.
33848         * modules/ilogbl-tests: New file.
33849         * tests/test-ilogbl.c: New file.
33851         New module 'ilogbl'.
33852         * lib/math.in.h (ilogbl): New declaration.
33853         * lib/ilogbl.c: New file.
33854         * m4/ilogbl.m4: New file.
33855         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
33856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
33857         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
33858         Split sed invocation, to avoid the limit of 100 substitutions of
33859         HP-UX 'sed'.
33860         * modules/ilogbl: New file.
33861         * tests/test-math-c++.cc: Check the declaration of ilogbl.
33862         * doc/posix-functions/ilogbl.texi: Mention the new module.
33864 2012-04-03  Bruno Haible  <bruno@clisp.org>
33866         Tests for module 'ilogbf'.
33867         * modules/ilogbf-tests: New file.
33868         * tests/test-ilogbf.c: New file.
33870         New module 'ilogbf'.
33871         * lib/math.in.h (ilogbf): New declaration.
33872         * lib/ilogbf.c: New file.
33873         * m4/ilogbf.m4: New file.
33874         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
33875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
33876         REPLACE_ILOGBF.
33877         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
33878         REPLACE_ILOGBF.
33879         * modules/ilogbf: New file.
33880         * tests/test-math-c++.cc: Check the declaration of ilogbf.
33881         * doc/posix-functions/ilogbf.texi: Mention the new module.
33883 2012-04-03  Bruno Haible  <bruno@clisp.org>
33885         Tests for module 'ilogb'.
33886         * modules/ilogb-tests: New file.
33887         * tests/test-ilogb.c: New file.
33888         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
33889         tests/test-logb-ieee.h.
33891         New module 'ilogb'.
33892         * lib/math.in.h (ilogb): New declaration.
33893         * lib/ilogb.c: New file.
33894         * m4/ilogb.m4: New file.
33895         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
33896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
33897         REPLACE_ILOGB.
33898         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
33899         REPLACE_ILOGB.
33900         * modules/ilogb: New file.
33901         * tests/test-math-c++.cc: Check the declaration of ilogb.
33902         * doc/posix-functions/ilogb.texi: Mention the new module.
33904 2012-04-03  Bruno Haible  <bruno@clisp.org>
33906         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
33907         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
33908         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
33909         (main): Check their values.
33910         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
33911         problem.
33913 2012-04-03  Bruno Haible  <bruno@clisp.org>
33915         Tests for module 'logbl-ieee'.
33916         * modules/logbl-ieee-tests: New file.
33917         * tests/test-logbl-ieee.c: New file.
33919         New module 'logbl-ieee'.
33920         * modules/logbl-ieee: New file.
33922         Tests for module 'logb-ieee'.
33923         * modules/logb-ieee-tests: New file.
33924         * tests/test-logb-ieee.c: New file.
33926         New module 'logb-ieee'.
33927         * modules/logb-ieee: New file.
33929         Tests for module 'logbf-ieee'.
33930         * modules/logbf-ieee-tests: New file.
33931         * tests/test-logbf-ieee.c: New file.
33932         * tests/test-logb-ieee.h: New file.
33934         New module 'logbf-ieee'.
33935         * modules/logbf-ieee: New file.
33937 2012-04-03  Bruno Haible  <bruno@clisp.org>
33939         Tests for module 'logbl'.
33940         * modules/logbl-tests: New file.
33941         * tests/test-logbl.c: New file.
33943         New module 'logbl'.
33944         * lib/math.in.h (logbl): New declaration.
33945         * lib/logbl.c: New file.
33946         * m4/logbl.m4: New file.
33947         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
33948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
33949         REPLACE_LOGBL.
33950         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
33951         REPLACE_LOGBL.
33952         * modules/logbl: New file.
33953         * tests/test-math-c++.cc: Check the declaration of logbl.
33954         * doc/posix-functions/logbl.texi: Mention the new module.
33956 2012-04-02  Bruno Haible  <bruno@clisp.org>
33958         Tests for module 'logbf'.
33959         * modules/logbf-tests: New file.
33960         * tests/test-logbf.c: New file.
33962         New module 'logbf'.
33963         * lib/math.in.h (logbf): New declaration.
33964         * lib/logbf.c: New file.
33965         * m4/logbf.m4: New file.
33966         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
33967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
33968         REPLACE_LOGBF.
33969         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
33970         REPLACE_LOGBF.
33971         * modules/logbf: New file.
33972         * tests/test-math-c++.cc: Check the declaration of logbf.
33973         * doc/posix-functions/logbf.texi: Mention the new module.
33975 2012-04-02  Bruno Haible  <bruno@clisp.org>
33977         logb tests: More tests.
33978         * tests/test-logb.h: New file, based on tests/test-logb.c and
33979         tests/test-frexp.h.
33980         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
33981         (main): Just invoke test_function.
33982         * modules/logb-tests (Files): Add tests/test-logb.h,
33983         tests/minus-zero.h, tests/randomd.c.
33984         (Makefile.am): Add randomd.c to test_logb_SOURCES.
33986         logb: Provide replacement and workarounds.
33987         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
33988         is 1.
33989         * lib/logb.c: New file.
33990         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
33991         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
33992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
33993         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
33994         * modules/logb (Files): Add lib/logb.c.
33995         (Depends-on): Add isfinite, frexp, isnand.
33996         (configure.ac): Compile the replacement code logb.c if needed.
33997         * tests/test-math-c++.cc: Check the declaration of logb.
33998         * doc/posix-functions/logb.texi: Mention the replacement and the bug
33999         with subnormal numbers.
34001 2012-04-02  Bruno Haible  <bruno@clisp.org>
34003         log10* tests: Speed up.
34004         * tests/test-log10.h (test_function): Reduce amount of random numbers
34005         to test.
34007 2012-04-01  Bruno Haible  <bruno@clisp.org>
34009         logf-ieee: Fix test whether logf works.
34010         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
34012 2012-04-01  Bruno Haible  <bruno@clisp.org>
34014         log10l: Work around log10l-ieee test failure on IRIX 6.5.
34015         * lib/log10l.c: Include <float.h>
34016         (log10l): On IRIX, normalize the +Infinity value.
34017         * modules/log10l (Depends-on): Add 'float'.
34018         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
34019         +Infinity.
34021         log10f-ieee: Work around test failure on NetBSD 5.1.
34022         * m4/log10f-ieee.m4: New file.
34023         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
34024         test whether log10f works with a negative argument. Replace it if not.
34025         * lib/log10f.c (log10f): For negative arguments, return NaN.
34026         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
34027         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
34028         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
34030         log10f-ieee: Work around test failure on Solaris 9.
34031         * modules/log10f-ieee (Depends-on): Add log10-ieee.
34032         (configure.ac): Require gl_FUNC_LOG10F.
34034         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
34035         * m4/log10-ieee.m4: New file.
34036         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
34037         whether log10 works with a negative argument. Replace it if not.
34038         * lib/log10.c (log10): For negative arguments, return NaN.
34039         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
34040         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
34041         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
34043         Tests for module 'log10l-ieee'.
34044         * modules/log10l-ieee-tests: New file.
34045         * tests/test-log10l-ieee.c: New file.
34047         New module 'log10l-ieee'.
34048         * modules/log10l-ieee: New file.
34050         Tests for module 'log10-ieee'.
34051         * modules/log10-ieee-tests: New file.
34052         * tests/test-log10-ieee.c: New file.
34054         New module 'log10-ieee'.
34055         * modules/log10-ieee: New file.
34057         Tests for module 'log10f-ieee'.
34058         * modules/log10f-ieee-tests: New file.
34059         * tests/test-log10f-ieee.c: New file.
34060         * tests/test-log10-ieee.h: New file.
34062         New module 'log10f-ieee'.
34063         * modules/log10f-ieee: New file.
34065 2012-04-01  Bruno Haible  <bruno@clisp.org>
34067         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
34068         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
34069         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
34070         workaround.
34071         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
34072         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
34073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
34074         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
34075         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
34076         (Depends-on): Update conditions.
34077         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
34078         IRIX 6.5, OSF/1 5.1 problems.
34080 2012-04-01  Bruno Haible  <bruno@clisp.org>
34082         log10f: Work around OSF/1 5.1 bug.
34083         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
34084         * lib/log10f.c (log10f): If logf exists, use it and provide just the
34085         workaround.
34086         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
34087         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
34088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
34089         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
34090         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
34091         (Depends-on): Update conditions.
34092         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
34094 2012-04-01  Bruno Haible  <bruno@clisp.org>
34096         log10: Work around OSF/1 5.1 bug.
34097         * lib/math.in.h (log10): New declaration.
34098         * lib/log10.c: New file.
34099         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
34100         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
34101         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
34102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
34103         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
34104         * modules/log10 (Files): Add lib/log10.c.
34105         (Depends-on): Add math.
34106         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
34107         * tests/test-math-c++.cc: Check the declaration of log10.
34108         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
34110 2012-03-31  Bruno Haible  <bruno@clisp.org>
34112         log10l tests: More tests.
34113         * modules/log10l-tests (Files): Add tests/test-log10l.h,
34114         tests/minus-zero.h, tests/randoml.c.
34115         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
34116         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
34117         (main): Invoke test_function.
34119         log10f tests: More tests.
34120         * modules/log10f-tests (Files): Add tests/test-log10.h,
34121         tests/minus-zero.h, tests/randomf.c.
34122         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
34123         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
34124         (main): Invoke test_function.
34126         log10 tests: More tests.
34127         * tests/test-log10.h: New file.
34128         * modules/log10-tests (Files): Add tests/test-log10.h,
34129         tests/minus-zero.h, tests/randomd.c.
34130         (Makefile.am): Add randomd.c to test_log10_SOURCES.
34131         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
34132         (main): Invoke test_function.
34134 2012-03-31  Simon Josefsson  <simon@josefsson.org>
34136         fflush: Fix syntax error.
34137         * lib/fflush.c: Include unused-parameter.h, needed for
34138         _GL_UNUSED_PARAMETER.
34139         * modules/fflush (Depends-on): Add snippet/unused-parameter.
34141 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34143         regex: pacify GCC when compiling GRUB
34144         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
34145         a diagnostic.  Reported by Vladimir Serbinenko in
34146         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
34148 2012-03-29  Eric Blake  <eblake@redhat.com>
34150         stdio: don't assume gets any more
34151         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
34152         support.
34153         * modules/stdio (Makefile.am): Likewise.
34154         * lib/stdio-read.c (gets): Likewise.
34155         * tests/test-stdio-c++.cc: Likewise.
34156         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
34157         * lib/stdio.in.h (gets): Make warning occur in more places.
34158         * doc/posix-functions/gets.texi (gets): Update documentation.
34159         Reported by Christer Solskogen.
34161         maint.mk: fix syntax checks without exclusions
34162         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
34163         Reported by Daniel P. Berrange.
34165         strerror_r: avoid compiler warning
34166         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
34167         level.
34169         fflush: avoid compiler warning
34170         * lib/fflush.c (update_fpos_cache): Mark variables that are
34171         potentially unused.
34173 2012-03-25  Bruno Haible  <bruno@clisp.org>
34175         Tests for module 'localeconv'.
34176         * modules/localeconv-tests: New file.
34177         * tests/test-localeconv.c: New file.
34179         New module 'localeconv'.
34180         * lib/locale.in.h (localeconv): New declaration.
34181         * lib/localeconv.c: New file.
34182         * m4/localeconv.m4: New file.
34183         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
34184         REPLACE_LOCALECONV.
34185         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
34186         REPLACE_LOCALECONV.
34187         * modules/localeconv: New file.
34188         * modules/nl_langinfo (Depends-on): Add localeconv.
34189         * modules/human (Depends-on): Likewise.
34190         * doc/posix-functions/localeconv.texi: Mention the new module.
34192 2012-03-25  Bruno Haible  <bruno@clisp.org>
34194         locale: Provide a complete 'struct lconv'.
34195         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
34196         'struct lconv' does not contain int_p_cs_precedes.
34197         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
34198         * doc/posix-headers/locale.texi: Update.
34200         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
34201         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
34202         * doc/posix-headers/locale.texi: Update.
34204         locale: Provide a working 'struct lconv'.
34205         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
34206         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
34207         'struct lconv' does not even contain decimal_point.
34208         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
34209         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
34210         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
34211         * doc/posix-headers/locale.texi: Mention the problems with
34212         'struct lconv'.
34213         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
34215 2012-03-24  Bruno Haible  <bruno@clisp.org>
34217         Enable common subexpression optimization in GCC.
34218         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
34219         macros.
34220         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
34221         GCC attribute 'const'.
34222         (uc_locale_language): Declare with GCC attribute 'pure'.
34223         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
34224         with GCC attribute 'const'.
34225         * lib/unictype.in.h (uc_is_general_category_withtable,
34226         uc_combining_class, uc_combining_class_name,
34227         uc_combining_class_long_name, uc_bidi_class_name,
34228         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
34229         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
34230         uc_decimal_value, uc_digit_value, uc_numeric_value,
34231         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
34232         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
34233         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
34234         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
34235         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
34236         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
34237         Declare with GCC attribute 'const'.
34238         (uc_general_category_name, uc_general_category_long_name,
34239         uc_general_category_byname, uc_general_category,
34240         uc_is_general_category, uc_combining_class_byname,
34241         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
34242         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
34243         Declare with GCC attribute 'pure'.
34244         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
34245         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
34246         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
34247         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
34248         with GCC attribute 'pure'.
34249         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
34250         'const'.
34251         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
34252         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
34253         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
34254         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
34255         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
34256         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
34257         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
34258         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
34259         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
34260         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
34261         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
34262         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
34263         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
34264         GCC attribute 'pure'.
34265         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
34266         'const'.
34267         * lib/uniwidth.in.h (uc_width): Simplify declaration.
34268         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
34269         u32_strwidth): Declare with GCC attribute 'pure'.
34271         Enable common subexpression optimization in GCC.
34272         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34273         (alphasort): Declare with GCC attribute 'pure'.
34274         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34275         (atoll): Declare with GCC attribute 'pure'.
34276         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34277         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34278         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
34279         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
34280         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
34281         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
34282         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
34284 2012-03-24  Bruno Haible  <bruno@clisp.org>
34286         gnulib-tool: Avoid unintended error output from 'cmp'.
34287         * gnulib-tool (func_add_file, func_update_file, func_import): Use
34288         "cmp -s", not "cmp > /dev/null".
34290 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
34292         gnulib-tool: fix imprecise comments w.r.t. an automake bug
34294         It's not just Automake versions < 1.9b that creates an empty
34295         pkgdatadir at installation time if pkgdata_DATA is specified
34296         to empty; modern automake versions do this as well, at least
34297         until automake 1.11.4 (not yet released at the moment of writing,
34298         but soon to appear).  That behaviour was generally considered a
34299         feature rather than a bug, at least until this discussion:
34300         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
34302         See also automake bugs #10997 and #11030.
34304         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
34305         reference to relevant automake bug numbers.
34306         (func_emit_tests_Makefile_am): Likewise.
34308 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
34310         announce-gen: use Digest::SHA when possible
34311         * build-aux/announce-gen: Use Digest::SHA when possible, falling
34312         back to Digest::SHA1 if necessary.
34314 2012-03-20  Jim Meyering  <meyering@redhat.com>
34316         tests: avoid gcc warnings about argv vs. const initializers
34317         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
34318         warnings about discarding 'const' qualifier from pointer target type.
34319         * tests/test-posix_spawn2.c (main): Likewise.
34321 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
34323         README-release: simplify slightly
34324         * top/README-release: Run "git checkout master" only once.
34326 2012-03-15  Mark Wielaard  <mark@klomp.org>
34328         git-merge-changelog: add specific example on how to use with hg.
34329         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
34331 2012-03-18  Mark Wielaard  <mark@klomp.org>
34333         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
34335 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
34337         git-version-gen: don't let "prefix" envvar cause trouble
34338         * build-aux/git-version-gen (prefix): Initialize properly,
34339         so as not to use a value specified via the environment.
34340         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
34342 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
34344         regex: diagnose too-large repeat counts in EREs
34345         Previously, the code did not diagnose the too-large repeat count
34346         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
34347         as if it were 'b\{1000000000}', which is unexpected.
34348         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
34349         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
34350         is a reasonable one for this problem.  Another option would be to
34351         create a new REG_OVERFLOW error for repeat counts that are too large.
34352         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
34353         count is too large, so that the caller can distinguish the two cases.
34354         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
34355         "Too large" return code, and that repeat counts are one example of this.
34357 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
34359         doc: some glibc x32 integer width issues
34360         * doc/posix-headers/sys_types.texi (sys/types.h):
34361         * doc/posix-headers/time.texi (time.h):
34362         Mention that glibc x32 does not conform to POSIX in a couple of
34363         areas related to integer widths.
34365 2012-03-15  Bruno Haible  <bruno@clisp.org>
34367         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
34368         * lib/fma.c (VOLATILE): New macro.
34369         (FUNC): Use it to work around a GCC compiler bug.
34371 2012-03-13  Bruno Haible  <bruno@clisp.org>
34373         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34374         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
34375         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
34376         REPLACE_HYPOTL to 1.
34377         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
34379 2012-03-13  Bruno Haible  <bruno@clisp.org>
34381         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34382         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
34383         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
34384         REPLACE_REMAINDERL to 1.
34385         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
34386         bug.
34388 2012-03-13  Bruno Haible  <bruno@clisp.org>
34390         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34391         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
34392         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
34393         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
34394         too big rounding errors.
34395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
34396         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
34397         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
34398         (Depends-on): Update conditions.
34399         * tests/test-sqrtl.c (my_ldexpl): New function.
34400         (main): Add test of a particular value.
34401         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
34403 2012-03-13  Pádraig Brady  <P@draigBrady.com>
34405         doc: Update timer_* platform portability notes.
34406         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
34407         that always return ENOSYS.
34408         * doc/posix-functions/timer_delete.texi: Likewise.
34409         * doc/posix-functions/timer_gettime.texi: Likewise.
34410         * doc/posix-functions/timer_settime.texi: Likewise.
34412 2012-03-13  Bruno Haible  <bruno@clisp.org>
34414         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
34415         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
34416         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
34417         REPLACE_CBRTL to 1.
34418         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
34420 2012-03-13  Bruno Haible  <bruno@clisp.org>
34422         remainderl: Avoid compilation error on AIX >= 5.2.
34423         * lib/math.in.h (remainderl): Undefine macro from the system header.
34425 2012-03-13  Bruno Haible  <bruno@clisp.org>
34427         Avoid compilation errors with MSVC option -fp:strict.
34428         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
34429         * lib/cbrtf.c: Likewise.
34430         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34432 2012-03-12  Bruno Haible  <bruno@clisp.org>
34434         uninorm: Don't crash in out-of-memory conditions.
34435         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
34436         gracefully.
34437         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
34438         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
34440 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
34442         quote: fix syntax-check
34443         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
34444         also exports quote_quoting_options.
34446 2012-03-12  Simon Josefsson  <simon@josefsson.org>
34448         Collapse list of copyright years to ranges.  See
34449         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
34450         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
34451         build-aux/csharpexec.sh.in, build-aux/gnupload,
34452         build-aux/install-reloc, build-aux/javacomp.sh.in,
34453         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
34454         build-aux/move-if-change, build-aux/reloc-ldflags,
34455         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
34457 2012-03-11  Bruno Haible  <bruno@clisp.org>
34459         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
34460         * m4/log2f-ieee.m4: New file.
34461         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
34462         whether log2f works with a minus zero argument. Replace it if not.
34463         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
34464         (Depends-on): Add log2-ieee.
34465         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
34466         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
34468         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
34469         * m4/log2-ieee.m4: New file.
34470         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
34471         whether log2 works with a minus zero argument. Replace it if not.
34472         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
34473         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
34474         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
34476         Tests for module 'log2l-ieee'.
34477         * modules/log2l-ieee-tests: New file.
34478         * tests/test-log2l-ieee.c: New file.
34480         New module 'log2l-ieee'.
34481         * modules/log2l-ieee: New file.
34483         Tests for module 'log2-ieee'.
34484         * modules/log2-ieee-tests: New file.
34485         * tests/test-log2-ieee.c: New file.
34487         New module 'log2-ieee'.
34488         * modules/log2-ieee: New file.
34490         Tests for module 'log2f-ieee'.
34491         * modules/log2f-ieee-tests: New file.
34492         * tests/test-log2f-ieee.c: New file.
34493         * tests/test-log2-ieee.h: New file.
34495         New module 'log2f-ieee'.
34496         * modules/log2f-ieee: New file.
34498 2012-03-11  Bruno Haible  <bruno@clisp.org>
34500         Tests for module 'log2l'.
34501         * modules/log2l-tests: New file.
34502         * tests/test-log2l.c: New file.
34504         New module 'log2l'.
34505         * lib/math.in.h (log2l): New declaration.
34506         * lib/log2l.c: New file.
34507         * m4/log2l.m4: New file.
34508         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
34509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
34510         REPLACE_LOG2L.
34511         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
34512         REPLACE_LOG2L.
34513         * modules/log2l: New file.
34514         * tests/test-math-c++.cc: Check the declaration of log2l.
34515         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
34516         and OSF/1 problems.
34518 2012-03-11  Bruno Haible  <bruno@clisp.org>
34520         Tests for module 'log2f'.
34521         * modules/log2f-tests: New file.
34522         * tests/test-log2f.c: New file.
34524         New module 'log2f'.
34525         * lib/math.in.h (log2f): New declaration.
34526         * lib/log2f.c: New file.
34527         * m4/log2f.m4: New file.
34528         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
34529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
34530         REPLACE_LOG2F.
34531         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
34532         REPLACE_LOG2F.
34533         * modules/log2f: New file.
34534         * tests/test-math-c++.cc: Check the declaration of log2f.
34535         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
34536         and OSF/1 and Cygwin problems.
34538 2012-03-11  Bruno Haible  <bruno@clisp.org>
34540         Tests for module 'log2'.
34541         * modules/log2-tests: New file.
34542         * tests/test-log2.c: New file.
34543         * tests/test-log2.h: New file.
34545         New module 'log2'.
34546         * lib/math.in.h (log2): New declaration.
34547         * lib/log2.c: New file.
34548         * m4/log2.m4: New file.
34549         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
34550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
34551         REPLACE_LOG2.
34552         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
34553         REPLACE_LOG2.
34554         * modules/log2: New file.
34555         * tests/test-math-c++.cc: Check the declaration of log2.
34556         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
34557         and OSF/1 and Cygwin problems.
34559 2012-03-11  Bruno Haible  <bruno@clisp.org>
34561         exp2* tests: More tests.
34562         * tests/test-exp2.h (test_function): Test all integral arguments that
34563         don't need to overflow or denormalized numbers.
34564         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
34565         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
34566         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
34568 2012-03-10  Bruno Haible  <bruno@clisp.org>
34570         log1pl-ieee: Work around test failure on AIX 7.1.
34571         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
34573         log1pl-ieee: Work around test failure on IRIX 6.5.
34574         * m4/log1pl-ieee.m4: New file.
34575         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
34576         test whether log1pl works with a minus zero argument. Replace it if
34577         not.
34578         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
34579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
34580         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
34581         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
34582         (Depends-on): Update conditions.
34583         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
34584         m4/signbit.m4.
34585         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
34586         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
34588         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
34589         * m4/log1pf-ieee.m4: New file.
34590         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
34591         test whether log1pf works with a minus zero argument. Replace it if
34592         not.
34593         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
34594         m4/signbit.m4.
34595         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
34596         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
34598         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
34599         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
34600         (configure.ac): Require gl_FUNC_LOG1PF.
34602         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
34603         * m4/log1p-ieee.m4: New file.
34604         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
34605         whether log1p works with a minus zero argument. Replace it if not.
34606         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
34607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
34608         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
34609         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
34610         (Depends-on): Update conditions.
34611         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
34612         m4/signbit.m4.
34613         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
34614         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
34616         Tests for module 'log1pl-ieee'.
34617         * modules/log1pl-ieee-tests: New file.
34618         * tests/test-log1pl-ieee.c: New file.
34620         New module 'log1pl-ieee'.
34621         * modules/log1pl-ieee: New file.
34623         Tests for module 'log1p-ieee'.
34624         * modules/log1p-ieee-tests: New file.
34625         * tests/test-log1p-ieee.c: New file.
34627         New module 'log1p-ieee'.
34628         * modules/log1p-ieee: New file.
34630         Tests for module 'log1pf-ieee'.
34631         * modules/log1pf-ieee-tests: New file.
34632         * tests/test-log1pf-ieee.c: New file.
34633         * tests/test-log1p-ieee.h: New file.
34635         New module 'log1pf-ieee'.
34636         * modules/log1pf-ieee: New file.
34638 2012-03-10  Bruno Haible  <bruno@clisp.org>
34640         Tests for module 'log1pl'.
34641         * modules/log1pl-tests: New file.
34642         * tests/test-log1pl.c: New file.
34644         New module 'log1pl'.
34645         * lib/math.in.h (log1pl): New declaration.
34646         * lib/log1pl.c: New file.
34647         * m4/log1pl.m4: New file.
34648         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
34649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
34650         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
34651         * modules/log1pl: New file.
34652         * tests/test-math-c++.cc: Check the declaration of log1pl.
34653         * doc/posix-functions/log1pl.texi: Mention the new module.
34655 2012-03-10  Bruno Haible  <bruno@clisp.org>
34657         Tests for module 'log1pf'.
34658         * modules/log1pf-tests: New file.
34659         * tests/test-log1pf.c: New file.
34661         New module 'log1pf'.
34662         * lib/math.in.h (log1pf): New declaration.
34663         * lib/log1pf.c: New file.
34664         * m4/log1pf.m4: New file.
34665         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
34666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
34667         REPLACE_LOG1PF.
34668         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
34669         REPLACE_LOG1PF.
34670         * modules/log1pf: New file.
34671         * tests/test-math-c++.cc: Check the declaration of log1pf.
34672         * doc/posix-functions/log1pf.texi: Mention the new module.
34674 2012-03-10  Bruno Haible  <bruno@clisp.org>
34676         log1p tests: More tests.
34677         * tests/test-log1p.h: New file.
34678         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
34679         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
34680         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
34681         (main): Invoke test_function.
34683         log1p: Provide replacement for Minix and MSVC.
34684         * lib/math.in.h (log1p): New declaration.
34685         * lib/log1p.c: New file.
34686         * m4/log1p.m4: New file.
34687         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
34688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
34689         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
34690         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
34691         (Depends-on): Add math, isnand, log, round.
34692         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
34693         HAVE_LOG1P is 0.
34694         * tests/test-math-c++.cc: Check the declaration of log1p.
34695         * doc/posix-functions/log1p.texi: Mention the replacement.
34697 2012-03-10  Bruno Haible  <bruno@clisp.org>
34699         math tests: Small simplification.
34700         * tests/test-exp.h (test_function): Use the same err_bound for
34701         'double' on platforms with sizeof (long double) == sizeof (double)
34702         than on platforms with sizeof (long double) > sizeof (double).
34703         * tests/test-exp2.h (test_function): Likewise.
34704         * tests/test-expm1.h (test_function): Likewise.
34705         * tests/test-log.h (test_function): Likewise.
34707 2012-03-10  Bruno Haible  <bruno@clisp.org>
34709         Fix some comments.
34710         * lib/expl.c: Fix an ambiguous comment.
34711         * lib/expm1.c: Likewise.
34712         * lib/expm1l.c: Likewise.
34713         * lib/exp2.c: Likewise.
34714         * lib/exp2l.c: Likewise.
34716 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
34718         regex: allow inclusion of <regex.h> before <limits.h>
34719         Without this patch, portable programs had to include <limits.h> before
34720         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
34721         I ran into this problem with a test version of GNU grep on Solaris 8.
34722         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
34723         This is done conditionally so that this change can be merged
34724         back to glibc.
34725         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
34726         using the included regex.
34728         fts: depend on fdopendir
34729         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
34730         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
34731         problem was introduced when fdopendir was split out.
34733 2012-03-10  Bruno Haible  <bruno@clisp.org>
34735         Remove unused variables.
34736         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
34737         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
34739 2012-03-10  Bruno Haible  <bruno@clisp.org>
34741         isnanf-nolibm: Fix last commit.
34742         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
34744         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
34745         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
34747 2012-03-10  Bruno Haible  <bruno@clisp.org>
34749         logf-ieee: Work around test failure on NetBSD 5.1.
34750         * m4/logf-ieee.m4: New file.
34751         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
34752         whether logf works with a negative argument. Replace it if not.
34753         * lib/logf.c (logf): For negative arguments, return NaN.
34754         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
34755         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
34756         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
34758         logf-ieee: Work around test failure on Solaris 9.
34759         * modules/logf-ieee (Depends-on): Add log-ieee.
34760         (configure.ac): Require gl_FUNC_LOGF.
34762         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
34763         * m4/log-ieee.m4: New file.
34764         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
34765         log works with a negative argument. Replace it if not.
34766         * lib/log.c (log): For negative arguments, return NaN.
34767         * modules/log-ieee (Files): Add m4/log-ieee.m4.
34768         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
34769         * doc/posix-functions/log.texi: Mention the log-ieee module.
34771         Tests for module 'logl-ieee'.
34772         * modules/logl-ieee-tests: New file.
34773         * tests/test-logl-ieee.c: New file.
34775         New module 'logl-ieee'.
34776         * modules/logl-ieee: New file.
34778         Tests for module 'log-ieee'.
34779         * modules/log-ieee-tests: New file.
34780         * tests/test-log-ieee.c: New file.
34782         New module 'log-ieee'.
34783         * modules/log-ieee: New file.
34785         Tests for module 'logf-ieee'.
34786         * modules/logf-ieee-tests: New file.
34787         * tests/test-logf-ieee.c: New file.
34788         * tests/test-log-ieee.h: New file.
34790         New module 'logf-ieee'.
34791         * modules/logf-ieee: New file.
34793 2012-03-10  Bruno Haible  <bruno@clisp.org>
34795         log: Fix bug introduced on 2012-03-09.
34796         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
34798 2012-03-10  Pádraig Brady  <P@draigBrady.com>
34800         timer-time: link explicitly with pthreads on glibc
34801         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34802         to support static linking, when newer glibc is
34803         detected, as that contains pthread emulation of
34804         POSIX timer functions where required.
34805         * modules/timer-time: Depend on threadlib to
34806         pull in the appropriate library to link.
34808 2012-03-10  Bruno Haible  <bruno@clisp.org>
34810         log* tests: More tests.
34811         * tests/test-log.h: New file.
34812         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
34813         (main): Invoke test_function.
34814         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
34815         (main): Invoke test_function.
34816         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
34817         (main): Invoke test_function.
34818         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
34819         tests/randomd.c.
34820         (Makefile.am): Add randomd.c to test_log_SOURCES.
34821         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
34822         tests/randomf.c.
34823         (Makefile.am): Add randomf.c to test_logf_SOURCES.
34824         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
34825         tests/randoml.c.
34826         (Depends-on): Add 'float'.
34827         (Makefile.am): Add randoml.c to test_logl_SOURCES.
34829 2012-03-09  Bruno Haible  <bruno@clisp.org>
34831         logl: Work around OSF/1 5.1 bug.
34832         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
34833         * lib/logl.c (logl): If logl exists, use it and provide just the
34834         workaround.
34835         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
34836         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
34837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
34838         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
34839         * modules/logl (configure.ac): Consider REPLACE_LOGL.
34840         (Depends-on): Update conditions.
34841         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
34843 2012-03-09  Bruno Haible  <bruno@clisp.org>
34845         logf: Work around OSF/1 5.1 bug.
34846         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
34847         * lib/logf.c (logf): If logf exists, use it and provide just the
34848         workaround.
34849         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
34850         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
34851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
34852         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
34853         * modules/logf (configure.ac): Consider REPLACE_LOGF.
34854         (Depends-on): Update conditions.
34855         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
34857 2012-03-09  Bruno Haible  <bruno@clisp.org>
34859         log: Work around OSF/1 5.1 bug.
34860         * lib/math.in.h (log): New declaration.
34861         * lib/log.c: New file.
34862         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
34863         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
34864         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
34865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
34866         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
34867         * modules/log (Files): Add lib/log.c.
34868         (Depends-on): Add math.
34869         (configure.ac): If REPLACE_LOG is 1, compile an override.
34870         * tests/test-math-c++.cc: Check the declaration of log.
34871         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
34873 2012-03-09  Jim Meyering  <meyering@redhat.com>
34875         readtokens.c: adjust wording in a comment
34876         * lib/readtokens.c: Insert omitted "that" in a comment.
34878 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34880         modechange: add notations +40, 00440, etc.
34881         * lib/modechange.c (mode_compile): Support new notations
34882         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
34884 2012-03-08  Bruno Haible  <bruno@clisp.org>
34886         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
34887         * m4/exp2l-ieee.m4: New file.
34888         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
34889         test whether exp2l works with a NaN argument and with a negative
34890         infinity argument. Replace it if not.
34891         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
34892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
34893         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
34894         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
34895         (Depends-on): Update conditions.
34896         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
34897         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
34898         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
34900         Tests for module 'exp2l-ieee'.
34901         * modules/exp2l-ieee-tests: New file.
34902         * tests/test-exp2l-ieee.c: New file.
34904         New module 'exp2l-ieee'.
34905         * modules/exp2l-ieee: New file.
34907         Tests for module 'exp2-ieee'.
34908         * modules/exp2-ieee-tests: New file.
34909         * tests/test-exp2-ieee.c: New file.
34911         New module 'exp2-ieee'.
34912         * modules/exp2-ieee: New file.
34914         Tests for module 'exp2f-ieee'.
34915         * modules/exp2f-ieee-tests: New file.
34916         * tests/test-exp2f-ieee.c: New file.
34917         * tests/test-exp2-ieee.h: New file.
34919         New module 'exp2f-ieee'.
34920         * modules/exp2f-ieee: New file.
34922 2012-03-08  Bruno Haible  <bruno@clisp.org>
34924         Tests for module 'exp2l'.
34925         * modules/exp2l-tests: New file.
34926         * tests/test-exp2l.c: New file.
34928         New module 'exp2l'.
34929         * lib/math.in.h (exp2l): New declaration.
34930         * lib/exp2l.c: New file.
34931         * lib/expl-table.c: New file, extracted from lib/expl.c.
34932         * lib/expl.c (gl_expl_table): New declaration.
34933         (expl): Remove expl_table. Update reference.
34934         * m4/exp2l.m4: New file.
34935         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
34936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
34937         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
34938         * modules/exp2l: New file.
34939         * modules/expl (Files): Add lib/expl-table.c.
34940         (configure.ac): Compile also expl-table.c.
34941         * tests/test-math-c++.cc: Check the declaration of exp2l.
34942         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
34943         problem.
34945 2012-03-08  Bruno Haible  <bruno@clisp.org>
34947         Tests for module 'exp2f'.
34948         * modules/exp2f-tests: New file.
34949         * tests/test-exp2f.c: New file.
34951         New module 'exp2f'.
34952         * lib/math.in.h (exp2f): New declaration.
34953         * lib/exp2f.c: New file.
34954         * m4/exp2f.m4: New file.
34955         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
34956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
34957         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
34958         * modules/exp2f: New file.
34959         * tests/test-math-c++.cc: Check the declaration of exp2f.
34960         * doc/posix-functions/exp2f.texi: Mention the new module and the
34961         IRIX problem.
34963 2012-03-08  Bruno Haible  <bruno@clisp.org>
34965         Tests for module 'exp2'.
34966         * modules/exp2-tests: New file.
34967         * tests/test-exp2.c: New file.
34968         * tests/test-exp2.h: New file.
34970         New module 'exp2'.
34971         * lib/math.in.h (exp2): New declaration.
34972         * lib/exp2.c: New file.
34973         * m4/exp2.m4: New file.
34974         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
34975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
34976         REPLACE_EXP2.
34977         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
34978         REPLACE_EXP2.
34979         * modules/exp2: New file.
34980         * tests/test-math-c++.cc: Check the declaration of exp2.
34981         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
34982         and OpenBSD problems.
34984 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34986         savedir: fix comment typo
34987         * lib/savedir.c (savedirstream): Fix typo in comment.
34989 2012-03-08  Bruno Haible  <bruno@clisp.org>
34991         test-readtokens.c: use const; remove unwarranted cast
34992         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
34994 2012-03-08  Bruno Haible  <bruno@clisp.org>
34996         fmal: Avoid compilation error on AIX.
34997         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
34998         AIX 5.2..7.1.
35000 2012-03-08  Bruno Haible  <bruno@clisp.org>
35002         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
35003         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
35004         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
35005         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
35006         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
35007         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
35008         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
35010 2012-03-08  Bruno Haible  <bruno@clisp.org>
35012         remainderf: Override buggy system function on IRIX 6.5.
35013         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
35014         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
35015         when it exists.
35016         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
35018 2012-03-08  Jim Meyering  <meyering@redhat.com>
35020         test-readtokens.c: avoid const-related compilation warnings
35021         * tests/test-readtokens.c: Avoid const-related compilation warnings.
35023 2012-03-07  Jim Meyering  <meyering@redhat.com>
35024             Bruno Haible  <bruno@clisp.org>
35026         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
35027         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
35028         tests/randomd.c.
35029         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
35030         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
35031         tests/randoml.c.
35032         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
35034 2012-03-07  Bruno Haible  <bruno@clisp.org>
35036         expm1l: Avoid compilation error on AIX.
35037         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
35038         AIX 5.2..7.1.
35040 2012-03-07  Bruno Haible  <bruno@clisp.org>
35042         expm1l: Don't override undeclared system function on IRIX 6.5.
35043         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
35044         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
35045         it exists. Set HAVE_DECL_EXPM1L.
35046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
35047         HAVE_EXPM1L.
35048         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
35049         HAVE_EXPM1L.
35050         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
35052 2012-03-07  Bruno Haible  <bruno@clisp.org>
35054         remainderl: Don't override undeclared system function on IRIX 6.5.
35055         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
35056         HAVE_REMAINDERL.
35057         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
35058         declared when it exists. Set HAVE_DECL_REMAINDERL.
35059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
35060         not HAVE_REMAINDERL.
35061         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
35062         HAVE_REMAINDERL.
35063         * doc/posix-functions/remainderl.texi: Mention missing declaration
35064         problem.
35066 2012-03-07  Bruno Haible  <bruno@clisp.org>
35068         rintf: Don't override undeclared system function on IRIX 6.5.
35069         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
35070         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
35071         exists. Set HAVE_DECL_RINTF.
35072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
35073         HAVE_RINTF.
35074         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
35075         HAVE_RINTF.
35076         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
35078 2012-03-07  Bruno Haible  <bruno@clisp.org>
35080         roundl: Avoid compilation error on AIX.
35081         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
35082         AIX 5.2..7.1.
35084 2012-03-07  Bruno Haible  <bruno@clisp.org>
35086         roundl: Don't override undeclared system function on IRIX 6.5.
35087         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
35088         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
35089         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
35090         * modules/roundl (configure.ac): For replacement code, test
35091         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
35092         (Depends-on): Update conditions.
35093         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
35095 2012-03-07  Bruno Haible  <bruno@clisp.org>
35097         roundf: Don't override undeclared system function on IRIX 6.5.
35098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
35099         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
35100         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
35101         * modules/roundf (configure.ac): For replacement code, test
35102         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
35103         (Depends-on): Update conditions.
35104         * modules/roundf-ieee (Depends-on): Update conditions.
35105         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
35107 2012-03-07  Bruno Haible  <bruno@clisp.org>
35109         round: Don't override undeclared system function on IRIX 6.5.
35110         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
35111         argument.
35112         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
35113         also when it is not declared. Set HAVE_ROUND. For replacement code,
35114         test HAVE_ROUND, not HAVE_DECL_ROUND.
35115         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
35116         not HAVE_DECL_ROUND.
35117         (Depends-on): Update conditions.
35118         * modules/round-ieee (Depends-on): Update conditions.
35119         * doc/posix-functions/round.texi: Mention the IRIX problem.
35121 2012-03-07  Bruno Haible  <bruno@clisp.org>
35123         copysignf: Don't override undeclared system function on IRIX 6.5.
35124         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
35125         HAVE_COPYSIGNF.
35126         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
35127         declared when it exists. Set HAVE_DECL_COPYSIGNF.
35128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
35129         not HAVE_COPYSIGNF.
35130         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
35131         HAVE_COPYSIGNF.
35132         * doc/posix-functions/copysignf.texi: Mention missing declaration
35133         problem.
35135 2012-03-07  Jim Meyering  <meyering@redhat.com>
35137         readtokens: add tests
35138         * modules/readtokens-tests: New file.
35139         * tests/test-readtokens.c: New file.
35141 2012-03-07  Jim Meyering  <meyering@redhat.com>
35143         quotearg: the module must now include quote.h
35144         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
35145         So must the module.
35146         * modules/quotearg (Files): Add quote.h.
35148 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
35150         readtokens: avoid core dumps with unusual calling patterns
35151         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
35152         * lib/readtokens.c: Include limits.h.
35153         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
35154         (readtoken): Don't cache the delimiters; the cache code was buggy
35155         if !delim && saved_delim, or if the new n_delim differs from the old.
35156         Also, it wasn't thread-safe.
35158 2012-03-07  Bruno Haible  <bruno@clisp.org>
35160         quote: Adhere to common module description layout.
35161         * modules/quote (Makefile.am): Add back empty section.
35163 2012-03-06  Akim Demaille  <demaille@gostai.com>
35165         quote: fuse into quotearg
35166         This patch is made for the benefit of Bison.
35167         quote does not leave the choice of the quoting style to the user.
35168         quoting_style provides poor customizability, yet quoting_options,
35169         which is very rich, is hidden inside quotearg.c.  So in order to
35170         allow quote customization, move its implementation to quotearg.c.
35171         * lib/quote.c: Remove.
35172         * modules/quote: Adjust.
35173         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
35174         warning: provide all the members of literal structs.
35175         (quote_quoting_options): New.
35176         (quote, quote_n): Import implementation from quote.c.
35177         * lib/quote.h: Import the comments from quote.c.
35178         (quote_quoting_options): New.
35180 2012-03-06  Bruno Haible  <bruno@clisp.org>
35182         Tests for module 'expm1l-ieee'.
35183         * modules/expm1l-ieee-tests: New file.
35184         * tests/test-expm1l-ieee.c: New file.
35186         New module 'expm1l-ieee'.
35187         * modules/expm1l-ieee: New file.
35189         Tests for module 'expm1f-ieee'.
35190         * modules/expm1f-ieee-tests: New file.
35191         * tests/test-expm1f-ieee.c: New file.
35193         New module 'expm1f-ieee'.
35194         * modules/expm1f-ieee: New file.
35196         Tests for module 'expm1-ieee'.
35197         * modules/expm1-ieee-tests: New file.
35198         * tests/test-expm1-ieee.c: New file.
35199         * tests/test-expm1-ieee.h: New file.
35201         New module 'expm1-ieee'.
35202         * modules/expm1-ieee: New file.
35203         * m4/expm1-ieee.m4: New file.
35204         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
35205         whether expm1 works with a minus zero argument. Replace it if not.
35206         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
35207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
35208         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
35209         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
35210         (Depends-on): Update conditions.
35211         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
35212         AIX problem.
35214 2012-03-06  Bruno Haible  <bruno@clisp.org>
35216         Work around expm1f bug on IRIX 6.5.
35217         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
35218         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
35219         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
35220         not work.
35221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
35222         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
35223         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
35224         (Depends-on): Update conditions.
35225         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
35227 2012-03-06  Bruno Haible  <bruno@clisp.org>
35229         Tests for module 'expm1l'.
35230         * modules/expm1l-tests: New file.
35231         * tests/test-expm1l.c: New file.
35233         New module 'expm1l'.
35234         * lib/math.in.h (expm1l): New declaration.
35235         * lib/expm1l.c: New file.
35236         * m4/expm1l.m4: New file.
35237         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
35238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
35239         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
35240         * modules/expm1l: New file.
35241         * tests/test-math-c++.cc: Check the declaration of expm1l.
35242         * doc/posix-functions/expm1l.texi: Mention the new module.
35244 2012-03-06  Bruno Haible  <bruno@clisp.org>
35246         Tests for module 'expm1f'.
35247         * modules/expm1f-tests: New file.
35248         * tests/test-expm1f.c: New file.
35250         New module 'expm1f'.
35251         * lib/math.in.h (expm1f): New declaration.
35252         * lib/expm1f.c: New file.
35253         * m4/expm1f.m4: New file.
35254         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
35255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
35256         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
35257         * modules/expm1f: New file.
35258         * tests/test-math-c++.cc: Check the declaration of expm1f.
35259         * doc/posix-functions/expm1f.texi: Mention the new module.
35261 2012-03-06  Bruno Haible  <bruno@clisp.org>
35263         Tests for module 'expm1'.
35264         * modules/expm1-tests: New file.
35265         * tests/test-expm1.c: New file.
35266         * tests/test-expm1.h: New file.
35268         New module 'expm1'.
35269         * lib/math.in.h (expm1): New declaration.
35270         * lib/expm1.c: New file.
35271         * m4/expm1.m4: New file.
35272         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
35273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
35274         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
35275         * modules/expm1: New file.
35276         * tests/test-math-c++.cc: Check the declaration of expm1.
35277         * doc/posix-functions/expm1.texi: Mention the new module.
35279 2012-03-06  Bruno Haible  <bruno@clisp.org>
35281         math: Ensure declarations of math functions.
35282         * modules/acosf (Depends-on): Add 'extensions'.
35283         * modules/asinf (Depends-on): Likewise.
35284         * modules/atan2f (Depends-on): Likewise.
35285         * modules/atanf (Depends-on): Likewise.
35286         * modules/cbrt (Depends-on): Likewise.
35287         * modules/cbrtf (Depends-on): Likewise.
35288         * modules/cbrtl (Depends-on): Likewise.
35289         * modules/copysignf (Depends-on): Likewise.
35290         * modules/copysignl (Depends-on): Likewise.
35291         * modules/cosf (Depends-on): Likewise.
35292         * modules/coshf (Depends-on): Likewise.
35293         * modules/expf (Depends-on): Likewise.
35294         * modules/fabsf (Depends-on): Likewise.
35295         * modules/fabsl (Depends-on): Likewise.
35296         * modules/fmaf (Depends-on): Likewise.
35297         * modules/fmal (Depends-on): Likewise.
35298         * modules/fmodf (Depends-on): Likewise.
35299         * modules/fmodl (Depends-on): Likewise.
35300         * modules/frexpf (Depends-on): Likewise.
35301         * modules/frexpl (Depends-on): Likewise.
35302         * modules/hypot (Depends-on): Likewise.
35303         * modules/hypotf (Depends-on): Likewise.
35304         * modules/hypotl (Depends-on): Likewise.
35305         * modules/ldexpf (Depends-on): Likewise.
35306         * modules/ldexpl (Depends-on): Likewise.
35307         * modules/log10f (Depends-on): Likewise.
35308         * modules/log10l (Depends-on): Likewise.
35309         * modules/log1p (Depends-on): Likewise.
35310         * modules/logb (Depends-on): Likewise.
35311         * modules/logf (Depends-on): Likewise.
35312         * modules/modff (Depends-on): Likewise.
35313         * modules/modfl (Depends-on): Likewise.
35314         * modules/powf (Depends-on): Likewise.
35315         * modules/remainderf (Depends-on): Likewise.
35316         * modules/remainderl (Depends-on): Likewise.
35317         * modules/rintf (Depends-on): Likewise.
35318         * modules/rintl (Depends-on): Likewise.
35319         * modules/sinf (Depends-on): Likewise.
35320         * modules/sinhf (Depends-on): Likewise.
35321         * modules/sqrtf (Depends-on): Likewise.
35322         * modules/tanf (Depends-on): Likewise.
35323         * modules/tanhf (Depends-on): Likewise.
35324         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
35325         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
35326         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
35327         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
35328         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
35329         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
35330         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
35331         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
35332         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
35333         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
35334         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
35335         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
35336         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
35337         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
35338         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
35339         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
35340         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
35341         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
35342         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
35343         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
35344         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
35345         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
35346         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
35347         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
35348         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
35349         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
35350         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
35351         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
35352         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
35353         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
35354         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
35355         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
35356         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
35357         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
35358         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
35359         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
35360         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
35361         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
35362         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
35363         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
35364         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
35366 2012-03-06  Bruno Haible  <bruno@clisp.org>
35368         math: Update module names in warnings.
35369         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35370         tanl): Use specific module name in warn-on-use warning.
35372 2012-03-06  Bruno Haible  <bruno@clisp.org>
35374         expl: Simplify computation.
35375         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
35377 2012-03-05  Bruno Haible  <bruno@clisp.org>
35379         exp* tests: More tests.
35380         * tests/test-exp.h: New file.
35381         * tests/test-exp.c: Include <float.h> and test-exp.h.
35382         (main): Invoke test_function.
35383         * tests/test-expf.c: Include <float.h> and test-exp.h.
35384         (main): Invoke test_function.
35385         * tests/test-expl.c: Include <float.h> and test-exp.h.
35386         (main): Invoke test_function.
35387         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
35388         (Makefile.am): Add randomd.c to test_exp_SOURCES.
35389         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
35390         (Makefile.am): Add randomf.c to test_expf_SOURCES.
35391         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
35392         (Depends-on): Add 'float'.
35393         (Makefile.am): Add randoml.c to test_expl_SOURCES.
35395         expl: Fix precision of computed result.
35396         * lib/expl.c: Completely rewritten.
35397         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
35398         (Maintainer): Add me.
35399         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
35401 2012-03-05  Bruno Haible  <bruno@clisp.org>
35403         cbrt* tests: More tests.
35404         * tests/test-cbrt.h: New file.
35405         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
35406         (main): Invoke test_function.
35407         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
35408         (main): Invoke test_function.
35409         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
35410         (main): Invoke test_function.
35411         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
35412         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
35413         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
35414         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
35415         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
35416         (Depends-on): Add 'float'.
35417         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
35419 2012-03-05  Bruno Haible  <bruno@clisp.org>
35421         hypot* tests: More tests.
35422         * tests/test-hypot.h: New file, partially extracted from
35423         tests/test-hypotl.c.
35424         * tests/test-hypot.c: Include test-hypot.h.
35425         (main): Invoke test_function.
35426         * tests/test-hypotf.c: Include test-hypot.h.
35427         (main): Invoke test_function.
35428         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
35429         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
35430         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
35431         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
35432         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
35433         tests/randomf.c.
35434         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
35435         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
35436         tests/randoml.c.
35437         (Depends-on): Add 'fpucw', 'float'.
35438         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
35440 2012-03-05  Bruno Haible  <bruno@clisp.org>
35442         fpucw: Doc about FreeBSD.
35443         * lib/fpucw.h: Mention FreeBSD in comments.
35445 2012-03-04  Bruno Haible  <bruno@clisp.org>
35447         sqrt* tests: More tests.
35448         * tests/test-sqrt.h: New file.
35449         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
35450         (main): Invoke test_function.
35451         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
35452         (main): Invoke test_function.
35453         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
35454         (main): Invoke test_function.
35455         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
35456         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
35457         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
35458         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
35459         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
35460         (Depends-on): Add 'float'.
35461         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
35463 2012-03-04  Bruno Haible  <bruno@clisp.org>
35465         remainder* tests: More tests.
35466         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
35467         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
35468         (main): Invoke test_function.
35469         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
35470         (main): Invoke test_function.
35471         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
35472         (main): Invoke test_function.
35473         * modules/remainder-tests (Files): Add tests/test-remainder.h,
35474         tests/randomd.c.
35475         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
35476         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
35477         tests/randomf.c.
35478         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
35479         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
35480         tests/randoml.c.
35481         (Depends-on): Add 'float'.
35482         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
35484 2012-03-04  Bruno Haible  <bruno@clisp.org>
35486         remainder, remainderf, remainderl: Fix computation for large quotients.
35487         * lib/remainder.c: Completely rewritten.
35488         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
35489         USE_FLOAT.
35490         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
35491         USE_LONG_DOUBLE.
35492         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
35493         isnand, isinf. Remove round, fma.
35494         * modules/remainderf (Files): Add lib/remainder.c.
35495         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
35496         Remove roundf, fmaf.
35497         * modules/remainderl (Files): Add lib/remainder.c.
35498         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
35499         isinf. Remove roundl, fmal.
35500         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
35501         REMAINDER_LIBM.
35502         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
35503         REMAINDERF_LIBM.
35504         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
35505         REMAINDERL_LIBM.
35507 2012-03-04  Bruno Haible  <bruno@clisp.org>
35509         fmod* tests: More tests.
35510         * tests/test-fmod.h (my_ldexp): New function.
35511         (test_function): Reduce amount of random numbers to test. Add tests
35512         of very large quotients x / y.
35513         * tests/test-fmod.c (MAX_EXP): New macro.
35514         * tests/test-fmodf.c (MAX_EXP): Likewise.
35515         * tests/test-fmodl.c (MAX_EXP): Likewise.
35517 2012-03-04  Bruno Haible  <bruno@clisp.org>
35519         fmod, fmodl: Fix computation for large quotients x / y.
35520         * lib/fmod.c: Completely rewritten.
35521         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
35522         USE_LONG_DOUBLE.
35523         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
35524         isnand. Remove fma.
35525         * modules/fmodl (Files): Add lib/fmod.c.
35526         (Depends-on): Add float, isfinite, signbit, fabsl,
35527         frexpl, ldexpl, isnanl. Remove fma.
35528         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
35529         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
35531 2012-03-03  Bruno Haible  <bruno@clisp.org>
35533         fmod* tests: More tests.
35534         * tests/test-fmod.h: New file.
35535         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
35536         (main): Invoke test_function.
35537         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
35538         (main): Invoke test_function.
35539         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
35540         (main): Invoke test_function.
35541         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
35542         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
35543         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
35544         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
35545         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
35546         (Depends-on): Add 'float'.
35547         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
35549 2012-03-03  Bruno Haible  <bruno@clisp.org>
35551         rint* tests: More tests.
35552         * tests/test-rint.h: New file, partially extracted from
35553         tests/test-rintl.c.
35554         * tests/test-rint.c: Include test-rint.h.
35555         (main): Invoke test_function.
35556         * tests/test-rintf.c: Include test-rint.h.
35557         (main): Invoke test_function.
35558         * tests/test-rintl.c: Include test-rint.h.
35559         (main): Invoke test_function.
35560         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
35561         (Makefile.am): Add randomd.c to test_rint_SOURCES.
35562         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
35563         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
35564         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
35565         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
35567 2012-03-03  Bruno Haible  <bruno@clisp.org>
35569         modf* tests: More tests.
35570         * tests/test-modf.h: New file.
35571         * tests/test-modf.c: Include <float.h> and test-modf.h.
35572         (main): Invoke test_function.
35573         * tests/test-modff.c: Include <float.h> and test-modf.h.
35574         (main): Invoke test_function.
35575         * tests/test-modfl.c: Include <float.h> and test-modf.h.
35576         (main): Invoke test_function.
35577         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
35578         (Makefile.am): Add randomd.c to test_modf_SOURCES.
35579         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
35580         (Makefile.am): Add randomf.c to test_modff_SOURCES.
35581         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
35582         (Depends-on): Add 'float'.
35583         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
35585 2012-03-03  Bruno Haible  <bruno@clisp.org>
35587         fabs* tests: More tests.
35588         * tests/test-fabs.h: New file, partially extracted from
35589         tests/test-fabsl.c.
35590         * tests/test-fabs.c (RANDOM): New macro.
35591         * tests/test-fabsf.c (RANDOM): New macro.
35592         * tests/test-fabsl.c (RANDOM): New macro.
35593         * modules/fabs-tests (Files): Add tests/randomd.c.
35594         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
35595         * modules/fabsf-tests (Files): Add tests/randomf.c.
35596         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
35597         * modules/fabsl-tests (Files): Add tests/randoml.c.
35598         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
35600 2012-03-03  Bruno Haible  <bruno@clisp.org>
35602         ldexp* tests: More tests.
35603         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
35604         * tests/test-ldexp.c (RANDOM): New macro.
35605         * tests/test-ldexpf.c (RANDOM): New macro.
35606         * tests/test-ldexpl.c (RANDOM): New macro.
35607         * modules/ldexp-tests (Files): Add tests/randomd.c.
35608         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
35609         * modules/ldexpf-tests (Files): Add tests/randomf.c.
35610         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
35611         * modules/ldexpl-tests (Files): Add tests/randoml.c.
35612         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
35614 2012-03-03  Bruno Haible  <bruno@clisp.org>
35616         frexp* tests: More tests.
35617         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
35618         * tests/test-frexp.c (RANDOM): New macro.
35619         * tests/test-frexpf.c (RANDOM): New macro.
35620         * tests/test-frexpl.c (RANDOM): New macro.
35621         * modules/frexp-tests (Files): Add tests/randomd.c.
35622         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
35623         * modules/frexpf-tests (Files): Add tests/randomf.c.
35624         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
35625         * modules/frexpl-tests (Files): Add tests/randoml.c.
35626         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
35628 2012-03-03  Bruno Haible  <bruno@clisp.org>
35630         Support for pseudo-random numbers in tests.
35631         * tests/randomf.c: New file.
35632         * tests/randomd.c: New file.
35633         * tests/randoml.c: New file.
35634         * tests/macros.h (randomf, randomd, randoml): New declarations.
35636 2012-03-03  Bruno Haible  <bruno@clisp.org>
35638         frexp* tests: Refactor.
35639         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
35640         * tests/test-frexp.c: Include and use it.
35641         * tests/test-frexpf.c: Likewise.
35642         * tests/test-frexpl.c: Likewise.
35643         * modules/frexp-tests (Files): Add tests/test-frexp.h.
35644         * modules/frexpf-tests (Files): Likewise.
35645         * modules/frexpl-tests (Files): Likewise.
35647 2012-03-02  Jim Meyering  <meyering@redhat.com>
35649         maint: don't specify XZ_OPT=-9ev in dist-related rule
35650         Using xz's -9 option is warranted only if you have a very large
35651         tarball (see xz's documentation for the sizes vs. presets), and
35652         requires 64MiB of memory at decompression time.
35653         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
35654         Automake's default of just "-e" is fine.  Override on a
35655         per-package basis by setting XZ_OPT e.g., in cfg.mk.
35657 2012-03-01  Eric Blake  <eblake@redhat.com>
35659         maint.mk: allow announcement for non-gnulib project
35660         * maint.mk (announcement): Skip gnulib version if not used.
35662 2012-03-01  Jim Meyering  <meyering@redhat.com>
35664         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
35665         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
35666         envvar settings cannot interfere.  Otherwise, setting envvars like
35667         prohibit=foo require=bar, etc. would cause spurious test failures.
35669 2012-03-01  Eric Blake  <eblake@redhat.com>
35671         maint.mk: add per-line exclusions to prohibitions
35672         * maint.mk (_sc_search_regexp): Add $exclude parameter.
35673         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
35674         (sc_const_long_option): Use it.
35676 2012-03-01  Bruno Haible  <bruno@clisp.org>
35678         Tests for module 'expl-ieee'.
35679         * modules/expl-ieee-tests: New file.
35680         * tests/test-expl-ieee.c: New file.
35682         New module 'expl-ieee'.
35683         * modules/expl-ieee: New file.
35685         Tests for module 'exp-ieee'.
35686         * modules/exp-ieee-tests: New file.
35687         * tests/test-exp-ieee.c: New file.
35689         New module 'exp-ieee'.
35690         * modules/exp-ieee: New file.
35692         Tests for module 'expf-ieee'.
35693         * modules/expf-ieee-tests: New file.
35694         * tests/test-expf-ieee.c: New file.
35695         * tests/test-exp-ieee.h: New file.
35697         New module 'expf-ieee'.
35698         * modules/expf-ieee: New file.
35700 2012-02-29  Bruno Haible  <bruno@clisp.org>
35702         cbrtl-ieee: Work around test failure on IRIX 6.5.
35703         * m4/cbrtl-ieee.m4: New file.
35704         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
35705         test whether cbrtl works with a minus zero argument. Replace it if not.
35706         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
35707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
35708         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
35709         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
35710         (Depends-on): Update conditions.
35711         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
35712         m4/signbit.m4.
35713         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
35714         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
35715         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
35717         Tests for module 'cbrtl-ieee'.
35718         * modules/cbrtl-ieee-tests: New file.
35719         * tests/test-cbrtl-ieee.c: New file.
35721         New module 'cbrtl-ieee'.
35722         * modules/cbrtl-ieee: New file.
35724         Tests for module 'cbrt-ieee'.
35725         * modules/cbrt-ieee-tests: New file.
35726         * tests/test-cbrt-ieee.c: New file.
35728         New module 'cbrt-ieee'.
35729         * modules/cbrt-ieee: New file.
35731         Tests for module 'cbrtf-ieee'.
35732         * modules/cbrtf-ieee-tests: New file.
35733         * tests/test-cbrtf-ieee.c: New file.
35734         * tests/test-cbrt-ieee.h: New file.
35736         New module 'cbrtf-ieee'.
35737         * modules/cbrtf-ieee: New file.
35739 2012-02-29  Bruno Haible  <bruno@clisp.org>
35741         cbrtf: Work around bug in IRIX 6.5 system function.
35742         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
35743         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
35744         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
35745         work.
35746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
35747         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
35748         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
35749         (Depends-on): Update conditions.
35750         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
35752 2012-02-29  Bruno Haible  <bruno@clisp.org>
35754         Tests for module 'cbrtl'.
35755         * modules/cbrtl-tests: New file.
35756         * tests/test-cbrtl.c: New file.
35758         New module 'cbrtl'.
35759         * lib/math.in.h (cbrtl): New declaration.
35760         * lib/cbrtl.c: New file.
35761         * m4/cbrtl.m4: New file.
35762         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
35763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
35764         HAVE_DECL_CBRTL.
35765         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
35766         HAVE_DECL_CBRTL.
35767         * modules/cbrtl: New file.
35768         * tests/test-math-c++.cc: Check the declaration of cbrtl.
35769         * doc/posix-functions/cbrtl.texi: Mention the new module.
35771 2012-02-29  Bruno Haible  <bruno@clisp.org>
35773         Tests for module 'cbrtf'.
35774         * modules/cbrtf-tests: New file.
35775         * tests/test-cbrtf.c: New file.
35777         New module 'cbrtf'.
35778         * lib/math.in.h (cbrtf): New declaration.
35779         * lib/cbrtf.c: New file.
35780         * m4/cbrtf.m4: New file.
35781         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
35782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
35783         HAVE_DECL_CBRTF.
35784         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
35785         HAVE_DECL_CBRTF.
35786         * modules/cbrtf: New file.
35787         * tests/test-math-c++.cc: Check the declaration of cbrtf.
35788         * doc/posix-functions/cbrtf.texi: Mention the new module.
35790 2012-02-29  Bruno Haible  <bruno@clisp.org>
35792         cbrt: Provide replacement on MSVC and Minix.
35793         * lib/math.in.h (cbrt): New declaration.
35794         * lib/cbrt.c: New file.
35795         * m4/cbrt.m4: New file.
35796         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
35797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
35798         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
35799         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
35800         (Depends-on): Add dependencies.
35801         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
35802         * tests/test-math-c++.cc: Check the declaration of cbrt.
35803         * doc/posix-functions/cbrt.texi: Mention that the module provides a
35804         replacement.
35806 2012-02-29  Bruno Haible  <bruno@clisp.org>
35808         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
35809         * m4/hypotl-ieee.m4: New file.
35810         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
35811         test whether hypotl works with mixed NaN and Infinity arguments.
35812         Replace it if not.
35813         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
35814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
35815         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
35816         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
35817         (Depends-on): Update conditions.
35818         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
35819         (Depends-on): Add hypot-ieee.
35820         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
35821         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
35823         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
35824         * m4/hypotf-ieee.m4: New file.
35825         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
35826         test whether hypotf works with mixed NaN and Infinity arguments.
35827         Replace it if not.
35828         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
35829         (Depends-on): Add hypot-ieee.
35830         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
35831         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
35833         hypot-ieee: Work around test failure on OSF/1 and native Windows.
35834         * lib/math.in.h (hypot): New declaration.
35835         * lib/hypot.c: New file.
35836         * m4/hypot-ieee.m4: New file.
35837         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
35838         whether hypot works with mixed NaN and Infinity arguments. Replace it
35839         if not.
35840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
35841         REPLACE_HYPOT.
35842         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
35843         * modules/hypot (Files): Add lib/hypot.c.
35844         (Depends-on): Add dependencies.
35845         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
35846         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
35847         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
35848         * tests/test-math-c++.cc: Check the declaration of hypot.
35849         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
35851         Tests for module 'hypotl-ieee'.
35852         * modules/hypotl-ieee-tests: New file.
35853         * tests/test-hypotl-ieee.c: New file.
35855         New module 'hypotl-ieee'.
35856         * modules/hypotl-ieee: New file.
35858         Tests for module 'hypot-ieee'.
35859         * modules/hypot-ieee-tests: New file.
35860         * tests/test-hypot-ieee.c: New file.
35862         New module 'hypot-ieee'.
35863         * modules/hypot-ieee: New file.
35865         Tests for module 'hypotf-ieee'.
35866         * modules/hypotf-ieee-tests: New file.
35867         * tests/test-hypotf-ieee.c: New file.
35868         * tests/test-hypot-ieee.h: New file.
35870         New module 'hypotf-ieee'.
35871         * modules/hypotf-ieee: New file.
35873 2012-02-29  Bruno Haible  <bruno@clisp.org>
35875         Remove unused variables.
35876         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
35877         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
35878         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
35879         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
35881 2012-02-29  Eric Blake  <eblake@redhat.com>
35883         termios: fix pid_t always, not just for tcgetsid
35884         * doc/posix-headers/termios.texi (termios.h): Mention problem.
35885         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
35886         just when building tcgetsid.
35888 2012-02-29  Bruno Haible  <bruno@clisp.org>
35890         Tests for module 'hypotl'.
35891         * modules/hypotl-tests: New file.
35892         * tests/test-hypotl.c: New file.
35894         New module 'hypotl'.
35895         * lib/math.in.h (hypotl): New declaration.
35896         * lib/hypotl.c: New file.
35897         * m4/hypotl.m4: New file.
35898         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
35899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
35900         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
35901         * modules/hypotl: New file.
35902         * tests/test-math-c++.cc: Check the hypotl declaration.
35903         * doc/posix-functions/hypotl.texi: Mention the new module.
35905 2012-02-29  Eric Blake  <eblake@redhat.com>
35907         tcgetsid: fix cygwin header bug
35908         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
35910         docs: update cygwin progress
35911         * doc/posix-functions/llround.texi (llround): Added in cygwin
35912         1.7.8.
35913         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
35914         * doc/glibc-functions/program_invocation_name.texi
35915         (program_invocation_name): Likewise.
35916         * doc/glibc-functions/program_invocation_short_name.texi
35917         (program_invocation_short_name): Likewise.
35918         * doc/glibc-functions/madvise.texi (madvise): Likewise.
35919         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
35920         Likewise.
35921         * doc/posix-functions/pthread_spin_destroy.texi
35922         (pthread_spin_destroy): Added in cygwin 1.7.10.
35923         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
35924         Likewise.
35925         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
35926         Likewise.
35927         * doc/posix-functions/pthread_spin_trylock.texi
35928         (pthread_spin_trylock): Likewise.
35929         * doc/posix-functions/pthread_spin_unlock.texi
35930         (pthread_spin_unlock): Likewise.
35931         * doc/posix-functions/pthread_setschedprio.texi
35932         (pthread_setschedprio): Likewise.
35933         * doc/posix-functions/pthread_attr_getstack.texi
35934         (pthread_attr_getstack): Likewise.
35935         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
35936         (pthread_attr_getstackaddr): Likewise.
35937         * doc/glibc-functions/pthread_getattr_np.texi
35938         (pthread_getattr_np): Likewise.
35939         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
35940         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
35941         * doc/posix-functions/clock_settime.texi (clock_settime):
35942         Likewise.
35943         * doc/posix-functions/pthread_attr_getguardsize.texi
35944         (pthread_attr_getguardsize): Likewise.
35945         * doc/posix-functions/pthread_attr_setguardsize.texi
35946         (pthread_attr_setguardsize): Likewise.
35947         * doc/posix-functions/pthread_attr_setstack.texi
35948         (pthread_attr_setstack): Likewise.
35949         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
35950         (pthread_attr_setstackaddr): Likewise.
35951         * doc/posix-functions/clock_getcpuclockid.texi
35952         (clock_getcpuclockid): Likewise.
35953         * doc/posix-functions/pthread_getcpuclockid.texi
35954         (pthread_getcpuclockid): Likewise.
35955         * doc/glibc-functions/error.texi (error): Likewise.
35956         * doc/glibc-functions/error_at_line.texi (error_at_line):
35957         Likewise.
35958         * doc/glibc-functions/error_message_count.texi
35959         (error_message_count): Likewise.
35960         * doc/glibc-functions/error_one_per_line.texi
35961         (error_one_per_line): Likewise.
35962         * doc/glibc-functions/error_print_progname.texi
35963         (error_print_progname): Likewise.
35964         * doc/posix-functions/pthread_condattr_getclock.texi
35965         (pthread_condattr_getclock): Likewise.
35966         * doc/posix-functions/pthread_condattr_setclock.texi
35967         (pthread_condattr_setclock): Likewise.
35968         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
35969         Likewise.
35970         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
35971         * doc/glibc-functions/getpt.texi (getpt): Likewise.
35972         * doc/glibc-functions/get_current_dir_name.texi
35973         (get_current_dir_name): Likewise.
35974         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
35975         Likewise.
35976         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
35977         wrong return type.
35978         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
35979         1.7.11.
35981 2012-02-29  Bruno Haible  <bruno@clisp.org>
35983         Tests for module 'hypotf'.
35984         * modules/hypotf-tests: New file.
35985         * tests/test-hypotf.c: New file.
35987         New module 'hypotf'.
35988         * lib/math.in.h (hypotf): New declaration.
35989         * lib/hypotf.c: New file.
35990         * m4/hypotf.m4: New file.
35991         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
35992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
35993         REPLACE_HYPOTF.
35994         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
35995         REPLACE_HYPOTF.
35996         * modules/hypotf: New file.
35997         * tests/test-math-c++.cc: Check the hypotf declaration.
35998         * doc/posix-functions/hypotf.texi: Mention the new module.
36000         hypot: Prepare for hypotf module.
36001         * m4/hypot.m4: New file.
36002         * modules/hypot (Files): Add m4/hypot.m4.
36003         (configure.ac): Invoke gl_FUNC_HYPOT.
36005 2012-02-29  Bruno Haible  <bruno@clisp.org>
36007         hypot tests: More tests.
36008         * tests/test-hypot.c: Include <float.h>.
36009         (main): Add tests about overflow and underflow.
36011 2012-02-29  Bruno Haible  <bruno@clisp.org>
36013         math code: Add comments.
36014         * lib/acosl.c: Add comment about related glibc source files.
36015         * lib/asinl.c: Likewise.
36016         * lib/atanl.c: Likewise.
36017         * lib/expl.c: Likewise.
36018         * lib/logl.c: Likewise.
36019         * lib/sincosl.c: Likewise.
36020         * lib/sinl.c: Likewise.
36021         * lib/tanl.c: Likewise.
36022         * lib/trigl.c: Likewise.
36023         * lib/cosl.c: Likewise. Fix comments.
36025 2012-02-28  Bruno Haible  <bruno@clisp.org>
36027         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
36028         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
36029         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
36030         HUGE_VALL are defined.
36031         (numeric_equald): Renamed from numeric_equal.
36032         (numeric_equalf, numeric_equall): New functions.
36033         (main): Check also HUGE_VALF, HUGE_VALL.
36034         * modules/math-tests (Files): Add tests/macros.h.
36035         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
36036         HUGE_VALL.
36038 2012-02-28  Bruno Haible  <bruno@clisp.org>
36040         doc: Move ISO C11 feature notes into POSIX chapters.
36041         * doc/posix-functions/aligned_alloc.texi: Renamed from
36042         doc/glibc-functions/aligned_alloc.texi.
36043         * doc/posix-functions/quick_exit.texi: Renamed from
36044         doc/glibc-functions/quick_exit.texi.
36045         * doc/posix-headers/uchar.texi: Renamed from
36046         doc/glibc-headers/uchar.texi.
36047         * doc/posix-functions/c16rtomb.texi: Renamed from
36048         doc/glibc-functions/c16rtomb.texi.
36049         * doc/posix-functions/c32rtomb.texi: Renamed from
36050         doc/glibc-functions/c32rtomb.texi.
36051         * doc/posix-functions/mbrtoc16.texi: Renamed from
36052         doc/glibc-functions/mbrtoc16.texi.
36053         * doc/posix-functions/mbrtoc32.texi: Renamed from
36054         doc/glibc-functions/mbrtoc32.texi.
36055         * doc/gnulib.texi: Update.
36056         (Glibc uchar.h): Remove section.
36057         Suggested by Eric Blake.
36059 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
36061         stdnoreturn: port to MSVC better
36062         MSVC standard headers use __declspec(noreturn), so #define noreturn
36063         to empty on that platform.  Reported by Bruno Haible in
36064         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
36065         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
36066         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
36068 2012-02-28  Bruno Haible  <bruno@clisp.org>
36070         doc: Mention new glibc headers and functions.
36071         * doc/glibc-headers/uchar.texi: New file.
36072         * doc/glibc-functions/aligned_alloc.texi: New file.
36073         * doc/glibc-functions/c16rtomb.texi: New file.
36074         * doc/glibc-functions/c32rtomb.texi: New file.
36075         * doc/glibc-functions/clock_adjtime.texi: New file.
36076         * doc/glibc-functions/fanotify_init.texi: New file.
36077         * doc/glibc-functions/fanotify_mark.texi: New file.
36078         * doc/glibc-functions/inet6_opt_append.texi: New file.
36079         * doc/glibc-functions/inet6_opt_find.texi: New file.
36080         * doc/glibc-functions/inet6_opt_finish.texi: New file.
36081         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
36082         * doc/glibc-functions/inet6_opt_init.texi: New file.
36083         * doc/glibc-functions/inet6_opt_next.texi: New file.
36084         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
36085         * doc/glibc-functions/inet6_rth_add.texi: New file.
36086         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
36087         * doc/glibc-functions/inet6_rth_init.texi: New file.
36088         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
36089         * doc/glibc-functions/inet6_rth_segments.texi: New file.
36090         * doc/glibc-functions/inet6_rth_space.texi: New file.
36091         * doc/glibc-functions/login.texi: New file.
36092         * doc/glibc-functions/mbrtoc16.texi: New file.
36093         * doc/glibc-functions/mbrtoc32.texi: New file.
36094         * doc/glibc-functions/name_to_handle_at.texi: New file.
36095         * doc/glibc-functions/ntp_gettimex.texi: New file.
36096         * doc/glibc-functions/open_by_handle_at.texi: New file.
36097         * doc/glibc-functions/prlimit.texi: New file.
36098         * doc/glibc-functions/process_vm_readv.texi: New file.
36099         * doc/glibc-functions/process_vm_writev.texi: New file.
36100         * doc/glibc-functions/recvmmsg.texi: New file.
36101         * doc/glibc-functions/scandirat.texi: New file.
36102         * doc/glibc-functions/sendmmsg.texi: New file.
36103         * doc/glibc-functions/setns.texi: New file.
36104         * doc/glibc-functions/timespec_get.texi: New file.
36105         * doc/gnulib.texi: Include them.
36106         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
36107         sections.
36108         Reported by Eric Blake.
36110 2012-02-28  Bruno Haible  <bruno@clisp.org>
36112         Avoid compilation errors with MSVC option -fp:strict.
36113         * lib/floor.c: Use MSVC specific pragma fenv_access.
36114         * lib/ceil.c: Likewise.
36115         * lib/trunc.c: Likewise.
36116         * lib/round.c: Likewise.
36117         * lib/rint.c: Likewise.
36118         * lib/fma.c: Likewise.
36119         * lib/integer_length.c: Likewise.
36120         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36121         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36122         * tests/test-floor2.c: Likewise.
36123         * tests/test-floorf2.c: Likewise.
36124         * tests/test-ceil2.c: Likewise.
36125         * tests/test-ceilf2.c: Likewise.
36126         * tests/test-trunc2.c: Likewise.
36127         * tests/test-truncf2.c: Likewise.
36128         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36130 2012-02-27  Bruno Haible  <bruno@clisp.org>
36132         Tests for module 'sqrtl-ieee'.
36133         * modules/sqrtl-ieee-tests: New file.
36134         * tests/test-sqrtl-ieee.c: New file.
36136         New module 'sqrtl-ieee'.
36137         * modules/sqrtl-ieee: New file.
36139         Tests for module 'sqrt-ieee'.
36140         * modules/sqrt-ieee-tests: New file.
36141         * tests/test-sqrt-ieee.c: New file.
36143         New module 'sqrt-ieee'.
36144         * modules/sqrt-ieee: New file.
36146         Tests for module 'sqrtf-ieee'.
36147         * modules/sqrtf-ieee-tests: New file.
36148         * tests/test-sqrtf-ieee.c: New file.
36149         * tests/test-sqrt-ieee.h: New file.
36151         New module 'sqrtf-ieee'.
36152         * modules/sqrtf-ieee: New file.
36154 2012-02-27  Bruno Haible  <bruno@clisp.org>
36156         remainderl-ieee: Work around test failure on OSF/1.
36157         * m4/remainderl-ieee.m4: New file.
36158         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
36159         present, test whether remainderl works with a zero second argument.
36160         Replace it if not.
36161         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
36162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
36163         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
36164         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
36165         (Depends-on): Update conditions.
36166         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
36167         (Depends-on): Add remainder-ieee.
36168         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
36169         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
36170         module.
36172         remainderf-ieee: Work around test failure on OSF/1.
36173         * m4/remainderf-ieee.m4: New file.
36174         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
36175         present, test whether remainderf works with a zero second argument.
36176         Replace it if not.
36177         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
36178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
36179         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
36180         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
36181         (Depends-on): Update conditions.
36182         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
36183         (Depends-on): Add remainder-ieee.
36184         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
36185         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
36186         module.
36188         remainder-ieee: Work around test failure on OSF/1.
36189         * m4/remainder-ieee.m4: New file.
36190         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
36191         present, test whether remainder works with a zero second argument.
36192         Replace it if not.
36193         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
36194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
36195         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
36196         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
36197         (Depends-on): Update dependencies.
36198         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
36199         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
36200         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
36202         Tests for module 'remainderl-ieee'.
36203         * modules/remainderl-ieee-tests: New file.
36204         * tests/test-remainderl-ieee.c: New file.
36206         New module 'remainderl-ieee'.
36207         * modules/remainderl-ieee: New file.
36209         Tests for module 'remainder-ieee'.
36210         * modules/remainder-ieee-tests: New file.
36211         * tests/test-remainder-ieee.c: New file.
36213         New module 'remainder-ieee'.
36214         * modules/remainder-ieee: New file.
36216         Tests for module 'remainderf-ieee'.
36217         * modules/remainderf-ieee-tests: New file.
36218         * tests/test-remainderf-ieee.c: New file.
36219         * tests/test-remainder-ieee.h: New file.
36221         New module 'remainderf-ieee'.
36222         * modules/remainderf-ieee: New file.
36224 2012-02-27  Bruno Haible  <bruno@clisp.org>
36226         modff, modfl: Fix configure syntax error.
36227         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
36228         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
36230 2012-02-27  Bruno Haible  <bruno@clisp.org>
36232         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
36233         * m4/fmodl-ieee.m4: New file.
36234         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
36235         whether fmodl works with zero arguments. Replace it if not.
36236         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
36237         (Depends-on): Add fmod-ieee.
36238         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
36239         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
36241         fmodf-ieee: Work around test failure on OSF/1.
36242         * m4/fmodf-ieee.m4: New file.
36243         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
36244         whether fmodf works with zero arguments. Replace it if not.
36245         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
36246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
36247         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
36248         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
36249         (Depends-on): Update dependencies.
36250         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
36251         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
36252         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
36254         fmodf-ieee: Work around test failure on MSVC 9.
36255         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
36256         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
36258         fmod-ieee: Work around test failures on OSF/1, mingw.
36259         * m4/fmod-ieee.m4: New file.
36260         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
36261         whether fmod works with zero arguments. Replace it if not.
36262         * lib/math.in.h (fmod): New declaration.
36263         * lib/fmod.c: New file.
36264         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
36265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
36266         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
36267         * modules/fmod (Files): Add lib/fmod.c.
36268         (Depends-on): Add math, isinf, trunc, fma.
36269         (configure.ac): Arrange to compile lib/fmod.c if needed.
36270         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
36271         m4/signbit.m4.
36272         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
36273         * tests/test-math-c++.cc: Check the declaration of fmod.
36274         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
36276         fmodl-ieee: Fix test failures.
36277         * lib/fmodl.c (fmodl): Treat Inf specially.
36278         * modules/fmodl (Depends-on): Add isinf.
36280         Tests for module 'fmodl-ieee'.
36281         * modules/fmodl-ieee-tests: New file.
36282         * tests/test-fmodl-ieee.c: New file.
36284         New module 'fmodl-ieee'.
36285         * modules/fmodl-ieee: New file.
36287         Tests for module 'fmod-ieee'.
36288         * modules/fmod-ieee-tests: New file.
36289         * tests/test-fmod-ieee.c: New file.
36291         New module 'fmod-ieee'.
36292         * modules/fmod-ieee: New file.
36294         Tests for module 'fmodf-ieee'.
36295         * modules/fmodf-ieee-tests: New file.
36296         * tests/test-fmodf-ieee.c: New file.
36297         * tests/test-fmod-ieee.h: New file.
36299         New module 'fmodf-ieee'.
36300         * modules/fmodf-ieee: New file.
36302 2012-02-27  Bruno Haible  <bruno@clisp.org>
36304         Tests for module 'rintl-ieee'.
36305         * modules/rintl-ieee-tests: New file.
36306         * tests/test-rintl-ieee.c: New file.
36308         New module 'rintl-ieee'.
36309         * modules/rintl-ieee: New file.
36311         Tests for module 'rint-ieee'.
36312         * modules/rint-ieee-tests: New file.
36313         * tests/test-rint-ieee.c: New file.
36315         New module 'rint-ieee'.
36316         * modules/rint-ieee: New file.
36318         Tests for module 'rintf-ieee'.
36319         * modules/rintf-ieee-tests: New file.
36320         * tests/test-rintf-ieee.c: New file.
36321         * tests/test-rint-ieee.h: New file.
36323         New module 'rintf-ieee'.
36324         * modules/rintf-ieee: New file.
36326 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36328         regex: re_search etc. should return -2 when memory exhausted
36329         This bug was uncovered when testing 'grep'.  Without the fix,
36330         re_search and friends return -1 when memory is exhausted, but -1
36331         means no match, and this causes grep to falsely report no-match
36332         instead of memory-exhaustion.  See
36333         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
36334         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
36335         trouble; this can occur if re_search_internal ran out of memory.
36337 2012-02-26  Bruno Haible  <bruno@clisp.org>
36339         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
36340         * m4/modfl-ieee.m4: New file.
36341         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
36342         whether modfl works with Inf. Replace it if not.
36343         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
36344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
36345         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
36346         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
36347         (Depends-on): Update dependencies.
36348         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
36349         m4/signbit.m4.
36350         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
36351         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
36353         modfl-ieee: Fix dependencies.
36354         * modules/modfl-ieee (Depends-on): Add modf-ieee.
36356         modfl-ieee: Fix test failures.
36357         * lib/modfl.c (modfl): Treat NaN and Inf specially.
36358         * modules/modfl (Depends-on): Add isfinite, isinf.
36360         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
36361         * m4/modff-ieee.m4: New file.
36362         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
36363         whether modff works with NaN and Inf. Replace it if not.
36364         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
36365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
36366         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
36367         * modules/modff (configure.ac): Consider REPLACE_MODFF.
36368         (Depends-on): Update dependencies.
36369         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
36370         m4/signbit.m4.
36371         (Depends-on): Add modf-ieee.
36372         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
36373         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
36375         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
36376         * m4/modf-ieee.m4: New file.
36377         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
36378         whether modf works with NaN and Inf. Replace it if not.
36379         * lib/math.in.h (modf): New declaration.
36380         * lib/modf.c: New file.
36381         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
36382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
36383         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
36384         * modules/modf (Files): Add lib/modf.c.
36385         (Depends-on): Add math, isfinite, trunc, isinf.
36386         (configure.ac): Addrange to compile lib/modf.c if needed.
36387         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
36388         m4/signbit.m4.
36389         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
36390         * tests/test-math-c++.cc: Check the declaration of modf.
36391         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
36393         Tests for module 'modfl-ieee'.
36394         * modules/modfl-ieee-tests: New file.
36395         * tests/test-modfl-ieee.c: New file.
36397         New module 'modfl-ieee'.
36398         * modules/modfl-ieee: New file.
36400         Tests for module 'modf-ieee'.
36401         * modules/modf-ieee-tests: New file.
36402         * tests/test-modf-ieee.c: New file.
36404         New module 'modf-ieee'.
36405         * modules/modf-ieee: New file.
36407         Tests for module 'modff-ieee'.
36408         * modules/modff-ieee-tests: New file.
36409         * tests/test-modff-ieee.c: New file.
36410         * tests/test-modf-ieee.h: New file.
36412         New module 'modff-ieee'.
36413         * modules/modff-ieee: New file.
36415 2012-02-26  Bruno Haible  <bruno@clisp.org>
36417         Tests for module 'fabsl-ieee'.
36418         * modules/fabsl-ieee-tests: New file.
36419         * tests/test-fabsl-ieee.c: New file.
36421         New module 'fabsl-ieee'.
36422         * modules/fabsl-ieee: New file.
36424         Tests for module 'fabs-ieee'.
36425         * modules/fabs-ieee-tests: New file.
36426         * tests/test-fabs-ieee.c: New file.
36428         New module 'fabs-ieee'.
36429         * modules/fabs-ieee: New file.
36431         Tests for module 'fabsf-ieee'.
36432         * modules/fabsf-ieee-tests: New file.
36433         * tests/test-fabsf-ieee.c: New file.
36434         * tests/test-fabs-ieee.h: New file.
36436         New module 'fabsf-ieee'.
36437         * modules/fabsf-ieee: New file.
36439 2012-02-26  Bruno Haible  <bruno@clisp.org>
36441         Tests for module 'fmal-ieee'.
36442         * modules/fmal-ieee-tests: New file.
36443         * tests/test-fmal-ieee.c: New file.
36445         New module 'fmal-ieee'.
36446         * modules/fmal-ieee: New file.
36448         Tests for module 'fma-ieee'.
36449         * modules/fma-ieee-tests: New file.
36450         * tests/test-fma-ieee.c: New file.
36452         New module 'fma-ieee'.
36453         * modules/fma-ieee: New file.
36455         Tests for module 'fmaf-ieee'.
36456         * modules/fmaf-ieee-tests: New file.
36457         * tests/test-fmaf-ieee.c: New file.
36458         * tests/test-fma-ieee.h: New file.
36460         New module 'fmaf-ieee'.
36461         * modules/fmaf-ieee: New file.
36463 2012-02-26  Bruno Haible  <bruno@clisp.org>
36465         Tests for module 'ldexpl-ieee'.
36466         * modules/ldexpl-ieee-tests: New file.
36467         * tests/test-ldexpl-ieee.c: New file.
36469         New module 'ldexpl-ieee'.
36470         * modules/ldexpl-ieee: New file.
36472         Tests for module 'ldexp-ieee'.
36473         * modules/ldexp-ieee-tests: New file.
36474         * tests/test-ldexp-ieee.c: New file.
36476         New module 'ldexp-ieee'.
36477         * modules/ldexp-ieee: New file.
36479         Tests for module 'ldexpf-ieee'.
36480         * modules/ldexpf-ieee-tests: New file.
36481         * tests/test-ldexpf-ieee.c: New file.
36482         * tests/test-ldexp-ieee.h: New file.
36484         New module 'ldexpf-ieee'.
36485         * modules/ldexpf-ieee: New file.
36487 2012-02-26  Bruno Haible  <bruno@clisp.org>
36489         Refactor frexp*-ieee tests.
36490         * tests/test-frexp-ieee.h: New file.
36491         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
36492         (main): Just call test_function.
36493         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
36494         (main): Just call test_function.
36495         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
36496         (main): Just call test_function.
36497         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
36498         * modules/frexp-ieee-tests (Files): Likewise.
36499         * modules/frexpl-ieee-tests (Files): Likewise.
36501         Tests for module 'frexpl-ieee'.
36502         * modules/frexpl-ieee-tests: New file.
36503         * tests/test-frexpl-ieee.c: New file.
36505         New module 'frexpl-ieee'.
36506         * modules/frexpl-ieee: New file.
36508         Tests for module 'frexp-ieee'.
36509         * modules/frexp-ieee-tests: New file.
36510         * tests/test-frexp-ieee.c: New file.
36512         New module 'frexp-ieee'.
36513         * modules/frexp-ieee: New file.
36515         Tests for module 'frexpf-ieee'.
36516         * modules/frexpf-ieee-tests: New file.
36517         * tests/test-frexpf-ieee.c: New file.
36519         New module 'frexpf-ieee'.
36520         * modules/frexpf-ieee: New file.
36522 2012-02-26  Bruno Haible  <bruno@clisp.org>
36524         roundl-ieee tests: More tests.
36525         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36526         (main): Add tests for [MX] shaded specification in POSIX.
36527         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36528         (Depends-on): Add isnanl-nolibm.
36530         round-ieee tests: More tests.
36531         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36532         (main): Add tests for [MX] shaded specification in POSIX.
36533         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36534         (Depends-on): Add isnand-nolibm.
36536         roundf-ieee tests: More tests.
36537         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36538         (main): Add tests for [MX] shaded specification in POSIX.
36539         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36540         (Depends-on): Add isnanf-nolibm.
36542         truncl-ieee tests: More tests.
36543         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36544         (main): Add tests for [MX] shaded specification in POSIX.
36545         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36546         (Depends-on): Add isnanl-nolibm.
36548         trunc-ieee tests: More tests.
36549         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36550         (main): Add tests for [MX] shaded specification in POSIX.
36551         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36552         (Depends-on): Add isnand-nolibm.
36554         truncf-ieee tests: More tests.
36555         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36556         (main): Add tests for [MX] shaded specification in POSIX.
36557         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36558         (Depends-on): Add isnanf-nolibm.
36560         ceill-ieee tests: More tests.
36561         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36562         (main): Add tests for [MX] shaded specification in POSIX.
36563         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36564         (Depends-on): Add isnanl-nolibm.
36566         ceil-ieee tests: More tests.
36567         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36568         (main): Add tests for [MX] shaded specification in POSIX.
36569         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36570         (Depends-on): Add isnand-nolibm.
36572         ceilf-ieee tests: More tests.
36573         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36574         (main): Add tests for [MX] shaded specification in POSIX.
36575         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36576         (Depends-on): Add isnanf-nolibm.
36578         floorl-ieee tests: More tests.
36579         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
36580         (main): Add tests for [MX] shaded specification in POSIX.
36581         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36582         (Depends-on): Add isnanl-nolibm.
36584         floor-ieee tests: More tests.
36585         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
36586         (main): Add tests for [MX] shaded specification in POSIX.
36587         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36588         (Depends-on): Add isnand-nolibm.
36590         floorf-ieee tests: More tests.
36591         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
36592         (main): Add tests for [MX] shaded specification in POSIX.
36593         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
36594         (Depends-on): Add isnanf-nolibm.
36596 2012-02-26  Bruno Haible  <bruno@clisp.org>
36598         fpieee: More comments.
36599         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
36601 2012-02-25  Bruno Haible  <bruno@clisp.org>
36603         Tests for module 'log10l'.
36604         * modules/log10l-tests: New file.
36605         * tests/test-log10l.c: New file.
36606         * tests/test-math-c++.cc: Check the declaration of log10l.
36608         New module 'log10l'.
36609         * lib/math.in.h (log10l): New declaration.
36610         * lib/log10l.c: New file.
36611         * m4/log10l.m4: New file.
36612         * modules/log10l: New file.
36613         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
36614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
36615         HAVE_DECL_LOG10L.
36616         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
36617         HAVE_DECL_LOG10L.
36618         * doc/posix-functions/log10l.texi: Mention the new module.
36620 2012-02-25  Bruno Haible  <bruno@clisp.org>
36622         fmodl, remainder*: Avoid wrong results due to rounding errors.
36623         * lib/fmodl.c (fmodl): Correct the result if it is not within the
36624         expected bounds.
36625         * lib/remainderf.c (remainderf): Likewise.
36626         * lib/remainder.c (remainder): Likewise.
36627         * lib/remainderl.c (remainderl): Likewise.
36629 2012-02-25  Bruno Haible  <bruno@clisp.org>
36631         Tests for module 'remainderl'.
36632         * modules/remainderl-tests: New file.
36633         * tests/test-remainderl.c: New file.
36634         * tests/test-math-c++.cc: Check the declaration of remainderl.
36636         New module 'remainderl'.
36637         * lib/math.in.h (remainderl): New declaration.
36638         * lib/remainderl.c: New file.
36639         * m4/remainderl.m4: New file.
36640         * modules/remainderl: New file.
36641         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
36642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
36643         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
36644         HAVE_REMAINDERL.
36645         * doc/posix-functions/remainderl.texi: Mention the new module.
36647 2012-02-25  Bruno Haible  <bruno@clisp.org>
36649         Tests for module 'remainderf'.
36650         * modules/remainderf-tests: New file.
36651         * tests/test-remainderf.c: New file.
36652         * tests/test-math-c++.cc: Check the declaration of remainderf.
36654         New module 'remainderf'.
36655         * lib/math.in.h (remainderf): New declaration.
36656         * lib/remainderf.c: New file.
36657         * m4/remainderf.m4: New file.
36658         * modules/remainderf: New file.
36659         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
36660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
36661         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
36662         HAVE_REMAINDERF.
36663         * doc/posix-functions/remainderf.texi: Mention the new module.
36665 2012-02-25  Bruno Haible  <bruno@clisp.org>
36667         remainder: Support for MSVC.
36668         * lib/math.in.h (remainder): New declaration.
36669         * lib/remainder.c: New file.
36670         * m4/remainder.m4: New file.
36671         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
36672         (Depends-on): Add math, round, fma.
36673         (configure.ac): Use results of gl_FUNC_REMAINDER.
36674         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
36675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
36676         HAVE_DECL_REMAINDER.
36677         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
36678         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
36679         * tests/test-math-c++.cc: Check the declaration of remainder.
36680         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
36681         problems are fixed.
36683 2012-02-25  Bruno Haible  <bruno@clisp.org>
36685         Tests for module 'fmodl'.
36686         * modules/fmodl-tests: New file.
36687         * tests/test-fmodl.c: New file.
36688         * tests/test-math-c++.cc: Check the declaration of fmodl.
36690         New module 'fmodl'.
36691         * lib/math.in.h (fmodl): New declaration.
36692         * lib/fmodl.c: New file.
36693         * m4/fmodl.m4: New file.
36694         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
36695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
36696         REPLACE_FMODL.
36697         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
36698         REPLACE_FMODL.
36699         * modules/fmodl: New file.
36700         * doc/posix-functions/fmodl.texi: Mention the new module.
36702 2012-02-25  Bruno Haible  <bruno@clisp.org>
36704         Tests for module 'modfl'.
36705         * modules/modfl-tests: New file.
36706         * tests/test-modfl.c: New file.
36707         * tests/test-math-c++.cc: Check the declaration of modfl.
36709         New module 'modfl'.
36710         * lib/math.in.h (modfl): New declaration.
36711         * lib/modfl.c: New file.
36712         * m4/modfl.m4: New file.
36713         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
36714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
36715         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
36716         * modules/modfl: New file.
36717         * doc/posix-functions/modfl.texi: Mention the new module.
36719 2012-02-25  Bruno Haible  <bruno@clisp.org>
36721         Tests for module 'fabsl'.
36722         * modules/fabsl-tests: New file.
36723         * tests/test-fabsl.c: New file.
36724         * tests/test-math-c++.cc: Check the declaration of fabsl.
36726         New module 'fabsl'.
36727         * lib/math.in.h (fabsl): New declaration.
36728         * lib/fabsl.c: New file.
36729         * m4/fabsl.m4: New file.
36730         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
36731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
36732         REPLACE_FABSL.
36733         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
36734         REPLACE_FABSL.
36735         * modules/fabsl: New file.
36736         * doc/posix-functions/fabsl.texi: Mention the new module.
36738 2012-02-25  Bruno Haible  <bruno@clisp.org>
36740         fabs tests: More tests.
36741         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
36742         (zero): New variable.
36743         (main): Add tests for signed zero.
36744         * modules/fabs-tests (Files): Add tests/minus-zero.h.
36746         fabsf tests: More tests.
36747         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
36748         (zero): New variable.
36749         (main): Add tests for signed zero.
36750         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
36752 2012-02-24  Bruno Haible  <bruno@clisp.org>
36754         atanl: Provide function definition on MSVC.
36755         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
36756         function pointer.
36757         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
36759 2012-02-24  Bruno Haible  <bruno@clisp.org>
36761         acosl: Provide function definition on MSVC.
36762         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
36763         function pointer.
36764         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
36766 2012-02-24  Bruno Haible  <bruno@clisp.org>
36768         asinl: Provide function definition on MSVC.
36769         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
36770         function pointer.
36771         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
36773 2012-02-24  Bruno Haible  <bruno@clisp.org>
36775         tanl: Provide function definition on MSVC.
36776         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
36777         function pointer.
36778         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
36780 2012-02-24  Bruno Haible  <bruno@clisp.org>
36782         cosl: Provide function definition on MSVC.
36783         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
36784         function pointer.
36785         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
36787 2012-02-24  Bruno Haible  <bruno@clisp.org>
36789         sinl: Provide function definition on MSVC.
36790         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
36791         function pointer.
36792         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
36794 2012-02-24  Bruno Haible  <bruno@clisp.org>
36796         logl: Provide function definition on MSVC.
36797         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
36798         function pointer.
36799         * lib/math.in.h (logl): Undefine if it does not exist as a function.
36801 2012-02-24  Bruno Haible  <bruno@clisp.org>
36803         expl: Provide function definition on MSVC.
36804         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
36805         function pointer.
36806         * lib/math.in.h (expl): Undefine if it does not exist as a function.
36808 2012-02-24  Bruno Haible  <bruno@clisp.org>
36810         sqrtl: Provide function definition on MSVC.
36811         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
36812         a function pointer.
36813         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
36815 2012-02-24  Bruno Haible  <bruno@clisp.org>
36817         ceill: Provide function definition on MSVC.
36818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
36819         used as a function pointer.
36820         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
36822 2012-02-24  Bruno Haible  <bruno@clisp.org>
36824         floorl: Provide function definition on MSVC.
36825         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
36826         used as a function pointer.
36827         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
36829 2012-02-24  Bruno Haible  <bruno@clisp.org>
36831         ceilf: Provide function definition on MSVC.
36832         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
36833         used as a function pointer.
36834         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
36836 2012-02-24  Bruno Haible  <bruno@clisp.org>
36838         floorf: Provide function definition on MSVC.
36839         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
36840         used as a function pointer.
36841         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
36843 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36845         stdnoreturn: new module
36846         This implements a replacement for C11's <stdnoreturn.h>.
36847         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
36848         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
36849         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
36850         * tests/test-stdnoreturn.c: New files.
36852 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
36854         regex: fix false multibyte matches in some regular expressions
36855         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
36856         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
36857         * lib/regex_internal.c (re_string_skip_chars):
36858         Fix miscomputation of remain_len that may cause incomplete
36859         multi-byte character and false match.
36861 2012-02-24  Jim Meyering  <meyering@redhat.com>
36863         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
36864         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
36865         uses with "==" *before* the call, e.g., 0 == strcmp (...)
36866         Remove now-unnecessary str''cmp obfuscation.
36867         Suggested by Akim Demaille.
36869 2012-02-24  Bruno Haible  <bruno@clisp.org>
36871         streq: Rename macro.
36872         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
36873         * NEWS: Mention the change.
36874         * lib/mbrtowc.c (mbrtowc): Update.
36875         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
36876         * lib/wcwidth.c (wcwidth): Update.
36877         Suggested by Akim Demaille and Jim Meyering.
36879 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36881         regex: fix typo in definition of MIN
36882         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
36883         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
36885 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36886             Bruno Haible  <bruno@clisp.org>
36888         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
36889         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
36890         entries into a stack-allocated buffer directly.
36891         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
36893 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36894             Bruno Haible  <bruno@clisp.org>
36896         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
36898          - There were several instances of this pattern:
36900              for (;;) {
36901                n = acl (f, GETACLCNT, 0, NULL);
36902                [ allocate an array A of size N ]
36903                if (acl (f, GETACL, n, a) == n)
36904                  break;
36905              }
36907            This loop might never terminate if some other process is constantly
36908            manipulating the file's ACL.  The loop should be rewritten to
36909            terminate.
36911          - The acl (... GETACLNT ...) call is merely an optimization; its value
36912            is merely a hint as to how big to make the array.  A better
36913            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
36914            and just guess a reasonably-big size, growing the size and trying
36915            again if it's not large enough.  This guarantees termination, and
36916            saves a system call.
36918         * lib/acl-internal.h: Include <limits.h>.
36919         (MIN, SIZE_MAX): New macros.
36920         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
36921         a stack-allocated buffer, and use malloc if it does not fit. Don't
36922         use GETACLCNT.
36923         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
36925 2012-02-19  Bruno Haible  <bruno@clisp.org>
36927         acl: Fix endless loop on Solaris with vxfs.
36928         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
36929         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
36930         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
36931         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
36932         * tests/test-sameacls.c (main)[Solaris]: Likewise.
36933         Reported by Bill Jones in
36934         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
36936 2012-02-19  Bruno Haible  <bruno@clisp.org>
36938         acl: Fix copy-acl test failure on Solaris 11.0.
36939         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
36940         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
36941         that this function returns 0 in some more cases.
36943 2012-02-19  Bruno Haible  <bruno@clisp.org>
36945         acl: Update doc references.
36946         * doc/acl-resources.txt: Update links to Solaris documentation.
36948 2012-02-19  Bruno Haible  <bruno@clisp.org>
36950         Fix test failure in many locales on Solaris 11.
36951         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
36952         'tr' arguments.
36953         * tests/test-pipe-filter-ii1.c (main): Likewise.
36954         * build-aux/bootstrap (check_versions): Run 'tr' command with range
36955         expressions in the C locale.
36956         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
36957         * m4/host-os.m4 (gl_HOST_OS): Likewise.
36959 2012-02-19  Bruno Haible  <bruno@clisp.org>
36961         gnulib-tool: Improve usage message.
36962         * gnulib-tool (func_usage): Move doc of --help and --version to the
36963         section "Operation modes".
36965 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
36967         README-release: make it easier to execute commands
36968         * top/README-release: break commands out on to separate lines.
36970 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
36972         GNUmakefile: simplify detection of unconfigured trees
36973         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
36974         whether the tree make is being run from is already configured or
36975         not.  Related simplifications.
36977 2012-02-13  Simon Josefsson  <simon@josefsson.org>
36979         * gnulib-tool (func_usage): Document --help and --version.
36981 2012-02-11  Jim Meyering  <meyering@redhat.com>
36983         bootstrap: don't exit 0 upon gnulib-tool failure
36984         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
36985         its exit status, not 0.
36987 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
36989         README-release: various improvements
36990         * top/README-release: Give a command to push changes for the
36991         release.  Add "distcheck" to list of other pre-release checks.
36992         Fix instance of "make stable" which should be "make TYPE".
36994 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36996         maint: replace FSF snail-mail addresses with URLs
36997         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
36998         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
36999         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
37000         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
37001         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
37002         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
37003         * lib/check-version.c, lib/check-version.h, lib/config.charset:
37004         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
37005         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
37006         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
37007         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
37008         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
37009         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
37010         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
37011         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
37012         * lib/glthread/thread.c, lib/glthread/thread.h:
37013         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
37014         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
37015         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
37016         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
37017         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
37018         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
37019         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
37020         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
37021         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
37022         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
37023         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
37024         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
37025         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
37026         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
37027         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
37028         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
37029         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
37030         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
37031         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
37032         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
37033         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
37034         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
37035         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
37036         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
37037         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
37038         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
37039         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
37040         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
37041         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
37042         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
37043         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
37044         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
37045         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
37046         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
37047         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
37048         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
37049         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
37050         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
37051         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
37052         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
37053         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
37054         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
37055         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
37056         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
37057         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
37058         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
37059         * tests/test-poll.c, tests/test-quotearg-simple.c:
37060         * tests/test-quotearg.c, tests/test-quotearg.h:
37061         * tests/test-round-ieee.c, tests/test-round1.c:
37062         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
37063         * tests/test-roundl-ieee.c, tests/test-roundl.c:
37064         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
37065         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
37066         * tests/test-strerror.c, tests/test-strerror_r.c:
37067         * tests/test-strsignal.c, tests/test-strverscmp.c:
37068         * tests/test-xmemdup0.c:
37069         Replace FSF snail mail addresses with URLs, as per GNU coding
37070         standards.  See glibc bug
37071         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
37073 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
37075         README-release: capitalize a word and split a line
37076         * top/README-release: Fix punctuation and spacing.
37078 2012-02-08  Akim Demaille  <demaille@gostai.com>
37080         fatal-signal: use C prototypes (with explicit void).
37081         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37082         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
37084 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37086         regex: spelling fix
37087         * lib/regexec.c: spelling fix
37089         regex: rely on stdint.h for SIZE_MAX
37090         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
37092 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
37094         regex: merge glibc changes
37096         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
37097         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
37098         (init_word_char): Work even if bitset words are not exactly 32 or
37099         64 bits wide.  Don't assume there are no padding bits.
37100         * lib/regex.c [_LIBC]: Do not include <config.h>.
37101         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
37102         and -Wtype-limits.
37103         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
37104         needless disagreement with glibc.  All uses changed.  Define it to
37105         1 only if _GNU_SOURCE, to match glibc.
37106         (_REG_RM_NAME): Remove; no longer needed, since the names in
37107         question are now all protected by __USE_GNU.
37108         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
37109         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
37110         * lib/regex_internal.h (MIN): New macro.
37112         2012-01-03 Ulrich Drepper <drepper@gmail.com>
37113         * lib/regcomp.c (init_word_char): Optimize regex a bit.
37115         2011-12-30 Jakub Jelinek <jakub@redhat.com>
37116         * lib/regex_internal.c (re_string_fetch_byte_case):
37117         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
37118         is miscompiled, and it turns out it is because of an incorrect
37119         attribute on re_string_fetch_byte_case.  Unlike
37120         re_string_peek_byte_case, this one is really not pure, it modifies
37121         memory (increments pstr->cur_idx), and with the pure attribute GCC
37122         assumed it doesn't and it cached the presumed value of
37123         regexp->cur_idx in a variable across the
37124          for (;; ++i)
37125            {
37126              if (i >= BRACKET_NAME_BUF_SIZE)
37127                return REG_EBRACK;
37128              if (token->type == OP_OPEN_CHAR_CLASS)
37129                ch = re_string_fetch_byte_case (regexp);
37130              else
37131                ch = re_string_fetch_byte (regexp);
37132              if (re_string_eoi(regexp))
37133                return REG_EBRACK;
37134              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
37135                break;
37136              elem->opr.name[i] = ch;
37137            }
37139         2011-11-29 Andreas Schwab <schwab@redhat.com>
37140         * lib/regcomp.c (build_equiv_class):
37141         Fix access after end of search string in regex matcher.
37143         2011-11-12 Ulrich Drepper <drepper@redhat.com>
37144         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
37146         2011-10-12 Ulrich Drepper <drepper@redhat.com>
37147         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
37149         2011-10-11 Ulrich Drepper <drepper@redhat.com>
37150         * lib/regcomp.c (parse_branch, parse_sub_exp):
37151         More regex memory leak fixes and tests.
37152         (parse_sub_exp, parse_bracket_exp):
37153         Fix memory leak for some invalid regular expressions.
37155         2011-05-28 Ulrich Drepper <drepper@gmail.com>
37156         * lib/regex_internal.c, lib/regexec.c:
37157         Fix unnecessary overallocation due to incomplete character.  When
37158         incomplete characters are found at the end of a string the code
37159         ran amok and allocated lots of memory.  Stricter limits are now in
37160         place.
37162         2011-05-20 Reuben Thomas <rrt@sc3d.org>
37163         * lib/regex.h: Update documentation.
37165         2011-05-16 Aharon Robbins <arnold@skeeve.com>
37166         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
37168         2010-05-05 Andreas Schwab <schwab@redhat.com>
37169         * lib/regexec.c (find_collation_sequence_value):
37170         Fix lookup of collation sequence value during regexp matching.
37172         2010-01-22 Ulrich Drepper <drepper@redhat.com>
37173         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
37175         2008-01-16 Ulrich Drepper <drepper@redhat.com>
37176         * lib/regex.h: Cleanup namespace.
37178         2007-11-26 Ulrich Drepper <drepper@redhat.com>
37179         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
37181         2007-08-26 Ulrich Drepper <drepper@redhat.com>
37182         * lib/regex_internal.h: Prevent some declarations and definitions
37183         to be seen when used in tests.
37185         2005-05-06 Ulrich Drepper <drepper@redhat.com>
37186         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
37187         __libc_lock_* macros if not _LIBC.
37188         (struct re_dfa_t): Add lock.
37190 2012-02-07  Eric Blake  <eblake@redhat.com>
37192         maint.mk: also prohibit lower-case @var@
37193         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
37194         lower case, like @top_srcdir@.
37196 2012-02-04  Eric Blake  <eblake@redhat.com>
37198         canonicalize: avoid uninitialized memory use
37199         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
37200         random '/' left in dest.
37201         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
37203 2012-02-04  Bruno Haible  <bruno@clisp.org>
37205         isatty: Fix test failure of ptsname_r on native Windows.
37206         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
37207         and don't set errno.
37208         (isatty): Test first whether fd is valid. Set errno when returning 0.
37210 2012-02-04  Bruno Haible  <bruno@clisp.org>
37212         spawn-pipe tests: Fix a NULL program name in a diagnostic.
37213         * tests/test-spawn-pipe-main.c: Include progname.h.
37214         (main): Invoke set_program_name.
37215         * modules/spawn-pipe-tests (Depends-on): Add progname.
37217         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
37218         * tests/test-nonblocking-socket-main.c: Include progname.h.
37219         (main): Invoke set_program_name.
37220         * modules/nonblocking-socket-tests (Depends-on): Add progname.
37222         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
37223         * tests/test-nonblocking-pipe-main.c: Include progname.h.
37224         (main): Invoke set_program_name.
37225         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
37227 2012-02-04  Eric Blake  <eblake@redhat.com>
37229         canonicalize-lgpl: fix // handling
37230         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
37232         canonicalize: fix // handling
37233         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
37234         /// to //, since only // is special.
37236 2012-02-04  Bruno Haible  <bruno@clisp.org>
37238         ioctl: Fix test failure on native Windows.
37239         * lib/ioctl.c: Include msvc-nothrow.h.
37240         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
37242 2012-02-04  Bruno Haible  <bruno@clisp.org>
37244         fsync: Avoid test failure on native Windows.
37245         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
37246         read-only.
37248 2012-02-04  Bruno Haible  <bruno@clisp.org>
37250         sys_select: Avoid syntax error on OpenBSD 5.0.
37251         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
37252         currently being included, just include the system's <sys/select.h>.
37254 2012-02-04  Bruno Haible  <bruno@clisp.org>
37256         sys_select: Avoid syntax error on OpenBSD 5.0.
37257         * lib/sys_select.in.h: Include <signal.h> only after the include_next
37258         <sys/select.h>, not before.
37259         Reported by Jiri B <jirib@devio.us>.
37261 2012-02-04  Bruno Haible  <bruno@clisp.org>
37263         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
37264         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
37265         global variables.
37266         * tests/test-get-rusage-data.c (main): Likewise.
37267         Reported by Jim Meyering.
37269 2012-02-04  Bruno Haible  <bruno@clisp.org>
37271         stdioext: Fix last commit.
37272         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
37274 2012-02-03  Bruno Haible  <bruno@clisp.org>
37276         stdioext: Add tentative support for Plan9.
37277         * lib/stdio-impl.h: Include <errno.h>.
37278         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
37279         * lib/freadable.c (freadable): Likewise.
37280         * lib/fwritable.c (fwritable): Likewise.
37281         * lib/fbufmode.c (fbufmode): Likewise.
37282         * lib/freading.c (freading): Likewise.
37283         * lib/fwriting.c (fwriting): Likewise.
37284         * lib/freadptr.c (freadptr): Likewise.
37285         * lib/freadseek.c (freadptrinc): Likewise.
37286         * lib/freadahead.c (freadahead): Likewise.
37287         * lib/fpurge.c (fpurge): Likewise.
37288         * lib/fseeko.c (rpl_fseeko): Likewise.
37289         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
37290         Reported by Jens Staal <staal1978@gmail.com>.
37292 2012-02-02  Jim Meyering  <meyering@redhat.com>
37294         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
37295         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
37296         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
37297         not even to try to add the attribute.  Instead, add a pragma to suppress
37298         the suggestion/warning.
37300 2012-01-31  Karl Berry  <karl@gnu.org>
37302         setstate doc: typo.
37303         * doc/posix-functions/setstate.texi (setstate): { not (.
37305 2012-01-31  Bruno Haible  <bruno@clisp.org>
37307         popen: Make more robust on Windows.
37308         * lib/popen.c: On native Windows, use the _popen based code even if
37309         HAVE_POPEN is set.
37310         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
37311         environment variable on native Windows.
37313 2012-01-30  Bruno Haible  <bruno@clisp.org>
37315         pclose: Fix typo.
37316         * lib/stdio.in.h (pclose): Fix typo in warning message.
37318 2012-01-30  Bruno Haible  <bruno@clisp.org>
37320         doc about getlogin_r, setstate.
37321         * doc/posix-functions/getlogin_r.texi: List the incompatible
37322         declaration problem under "not fixed by gnulib".
37323         * doc/posix-functions/setstate.texi: Mention incompatible declaration
37324         problem on Solaris 11 and other platforms.
37326 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
37327             Bruno Haible  <bruno@clisp.org>
37329         poll tests: Make test more robust.
37330         * tests/test-poll.c: Include macros.h.
37331         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
37332         return value of various I/O operations.
37333         * modules/poll-tests (Files): Add tests/macros.h.
37335 2012-01-30  Bruno Haible  <bruno@clisp.org>
37337         sys_stat: Fix support for mingw64 and MSVC.
37338         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
37339         header files already do it.
37340         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
37341         stat itself.
37342         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
37344 2012-01-30  Bruno Haible  <bruno@clisp.org>
37346         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
37347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
37348         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
37350 2012-01-29  Bruno Haible  <bruno@clisp.org>
37352         quotearg: Fix test failure on MacOS X 10.5.
37353         * tests/test-quotearg-simple.c: Include localcharset.h.
37354         (main): If the locale encoding is not ASCII, bypass the tests of
37355         locale_quoting_style and clocale_quoting_style.
37356         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
37358 2012-01-29  Jim Meyering  <meyering@redhat.com>
37360         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
37361         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
37362         detect uses of canonicalize_file_name.
37364 2012-01-28  Bruno Haible  <bruno@clisp.org>
37366         test-framework-sh: Fix test failure with AIX 7.1 diff.
37367         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
37368         in column 1, like 'diff -c' does.
37369         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
37370         whether 'diff -u' is used. Instead, test whether the output contains
37371         some '@' character.
37373 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37375         strtoimax: eliminate need for stdint.h, inttypes.h checks
37376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
37377         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
37378         the prerequisites for a recently-introduced strtoimax test.
37379         I guess this might cause strtoimax to be replaced when not
37380         strictly necessary on older hosts, but this shouldn't introduce
37381         any bugs and it should make Emacs 'configure' faster on typical
37382         modern hosts.  Problem discovered when importing the latest gnulib
37383         to an Emacs test version.
37384         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
37386 2012-01-28  Bruno Haible  <bruno@clisp.org>
37388         sys_time: Override 'struct timeval' on some native Windows platforms.
37389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
37390         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
37391         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
37392         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
37393         needs to be overridden.
37394         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
37395         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
37396         * tests/test-sys_select.c: Check that the tv_sec member has the same
37397         size as a 'time_t'.
37398         * tests/test-sys_time.c: Likewise.
37399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
37400         is set, set also REPLACE_GETTIMEOFDAY.
37401         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
37402         convert the resulting 'struct timeval' before returning.
37403         * lib/select.c: Include <sys/time.h>.
37404         (select, timeval): Undefine at the right place.
37405         * modules/select (Depends-on): Add sys_time.
37406         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
37407         some Windows platforms.
37408         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
37410 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37412         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
37413         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
37414         an integer.
37415         * lib/fcntl.c (dupfd): Likewise.
37416         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
37418 2012-01-28  Bruno Haible  <bruno@clisp.org>
37420         fcntl: Avoid compilation error on native Windows.
37421         * modules/fcntl (Depends-on): Add 'close'.
37423 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37425         select, poll, isatty: Avoid warnings on x86_64 mingw64.
37426         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
37427         pointer to an integer.
37428         * lib/poll.c (IsConsoleHandle): Likewise.
37429         * lib/isatty.c (IsConsoleHandle): Likewise.
37431 2012-01-28  Jim Meyering  <meyering@redhat.com>
37433         doc: clarify README-release
37434         * top/README-release: Clarify: you should make a point to have
37435         the latest stable versions of build tools in your PATH, and the
37436         reference to buildreq is solely for its list of tool names, not
37437         for its minimal-functional version numbers.
37438         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
37440         maint.mk: use more readable (yet functionally equivalent) quoting
37441         It is common to quote a single quote in a single quoted string like
37442         this:  '...'\''...'.  Unless you know the idiom, that looks like
37443         gibberish, so prefer to double-quote the string when possible.
37444         Then you can use a more readable, lone single quote: "...'..."
37445         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
37446         "don't" is more readable than the equivalent 'don'\''t'.
37447         (sc_cast_of_x_alloc_return_value): Likewise.
37448         (sc_cast_of_alloca_return_value): Likewise.
37449         (sc_makefile_path_separator_check): Similar: use ":" in '...',
37450         rather than '\'':'\''.
37452 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37454         stdalign: relax _Alignof and tighten _Alignas test
37455         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
37456         as it was too strict: alignof must divide offsetof, but it need
37457         not equal offsetof.  Inspired by Joseph S. Myers's comment
37458         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
37459         Conversely, tighten the _Alignas test a bit, as the resulting
37460         alignment must be exactly 8.
37462 2012-01-27  Bruno Haible  <bruno@clisp.org>
37464         stdalign: Document the last change.
37465         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
37467 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
37469         stdalign: check that alignof and offsetof are consistent
37470         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
37471         Problem reported for gnulib by Richard W.M. Jones in
37472         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
37474 2012-01-27  Jim Meyering  <meyering@redhat.com>
37476         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
37477         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
37478         convert a sequence with gaps to the minimal containing range.
37479         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
37480         * tests/test-update-copyright.sh: Test for this.
37481         The FSF confirmed it is ok to do this, assuming there is at
37482         least one significant change per year in the affected range:
37483         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
37485 2012-01-26  Bruno Haible  <bruno@clisp.org>
37487         pipe2: refine doc about thread-safety
37488         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
37489         multithread-safety problem.
37490         * doc/glibc-functions/accept4.texi: Likewise.
37492 2012-01-26  Bruno Haible  <bruno@clisp.org>
37494         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
37495         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
37496         In the test program, include <fcntl.h>, for O_RDONLY.
37498 2012-01-26  Eric Blake  <eblake@redhat.com>
37500         pipe2: document lack of thread-safety in replacement
37501         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
37502         issue in replacement.
37503         * doc/glibc-functions/accept4.texi (accept4): Likewise.
37504         Based on a report by Eric Wong.
37506 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
37507             Bruno Haible  <bruno@clisp.org>
37509         malloca: Avoid warnings on x86_64 mingw64.
37510         * lib/malloca.c: Include <stdint.h>.
37511         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
37512         * modules/malloca (Depends-on): Add stdint.
37513         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
37515 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
37517         obstack: remove __STDC__ conditionals
37518         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
37519         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
37520         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
37521         m4/include_next.m4 as the only gnulib-maintained places that still
37522         refer to __STDC__.
37524 2012-01-24  Bruno Haible  <bruno@clisp.org>
37526         havelib: Modern quoting.
37527         * build-aux/config.rpath: Quote 'like this', not `like this', as per
37528         the recent change to the GNU coding standards.
37530 2012-01-24  Bruno Haible  <bruno@clisp.org>
37532         stdint: Improve support for Android.
37533         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
37534         Reported by Simon Josefsson <simon@josefsson.org>.
37536 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37538         doc: omit trailing empty lines from INSTALL etc.
37539         * doc/Makefile (INSTALL): Omit trailing empty lines.
37540         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
37541         omit trailing empty lines.  This simplifies the build procedure.
37543 2012-01-23  Jim Meyering  <meyering@redhat.com>
37545         tests: avoid spurious warnings about gl_sockets_startup
37546         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
37547         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
37548         reporting a "statement with no effect".
37549         * tests/test-accept.c (main): Mark as "(void)".
37550         * tests/test-accept4.c (main): Likewise.
37551         * tests/test-bind.c (main): Likewise.
37552         * tests/test-connect.c (main): Likewise.
37553         * tests/test-getpeername.c (main): Likewise.
37554         * tests/test-getsockname.c (main): Likewise.
37555         * tests/test-getsockopt.c (main): Likewise.
37556         * tests/test-listen.c (main): Likewise.
37557         * tests/test-recv.c (main): Likewise.
37558         * tests/test-recvfrom.c (main): Likewise.
37559         * tests/test-send.c (main): Likewise.
37560         * tests/test-sendto.c (main): Likewise.
37561         * tests/test-setsockopt.c (main): Likewise.
37562         * tests/test-shutdown.c (main): Likewise.
37564 2012-01-21  Bruno Haible  <bruno@clisp.org>
37566         locale-fr.m4: Fix for Android.
37567         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
37568         failure of the test program on Bionic libc.
37570 2012-01-21  Jim Meyering  <meyering@redhat.com>
37572         bootstrap: fail when bootstrap_post_import_hook fails
37573         Otherwise, it's far too easy to miss diagnostics emitted
37574         between gnulib-tool's output and that of running configure.
37575         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
37577 2012-01-17  Jim Meyering  <meyering@redhat.com>
37579         maint: enable sc_trailing_blank
37580         * build-aux/pmccabe.css: Remove trailing blanks.
37581         * doc/acl-cygwin.txt: Likewise.
37582         * doc/gnu-oids.texi: Likewise
37583         * cfg.mk: Enable sc_trailing_blank.
37584         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
37586 2012-01-17  Jim Meyering  <meyering@redhat.com>
37588         maint: enable sc_prohibit_openat_without_use
37589         * cfg.mk: Enable sc_prohibit_openat_without_use.
37590         Exempt lib/selinux-at.c.
37592 2012-01-17  Jim Meyering  <meyering@redhat.com>
37594         maint: enable sc_prohibit_cloexec_without_use
37595         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
37596         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
37598 2012-01-17  Jim Meyering  <meyering@redhat.com>
37600         maint: enable sc_prohibit_intprops_without_use
37601         * cfg.mk: Enable sc_prohibit_intprops_without_use
37602         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
37604 2012-01-17  Jim Meyering  <meyering@redhat.com>
37606         maint: enable sc_prohibit_hash_pjw_without_use
37607         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
37608         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
37609         to match any use of \<hash_pjw\>, i.e., not necessarily with a
37610         following " (".
37612 2012-01-17  Jim Meyering  <meyering@redhat.com>
37614         maint: enable double-word-prohibiting rule
37615         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
37616         Exempt three files.
37618 2012-01-17  Jim Meyering  <meyering@redhat.com>
37620         maint: remove empty lines at EOF, but excluding modules/*
37621         Apply syntax rules at home as well as abroad.  Most changes
37622         were induced by running this:
37623           make srcdir=. _build-aux=build-aux -f top/maint.mk \
37624             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
37625             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
37626         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
37627         Exempt modules/* and two binary files.
37628         Also exempt doc/INSTALL*, per request from Bruno Haible.
37629         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
37630         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
37631         * doc/Copyright/request-assign.future: Likewise.
37632         * doc/Copyright/request-disclaim.changes: Likewise.
37633         * doc/INSTALL: Likewise.
37634         * doc/INSTALL.ISO: Likewise.
37635         * doc/INSTALL.UTF-8: Likewise.
37636         * doc/acl-cygwin.txt: Likewise.
37637         * doc/acl-resources.txt: Likewise.
37638         * doc/fdl-1.2.texi: Likewise.
37639         * doc/fdl-1.3.texi: Likewise.
37640         * doc/fdl.texi: Likewise.
37641         * lib/argp-pin.c: Likewise.
37642         * lib/round.c: Likewise.
37643         * lib/unicase/u16-totitle.c: Likewise.
37644         * lib/unictype/block_test.c: Likewise.
37645         * lib/uninorm/canonical-decomposition.c: Likewise.
37646         * m4/README: Likewise.
37647         * m4/relocatable-lib.m4: Likewise.
37648         * tests/test-isnand-nolibm.c: Likewise.
37649         * tests/test-isnand.c: Likewise.
37650         * tests/uninorm/NormalizationTest.txt: Likewise.
37652 2012-01-17  Jim Meyering  <meyering@redhat.com>
37654         maint: add framework to run syntax-check rules against gnulib sources
37655         * cfg.mk: New file, to disable all currently-failing tests.
37656         We'll enable them one by one, as they are made to pass.
37657         * Makefile (sc_maint): New rule.
37659 2012-01-21  Bruno Haible  <bruno@clisp.org>
37661         stdint: Add support for Android.
37662         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
37663         include the system's <stdint.h>.
37664         Reported by Simon Josefsson <simon@josefsson.org>.
37666 2012-01-19  Jim Meyering  <meyering@redhat.com>
37668         bootstrap: add bootstrap_post_import_hook
37669         Bison does still need something like the gnulib_mk_hook whose
37670         invocation I had to remove along with slurp in commit 767ccd40.
37671         Technically, we could get along without it, but doing so would
37672         have required living with a warning and a mandatory post-bootstrap
37673         automake rerun.
37674         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
37675         (bootstrap_post_import_hook): New function.
37676         Invoke it after gnulib-tool --import and before autoreconf.
37678 2012-01-18  Jim Meyering  <meyering@redhat.com>
37680         gitlog-to-changelog: don't use "no_"-prefixed variable name
37681         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
37682         to enable both --cluster and --no-cluster.  Change variable name,
37683         s/\$no_cluster/$cluster/, and reverse usage to match.
37685         gitlog-to-changelog: use "||", not "or" in expressions
37686         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
37687         expressions.
37689 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
37691         gitlog-to-changelog: new option --no-cluster
37692         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
37693         clustering of adjacent commit messages.
37695 2012-01-17  Jim Meyering  <meyering@redhat.com>
37697         maint: spell file systems with two words, not one
37698         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
37699         two words, not one.
37701 2012-01-16  Jim Meyering  <meyering@redhat.com>
37703         bootstrap: add a FIXME comment to ensure we eventually remove the hack
37704         * build-aux/bootstrap (gnulib_tool_options): Add comment.
37706 2012-01-16  Eric Blake  <eblake@redhat.com>
37708         bootstrap: cater to autoconf 2.59
37709         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
37710         is not available.
37712         bootstrap: properly check for libtool
37713         * build-aux/bootstrap (libtoolize): Also run libtool when older
37714         usage is detected.
37716 2012-01-15  Bruno Haible  <bruno@clisp.org>
37718         Improve support for MSVC 9.
37719         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
37720         clashes on MSVC.
37721         * lib/fcntl.in.h: Likewise.
37722         * lib/stdlib.in.h: Likewise.
37723         * lib/sys_stat.in.h: Likewise.
37725 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
37727         gnupload: we hold the master copy of this script now
37728         For motivation and more information, see:
37729         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
37730         * build-aux/gnupload: Make it clear in the heading comments that the
37731         master copy of this file is maintained by gnulib.  Since we are at
37732         it, bump its copyright year and ...
37733         ($scriptversion): ... the date in its version.
37734         ($usage): Patches and bug reports should be sent to the gnulib list,
37735         not the automake one.
37736         * config/srclist.txt: Don't try to sync 'gnupload' from automake
37737         anymore.
37739 2012-01-15  Bruno Haible  <bruno@clisp.org>
37741         Fix module 'random'.
37742         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
37743         initstate, setstate are declared.
37745 2012-01-14  Bruno Haible  <bruno@clisp.org>
37747         Tests for module 'random'.
37748         * modules/random-tests: New file.
37749         * tests/test-random.c: New file, based on tests/test-random_r.c.
37751         New module 'random'.
37752         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
37753         declarations.
37754         * lib/random.c: New file, based on glibc/stdlib/random.c.
37755         * m4/random.m4: New file.
37756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
37757         HAVE_RANDOM.
37758         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
37759         * modules/random: New file.
37760         * config/srclist.txt: Add an entry for random.c.
37761         * doc/posix-functions/random.texi: Mention the 'random' module.
37762         * doc/posix-functions/initstate.texi: Likewise.
37763         * doc/posix-functions/setstate.texi: Likewise.
37764         * doc/posix-functions/srandom.texi: Likewise.
37766 2012-01-12  Bruno Haible  <bruno@clisp.org>
37768         random_r: Use common idioms.
37769         * lib/random_r.c: Include <stdlib.h> first.
37771         random_r: Override incompatible API on AIX, OSF/1.
37772         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
37773         Override the system function if REPLACE_RANDOM_R is 1.
37774         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
37775         and OSF/1, set REPLACE_RANDOM_R.
37776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
37777         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
37778         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
37779         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
37780         * doc/glibc-functions/random_r.texi: Likewise.
37781         * doc/glibc-functions/setstate_r.texi: Likewise.
37783         random_r: Support for MSVC 9.
37784         * lib/random_r.c: Include stdint.h, not inttypes.h.
37786 2012-01-12  Eric Blake  <eblake@redhat.com>
37788         inet_ntop: guard extra work by IF_LINT
37789         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
37790         better code generation when not checking for warnings.
37791         Suggested by Paul Eggert and Jim Meyering.
37793         strptime: fix regression on mingw
37794         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
37795         Fix regression.  Reported by Bruno Haible.
37797 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
37798             Bruno Haible  <bruno@clisp.org>
37800         copy-file: add error-code-returning variant.
37801         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
37802         (qcopy_file_preserving): New declaration.
37803         * lib/copy-file.c (qcopy_file_preserving): Renamed from
37804         copy_file_preserving. Change return type to 'int'. Don't emit an error
37805         message here.
37806         (copy_file_preserving): New function.
37807         * tests/test-copy-file.c: Include <stdlib.h>.
37808         (main): Test qcopy_file_preserving if the environment variable
37809         NO_STDERR_OUTPUT is set.
37810         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
37811         with NO_STDERR_OUTPUT
37812         * tests/test-copy-file-2.sh: Likewise.
37814 2012-01-10  Bruno Haible  <bruno@clisp.org>
37816         copy-file: Use 'quote' module consistently.
37817         * lib/copy-file.c (copy_file_preserving): Use quote().
37819         copy-file: Refactor.
37820         * lib/copy-file.c: Include quote.h.
37821         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
37822         message here.
37823         * modules/copy-file (Depends-on): Add quote.
37825         acl: Export qcopy_acl.
37826         * lib/acl.h (qcopy_acl): New declaration.
37827         * lib/copy-acl.c (qcopy_acl): Make non-static.
37829         acl: Rename a local variable.
37830         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
37832         acl: Align return values of copy_acl and qcopy_acl.
37833         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
37834         maybe < -1.
37836 2012-01-11  Eric Blake  <eblake@redhat.com>
37838         strptime: silence gcc warnings
37839         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
37840         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
37841         Reported by Daniel P. Berrange.
37843         inet_ntop: silence gcc warning
37844         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
37845         Reported by Daniel P. Berrange.
37847 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
37849         getloadavg test: skip the test on GNU/Linux without /proc mounted
37850         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
37851         file.  When /proc is not mounted, it always fails with ENOENT.
37852         * tests/test-getloadavg.c (main): Treat ENOENT return code from
37853         getloadavg(3) the same way as ENOSYS and ENOTSUP.
37855 2012-01-10  Bruno Haible  <bruno@clisp.org>
37857         regex: Avoid link error on MSVC 9.
37858         * modules/regex (Depends-on): Add wctype.
37860 2012-01-10  Bruno Haible  <bruno@clisp.org>
37862         doc: Mention --with-tests option.
37863         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
37864         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
37865         --with-tests.
37866         Reported by Reuben Thomas.
37868 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
37870         users.txt: order package names lexicographically.
37871         * users.txt: Order package names lexicographically.
37873 2012-01-10  Jim Meyering  <meyering@redhat.com>
37875         maint.mk: fix description in comment
37876         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
37878         ignore-value: remove deprecated ignore_ptr function
37879         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
37880         * NEWS: Note this.
37882 2012-01-09  Jim Meyering  <meyering@redhat.com>
37884         test-init.sh: avoid a subshell
37885         * tests/test-init.sh: Remove protective subshell.
37886         Suggested by Bernhard Voelker.  While a subshell is normally
37887         required to protect against older shells (Solaris, FreeBSD) that
37888         warn about a missing program before performing redirection, the
37889         shell-selection tests performed by init.sh probably exclude any
37890         offending shell.
37892 2012-01-08  Bruno Haible  <bruno@clisp.org>
37894         setlocale tests: Avoid test failure on Solaris 11.0.
37895         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
37896         variable.
37898 2012-01-08  Bruno Haible  <bruno@clisp.org>
37900         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
37901         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
37902         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
37903         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
37904         macro.
37905         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
37906         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
37907         * lib/spawn_faction_addopen.c: Add workaround implementation if
37908         HAVE_WORKING_POSIX_SPAWN.
37909         * modules/spawn (Makefile): Substitute
37910         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
37911         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
37912         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
37913         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
37914         (Depends-on): Update conditions.
37915         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37916         the Solaris 11 bug.
37918 2012-01-08  Bruno Haible  <bruno@clisp.org>
37920         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
37921         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
37922         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
37923         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
37924         macro.
37925         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
37926         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
37927         * lib/spawn_faction_adddup2.c: Add workaround implementation if
37928         HAVE_WORKING_POSIX_SPAWN.
37929         * modules/spawn (Makefile): Substitute
37930         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
37931         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
37932         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
37933         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
37934         (Depends-on): Update conditions.
37935         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37936         the Solaris 11 bug.
37938 2012-01-08  Bruno Haible  <bruno@clisp.org>
37940         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
37941         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
37942         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
37943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
37944         HAVE_WORKING_POSIX_SPAWN.
37945         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
37946         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
37947         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
37948         * lib/spawn_faction_addclose.c: Add workaround implementation if
37949         HAVE_WORKING_POSIX_SPAWN.
37950         * modules/spawn (Makefile): Substitute
37951         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
37952         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
37953         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
37954         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
37955         (Depends-on): Update conditions.
37956         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37957         the Solaris 11 bug.
37959 2012-01-08  Bruno Haible  <bruno@clisp.org>
37961         doc: Update for Solaris 11.0.
37962         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
37963         * m4/printf.m4: Update comments.
37965 2012-01-08  Bruno Haible  <bruno@clisp.org>
37967         mktime: Avoid compilation error on Solaris 11.
37968         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
37970 2012-01-08  Bruno Haible  <bruno@clisp.org>
37972         doc: Small fix.
37973         * doc/posix-headers/nl_types.texi: Correct platforms list.
37975 2012-01-08  Simon Josefsson  <simon@josefsson.org>
37977         Add lgpl-3.0 module.
37978         * MODULES.html.sh (Support for building documentation): Add
37979         lgpl-3.0.
37980         * modules/lgpl-3.0: New file.
37982 2012-01-08  Jim Meyering  <meyering@redhat.com>
37984         select.c: indent with spaces, not TABs
37985         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
37987 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
37989         quotearg: do not use grave accent for left quote
37990         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
37991         locale_quoting_style.
37992         (quotearg_buffer_restyled): Fix example.
37993         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
37995 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
37997         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
37998         Most programs do not have translation catalogs for English and much
37999         less separate catalogs for British and American English.  Drop the
38000         suggestion to translators about these two, and provide it
38001         automatically for Unicode locales.  Like most programs, even those
38002         using American English, we use single quotation marks.  This conflicts
38003         with the American typographic convention, but works better when you
38004         cite the entire error message within double quotes.  It also tries not
38005         to clash with established practice and with what non-gnulib programs
38006         will usually do.
38007         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
38008         using an UTF-8 or GB-18030 locale.  The list of other locales with
38009         quotes was provided by Bruno Haible.
38010         (quotearg_buffer_restyled): Adjust instructions to translators.
38011         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
38012         text, since this would be wrong when using Unicode.
38013         * modules/quotearg: Depend on c-strcaseeq.
38015 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
38017         quotearg: fix Wikipedia link
38018         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
38020 2012-01-07  Simon Josefsson  <simon@josefsson.org>
38022         Fix for mingw with MSVC9.
38023         * m4/ld-version-script.m4: Check that compiler rejects version
38024         scripts with syntax errors.  Reported by Bruno Haible
38025         <bruno@clisp.org>.
38027 2012-01-06  Bruno Haible  <bruno@clisp.org>
38029         Talk about "native Windows API", not "Woe32".
38030         * lib/accept4.c: Update comments to mention native Windows.
38031         * lib/execute.c: Likewise.
38032         * lib/fatal-signal.c: Likewise.
38033         * lib/localcharset.c: Likewise.
38034         * lib/nanosleep.c: Likewise.
38035         * lib/nl_langinfo.c: Likewise.
38036         * lib/pclose.c: Likewise.
38037         * lib/pipe-filter-gi.c: Likewise.
38038         * lib/pipe-filter-ii.c: Likewise.
38039         * lib/pipe.c: Likewise.
38040         * lib/pipe2.c: Likewise.
38041         * lib/popen.c: Likewise.
38042         * lib/progreloc.c: Likewise.
38043         * lib/relocatable.c: Likewise.
38044         * lib/sigaction.c: Likewise.
38045         * lib/sigprocmask.c: Likewise.
38046         * lib/spawn-pipe.h: Likewise.
38047         * lib/spawn-pipe.c: Likewise.
38048         * lib/spawni.c: Likewise.
38049         * lib/stat-time.h: Likewise.
38050         * lib/w32spawn.h: Likewise.
38051         * tests/test-isatty.c: Likewise.
38052         * lib/config.charset: More comments.
38053         * doc/gnulib-intro.texi: Mention native Windows.
38054         * doc/posix-functions/_Exit_C99.texi: Likewise.
38055         * doc/posix-headers/fcntl.texi: Likewise.
38057 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
38059         argp: Avoid crash if translator uses % characters in a translation.
38060         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
38061         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
38063 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
38065         doc: C11 and C++11 are now official
38066         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
38067         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
38068         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
38069         * modules/stdalign:
38070         Replace references to draft C1X to C11, and to draft C++0X to C++11.
38072 2012-01-06  Bruno Haible  <bruno@clisp.org>
38074         uc-is-grapheme-break tests: Tweak.
38075         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
38076         message.
38078 2012-01-06  Bruno Haible  <bruno@clisp.org>
38080         test-init.sh: correct the test for diff -u
38081         * tests/test-init.sh: Also redirect stdout to /dev/null.
38083 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38085         Use ', not `, for quoting output.
38086         * build-aux/announce-gen (usage, sizes, print_news_deltas)
38087         (print_changelog_deltas, get_tool_versions, main program):
38088         * build-aux/git-version-gen:
38089         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
38090         * build-aux/move-if-change (help):
38091         * build-aux/useless-if-before-free (usage, main program):
38092         * check-module (parse_module_file, usage)
38093         (find_included_lib_files, check_module):
38094         * lib/argmatch.c (main) [TEST]:
38095         * lib/argp-help.c (_help):
38096         * lib/getopt1.c (main) [TEST]:
38097         * lib/git-merge-changelog.c (usage):
38098         * lib/xstrtol-error.c (xstrtol_error):
38099         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
38100         * m4/argz.m4 (gl_FUNC_ARGZ):
38101         * m4/bison.m4 (gl_BISON):
38102         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
38103         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
38104         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
38105         * m4/fpending.m4 (gl_PREREQ_FPENDING):
38106         * m4/gc-random.m4 (gl_GC_RANDOM):
38107         * m4/intl.m4 (gt_CHECK_DECL):
38108         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
38109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
38110         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
38111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
38112         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
38113         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
38114         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
38115         * tests/test-dirname.c (main):
38116         * tests/test-getpass.c (main):
38117         * tests/test-iconvme.c (main):
38118         * tests/test-parse-datetime.c (LOG):
38119         * tests/test-xstrtoimax.sh:
38120         * tests/test-xstrtol.sh:
38121         * tests/test-xstrtoll.sh:
38122         * tests/test-xstrtoumax.sh:
38123         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
38124         * top/GNUmakefile (abort-due-to-no-makefile):
38125         Quote 'like this', not `like this', as per the recent change to
38126         the GNU coding standards.
38128 2012-01-05  Bruno Haible  <bruno@clisp.org>
38130         strtoimax: Don't force a replacement on systems where intmax_t is int.
38131         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
38132         'intmax_t' is not larger than 'int'.
38133         Reported by Pádraig Brady <P@draigBrady.com>.
38135 2012-01-05  Bruno Haible  <bruno@clisp.org>
38137         doc: Mention NetBSD bugs.
38138         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
38139         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
38141 2012-01-05  Bruno Haible  <bruno@clisp.org>
38143         strtoumax tests: Enhance tests.
38144         * tests/test-strtoumax.c (main): Add tests for large values.
38146 2012-01-05  Bruno Haible  <bruno@clisp.org>
38148         strtoimax: Work around AIX 5.1 bug.
38149         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
38150         definition.
38151         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
38152         Set HAVE_STRTOIMAX.
38153         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
38154         REPLACE_STRTOIMAX.
38155         * modules/inttypes-incomplete (Makefile.am): Substitute
38156         REPLACE_STRTOIMAX.
38157         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
38158         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
38159         (Depends-on): Update conditions.
38160         * tests/test-strtoimax.c (main): Add tests for large values.
38161         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
38163 2012-01-05  Bruno Haible  <bruno@clisp.org>
38165         inttypes: Modernize.
38166         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
38167         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
38168         (Makefile.am): Update inttypes.h rule.
38170 2012-01-05  Jim Meyering  <meyering@redhat.com>
38172         init.sh: don't waste a subshell just to redirect stderr
38173         * tests/init.sh: In testing for diff -u and diff -c, use a
38174         stderr-redirecting exec inside `...` rather than a subshell.
38176         test-init.sh: avoid failure on HP-UX 11.00
38177         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
38178         resolves to diff -c or cmp.  Reported by Bruno Haible.
38180 2012-01-05  Bruno Haible  <bruno@clisp.org>
38182         Tests for module 'strtoull'.
38183         * modules/strtoull-tests: New file.
38184         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
38186 2012-01-05  Bruno Haible  <bruno@clisp.org>
38188         Tests for module 'strtoll'.
38189         * modules/strtoll-tests: New file.
38190         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
38192 2012-01-05  Bruno Haible  <bruno@clisp.org>
38194         Tests for module 'strtoul'.
38195         * modules/strtoul-tests: New file.
38196         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
38198 2012-01-05  Bruno Haible  <bruno@clisp.org>
38200         Tests for module 'strtol'.
38201         * modules/strtol-tests: New file.
38202         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
38204 2012-01-04  Jim Meyering  <meyering@redhat.com>
38206         test-init.sh: accommodate Solaris 5.10's different diff -u output
38207         * tests/test-init.sh: Also exempt @@ lines from the comparison
38208         of diff output, since Solaris 5.10 and GNU diff formats differ.
38209         Reported by Stefano Lattarini.
38211 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38213         test-posixtm: don't assume signed integer wraparound
38214         * tests/test-posixtm.c (main): Don't assume wraparound semantics
38215         after signed integer overflow.  Inspired by (though it may not
38216         fix) Bruno Haible's bug report in
38217         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
38219         Spell out "Windows 9x" and "Windows XP".
38220         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
38221         "Windows 9x" and "WinXP" with "Windows XP".
38223 2012-01-04  Jim Meyering  <meyering@redhat.com>
38225         test-vc-list-files-cvs.sh: remove obsolete comment
38226         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
38227         double exit.  Now that's all encapsulated via skip_ and Exit.
38229 2012-01-04  Bruno Haible  <bruno@clisp.org>
38231         Talk about "native Windows API", not "Win32".
38232         * lib/classpath.c: Update comments to mention native Windows.
38233         * lib/csharpexec.c: Likewise.
38234         * lib/dup2.c: Likewise.
38235         * lib/error.c: Likewise.
38236         * lib/fcntl.c: Likewise.
38237         * lib/filename.h: Likewise.
38238         * lib/findprog.c: Likewise.
38239         * lib/get-rusage-as.c: Likewise.
38240         * lib/get-rusage-data.c: Likewise.
38241         * lib/getpagesize.c: Likewise.
38242         * lib/javaexec.c: Likewise.
38243         * lib/msvc-inval.c: Likewise.
38244         * lib/msvc-nothrow.c: Likewise.
38245         * lib/nanosleep.c: Likewise.
38246         * lib/nonblocking.c: Likewise.
38247         * lib/printf-parse.c: Likewise.
38248         * lib/setlocale.c: Likewise.
38249         * lib/sigaction.c: Likewise.
38250         * lib/strerror_r.c: Likewise.
38251         * lib/tmpdir.c: Likewise.
38252         * lib/vasnprintf.c: Likewise.
38253         * lib/w32spawn.h: Likewise.
38254         * lib/waitpid.c: Likewise.
38255         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
38256         * m4/locale-ar.m4: Likewise.
38257         * m4/locale-fr.m4: Likewise.
38258         * m4/locale-ja.m4: Likewise.
38259         * m4/locale-tr.m4: Likewise.
38260         * m4/locale-zh.m4: Likewise.
38261         * m4/printf.m4: Likewise.
38262         * tests/test-cloexec.c: Likewise.
38263         * tests/test-copy-acl.sh: Likewise.
38264         * tests/test-copy-file.sh: Likewise.
38265         * tests/test-file-has-acl.sh: Likewise.
38266         * tests/test-set-mode-acl.sh: Likewise.
38267         * tests/test-dup-safer.c: Likewise.
38268         * tests/test-dup2.c: Likewise.
38269         * tests/test-dup3.c: Likewise.
38270         * tests/test-fcntl.c: Likewise.
38271         * tests/test-nonblocking-pipe.h: Likewise.
38272         * tests/test-nonblocking-socket.h: Likewise.
38273         * tests/test-pipe.c: Likewise.
38274         * tests/test-pipe2.c: Likewise.
38275         * tests/test-spawn-pipe-child.c: Likewise.
38276         * doc/acl-resources.txt: Likewise.
38277         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38278         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
38279         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
38280         * lib/localcharset.c: Update comments to mention native Windows.
38281         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38282         * lib/localename.c: Likewise.
38283         * lib/progreloc.c: Likewise.
38284         * lib/relocatable.c: Likewise.
38285         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
38286         (windows_compute_revents): Renamed from win32_compute_revents.
38287         (windows_compute_revents_socket): Renamed from
38288         win32_compute_revents_socket.
38289         * lib/select.c: Update comments to mention native Windows.
38290         (windows_poll_handle): Renamed from win32_poll_handle.
38291         * m4/threadlib.m4: Update comments to mention native Windows.
38292         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
38293         --enable-threads=windows instead of --enable-threads=win32. Set
38294         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
38295         * lib/glthread/lock.h: Update comments to mention native Windows.
38296         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
38297         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
38298         USE_WIN32_THREADS.
38299         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
38300         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
38301         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
38302         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
38303         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
38304         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
38305         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
38306         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
38307         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
38308         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
38309         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
38310         * tests/test-tls.c: Likewise.
38311         Rationale:
38312         Microsoft renamed the "Win32 API" to "Windows API", as it is available
38313         on both 32-bit and 64-bit Windows systems.
38314         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
38315         line of distinction is between "native Windows" on one side and Unix/
38316         POSIX systems on the other side. More details in
38317         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
38318         Suggested by Paul Eggert.
38320 2012-01-03  Bruno Haible  <bruno@clisp.org>
38322         isatty: Support for MSVC 9.
38323         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
38324         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
38325         (_isatty_nothrow): New function.
38326         (isatty): Use it instead of _isatty.
38327         (IsConsoleHandle): Add comment, from Paolo Bonzini.
38328         * lib/poll.c (IsConsoleHandle): Likewise.
38329         * lib/select.c (IsConsoleHandle): Likewise.
38330         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
38331         (gl_PREREQ_ISATTY): New macro.
38332         * modules/isatty (Depends-on): Add msvc-inval.
38333         (configure.ac): Invoke gl_PREREQ_ISATTY.
38335 2012-01-03  Jim Meyering  <meyering@redhat.com>
38337         maint.mk: remove temporary transition aid from over 1.5 years ago
38338         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
38339         purpose was to aid in the transition (avoiding silent malfunction)
38340         from that old name to the new _sc_search_regexp.  This shim was
38341         added by commit 219c504b.
38343         init.sh: do not try to accommodate compare arguments starting with "-"
38344         * tests/init.sh (compare_dev_null_): Do not try to accommodate
38345         compare arguments that start with "-".  Besides, we do not worry
38346         about this when invoking diff or cmp; why start now with sed?
38347         Using "--" to separate options from argument would trigger sed
38348         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
38349         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
38351 2012-01-02  Bruno Haible  <bruno@clisp.org>
38353         Enhance tests for module 'isatty'.
38354         * modules/isatty-tests (Depends-on): Add pipe-posix.
38355         * tests/test-isatty.c: Include <fcntl.h>.
38356         (DEV_NULL): New macro.
38357         (main): Test the resut of isatty() also on regular files, pipes, and
38358         /dev/null.
38360         New module 'isatty'.
38361         * lib/unistd.in.h (isatty): New declaration.
38362         * lib/isatty.c: New file, based on an idea of
38363         Bastien Roucariès <roucaries.bastien@gmail.com>.
38364         * m4/isatty.m4: New file.
38365         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
38366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
38367         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
38368         REPLACE_ISATTY.
38369         * modules/isatty: New file.
38370         * doc/posix-functions/isatty.texi: Mention the new module.
38371         Suggested by Paolo Bonzini.
38373 2012-01-02  Bruno Haible  <bruno@clisp.org>
38375         canonicalize: Tweak 2011-12-29 commit.
38376         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
38377         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
38379 2012-01-02  Jim Meyering  <meyering@redhat.com>
38381         gitlog-to-changelog: describe input syntax in --help output
38382         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
38384         gitlog-to-changelog: fix typo in --help: show backslash before email @
38385         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
38386         in sources, but not in actual output.
38388 2011-12-30  Jim Meyering  <meyering@redhat.com>
38390         gitlog-to-changelog: don't malfunction when name contains %-directive
38391         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
38392         in a name string cause trouble.  E.g., with a user name of "%s",
38393         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
38395 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
38397         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
38398         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
38399         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
38400         the "  (tiny change)" notation that is appended to the standard
38401         ChangeLog "date  name  email" header line.
38403 2012-01-01  Jim Meyering  <meyering@redhat.com>
38405         test-framework-sh: init.sh: fix "make dist" failure
38406         When using gnulib-tool's --with-tests option and any module that
38407         depends on test-framework-sh, "make dist" would fail due to the
38408         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
38409         in the gltests directory, and not in the gllib/ directory.
38410         One way to work around that is to move the EXTRA_DIST += init.sh
38411         from the primary module to the -tests one:
38412         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
38413         * modules/test-framework-sh (Makefile.am): ...not here.
38414         Reported by Tom G. Christensen in
38415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
38417         version-etc: update copyright year reported by --version
38418         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
38420 2011-12-31  Pádraig Brady  <P@draigBrady.com>
38422         canonicalize: only stat() if required
38423         * lib/canonicalize.c (canonicalize_filename_mode):
38424         Avoid calling l?stat() when both CAN_MISSING,
38425         and CAN_NOLINKS are set, as we neither need
38426         to resolve symlinks or test component existence.
38428 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
38430         doc: cover st_ino issues once; add OpenVMS etc.
38431         * doc/posix-functions/stat.texi (stat):
38432         * doc/posix-functions/lstat.texi (lstat):
38433         * doc/posix-functions/fstatat.texi (fstatat):
38434         * doc/posix-functions/fstat.texi (fstat):
38435         Move general 'struct stat' stuff to sys_stat.texi,
38436         leaving behind a pointer.
38437         * doc/posix-headers/sys_stat.texi (sys/stat.h):
38438         Merge duplicate info about 'struct stat' problems into here.
38439         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
38440         and suggest partial workarounds.
38442         same-inode: port to OpenVMS
38443         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
38444         three st_ino values.
38446 2011-12-30  Pádraig Brady  <P@draigBrady.com>
38448         canonicalize: fix references to stat() and lstat()
38449         * lib/canonicalize.c (canonicalize_filename_mode):
38450         Ensure references always resolve to a replacement
38451         function if required (even via a macro).
38453 2011-12-30  Jim Meyering  <meyering@redhat.com>
38455         gitlog-to-changelog: remove a little duplication
38456         * build-aux/gitlog-to-changelog (main): Grep @lines once,
38457         rather than twice.
38459 2011-12-29  Pádraig Brady  <P@draigBrady.com>
38461         canonicalize: add support for not resolving symlinks
38462         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
38463         indicate we don't want to follow symlinks.  Also
38464         provide CAN_MODE_MASK to aid setting these existing
38465         mutually exclusive values.
38466         * lib/canonicalize.c (canonicalize_filename_mode):
38467         Extract the flags from can_mode parameter, which
38468         are currently just used to select between stat()
38469         and lstat().  Also ensure that mutually exclusive
38470         values are flagged immediately as invalid.
38471         * tests/test-canonicalize.c: Verify symlinks are
38472         not followed, and that invalid flag combinations
38473         are diagnosed.
38475 2011-12-25  Jim Meyering  <meyering@redhat.com>
38477         gitlog-to-changelog: do not clump multi-paragraph entries
38478         Identical header lines (date,name,email+coauthors) are suppressed,
38479         thus putting all entries with those same characteristics under
38480         a single header.  However, when a log entry consists of two or
38481         more paragraphs, it may not be clear where it starts and ends.
38482         This change makes it so that such an entry is always separated
38483         from others by a header line, even when that header would
38484         otherwise be suppressed.
38485         * build-aux/gitlog-to-changelog: Implement the above.
38486         Inspired by a related request from Stefano Lattarini in
38487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
38489 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38491         announce-gen: fix `cmd' typo in diagnostic
38492         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
38493         diagnostic: a missing '$' meant that the command was not output.
38495 2011-12-23  Jim Meyering  <meyering@redhat.com>
38497         test-framework-sh: distribute init.sh
38498         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
38499         Otherwise, "make -C gnulib-tests check" (at least in grep) would
38500         fail due to the lack of init.sh.
38502         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
38503         * modules/atexit-tests: Rather than listing tests/init.sh,
38504         now that there's a module for it, simply depend on that new module.
38505         * modules/closein-tests: Likewise.
38506         * modules/exclude-tests: Likewise.
38507         * modules/getcwd-tests: Likewise.
38508         * modules/perror-tests: Likewise.
38509         * modules/pread-tests: Likewise.
38510         * modules/pwrite-tests: Likewise.
38511         * modules/vc-list-files-tests: Likewise.
38512         * modules/verify-tests: Likewise.
38513         * modules/xalloc-die-tests: Likewise.
38514         * modules/xstrtoimax-tests: Likewise.
38515         * modules/xstrtol-tests: Likewise.
38516         * modules/xstrtoll-tests: Likewise.
38517         * modules/xstrtoumax-tests: Likewise.
38518         * modules/yesno-tests: Likewise.
38520 2011-12-22  Jim Meyering  <meyering@redhat.com>
38522         test-framework-sh: add minimal tests of init.sh's compare function
38523         * modules/test-framework-sh-tests: New file.
38524         * tests/test-init.sh: New file.
38526         test-framework-sh: new module
38527         * modules/test-framework-sh: New file.
38528         * MODULES.html.sh (Support for maintaining and releasing projects):
38529         List it.
38531         init.sh: do not emit simulated diff output to stderr
38532         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
38534 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38536         .gitignore: ignore gnulib.dvi and regex.info
38537         * doc/.gitignore:add gnulib.dvi and regex.info
38539 2011-12-22  Jim Meyering  <meyering@redhat.com>
38541         init.sh: correct previous change
38542         * tests/init.sh (compare): My previous change was wrong.
38543         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
38545         init.sh: avoid unwarranted test failure when using "set -e"
38546         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
38547         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
38548         a use like "compare exp out" would get evoke an unconditional failure.
38550 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
38552         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
38553         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
38554         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
38555         autoreconf that did not.
38556         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
38557         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
38559 2011-12-17  Jim Meyering  <meyering@redhat.com>
38561         bootstrap: remove some now-unneeded code
38562         This script arose back when gnulib-tool was young.
38563         Since then, it has seen improvements that render much of this
38564         script unnecessary.  In particular, it can now make symlinks
38565         to the files it uses.  Also, I no longer see as much value in
38566         marking files as read-only via comments.
38567         If you relied on the symlink-creation feature of the preceding
38568         version of this script, you can get most of that functionality
38569         by adding the --symlink option to the definition of
38570         gnulib_tool_option_extras in your bootstrap.conf file.
38571         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
38572         Run autopoint and libtoolize *before* gnulib-tool.
38573         After it, run an abbreviated autoreconf, rather than a loop around
38574         all tools.
38575         (slirp, bt_mark_as_generated): Remove functions.
38577 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38579         ftoastr: fix typo
38580         * lib/ftoastr.h: Fix misspelling in comment.
38582 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
38584         * top/README-release: fix punctuation.
38586 2011-12-17  Jim Meyering  <meyering@redhat.com>
38588         bootstrap: correct the recent buildreq change
38589         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
38590         had no effect.
38591         * build-aux/bootstrap (buildreq): Bracket each search term with
38592         "*...*", so that the shell "case" statement works as intended.
38593         Add comments.
38595 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
38597         build: let bootstrap resort to wget when downloading .po files
38598         * build-aux/bootstrap (download_po_files): Fallback to wget when
38599         downloading the .po files via rsync fails.  This is necessary to
38600         bootstrap from behind a strict firewall.
38602 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
38604         stdint: don't assume C++11 when compiling with g++
38605         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
38606         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
38607         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
38608         work also in C++ before C++11, as that improperly inhibits
38609         generating a substitute stdint.h for that case.
38611 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
38613         alloca: protect comment from gnulib-tool
38614         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
38615         that gnulib-tool doesn't think it's a license, and munge it to
38616         say "GCC version 3".
38618 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
38620         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
38621         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
38622         $(abs_top_builddir) instead of $(top_builddir).
38624 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
38626         strftime-tests: also test nanoseconds
38627         * tests/test-strftime.c (T): Add a test of %N.
38629 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
38631         inttypes, stdint: add C++11 support
38632         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
38633         when including inttypes.h and stdint.h.  Support this change to
38634         the standard.
38635         * doc/posix-headers/inttypes.texi (inttypes.h):
38636         * doc/posix-headers/stdint.texi (stdint.h): Document this.
38637         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
38638         Define if not defined already, for the benefit of pre-C++11 hosts.
38639         Define the standard format macros (e.g., PRId8) always.
38640         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
38641         Likewise, if __cpluspus.  Define the standard constant and limit
38642         macros (e.g., INT8_C, INT8_MAX) always.
38643         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
38644         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
38645         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
38646         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
38647         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
38648         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
38649         Likewise.
38651 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
38653         nonblocking tests: Fix test failure on Linux/PPC.
38654         Suggested by Prerna Saxena in
38655         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
38656         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
38657         Set to 1100000.
38659 2011-12-12  Jim Meyering  <meyering@redhat.com>
38661         argmatch: don't hard-code `' when listing valid option arguments
38662         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
38663         use the quote function to add quotes.  Use fputs rather than
38664         fprintf for the format string with no format directive.
38666 2011-12-07  Eric Blake  <eblake@redhat.com>
38668         bootstrap: detect tools required by gnulib-tool
38669         * build-aux/bootstrap (buildreq): Provide minimum implicit
38670         dependencies.
38671         * DEPENDENCIES: Mention patch as a prereq.
38673 2011-12-04  Bruno Haible  <bruno@clisp.org>
38675         sethostname: Port to Windows platforms.
38676         * lib/sethostname.c: Provide an alternate implementation for Windows
38677         platforms.
38678         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
38679         (main): Skip the test if sethostname() fails with EPERM. On Windows
38680         platforms, don't check the result of gethostname().
38682 2011-12-04  Bruno Haible  <bruno@clisp.org>
38683             Jim Meyering  <meyering@redhat.com>
38685         tests: Avoid spurious error message on platforms without mktemp program.
38686         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
38688 2011-12-04  Bruno Haible  <bruno@clisp.org>
38690         sethostname: Fix documentation.
38691         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
38692         "not fixed" section.
38694 2011-12-03  Bruno Haible  <bruno@clisp.org>
38696         gnulib-tool: Verify that the License field is present and non-empty.
38697         * gnulib-tool (func_get_license_raw): New function, extracted from
38698         func_get_license.
38699         (func_get_license): Use it. Warn if the module is not a test module and
38700         has no license.
38701         Suggested by Jim Meyering.
38703 2011-12-03  Bruno Haible  <bruno@clisp.org>
38705         sethostname tests: Fix link error on mingw.
38706         * tests/test-sethostname1.c: New file, extracted from
38707         tests/test-sethostname.c.
38708         * tests/test-sethostname2.c: New file, extracted from
38709         tests/test-sethostname.c.
38710         * tests/test-sethostname.c: Remove file.
38711         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
38712         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
38713         (Depends-on): Add gethostname.
38714         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
38715         Link the latter with $(GETHOSTNAME_LIB).
38717         sethostname tests: Fix compilation error on mingw.
38718         * tests/test-sethostname.c: Don't include <sys/types.h>.
38719         (geteuid): Use a dummy value without uid_t.
38720         * modules/sethostname-tests (Depends-on): Remove sys_types.
38722         sethostname tests: Avoid a gcc warning.
38723         * tests/test-sethostname.c (main): Remove an unused variable.
38725         Tweak last commit.
38726         * modules/sethostname-tests (Files): Sort by decreasing importance.
38727         (configure.ac): Check for geteuid.
38728         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
38729         the test when there's nothing to test. Drop an unnecessary cast.
38730         Improve an error message. Verify that the final sethostname() call
38731         succeeds.
38733 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
38735         Add a test suite for the sethostname module.
38736         * modules/sethostname-tests: New file.  A test program
38737         for the sethostname module.
38738         * tests/test-sethostname.c: Likewise.
38740 2011-12-03  Bruno Haible  <bruno@clisp.org>
38742         Tweak last commit.
38743         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
38744         Fix preprocessor directives indentation. Fix typos.
38745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
38746         * modules/unistd (Makefile): Likewise.
38748 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
38750         Integrate the sethostname module into unistd.
38751         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
38752         into the unistd.h header.
38753         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
38754         preprocessor directives.
38755         * modules/unistd: Setup the Makefile substitutions of the
38756         SETHOSTNAME preprocessor directives.
38758 2011-12-03  Bruno Haible  <bruno@clisp.org>
38760         Tweak last commit.
38761         * lib/sethostname.c: Don't include <string.h>.
38762         (sethostname): No need to copy the argument string to the stack. Don't
38763         call clearerr. Preserve errno when fprintf failed.
38764         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
38765         Don't invoke AC_REPLACE_FUNCS.
38766         * modules/sethostname (Link): Remove empty section.
38767         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
38768         failure problem.
38770 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
38772         New module 'sethostname'.
38773         * lib/sethostname.c (sethostname): New file.  Provide sethostname
38774         for systems that lack it.
38775         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
38776         sethostname declaration and function.
38777         * modules/sethostname: New file.  Define the sethostname module.
38779 2011-12-03  Bruno Haible  <bruno@clisp.org>
38781         Tweak last commit.
38782         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
38784 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
38786         Split the HOST_NAME_MAX detection into a separate m4 macro.
38787         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
38788         macro so it can be used by the pending sethostname module.
38790 2011-12-03  Bruno Haible  <bruno@clisp.org>
38792         Fix module descriptions syntax.
38793         * modules/argv-iter (License): Fix syntax.
38794         * modules/di-set (License): Likewise.
38795         * modules/ino-map (License): Likewise.
38796         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
38798 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
38800         stdalign: port to Clang 3.0
38801         Problem reported by Simon Josefsson in
38802         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
38803         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
38804         which has <stdalign.h> but which does not define alignof.
38805         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
38807 2011-12-01  Eric Blake  <eblake@redhat.com>
38809         mktempd: silence dd usage
38810         * build-aux/mktempd (rand_bytes): Silence dd.
38812 2011-11-30  Simon Josefsson  <simon@josefsson.org>
38814         manywarnings: Don't mention gcc version in docstring.
38815         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
38816         Jim Meyering <meyering@redhat.com>.
38818 2011-11-30  Jim Meyering  <meyering@redhat.com>
38820         hash: mark a few floating point constants with "f" suffix
38821         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
38822         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
38823         floating point constants with "f", since they're destined to be
38824         saved/used as "float"s.
38826 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
38828         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
38829         * tests/test-float.c (test_long_double): Correct and re-enable the
38830         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
38832 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
38834         Avoid subtracting two pointers that don't point into the same block.
38835         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
38836         only pointers into the same memory block are subtracted. We cannot
38837         assume that sizeof (ptrdiff_t) == sizeof (void *).
38839 2011-11-29  Eric Blake  <eblake@redhat.com>
38841         maint.mk: add syntax check for use of compare from init.sh
38842         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
38843         moved here from coreutils.
38845         manywarnings: drop -Wunsuffixed-float-constants
38846         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
38847         '1.0D', which is the only way to silence this warning for 'double'.
38849 2011-11-29  Jim Meyering  <meyering@redhat.com>
38851         hash: mark compute_bucket_size with the pure attribute
38852         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
38854         quotearg, propername: correct pragma guard expression
38855         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
38856         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
38858 2011-11-28  Jim Meyering  <meyering@redhat.com>
38860         propername: do not mark proper_name with the const attribute
38861         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
38862         since it examines data pointed to by its parameter.
38863         * lib/propername.c (proper_name): Instead, add a pragma to suppress
38864         the suggestion from -Wsuggest-attribute=const.
38866         propername: mark one more function as const
38867         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
38869 2011-11-27  Jim Meyering  <meyering@redhat.com>
38871         mark functions with const and pure attributes
38873         Mark functions per suggestions from gcc-4.6 when using these options:
38874         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
38875         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
38876         Follow these guidelines: when possible, apply the attribute to
38877         an extern declaration, not to its definition.  Apply it to the
38878         definition only when the definition is static.
38879         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
38880         * lib/argv-iter.h (argv_iter_n_args): Likewise.
38881         * lib/base64.h (isbase64): Likewise.
38882         * lib/basename-lgpl.c (last_component, base_len): Likewise.
38883         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
38884         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
38885         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
38886         (c_tolower, c_toupper): Likewise.
38887         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
38888         * lib/chdir-long.c (find_non_slash): Likewise.
38889         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
38890         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
38891         * lib/file-type.h (file_type): Likewise.
38892         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
38893         * lib/filevercmp.c (verrevcmp): Likewise.
38894         * lib/freadahead.h (freadahead): Likewise.
38895         * lib/fts.c (fts_maxarglen): Likewise.
38896         * lib/hash-pjw.h (hash_pjw): Likewise.
38897         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
38898         * lib/hash.c (is_prime, next_prime): Likewise.
38899         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
38900         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
38901         (hash_table_ok, hash_get_first, hash_string): Likewise.
38902         (compute_bucket_size): Likewise.
38903         * lib/i-ring.h (i_ring_empty): Likewise.
38904         * lib/isnan.c (isnanl): Likewise.
38905         * lib/math.h (isnanl, rpl_isnanl): Likewise.
38906         * lib/memcasecmp.h (memcasecmp): Likewise.
38907         * lib/memchr2.h (memchr2): Likewise.
38908         * lib/memcmp2.h (memcmp2): Likewise.
38909         * lib/parse-datetime.y (lookup_zone): Likewise.
38910         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
38911         [!WINDOWS_SOCKETS]: Likewise.
38912         * lib/strnlen1.h (strnlen1): Likewise.
38913         * lib/uniwidth.in.h (uc_width): Likewise.
38914         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
38915         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
38916         (quoting_options_from_style): Add a comment.
38917         * lib/propername.h (proper_name): Add a comment.
38919 2011-11-27  Bruno Haible  <bruno@clisp.org>
38921         Remove unused macros from !_LIBC code in glibc-borrowed files.
38922         * lib/fnmatch.c (STRCOLL): Remove macro.
38923         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
38924         * lib/glob.c (__stat, __readdir64): Remove macros.
38925         * lib/tempname.c (__open64, __xstat64): Remove macros.
38926         Suggested by Paul Eggert.
38928 2011-11-27  Bruno Haible  <bruno@clisp.org>
38930         getcwd: Fix link error on MSVC 9.
38931         * modules/getcwd (Depends-on): Add readdir, rewinddir.
38933 2011-11-27  Bruno Haible  <bruno@clisp.org>
38935         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
38936         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
38937         HAVE_OPENDIR is 0.
38938         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
38939         HAVE_CLOSEDIR is 0.
38940         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
38941         is 0.
38942         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
38944 2011-11-27  Bruno Haible  <bruno@clisp.org>
38946         getcwd: Fix bug from 2011-08-17.
38947         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
38948         platforms that need it.
38949         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
38950         code of 4 to be a failure, not a success. This ensures that
38951         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
38953 2011-11-27  Bruno Haible  <bruno@clisp.org>
38955         binary-io tests: Avoid test failure on mingw when libtool is used.
38956         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
38957         Don't verify the size of t-bin-out1.tmp here.
38958         * tests/test-binary-io.sh: Verify it here.
38959         Reported by Simon Josefsson.
38961 2011-11-26  Bruno Haible  <bruno@clisp.org>
38963         Fix conflict between two instantiations of module 'unistd'.
38964         * gnulib-tool (func_emit_autoconf_snippet): Substitute
38965         ${include_guard_prefix} also in the autoconf snippet.
38966         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
38967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
38968         GNULIB_UNISTD_H_GETOPT.
38969         * modules/getopt-posix (configure.ac): Set the
38970         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
38971         * modules/getopt-gnu (configure.ac): Likewise.
38972         * modules/unistd (Makefile.am): Change the substitution value of
38973         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
38974         Reported by Simon Josefsson.
38976 2011-11-25  Bruno Haible  <bruno@clisp.org>
38978         pagealign_alloc: Doc and comments.
38979         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
38980         module.
38981         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
38983 2011-11-25  Jim Meyering  <meyering@redhat.com>
38985         test-update-copyright.sh: avoid false-positive failure
38986         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
38987         around false positive failure on Cygwin/Windows.  The latter was
38988         matching erroneously-created files with names like
38989         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
38991 2011-11-25  Simon Josefsson  <simon@josefsson.org>
38993         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
38994         * m4/valgrind-tests.m4: Check that the parameters that will be
38995         used works, not just a subset of them.  Reported by Bruno Haible
38996         <bruno@clisp.org>.
38998 2011-11-24  Jim Meyering  <meyering@redhat.com>
39000         test-stdalign.c: comment out long double tests
39001         * tests/test-stdalign.c: Don't try to reduce alignment of long double
39002         variables.  That provokes errors like this from gcc-4.7.0 20111124:
39003         error: '_Alignas' specifiers cannot reduce alignment of \
39004         'static_longdouble_alignas'.
39006 2011-11-22  Jim Meyering  <meyering@redhat.com>
39008         init.sh: make "compare /dev/null FILE" output more readable
39009         * tests/init.sh (compare_): Document the preferred order of arguments.
39010         (emit_diff_u_header_): New function.
39011         (compare_dev_null_): Emit a simulated diff, rather than just the
39012         contents of the unexpected file.  Suggestion from Bruno Haible.
39014 2011-11-21  Jim Meyering  <meyering@redhat.com>
39015             Eric Blake  <eblake@redhat.com>
39017         init.sh: work around OSF/1 5.1's mishandling of /dev/null
39018         * tests/init.sh: Make our compare function slightly more portable.
39019         Reported by Bruno Haible in
39020         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
39022 2011-11-21  Simon Josefsson  <simon@josefsson.org>
39024         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
39025         before using it, in code that ends up in config.h.
39027 2011-11-20  Bruno Haible  <bruno@clisp.org>
39029         getcwd: Work around getcwd bug on AIX 5..7.
39030         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
39031         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
39032         Use a different value for gl_cv_func_getcwd_path_max. Move the
39033         definition of HAVE_PARTLY_WORKING_GETCWD from here...
39034         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
39035         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
39036         Define HAVE_MINIMALLY_WORKING_GETCWD.
39037         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
39038         where it is not even minimally working, that is, on AIX.
39039         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
39040         m4/getcwd-path-max.m4.
39041         (main): Update exit code computation.
39042         * doc/posix-functions/getcwd.texi: Mention list of platforms where
39043         getcwd does not handle long file names.
39045 2011-11-20  Bruno Haible  <bruno@clisp.org>
39047         getcwd: Fix bug from 2009-09-10.
39048         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
39049         like "no".
39051 2011-11-20  Simon Josefsson  <simon@josefsson.org>
39053         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
39055 2011-11-20  Bruno Haible  <bruno@clisp.org>
39057         fma tests: Avoid shadowing local variables.
39058         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
39059         expected.
39061 2011-11-20  Bruno Haible  <bruno@clisp.org>
39063         copysignf tests: Fix.
39064         * tests/test-copysignf.c: Fix signature check.
39066 2011-11-20  Bruno Haible  <bruno@clisp.org>
39068         fma: Remove unused code.
39069         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
39070         unused macros.
39072 2011-11-20  Bruno Haible  <bruno@clisp.org>
39074         sethostname: Fix doc about AIX.
39075         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
39076         sethostname; it has it.
39078         sethostname: Mention more portability problems.
39079         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
39080         problem.
39081         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
39083 2011-11-19  Bruno Haible  <bruno@clisp.org>
39085         Depend on module fcntl-h when AT_FDCWD is used.
39086         * modules/utimens (Depends-on): Add fcntl-h.
39087         * modules/areadlinkat (Depends-on): Likewise.
39088         * modules/areadlinkat-with-size (Depends-on): Likewise.
39089         * modules/faccessat (Depends-on): Likewise.
39090         * modules/fchmodat (Depends-on): Likewise.
39091         * modules/fchownat (Depends-on): Likewise.
39092         * modules/getcwd (Depends-on): Likewise.
39093         * modules/mkdirat (Depends-on): Likewise.
39094         * modules/mkfifoat (Depends-on): Likewise.
39095         * modules/readlinkat (Depends-on): Likewise.
39096         * modules/symlinkat (Depends-on): Likewise.
39097         * modules/dup2-tests (Depends-on): Likewise.
39098         * modules/fdutimensat-tests (Depends-on): Likewise.
39099         * modules/futimens-tests (Depends-on): Likewise.
39101 2011-11-19  Bruno Haible  <bruno@clisp.org>
39103         euidaccess: Update a comment.
39104         * lib/euidaccess.c: Update comment about platforms with faccessat.
39106 2011-11-19  Bruno Haible  <bruno@clisp.org>
39108         openat: Fix file list.
39109         * modules/openat (Files): Remove lib/at-func.c.
39111 2011-11-19  Bruno Haible  <bruno@clisp.org>
39113         fstatat: Simplify.
39114         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
39115         gnulib should define rpl_fstatat, there is a
39116         "#define fstatat rpl_fstatat" in <sys/stat.h>.
39118 2011-11-19  Bruno Haible  <bruno@clisp.org>
39120         Ensure 'inline' can be used in tests/test-utimens-common.h.
39121         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
39122         * modules/futimens-tests (configure.ac): Likewise.
39123         * modules/utimens-tests (configure.ac): Likewise.
39124         * modules/utimensat-tests (configure.ac): Likewise.
39126 2011-11-19  Simon Josefsson  <simon@josefsson.org>
39128         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
39129         not hash_insert0.
39130         (hash_insert_if_absent): Doc fix.
39132 2011-11-19  Simon Josefsson  <simon@josefsson.org>
39134         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
39136 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
39138         test-getcwd: disambiguate exit status
39139         * tests/test-getcwd.c (test_long_name): Return 0..7.
39140         (main): Exit with an unambiguous exit status.  The old
39141         code yielded a mysterious mixture of two failure codes.
39143         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
39144         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
39145         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
39146         rpl_fstatat or fstatat.  This should fix the other problem
39147         reported by Kai Habel in
39148         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
39149         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
39150         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
39151         and I reproduced it on a Solaris 8 host we still have in production.
39153 2011-11-18  Jim Meyering  <meyering@redhat.com>
39155         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
39156         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
39157         Add a sentence to the comment.
39158         (hash_insert0): New function that simply calls hash_insert_if_absent.
39159         * lib/hash.h (hash_insert_if_absent): Declare it.
39160         (hash_insert0): Add deprecation attribute.
39161         (_GL_ATTRIBUTE_DEPRECATED): Define.
39162         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
39163         not hash_insert0.
39164         * NEWS: Mention it, even though it's not really an incompatible change.
39166 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
39168         openat: avoid compilation failure due to lack of <errno.h> inclusion
39169         * lib/openat.c: Include <errno.h>.
39171 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39173         * modules/getcwd (Depends-on): Add fdopendir.
39174         This fixes one of the two problems reported by Kai Habel in
39175         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
39177         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
39178         stdalign problem reported by Ian Beckwith in
39179         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
39180         * modules/crypto/gc-arcfour (Depends-on):
39181         Depend conditionally on crypto/arcfour.
39182         * modules/crypto/gc-arctwo (Depends-on):
39183         Depend conditionally on crypto/arctwo.
39184         * modules/crypto/gc-des (Depends-on):
39185         Depend conditionally on crypto/des.
39186         * modules/crypto/gc-hmac-md5 (Depends-on):
39187         Depend conditionally on crypto/hmac-md5.
39188         * modules/crypto/gc-hmac-sha1 (Depends-on):
39189         Depend conditionally on crypto/hmac-sha1.
39190         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
39191         * modules/crypto/gc-md4 (Depends-on):
39192         Depend conditionally on crypto/md4.
39193         * modules/crypto/gc-md5 (Depends-on):
39194         Depend conditionally on crypto/md5.
39195         * modules/crypto/gc-rijndael (Depends-on):
39196         Depend conditionally on crypto/rijndael.
39197         * modules/crypto/gc-sha1 (Depends-on):
39198         Depend conditionally on crypto/sha1.
39199         * modules/crypto/gc-arcfour:
39200         * modules/crypto/gc-arctwo:
39201         * modules/crypto/gc-des:
39202         * modules/crypto/gc-hmac-md5:
39203         * modules/crypto/gc-hmac-sha1:
39204         * modules/crypto/gc-md2:
39205         * modules/crypto/gc-md4:
39206         * modules/crypto/gc-md5:
39207         * modules/crypto/gc-rijndael:
39208         * modules/crypto/gc-sha1:
39209         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
39210         now that the conditional dependencies do the work for us.
39212 2011-11-17  Jim Meyering  <meyering@redhat.com>
39214         tests: factor st_ctime-comparison out of two headers
39215         * tests/test-utimens-common.h (ctime_compare): Define.
39216         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
39217         * tests/test-lutimens.h (test_lutimens): Likewise.
39218         * tests/test-utimens.h (test_utimens): Likewise.
39220         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
39221         Invoke the test program via an init.sh-using wrapper.
39222         * tests/test-getcwd.sh: New file.
39223         * modules/getcwd-tests (Files): Add it.
39224         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
39226 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
39228         gitlog-to-changelog: support multi-author commits.
39229         The FSF cares about keeping track of all authors of patches to its
39230         projects, but Git doesn't provide obvious support for multi-author
39231         changesets. Consensus seems to be forming around the use of extra
39232         Signed-off-by inspired lines in the log message formatted as
39233         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
39234         multi-author commits between version control systems.
39235         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
39236         log message and output in standard ChangeLog multi-author format.
39237         Reported by Peter Rosin <peda@lysator.liu.se>
39239 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
39240             Bruno Haible  <bruno@clisp.org>
39242         Fix some modules' file list.
39243         * modules/fstatat (Files): Add m4/lstat.m4.
39244         * modules/openat (Files): Likewise.
39245         * modules/unlinkat (Files): Likewise.
39247 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
39249         maint.mk: fix tight-scope.mk generation in VPATH builds.
39250         * top/maint.mk (tight-scope.mk): Make sure to prefix file
39251         reference with $(srcdir) so that the file is found correctly even
39252         when running `make syntax-check' in a VPATH build.
39254 2011-11-13  Bruno Haible  <bruno@clisp.org>
39255             Jim Meyering  <meyering@redhat.com>
39257         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
39258         * tests/init.sh (compare): Remove "No differences encountered" or
39259         synonymous output from the 'diff' program.
39261 2011-11-13  Bruno Haible  <bruno@clisp.org>
39263         Makefile: Tweak indentation.
39264         * Makefile: Use tab as first character in every line that contains rule
39265         commands.
39267 2011-11-13  Bruno Haible  <bruno@clisp.org>
39269         Syntax check for copyright statements.
39270         * check-copyright: New file.
39271         * Makefile (sc_check_copyright): New rule.
39273 2011-11-13  Simon Josefsson  <simon@josefsson.org>
39275         * build-aux/git-version-gen: Add --prefix to configure the tag
39276         match string.
39278 2011-11-13  Simon Josefsson  <simon@josefsson.org>
39280         * build-aux/git-version-gen: Add --help and --version.
39282 2011-11-12  Jim Meyering  <meyering@redhat.com>
39284         revamp the other test-exclude?.sh scripts to use init.sh, too
39285         * tests/test-exclude1.sh: Use init.sh.
39286         * tests/test-exclude2.sh: Likewise.
39287         * tests/test-exclude3.sh: Likewise.
39288         * tests/test-exclude4.sh: Likewise.
39289         * tests/test-exclude5.sh: Likewise.
39290         * tests/test-exclude6.sh: Likewise.
39291         * tests/test-exclude7.sh: Likewise.
39292         * tests/test-exclude8.sh: Likewise.
39293         * modules/exclude-tests (Files): List init.sh.
39295         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
39296         These shell scripts ignored failure of the binary test-exclude,
39297         so making the latter return 77 didn't cause them to be skipped.
39298         * tests/test-exclude5.sh: Exit with test-exclude's error status
39299         when that program fails.  Revamp to use init.sh.
39300         * tests/test-exclude2.sh: Likewise.
39302         test-exclude: fix a typo
39303         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
39305 2011-11-11  Bruno Haible  <bruno@clisp.org>
39307         obstack: Fix compilation error on MSVC 9.
39308         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
39310 2011-11-11  Jim Meyering  <meyering@redhat.com>
39312         test-exclude: skip tests rather than failing on deficient systems
39313         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
39314         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
39315         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
39316         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
39318 2011-11-10  Bruno Haible  <bruno@clisp.org>
39320         ptsname_r test: Avoid gcc warning on glibc systems.
39321         * tests/test-ptsname_r.c (null_ptr): New function.
39322         (test_errors): Use it.
39324 2011-11-10  Bruno Haible  <bruno@clisp.org>
39326         ptsname_r: Avoid compilation error on OSF/1 5.1.
39327         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
39328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
39329         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
39330         function is not declared or incompatibly declared.
39331         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
39332         * modules/ptsname_r (Depends-on, configure.ac): Update.
39333         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
39335 2011-11-10  Bruno Haible  <bruno@clisp.org>
39337         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
39338         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
39339         When cross-compiling, guess yes on all platforms except AIX.
39340         Reported by Ludovic Courtès <ludo@gnu.org>.
39342 2011-11-09  Bruno Haible  <bruno@clisp.org>
39344         ptsname_r tests: Fix bugs.
39345         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
39346         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
39348 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39350         fstatat: work with cross-compilation
39351         Problem reported by Ludovic Courtès in
39352         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
39353         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
39354         "cross-compiling" and assume the bug is present.  Replace
39355         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
39356         an inverted sense, to be more conservative about our assumptions.
39357         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
39359 2011-11-09  Bruno Haible  <bruno@clisp.org>
39361         Improve MODULES.html output.
39362         * modules/mkfifoat (Description): Use the word "function".
39363         * modules/readlinkat (Description): Likewise.
39364         * modules/symlinkat (Description): Likewise.
39366 2011-11-09  Eric Blake  <eblake@redhat.com>
39368         ptsname_r-tests: new test module
39369         * modules/ptsname_r-tests: New module.
39370         * tests/test-ptsname_r.c: New file.
39372         ptsname_r: new module
39373         * modules/ptsname_r: New module.
39374         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
39375         * lib/ptsname.c (__ptsname_r): Split...
39376         * lib/ptsname_r.c: ...into new file.
39377         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
39378         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
39379         * modules/stdlib (Makefile.am): Substitute witnesses.
39380         * lib/stdlib.in.h (ptsname_r): Declare it.
39381         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
39382         * MODULES.html.sh (Misc): Likewise.
39383         * modules/ptsname (Depends-on): Alter dependency.
39384         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
39386 2011-11-09  Jim Meyering  <meyering@redhat.com>
39388         announce-gen: be more concise when there's only one URL+tarball
39389         * build-aux/announce-gen (get_tool_versions): When you distribute
39390         only one type of tarball, combine the first two "Here are..."
39391         sections and make the key-checking grammar independent of
39392         how many tarballs there are.
39394 2011-11-09  Eric Blake  <eblake@redhat.com>
39396         openpty: provide a stub on mingw
39397         * lib/pty.in.h (includes): Provide forward declarations.
39398         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
39400         raise: fix mingw handling of SIGPIPE
39401         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
39403 2011-11-08  Bruno Haible  <bruno@clisp.org>
39405         More conditional dependencies.
39406         * modules/faccessat (Depends-on): Add conditions.
39407         * modules/fchmodat (Depends-on): Likewise.
39408         * modules/fchownat (Depends-on): Likewise.
39409         * modules/fstatat (Depends-on): Likewise.
39410         * modules/mkfifoat (Depends-on): Likewise.
39411         * modules/readlinkat (Depends-on): Likewise.
39412         * modules/symlinkat (Depends-on): Likewise.
39413         * modules/unlinkat (Depends-on): Likewise.
39414         * modules/utimensat (Depends-on): Likewise.
39415         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
39416         * modules/linkat (Depends-on): Refine the conditions.
39417         * modules/renameat (Depends-on): Likewise.
39419 2011-11-08  Bruno Haible  <bruno@clisp.org>
39421         faccessat: Move AC_LIBOBJ invocation to module description.
39422         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
39423         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
39424         invocation from here...
39425         * modules/faccessat (configure.ac): ... to here. Invoke
39426         gl_PREREQ_FACCESSAT.
39428 2011-11-08  Bruno Haible  <bruno@clisp.org>
39430         faccessat: Simplify autoconf macro.
39431         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
39432         gl_FUNC_EUIDACCESS.
39434 2011-11-08  Bruno Haible  <bruno@clisp.org>
39436         renameat: Fix dependencies.
39437         * modules/renameat (Depends-on): Add stdbool.
39439 2011-11-08  Bruno Haible  <bruno@clisp.org>
39441         mkfifoat: Fix module description.
39442         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
39443         not gl_UNISTD_MODULE_INDICATOR.
39445 2011-11-08  Bruno Haible  <bruno@clisp.org>
39447         fstatat: Remove unused dependency.
39448         * modules/fstatat (Depends-on): Remove fstat.
39450 2011-11-08  Simon Josefsson  <simon@josefsson.org>
39452         GNUmakefile: behave when Makefile is missing.
39453         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
39455 2011-11-08  Bruno Haible  <bruno@clisp.org>
39457         openat: Conditionalize dependencies.
39458         * lib/openat.c: Reduce the scope of some #includes.
39459         * modules/openat (Depends-on): Add conditions.
39461 2011-11-07  Jim Meyering  <meyering@redhat.com>
39463         maint.mk: extract GPG key ID without using a temporary file
39464         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
39465         without using a temporary file.  Based on a suggestion from Werner Koch
39466         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
39468 2011-11-07  Eric Blake  <eblake@redhat.com>
39470         grantpt: fix typo
39471         * lib/stdlib.in.h (grantpt): Check correct function.
39473         maint.mk: silence new syntax check
39474         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
39476 2011-11-06  Bruno Haible  <bruno@clisp.org>
39478         Doc about floating-point and math API.
39479         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
39480         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
39482 2011-11-06  Bruno Haible  <bruno@clisp.org>
39484         stdalign tests: Skip the test when compiled by Sun C.
39485         * tests/test-stdalign.c (main): Skip the test on Sun C.
39487 2011-11-06  Bruno Haible  <bruno@clisp.org>
39489         ansi-c++-opt: Complete the 2011-06-05 change.
39490         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
39491         does not support namespaces, set the variable to "no", not to ":".
39493 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39495         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
39497 2011-11-06  Bruno Haible  <bruno@clisp.org>
39499         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
39500         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
39501         (minus_zerol) [HP-UX]: New macro.
39502         (unary_minus) [HP-UX]: New function.
39503         (copysignl) [HP-UX]: Use unary_minus function.
39505 2011-11-06  Bruno Haible  <bruno@clisp.org>
39507         ldexp, ldexpf, ldexpl: Enhance tests.
39508         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
39509         and tests/test-ldexpl.c.
39510         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
39511         LDEXP, MIN_EXP, MAX_EXP): New macros.
39512         Include test-ldexp.h.
39513         (main): Just call test_function.
39514         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
39515         infinity.h, nan.h.
39516         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
39517         MAX_EXP): New macros.
39518         Include test-ldexp.h.
39519         (x, y): Remove variables.
39520         (main): Just call test_function.
39521         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
39522         infinity.h, nan.h.
39523         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
39524         MAX_EXP): New macros.
39525         Include test-ldexp.h.
39526         (x, y): Remove variables.
39527         (main): Just call test_function.
39528         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
39529         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
39530         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
39531         (Depends-on): Add isnand-nolibm, signbit, float.
39532         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
39533         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
39534         (Depends-on): Add isnanf-nolibm, signbit, float.
39536 2011-11-06  Bruno Haible  <bruno@clisp.org>
39538         math tests: Cosmetics.
39539         * tests/test-math-c++.cc: Reorder declarations.
39541 2011-11-05  Bruno Haible  <bruno@clisp.org>
39543         fma*: Simplify test.
39544         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
39545         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
39547         Tests for module 'fmal'.
39548         * modules/fmal-tests: New file.
39549         * tests/test-fmal1.c: New file.
39550         * tests/test-fmal2.c: New file.
39552         New module 'fmal'.
39553         * lib/math.in.h (fmal): New declaration.
39554         * lib/fmal.c: New file.
39555         * m4/fmal.m4: New file.
39556         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
39557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
39558         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
39559         REPLACE_FMAL.
39560         * modules/fmal: New file.
39561         * doc/posix-functions/fmal.texi: Mention the new module and the various
39562         bugs.
39564         Tests for module 'fmaf'.
39565         * modules/fmaf-tests: New file.
39566         * tests/test-fmaf1.c: New file.
39567         * tests/test-fmaf2.c: New file.
39569         New module 'fmaf'.
39570         * lib/math.in.h (fmaf): New declaration.
39571         * lib/fmaf.c: New file.
39572         * m4/fmaf.m4: New file.
39573         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
39574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
39575         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
39576         REPLACE_FMAF.
39577         * modules/fmaf: New file.
39578         * doc/posix-functions/fmaf.texi: Mention the new module and the various
39579         bugs.
39581         Tests for module 'fma'.
39582         * modules/fma-tests: New file.
39583         * tests/test-fma1.c: New file.
39584         * tests/test-fma1.h: New file.
39585         * tests/test-fma2.c: New file.
39586         * tests/test-fma2.h: New file.
39588         New module 'fma'.
39589         * lib/math.in.h (fma): New declaration.
39590         * lib/fma.c: New file.
39591         * m4/fma.m4: New file.
39592         * m4/fegetround.m4: New file.
39593         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
39594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
39595         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
39596         REPLACE_FMA.
39597         * modules/fma: New file.
39598         * doc/posix-functions/fma.texi: Mention the new module and the various
39599         bugs.
39601         Extend gl_MATHFUNC.
39602         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
39603         Support 'void' as argument type.
39604         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
39606 2011-11-05  Jim Meyering  <meyering@redhat.com>
39608         maint.mk: also prohibit inclusion of dirent.h without use
39609         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
39611 2011-11-05  Bruno Haible  <bruno@clisp.org>
39613         ldexpl tests: Avoid test failure on MSVC 9.
39614         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
39615         value. Needed in order to enforce the conversion from a value greater
39616         than LDBL_MAX to Infinity.
39618 2011-11-05  Bruno Haible  <bruno@clisp.org>
39620         New modules 'at-internal', 'openat-h', split off from module 'openat'.
39621         * modules/at-internal: New file, extracted from modules/openat.
39622         * modules/openat-h: New file.
39623         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
39624         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
39625         * modules/openat (Description): Add reference to POSIX function.
39626         (Files): Remove lib/openat.h, lib/openat-proc.c.
39627         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
39628         intprops, unistd.
39629         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
39630         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
39631         gl_FCNTL_MODULE_INDICATOR.
39632         (Include): Remove unistd.h, openat.h.
39633         * modules/areadlinkat (Files): Add lib/at-func.c.
39634         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39635         openat-die, openat-h, save-cwd.
39636         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
39637         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39638         openat-die, openat-h, save-cwd, unistd.
39639         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
39640         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39641         openat-h, save-cwd. Remove fcntl-h, openat.
39642         * modules/fchmodat (Files): Remove lib/openat.h.
39643         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39644         openat, stdbool, unistd.
39645         * modules/fchownat (Files): Remove lib/openat.h.
39646         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39647         openat, stdbool, sys_stat.
39648         * modules/fdopendir (Files): Remove lib/openat-priv.h,
39649         lib/openat-proc.c.
39650         (Depends-on): Add at-internal.
39651         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
39652         * modules/fstatat (Files): Remove lib/openat.h.
39653         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
39654         stdbool, unistd.
39655         * modules/fts (Depends-on): Add openat-h.
39656         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
39657         openat.
39658         * modules/mkdirat (Files): Remove lib/openat.h.
39659         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
39660         openat, stdbool, sys_stat.
39661         * modules/mkfifoat (Files): Add lib/at-func.c.
39662         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39663         openat-h, save-cwd. Remove fcntl-h, openat.
39664         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
39665         * modules/readlinkat (Files): Add lib/at-func.c.
39666         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39667         openat-h, save-cwd. Remove fcntl-h, openat.
39668         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
39669         openat.
39670         * modules/selinux-at (Files): Add lib/at-func.c.
39671         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
39672         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
39673         * modules/symlinkat (Files): Add lib/at-func.c.
39674         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
39675         openat-h, save-cwd. Remove fcntl-h, openat.
39676         * modules/unlinkat (Files): Remove lib/openat.h.
39677         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
39678         stdbool.
39679         * modules/utimensat (Files): Add lib/at-func.c.
39680         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
39681         openat-die, openat-h, save-cwd.
39682         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
39683         * modules/fdutimensat-tests (Depends-on): Add openat.
39684         * modules/fstatat-tests (Depends-on): Add openat-h.
39685         * modules/readlinkat-tests (Depends-on): Add openat.
39686         * modules/symlinkat-tests (Depends-on): Add openat.
39688 2011-11-05  Bruno Haible  <bruno@clisp.org>
39690         openat: Include <stdbool.h>.
39691         * lib/openat.c: Include <stdbool.h>.
39693 2011-11-04  Bruno Haible  <bruno@clisp.org>
39695         fchownat, renameat, unlinkat: Fix dependencies.
39696         * modules/fchownat (Depends-on): Add fstatat.
39697         * modules/renameat (Depends-on): Likewise.
39698         * modules/unlinkat (Depends-on): Likewise.
39700 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
39702         openat: remove direct dependency on dirent
39703         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
39704         and hasn't been needed ever since fdopendir was split into its own
39705         module on 2009-08-31.
39706         * modules/openat (Depends-on): Remove dirent.
39708 2011-11-04  Bruno Haible  <bruno@clisp.org>
39710         renameat: Optimize code size.
39711         * modules/renameat (configure.ac): Don't compile at-func2.c if
39712         REPLACE_RENAMEAT is 1.
39714 2011-11-04  Bruno Haible  <bruno@clisp.org>
39716         openat tests: Fix file list.
39717         * modules/openat-tests (Files): Add tests/test-open.h.
39719 2011-11-04  Bruno Haible  <bruno@clisp.org>
39721         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
39722         * modules/fchmodat (Depends-on): Add openat-die.
39723         * modules/fchownat (Depends-on): Likewise.
39724         * modules/linkat (Depends-on): Likewise.
39725         * modules/renameat (Depends-on): Likewise.
39726         * modules/openat (Depends-on): Add dirent.
39728 2011-11-04  Jim Meyering  <meyering@redhat.com>
39730         at-func*.c: fix comments
39731         * lib/at-func2.c: Correct/improve first-line comment.
39732         * lib/at-func.c: Correct grammar in first-line comment.
39734 2011-11-04  Bruno Haible  <bruno@clisp.org>
39736         New module 'mkdirat', split off from module 'openat'.
39737         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
39738         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
39739         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
39740         * modules/mkdirat: New file, extracted from modules/openat.
39741         * modules/openat (Files): Remove lib/mkdirat.c.
39742         (Depends-on): Remove mkdir.
39743         (configure.ac): Remove AC_LIBOBJ of mkdirat.
39744         (Include): Remove <sys/stat.h>.
39745         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
39746         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
39747         tests/test-mkdir.h.
39748         (Depends-on): Remove ignore-value.
39749         (Makefile.am): Remove rules for test-mkdirat.
39750         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
39751         of module 'openat'.
39752         * NEWS: Mention the change.
39754 2011-11-04  Bruno Haible  <bruno@clisp.org>
39756         closedir: Avoid warning on mingw.
39757         * lib/closedir.c: Include <unistd.h>.
39759 2011-11-04  Bruno Haible  <bruno@clisp.org>
39761         New module 'fstatat', split off from module 'openat'.
39762         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
39763         defined.
39764         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
39765         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
39766         gl_FUNC_FSTATAT.
39767         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
39768         * modules/fstatat: New file, extracted from modules/openat.
39769         * modules/openat (Files): Remove lib/fstatat.c.
39770         (Depends-on): Remove lstat.
39771         (configure.ac): Remove AC_LIBOBJ of fstatat.
39772         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
39773         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
39774         tests/test-lstat.h, tests/test-stat.h.
39775         (Depends-on): Remove getcwd-lgpl.
39776         (Makefile.am): Remove rules for test-fstatat.
39777         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
39778         of module 'openat'.
39779         * NEWS: Mention the change.
39780         * modules/getcwd (Depends-on): Add fstatat.
39781         * modules/linkat (Depends-on): Likewise.
39782         * modules/mkfifoat-tests (Depends-on): Likewise.
39783         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
39785 2011-11-03  Bruno Haible  <bruno@clisp.org>
39787         New module 'unlinkat', split off from module 'openat'.
39788         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
39789         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
39790         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
39791         * modules/unlinkat: New file, extracted from modules/openat. Correct
39792         the dependency conditions.
39793         * modules/openat (Files): Remove lib/unlinkat.c.
39794         (Depends-on): Remove rmdir, unlink.
39795         (configure.ac): Remove AC_LIBOBJ of unlinkat.
39796         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
39797         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
39798         tests/test-rmdir.h, tests/test-unlink.h.
39799         (Depends-on): Remove unlinkdir.
39800         (Makefile.am): Remove rules for test-unlinkat.
39801         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
39802         of module 'openat'.
39803         * NEWS: Mention the change.
39804         * modules/linkat-tests (Depends-on): Add unlinkat.
39805         * modules/mkfifoat-tests (Depends-on): Likewise.
39806         * modules/readlinkat-tests (Depends-on): Likewise.
39808 2011-11-02  Bruno Haible  <bruno@clisp.org>
39810         New module 'fchmodat', split off from module 'openat'.
39811         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
39812         defined.
39813         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
39814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
39815         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
39816         * modules/fchmodat: New file, extracted from modules/openat.
39817         * modules/openat (Files): Remove lib/fchmodat.c.
39818         (configure.ac): Remove AC_LIBOBJ of fchmodat.
39819         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
39820         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
39821         (Makefile.am): Remove rules for test-fchmodat.
39822         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
39823         of module 'openat'.
39824         * NEWS: Mention the change.
39826 2011-11-02  Jim Meyering  <meyering@redhat.com>
39828         putenv: indent #definition of "environ" to placate cppi
39829         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
39831         gitlog-to-changelog: provide a ChangeLog-repair mechanism
39832         Git logs are often treated as immutable, because editing them
39833         changes the SHA1 checksums of all descendants.  Thus, errors in
39834         git logs tend to stay there forever.  However, when we generate
39835         a ChangeLog file -- typically for distribution -- from that git log,
39836         we can actually make corrections in the generated file.  The key
39837         lies in recording in machine-readable/applicable form the desired
39838         corrections.  See --help for description and an example.
39839         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
39840         (usage): Describe it; alphabetize option descriptions.
39841         (main): Honor the new option, carefully.
39843 2011-11-01  Jim Meyering  <meyering@redhat.com>
39845         gitlog-to-changelog: avoid an infloop
39846         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
39847         that ends up being empty.
39849 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39851         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
39852         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
39853         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
39854         contains (possibly-quoted) backslashes.  This should avoid
39855         all-too-common shell bugs if COMPLICATED contains backslashes in
39856         the "wrong" places.  Reported by David Evans in
39857         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
39858         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
39859         because we want ASCII ranges.  Is there some reason we don't use
39860         the C locale everywhere in this script?
39861         (func_module, top level): Avoid unwanted pathname expansion when
39862         $repo_url_prefix or $repo_url_suffix_repl contain shell
39863         metacharacters like '?' and '*'.
39865 2011-11-01  Bruno Haible  <bruno@clisp.org>
39867         fchownat: Improve description.
39868         * modules/fchownat (Description): Add link to function.
39870 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39872         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
39873         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
39874         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
39875         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
39877 2011-11-01  Bruno Haible  <bruno@clisp.org>
39879         alignof: Avoid collision with stdalign module.
39880         * lib/alignof.h (alignof): Remove macro.
39881         * NEWS: Mention the change.
39882         Reported by Paul Eggert.
39884 2011-11-01  Bruno Haible  <bruno@clisp.org>
39886         New module 'fchownat', split off from module 'openat'.
39887         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
39888         defined.
39889         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
39890         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
39891         invoke gl_FUNC_FCHOWNAT.
39892         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
39893         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
39894         * modules/fchownat: New file, extracted from modules/openat.
39895         * modules/openat (Files): Remove lib/fchownat.c.
39896         (Depends-on): Remove lchown.
39897         (configure.ac): Remove AC_LIBOBJ of fchownat.
39898         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
39899         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
39900         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
39901         (Depends-on): Remove mgetgroups, usleep, stat-time.
39902         (configure.ac): Remove test for getegid.
39903         (Makefile.am): Remove rules for test-fchownat.
39904         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
39905         of module 'openat'.
39906         * NEWS: Mention the change.
39908 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39910         stdalign: port better to MSVC and to Sun C 5.11
39911         This fixes some of the problems reported by Bruno Haible in
39912         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
39913         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
39914         shortcomings of MSVC and of Sun C 5.11.
39915         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
39916         around __declspec arg.
39917         * modules/stdalign-tests (Files): Add tests/macros.h.
39918         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
39919         Include macros.h, for ASSERT.
39920         (DECLARE_ALIGNED): Remove.
39921         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
39922         to catch bug), and to 1 if not (simplifies the rest of the code).
39923         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
39924         (CHECK_AUTO): Remove.
39925         (CHECK_ALIGNED): Check only the alignment of the static vars,
39926         since auto var alignment isn't supported by Sun C 5.11.
39927         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
39928         ASSERT failures are easier to diagnose.
39930 2011-10-31  Bruno Haible  <bruno@clisp.org>
39932         doc about some IRIX 5.3 problems.
39933         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
39934         on IRIX 5.3.
39935         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
39936         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
39937         5.3.
39938         * doc/posix-functions/grantpt.texi: Likewise.
39939         * doc/posix-functions/unlockpt.texi: Likewise.
39940         * doc/posix-functions/lgamma.texi: Likewise.
39941         * doc/posix-functions/nextafter.texi: Likewise.
39942         * doc/posix-functions/remainder.texi: Likewise.
39943         * doc/posix-functions/select.texi: Mention misplaced declaration on
39944         IRIX 5.3.
39945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39947 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
39949         gitlog-to-changelog: fix git-log invocation.
39950         git-log mishandles date strings before 1970-01-01 UTC, and there is
39951         no use to specify --since=1970-01-01 by default anyway.
39952         * build-aux/gitlog-to-changelog: By default, when no --since option
39953         was given, do not specify explicit --since option to git-log.
39955 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
39957         gitlog-to-changelog: new option --append-dot.
39958         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
39959         first non-blank line of each commit message terminated with a dot.
39961 2011-10-30  Bruno Haible  <bruno@clisp.org>
39963         ffsl, ffsll: Avoid compilation error due to 'restrict'.
39964         * lib/ffsl.h: Include <config.h>.
39965         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
39967 2011-10-30  Jim Meyering  <meyering@redhat.com>
39969         GNUmakefile: reenable "make syntax-check" for most projects
39970         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
39971         build-aux variable", "syntax-check" would do nothing but succeed with
39972         the "No version control files detected..." diagnostic (unless you
39973         happened to override _build-aux via cfg.mk).
39974         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
39975         to precede inclusion of maint.mk.  Otherwise, these variables would
39976         be used undefined in any project that does not override the default.
39978 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
39980         gitlog-to-changelog: treat a message with only blank lines as empty.
39981         * build-aux/gitlog-to-changelog: Move the code that removes leading and
39982         trailing blank lines before the code that issues a warning about an
39983         empty commit message.
39985 2011-10-30  Jim Meyering  <meyering@redhat.com>
39987         test-parse-datetime.c: avoid new DST-related false positive test failure
39988         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
39989         based on the time/date we'll convert, not the current time.
39990         Otherwise, the moment we cross a DST boundary like today's in
39991         Europe, (CEST to CET), that offset ends up being one hour off.
39993 2011-10-27  Bruno Haible  <bruno@clisp.org>
39995         fstat: Tweak documentation.
39996         * modules/fstat (Description): More precise description.
39998 2011-10-27  Bruno Haible  <bruno@clisp.org>
40000         Update documentation regarding 'largefile' module.
40001         * doc/posix-functions/fstat.texi: Tweak wording.
40002         * doc/posix-functions/opendir.texi: Mention that the module fixes the
40003         problems with huge directories and/or small ino_t types.
40004         * doc/posix-functions/readdir.texi: Likewise.
40005         * doc/posix-functions/rewinddir.texi: Likewise.
40007 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
40009         maint.mk: don't maintain a second build-aux variable.
40010         * maint.mk (build_aux): Removed.  The maintainer-makefile module
40011         depends on GNUmakefile, which already maintains a cfg.mk
40012         overridable $(_build-aux) for projects with a non-standard
40013         build-aux directory location, although without the $(srcdir)
40014         prefix.  Use that variable consistently instead of introducing a
40015         second one.  Adjust all call sites.
40017 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40019         Add stdalign module and use it in other modules.
40020         This is based on a previous proposal by Bruno Haible
40021         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
40023         stdalign: new module
40024         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
40025         * modules/stdalign: New files.
40026         * MODULES.html.sh (c1x_core_properties): Add stdalign.
40027         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
40029         stdalign-tests: new module
40030         * modules/stdalign-tests, tests/test-stdalign.c: New files.
40032         argp: use stdalign
40033         * lib/argp-parse.c: Include <stdalign.h>.
40034         (alignof): Remove.
40035         * modules/argp (Depends-on): Add stdalign.
40037         crypto libraries: use stdalign
40038         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
40039         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
40040         Do not include <stdlib.h> twice, in md4.c.
40041         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
40042         because we are accessing a pointer's bit-pattern, not a size.
40043         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
40044         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
40045         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
40046         * modules/crypto/sha512: Likewise.
40048         sys_socket: use stdalign, not alignof
40049         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
40050         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
40052 2011-10-27  Bruno Haible  <bruno@clisp.org>
40054         raise test: Avoid a test failure on Linux/MIPS.
40055         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
40056         because 99 is a valid signal on Linux/MIPS.
40058 2011-10-27  Bruno Haible  <bruno@clisp.org>
40060         nonblocking tests: Fix test failure on Linux/MIPS.
40061         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
40062         Set to 270000.
40064 2011-10-27  Bruno Haible  <bruno@clisp.org>
40066         utimensat: Work around problem on Linux/hppa.
40067         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
40068         values.
40069         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
40071 2011-10-25  Jim Meyering  <meyering@redhat.com>
40073         maint.mk: fix a bug in sc_prohibit_stddef_without_use
40074         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
40075         after symbols like NULL, size_t, etc.
40076         Reported by Alfred M. Szmidt.
40078         maint.mk: exempt ENODATA from a syntax-check rule
40079         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
40080         from the sc_prohibit_always-defined_macros syntax-check rule.
40081         Add a comment.  See this for more details:
40082         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
40084 2011-10-23  Jim Meyering  <meyering@redhat.com>
40086         fts: close parent dir FD before returning from post-traversal fts_read
40087         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
40088         unlink A, even though an FD open on A remained.  This is suboptimal
40089         (holding a file descriptor open longer than needed), but otherwise not
40090         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
40091         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
40092         that represents a real problem: it causes the removal of A to fail
40093         with e.g., "rm: cannot remove `A': Device or resource busy"
40095         fts visits each directory twice and keeps a cache (fts_fd_ring) of
40096         directory file descriptors.  After completing the final, FTS_DP,
40097         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
40098         cache, but then proceeded to add a new FD to it via the subsequent
40099         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
40100         final file descriptor would be closed only via fts_close's call to
40101         fd_ring_clear.  Now, it is usually closed earlier, via the final
40102         FTS_DP-returning fts_read call.
40103         * lib/fts.c (restore_initial_cwd): New function, converted from
40104         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
40105         Update callers.
40106         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
40107         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
40109 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
40110             Bruno Haible  <bruno@clisp.org>
40111             Jim Meyering  <jim@meyering.net>
40113         readme-release: improve safety of release prep instructions.
40114         * README-release: Don't git pull all branches when only master
40115         is needed for the release process.
40116         Run make maintainer-clean before changing trees and merging.
40117         Don't try to run ./configure right after git pull in case files
40118         that influence the bootstrap process have changed, move the
40119         ./configure step to after running ./bootstrap.
40120         Don't bootstrap "one last time"... it's the first time!
40122 2011-10-22  Bruno Haible  <bruno@clisp.org>
40124         errno, strerror-override: Support for MSVC 10.
40125         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
40126         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
40127         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
40128         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
40129         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
40130         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
40131         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
40132         Assign values compatible with MSVC 10.
40133         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
40134         New macros.
40135         (GNULIB_defined_EWINSOCK): New macro.
40136         * lib/strerror-override.c (strerror_override): Update accordingly.
40137         * lib/strerror-override.h: Likewise.
40138         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
40139         longer equal to the corresponding errno value.
40140         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40142 2011-10-22  Bruno Haible  <bruno@clisp.org>
40144         perror: Recognize when test program crashes.
40145         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
40146         strerror, set gl_cv_func_perror_works to no.
40147         Reported by Daniel Richard G. <skunk@iskunk.org>.
40149         perror: Fix indentation.
40150         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
40152 2011-10-22  Bruno Haible  <bruno@clisp.org>
40154         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
40155         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
40156         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
40157         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
40158         functions, not as a macro.
40159         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
40160         macros.
40161         (isfinite, isinf, isnan, signbit): Check overloaded functions and
40162         absence of macro.
40163         Suggested by Eric Blake.
40164         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40166 2011-10-21  Bruno Haible  <bruno@clisp.org>
40168         relocatable-prog-wrapper: Don't leave object files behind.
40169         * build-aux/install-reloc: Re-synchronize list of .o files to be
40170         removed with list of compilation units.
40172 2011-10-20  Bruno Haible  <bruno@clisp.org>
40174         openpty, posix_openpt: Remove code duplication.
40175         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
40176         * lib/openpty.c: Include <stdlib.h>.
40177         (openpty): Use posix_openpt on all platforms except IRIX.
40178         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
40180 2011-10-20  Bruno Haible  <bruno@clisp.org>
40182         unlockpt: Detect invalid argument.
40183         * lib/unlockpt.c: Include <fcntl.h>.
40184         (unlockpt): Check whether fd is valid, using fcntl().
40185         * modules/unlockpt (Depends-on): Add fcntl-h.
40187 2011-10-20  Bruno Haible  <bruno@clisp.org>
40189         openpty: Avoid compilation error on AIX 6.1.
40190         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
40192 2011-10-20  Bruno Haible  <bruno@clisp.org>
40194         posix_openpt: Support for OpenBSD.
40195         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
40196         (posix_openpt) [OpenBSD]: New code.
40197         * lib/grantpt.c: Include <fcntl.h>.
40198         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
40199         * modules/grantpt (Depends-on): Add fcntl-h.
40201 2011-10-20  Bruno Haible  <bruno@clisp.org>
40203         posix_openpt test: Coding style.
40204         * tests/test-posix_openpt.c: Use GNU coding style.
40206 2011-10-20  Bruno Haible  <bruno@clisp.org>
40208         grantpt: Support --avoid=pt_chown.
40209         * modules/grantpt (Files): Add lib/pty-private.h.
40211 2011-10-20  Bruno Haible  <bruno@clisp.org>
40213         posix_openpt: Fix autoconf macro.
40214         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
40215         unneeded check for _getpty.
40217 2011-10-20  Bruno Haible  <bruno@clisp.org>
40219         openpty: Update comments.
40220         * lib/openpty.c: Add comments about Minix.
40222 2011-10-19  Eric Blake  <eblake@redhat.com>
40224         openpty: relax license
40225         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
40227         pt_chown: use configmake to simplify build
40228         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
40230         ptsname and others: relax license
40231         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
40232         * modules/unlockpt (License): Likewise.
40233         * modules/pt_chown (License): Likewise.
40234         * modules/ptsname (License): Likewise.
40235         * modules/ttyname_r (License): Likewise.
40237 2011-10-19  Jim Meyering  <meyering@redhat.com>
40239         posix_openpt: remove spurious #endif
40240         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
40242 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
40244         maint.mk: Respect $(build_aux) in web-manual rule.
40245         * top/maint.mk (web-manual): Find gen-announce script in user's
40246         $(build_aux) directory instead of hard-coding 'build-aux'.
40248 2011-10-19  Bruno Haible  <bruno@clisp.org>
40250         posix_openpt: Fix compilation error.
40251         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
40252         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
40253         Mention the openpty module as an alternative.
40255 2011-10-19  Bruno Haible  <bruno@clisp.org>
40257         Support for old NeXTstep 3.3 frexp().
40258         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
40259         execution time of the test to 5 seconds.
40260         Reported by Daniel Richard G. <skunk@iskunk.org>.
40262 2011-10-19  Bruno Haible  <bruno@clisp.org>
40264         Support for old NeXTstep 3.3 sed.
40265         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
40266         part, use /.../, not \|...|. Escape periods in the header file name.
40267         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
40268         Reported by Daniel Richard G. <skunk@iskunk.org>.
40270 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40272         Support for old NeXTstep 3.3 gcc.
40273         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
40274         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
40275         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
40276         * lib/spawn.in.h (_Restrict_arr_): Likewise.
40277         * lib/regex.h (_Restrict_arr_): Likewise.
40278         * lib/regex_internal.h (re_token_t): Likewise.
40279         * lib/regexec.c (check_node_accept_bytes): Likewise.
40280         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
40282 2011-10-18  Eric Blake  <eblake@redhat.com>
40284         posix_openpt: new module
40285         * modules/posix_openpt: New module.
40286         * m4/posix_openpt.m4: New file.
40287         * lib/posix_openpt.c: Likewise.
40288         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
40289         (gl_STDLIB_H_DEFAULTS): Set defaults.
40290         * modules/stdlib (Makefile.am): Substitute macros.
40291         * lib/stdlib.in.h (posix_openpt): Declare.
40292         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
40293         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
40294         * modules/posix_openpt-tests: New test module.
40295         * tests/test-posix_openpt.c: New test.
40297 2011-10-15  Bruno Haible  <bruno@clisp.org>
40299         xstrtoll: Fix compilation failure.
40300         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
40301         from lib/strtol.c.
40302         * doc/posix-headers/limits.texi: Mention missing numerical limits on
40303         some platforms.
40304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40306 2011-10-15  Bruno Haible  <bruno@clisp.org>
40308         vasnprintf: Optimize bit search operation.
40309         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
40310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
40311         gl_DOUBLE_EXPONENT_LOCATION.
40312         * modules/vasnprintf (Files): Add m4/exponentd.m4.
40313         * modules/unistdio/u8-vasnprintf (Files): Likewise.
40314         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
40315         * modules/unistdio/u16-vasnprintf (Files): Likewise.
40316         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
40317         * modules/unistdio/u32-vasnprintf (Files): Likewise.
40318         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
40319         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
40320         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
40322 2011-10-15  Bruno Haible  <bruno@clisp.org>
40324         vasnprintf: Fix comments.
40325         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
40327 2011-10-14  Bruno Haible  <bruno@clisp.org>
40329         Tests for module 'integer_length_ll'.
40330         * modules/integer_length_ll-tests: New file.
40331         * tests/test-integer_length_ll.c: New file.
40333         New module 'integer_length_ll'.
40334         * lib/integer_length_ll.c: New file.
40335         * modules/integer_length_ll: New file.
40337 2011-10-14  Bruno Haible  <bruno@clisp.org>
40339         Tests for module 'integer_length_l'.
40340         * modules/integer_length_l-tests: New file.
40341         * tests/test-integer_length_l.c: New file.
40343         New module 'integer_length_l'.
40344         * lib/integer_length_l.c: New file.
40345         * modules/integer_length_l: New file.
40347 2011-10-14  Bruno Haible  <bruno@clisp.org>
40349         Tests for module 'integer_length'.
40350         * modules/integer_length-tests: New file.
40351         * tests/test-integer_length.c: New file.
40353         New module 'integer_length'.
40354         * lib/integer_length.h: New file.
40355         * lib/integer_length.c: New file.
40356         * modules/integer_length: New file.
40358 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40360         popen: Fix dependency conditions.
40361         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
40363 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
40365         perror: Fix autoconf test.
40366         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
40367         <stdlib.h> and <string.h>.
40369 2011-10-14  Bruno Haible  <bruno@clisp.org>
40371         ffsl: Optimize on 64-bit platforms.
40372         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
40373         unrolling.
40375 2011-10-13  Bruno Haible  <bruno@clisp.org>
40377         ffsl: Optimize on 32-bit platforms.
40378         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
40379         use ffs() without a loop.
40381         ffsl, ffsll: Optimize for GCC.
40382         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
40383         * lib/ffsl.c (GCC_BUILTIN): New macro.
40384         * lib/ffsll.c (GCC_BUILTIN): Likewise.
40386 2011-10-13  Bruno Haible  <bruno@clisp.org>
40388         ffs, bcopy, memset: Support symbol renaming via config.h.
40389         * lib/ffs.c: Include <config.h>.
40390         * lib/bcopy.c: Likewise.
40391         * lib/memset.c: Likewise.
40393 2011-10-10  Bruno Haible  <bruno@clisp.org>
40395         atanl: Simplify for platforms where 'long double' == 'double'.
40396         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40397         alternative implementation.
40398         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40399         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40400         * modules/atanl (Depends-on): Add atan. Update conditions.
40402 2011-10-10  Bruno Haible  <bruno@clisp.org>
40404         acosl: Simplify for platforms where 'long double' == 'double'.
40405         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40406         alternative implementation.
40407         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40408         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40409         * modules/acosl (Depends-on): Add acos. Update conditions.
40411 2011-10-10  Bruno Haible  <bruno@clisp.org>
40413         asinl: Simplify for platforms where 'long double' == 'double'.
40414         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40415         alternative implementation.
40416         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40417         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40418         * modules/asinl (Depends-on): Add asin. Update conditions.
40420 2011-10-10  Bruno Haible  <bruno@clisp.org>
40422         tanl: Simplify for platforms where 'long double' == 'double'.
40423         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40424         implementation.
40425         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40426         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40427         * modules/tanl (Depends-on): Add tan. Update conditions.
40428         (configure.ac): Don't compile trigl.c if
40429         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40431 2011-10-10  Bruno Haible  <bruno@clisp.org>
40433         cosl: Simplify for platforms where 'long double' == 'double'.
40434         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40435         implementation.
40436         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40437         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40438         * modules/cosl (Depends-on): Add cos. Update conditions.
40439         (configure.ac): Don't compile sincosl.c and trigl.c if
40440         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40442 2011-10-10  Bruno Haible  <bruno@clisp.org>
40444         sinl: Simplify for platforms where 'long double' == 'double'.
40445         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40446         implementation.
40447         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40448         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40449         * modules/sinl (Depends-on): Add sin. Update conditions.
40450         (configure.ac): Don't compile sincosl.c and trigl.c if
40451         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40453 2011-10-10  Bruno Haible  <bruno@clisp.org>
40455         logl: Simplify for platforms where 'long double' == 'double'.
40456         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40457         implementation.
40458         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40459         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40460         * modules/logl (Depends-on): Add log. Update conditions.
40462 2011-10-10  Bruno Haible  <bruno@clisp.org>
40464         expl: Simplify for platforms where 'long double' == 'double'.
40465         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
40466         implementation.
40467         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40468         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40469         * modules/expl (Depends-on): Add exp. Update conditions.
40471 2011-10-10  Bruno Haible  <bruno@clisp.org>
40473         sqrtl: Simplify for platforms where 'long double' == 'double'.
40474         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40475         alternative implementation.
40476         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40477         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40478         * modules/sqrtl (Depends-on): Update conditions.
40480 2011-10-10  Bruno Haible  <bruno@clisp.org>
40482         ldexpl: Simplify for platforms where 'long double' == 'double'.
40483         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40484         alternative implementation.
40485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40486         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40487         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
40489 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
40491         ffsll: set correct witness
40492         * modules/ffsll (configure.ac): Fix typo.
40494 2011-10-10  Bruno Haible  <bruno@clisp.org>
40496         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
40497         * lib/printf-frexpl.c: Include <config.h>.
40498         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40499         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
40500         second time.
40501         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
40502         gl_LONG_DOUBLE_VS_DOUBLE.
40503         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
40504         conditions.
40506 2011-10-10  Bruno Haible  <bruno@clisp.org>
40508         frexpl: Simplify for platforms where 'long double' == 'double'.
40509         * lib/frexpl.c: Include <config.h>.
40510         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40511         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40512         time.
40513         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40514         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40515         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
40516         * modules/frexpl (Depends-on): Add frexp. Update conditions.
40517         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
40518         conditions.
40520 2011-10-10  Jim Meyering  <meyering@redhat.com>
40522         test-renameat: don't leave behind a temporary file
40523         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
40524           ERROR: files left in build directory after distclean:
40525           ./gltests/test-renameat.too
40526           make[1]: *** [distcleancheck] Error 1
40527         Reported by Tom G. Christensen.
40529 2011-10-09  Bruno Haible  <bruno@clisp.org>
40531         rint: Determine RINT_LIBM correctly on AIX 7.
40532         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
40533         directly, not only through a function pointer. Also accept an optional
40534         4th argument with extra code.
40535         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
40536         rintf() call by gcc when optimizing.
40538         mathfunc.m4: Refactor.
40539         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
40540         m4 variable.
40542 2011-10-09  Bruno Haible  <bruno@clisp.org>
40544         rintl: Simplify for platforms where 'long double' == 'double'.
40545         * lib/rintl.c: Include <config.h>.
40546         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40547         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40548         time.
40549         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40550         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40551         * modules/rintl (Depends-on): Add rint. Update conditions.
40553 2011-10-09  Bruno Haible  <bruno@clisp.org>
40555         roundl: Simplify for platforms where 'long double' == 'double'.
40556         * lib/roundl.c: Include <config.h>.
40557         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40558         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40559         time.
40560         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40561         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40562         * modules/roundl (Depends-on): Add round. Update conditions.
40564 2011-10-09  Bruno Haible  <bruno@clisp.org>
40566         truncl: Simplify for platforms where 'long double' == 'double'.
40567         * lib/truncl.c: Include <config.h>.
40568         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40569         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40570         time.
40571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40572         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40573         * modules/truncl (Depends-on): Add trunc. Update conditions.
40575 2011-10-09  Bruno Haible  <bruno@clisp.org>
40577         ceill: Simplify for platforms where 'long double' == 'double'.
40578         * lib/ceill.c: Include <config.h>.
40579         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40580         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40581         time.
40582         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40583         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40584         * modules/ceill (Depends-on): Add ceil. Update conditions.
40586 2011-10-09  Bruno Haible  <bruno@clisp.org>
40588         floorl: Simplify for platforms where 'long double' == 'double'.
40589         * lib/floorl.c: Include <config.h>.
40590         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
40591         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
40592         time.
40593         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40594         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40595         * modules/floorl (Depends-on): Add floor. Update conditions.
40597 2011-10-09  Bruno Haible  <bruno@clisp.org>
40599         rint: Fix ordering constraints.
40600         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
40601         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40602         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40604 2011-10-09  Bruno Haible  <bruno@clisp.org>
40606         copysignl: Simplify for platforms where 'long double' == 'double'.
40607         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
40608         alternative.
40609         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40610         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
40611         * modules/copysignl (Depends-on): Add copysign. Update conditions.
40613 2011-10-09  Bruno Haible  <bruno@clisp.org>
40615         Tests for module 'rintl'.
40616         * modules/rintl-tests: New file.
40617         * tests/test-rintl.c: New file.
40619         New module 'rintl'.
40620         * lib/math.in.h (rintl): New declaration.
40621         * lib/rintl.c: New file.
40622         * m4/rintl.m4: New file.
40623         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
40624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
40625         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
40626         * modules/rintl: New file.
40627         * tests/test-math-c++.cc: Check the declaration of rintl.
40628         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40629         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
40630         * doc/posix-functions/rintl.texi: Mention the new module.
40632 2011-10-09  Bruno Haible  <bruno@clisp.org>
40634         Tests for module 'rintf'.
40635         * modules/rintf-tests: New file.
40636         * tests/test-rintf.c: New file.
40638         New module 'rintf'.
40639         * lib/math.in.h (rintf): New declaration.
40640         * lib/rintf.c: New file.
40641         * m4/rintf.m4: New file.
40642         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
40643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
40644         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
40645         * modules/rintf: New file.
40646         * tests/test-math-c++.cc: Check the declaration of rintf.
40647         * doc/posix-functions/rintf.texi: Mention the new module.
40649 2011-10-09  Bruno Haible  <bruno@clisp.org>
40651         rint: Support for MSVC.
40652         * lib/math.in.h (rint): New declaration.
40653         * lib/rint.c: New file.
40654         * m4/rint.m4: New file.
40655         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
40656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
40657         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
40658         * modules/rint (Description): Fix.
40659         (Files): Add lib/rint.c, m4/rint.m4.
40660         (Depends-on): Add math.
40661         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
40662         gl_MATH_MODULE_INDICATOR.
40663         * tests/test-math-c++.cc: Check the declaration of rint.
40664         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40665         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
40666         * doc/posix-functions/rint.texi: Mention the replacement provided by
40667         the module.
40669         rint tests: More tests.
40670         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
40671         minus-zero.h, infinity.h, nan.h.
40672         (main): Skip the test if the current rounding mode is not standard. Add
40673         tests for negative numbers, minus zero, infinity, NaN.
40674         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
40675         tests/nan.h.
40676         (Depends-on): Add isnand-nolibm.
40678 2011-10-09  Bruno Haible  <bruno@clisp.org>
40680         Tests for module 'copysignl'.
40681         * modules/copysignl-tests: New file.
40682         * tests/test-copysignl.c: New file.
40684         New module 'copysignl'.
40685         * lib/math.in.h (copysignl): New declaration.
40686         * lib/copysignl.c: New file.
40687         * m4/copysignl.m4: New file.
40688         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
40689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
40690         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
40691         HAVE_COPYSIGNL.
40692         * modules/copysignl: New file.
40693         * tests/test-math-c++.cc: Check the declaration of copysignl.
40694         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
40695         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
40696         * doc/posix-functions/copysignl.texi: Mention the new module.
40698 2011-10-09  Bruno Haible  <bruno@clisp.org>
40700         Tests for module 'copysignf'.
40701         * modules/copysignf-tests: New file.
40702         * tests/test-copysignf.c: New file.
40704         New module 'copysignf'.
40705         * lib/math.in.h (copysignf): New declaration.
40706         * lib/copysignf.c: New file.
40707         * m4/copysignf.m4: New file.
40708         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
40709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
40710         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
40711         HAVE_COPYSIGNF.
40712         * modules/copysignf: New file.
40713         * tests/test-math-c++.cc: Check the declaration of copysignf.
40714         * doc/posix-functions/copysignf.texi: Mention the new module.
40716 2011-10-09  Bruno Haible  <bruno@clisp.org>
40718         Ensure that HAVE_* variables are set to 1 before they are set to 0.
40719         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
40720         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
40721         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
40722         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
40723         gl_SIGNAL_H_DEFAULTS.
40725 2011-10-09  Bruno Haible  <bruno@clisp.org>
40727         poll: Make macro safer.
40728         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
40729         ac_cv_header_poll_h is not set.
40731 2011-10-09  Bruno Haible  <bruno@clisp.org>
40733         copysign: Provide replacement.
40734         * lib/math.in.h (copysign): New declaration.
40735         * lib/copysign.c: New file.
40736         * m4/copysign.m4: New file.
40737         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
40738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
40739         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
40740         HAVE_COPYSIGN.
40741         * modules/copysign (Description): Clarify.
40742         (Files): Add lib/copysign.c, m4/copysign.m4.
40743         (Depends-on): Add math, signbit.
40744         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
40745         gl_MATH_MODULE_INDICATOR.
40746         * tests/test-math-c++.cc: Check the declaration of copysign.
40747         * doc/posix-functions/copysign.texi: Mention the effects of the module
40748         on Minix and MSVC.
40750 2011-10-09  Bruno Haible  <bruno@clisp.org>
40752         isinf: Ensure macro on AIX 5.1.
40753         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
40754         macro.
40755         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
40757 2011-10-09  Bruno Haible  <bruno@clisp.org>
40759         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
40760         * modules/snprintf-posix-tests (configure.ac): Require
40761         gl_LONG_DOUBLE_VS_DOUBLE.
40762         * modules/sprintf-posix-tests (configure.ac): Likewise.
40763         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
40764         * modules/vasprintf-posix-tests (configure.ac): Likewise.
40765         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
40766         * modules/vsprintf-posix-tests (configure.ac): Likewise.
40767         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
40768         tests on platforms where 'long double' is the same as 'double'.
40769         * tests/test-sprintf-posix.h (test_function): Likewise.
40770         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40771         * tests/test-vasprintf-posix.c (test_function): Likewise.
40773         *printf: Fix for platforms where 'long double' == 'double'.
40774         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40775         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
40776         * modules/dprintf-posix (Files): Add m4/math_h.m4.
40777         * modules/fprintf-posix (Files): Likewise.
40778         * modules/obstack-printf-posix (Files): Likewise.
40779         * modules/snprintf-posix (Files): Likewise.
40780         * modules/sprintf-posix (Files): Likewise.
40781         * modules/vasnprintf (Files): Likewise.
40782         * modules/vasnprintf-posix (Files): Likewise.
40783         * modules/vasprintf-posix (Files): Likewise.
40784         * modules/vdprintf-posix (Files): Likewise.
40785         * modules/vfprintf-posix (Files): Likewise.
40786         * modules/vsnprintf-posix (Files): Likewise.
40787         * modules/vsprintf-posix (Files): Likewise.
40788         * modules/unistdio/u8-vasnprintf (Files): Likewise.
40789         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
40790         * modules/unistdio/u16-vasnprintf (Files): Likewise.
40791         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
40792         * modules/unistdio/u32-vasnprintf (Files): Likewise.
40793         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
40794         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
40796         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
40797         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
40798         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
40799         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
40800         'long double'.
40801         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
40803         isinf: Fix for platforms where 'long double' == 'double'.
40804         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
40805         Don't blindly assume 80-bit 'long double'.
40807         isfinite: Fix for platforms where 'long double' == 'double'.
40808         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
40809         Don't blindly assume 80-bit 'long double'.
40811         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
40812         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
40813         * modules/isfinite-tests (configure.ac): Require
40814         gl_LONG_DOUBLE_VS_DOUBLE.
40815         * modules/isinf-tests (configure.ac): Likewise.
40816         * modules/isnan-tests (configure.ac): Likewise.
40817         * modules/isnanl-tests (configure.ac): Likewise.
40818         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
40819         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
40820         tests on platforms where 'long double' is the same as 'double'.
40821         * tests/test-isinf.c (test_isinfl): Likewise.
40822         * tests/test-isnan.c (test_long_double): Likewise.
40823         * tests/test-isnanl.h (main): Likewise.
40825 2011-10-08  Bruno Haible  <bruno@clisp.org>
40827         Tests for module 'tanhf'.
40828         * modules/tanhf-tests: New file.
40829         * tests/test-tanhf.c: New file.
40831         New module 'tanhf'.
40832         * lib/math.in.h (tanhf): New declaration.
40833         * lib/tanhf.c: New file.
40834         * m4/tanhf.m4: New file.
40835         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
40836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
40837         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
40838         * modules/tanhf: New file.
40839         * tests/test-math-c++.cc: Check the declaration of tanhf.
40840         * doc/posix-functions/tanhf.texi: Mention the new module.
40842         tanh: Use a .m4 file.
40843         * m4/tanh.m4: New file.
40844         * modules/tanh (Files): Add it.
40845         (configure.ac): Just invoke gl_FUNC_TANH.
40847 2011-10-08  Bruno Haible  <bruno@clisp.org>
40849         Tests for module 'coshf'.
40850         * modules/coshf-tests: New file.
40851         * tests/test-coshf.c: New file.
40853         New module 'coshf'.
40854         * lib/math.in.h (coshf): New declaration.
40855         * lib/coshf.c: New file.
40856         * m4/coshf.m4: New file.
40857         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
40858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
40859         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
40860         * modules/coshf: New file.
40861         * tests/test-math-c++.cc: Check the declaration of coshf.
40862         * doc/posix-functions/coshf.texi: Mention the new module.
40864         cosh: Use a .m4 file.
40865         * m4/cosh.m4: New file.
40866         * modules/cosh (Files): Add it.
40867         (configure.ac): Just invoke gl_FUNC_COSH.
40869 2011-10-08  Bruno Haible  <bruno@clisp.org>
40871         Tests for module 'sinhf'.
40872         * modules/sinhf-tests: New file.
40873         * tests/test-sinhf.c: New file.
40875         New module 'sinhf'.
40876         * lib/math.in.h (sinhf): New declaration.
40877         * lib/sinhf.c: New file.
40878         * m4/sinhf.m4: New file.
40879         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
40880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
40881         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
40882         * modules/sinhf: New file.
40883         * tests/test-math-c++.cc: Check the declaration of sinhf.
40884         * doc/posix-functions/sinhf.texi: Mention the new module.
40886         sinh: Use a .m4 file.
40887         * m4/sinh.m4: New file.
40888         * modules/sinh (Files): Add it.
40889         (configure.ac): Just invoke gl_FUNC_SINH.
40891 2011-10-08  Bruno Haible  <bruno@clisp.org>
40893         Tests for module 'atan2f'.
40894         * modules/atan2f-tests: New file.
40895         * tests/test-atan2f.c: New file.
40897         New module 'atan2f'.
40898         * lib/math.in.h (atan2f): New declaration.
40899         * lib/atan2f.c: New file.
40900         * m4/atan2f.m4: New file.
40901         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
40902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
40903         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
40904         * modules/atan2f: New file.
40905         * tests/test-math-c++.cc: Check the declaration of atan2f.
40906         * doc/posix-functions/atan2f.texi: Mention the new module.
40908         atan2: Use a .m4 file.
40909         * m4/atan2.m4: New file.
40910         * modules/atan2 (Files): Add it.
40911         (configure.ac): Just invoke gl_FUNC_ATAN2.
40913 2011-10-08  Bruno Haible  <bruno@clisp.org>
40915         Tests for module 'atanf'.
40916         * modules/atanf-tests: New file.
40917         * tests/test-atanf.c: New file.
40919         New module 'atanf'.
40920         * lib/math.in.h (atanf): New declaration.
40921         * lib/atanf.c: New file.
40922         * m4/atanf.m4: New file.
40923         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
40924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
40925         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
40926         * modules/atanf: New file.
40927         * tests/test-math-c++.cc: Check the declaration of atanf.
40928         * doc/posix-functions/atanf.texi: Mention the new module.
40930         atan: Use a .m4 file.
40931         * m4/atan.m4: New file.
40932         * modules/atan (Files): Add it.
40933         (configure.ac): Just invoke gl_FUNC_ATAN.
40935 2011-10-08  Bruno Haible  <bruno@clisp.org>
40937         Tests for module 'acosf'.
40938         * modules/acosf-tests: New file.
40939         * tests/test-acosf.c: New file.
40941         New module 'acosf'.
40942         * lib/math.in.h (acosf): New declaration.
40943         * lib/acosf.c: New file.
40944         * m4/acosf.m4: New file.
40945         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
40946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
40947         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
40948         * modules/acosf: New file.
40949         * tests/test-math-c++.cc: Check the declaration of acosf.
40950         * doc/posix-functions/acosf.texi: Mention the new module.
40952         acos: Use a .m4 file.
40953         * m4/acos.m4: New file.
40954         * modules/acos (Files): Add it.
40955         (configure.ac): Just invoke gl_FUNC_ACOS.
40957 2011-10-08  Bruno Haible  <bruno@clisp.org>
40959         Tests for module 'asinf'.
40960         * modules/asinf-tests: New file.
40961         * tests/test-asinf.c: New file.
40963         New module 'asinf'.
40964         * lib/math.in.h (asinf): New declaration.
40965         * lib/asinf.c: New file.
40966         * m4/asinf.m4: New file.
40967         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
40968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
40969         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
40970         * modules/asinf: New file.
40971         * tests/test-math-c++.cc: Check the declaration of asinf.
40972         * doc/posix-functions/asinf.texi: Mention the new module.
40974         asin: Use a .m4 file.
40975         * m4/asin.m4: New file.
40976         * modules/asin (Files): Add it.
40977         (configure.ac): Just invoke gl_FUNC_ASIN.
40979 2011-10-08  Bruno Haible  <bruno@clisp.org>
40981         Tests for module 'tanf'.
40982         * modules/tanf-tests: New file.
40983         * tests/test-tanf.c: New file.
40985         New module 'tanf'.
40986         * lib/math.in.h (tanf): New declaration.
40987         * lib/tanf.c: New file.
40988         * m4/tanf.m4: New file.
40989         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
40990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
40991         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
40992         * modules/tanf: New file.
40993         * tests/test-math-c++.cc: Check the declaration of tanf.
40994         * doc/posix-functions/tanf.texi: Mention the new module.
40996         tan: Use a .m4 file.
40997         * m4/tan.m4: New file.
40998         * modules/tan (Files): Add it.
40999         (configure.ac): Just invoke gl_FUNC_TAN.
41001 2011-10-08  Bruno Haible  <bruno@clisp.org>
41003         Tests for module 'cosf'.
41004         * modules/cosf-tests: New file.
41005         * tests/test-cosf.c: New file.
41007         New module 'cosf'.
41008         * lib/math.in.h (cosf): New declaration.
41009         * lib/cosf.c: New file.
41010         * m4/cosf.m4: New file.
41011         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
41012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
41013         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
41014         * modules/cosf: New file.
41015         * tests/test-math-c++.cc: Check the declaration of cosf.
41016         * doc/posix-functions/cosf.texi: Mention the new module.
41018         cos: Use a .m4 file.
41019         * m4/cos.m4: New file.
41020         * modules/cos (Files): Add it.
41021         (configure.ac): Just invoke gl_FUNC_COS.
41023 2011-10-08  Bruno Haible  <bruno@clisp.org>
41025         Tests for module 'sinf'.
41026         * modules/sinf-tests: New file.
41027         * tests/test-sinf.c: New file.
41029         New module 'sinf'.
41030         * lib/math.in.h (sinf): New declaration.
41031         * lib/sinf.c: New file.
41032         * m4/sinf.m4: New file.
41033         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
41034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
41035         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
41036         * modules/sinf: New file.
41037         * tests/test-math-c++.cc: Check the declaration of sinf.
41038         * doc/posix-functions/sinf.texi: Mention the new module.
41040         sin: Use a .m4 file.
41041         * m4/sin.m4: New file.
41042         * modules/sin (Files): Add it.
41043         (configure.ac): Just invoke gl_FUNC_SIN.
41045 2011-10-08  Bruno Haible  <bruno@clisp.org>
41047         Tests for module 'powf'.
41048         * modules/powf-tests: New file.
41049         * tests/test-powf.c: New file.
41051         New module 'powf'.
41052         * lib/math.in.h (powf): New declaration.
41053         * lib/powf.c: New file.
41054         * m4/powf.m4: New file.
41055         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
41056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
41057         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
41058         * modules/powf: New file.
41059         * tests/test-math-c++.cc: Check the declaration of powf.
41060         * doc/posix-functions/powf.texi: Mention the new module.
41062         pow: Use a .m4 file.
41063         * m4/pow.m4: New file.
41064         * modules/pow (Files): Add it.
41065         (configure.ac): Just invoke gl_FUNC_POW.
41067 2011-10-08  Bruno Haible  <bruno@clisp.org>
41069         Tests for module 'log10f'.
41070         * modules/log10f-tests: New file.
41071         * tests/test-log10f.c: New file.
41073         New module 'log10f'.
41074         * lib/math.in.h (log10f): New declaration.
41075         * lib/log10f.c: New file.
41076         * m4/log10f.m4: New file.
41077         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
41078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
41079         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
41080         * modules/log10f: New file.
41081         * tests/test-math-c++.cc: Check the declaration of log10f.
41082         * doc/posix-functions/log10f.texi: Mention the new module.
41084         log10: Use a .m4 file.
41085         * m4/log10.m4: New file.
41086         * modules/log10 (Files): Add it.
41087         (configure.ac): Just invoke gl_FUNC_LOG10.
41089 2011-10-08  Bruno Haible  <bruno@clisp.org>
41091         Tests for module 'logf'.
41092         * modules/logf-tests: New file.
41093         * tests/test-logf.c: New file.
41095         New module 'logf'.
41096         * lib/math.in.h (logf): New declaration.
41097         * lib/logf.c: New file.
41098         * m4/logf.m4: New file.
41099         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
41100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
41101         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
41102         * modules/logf: New file.
41103         * tests/test-math-c++.cc: Check the declaration of logf.
41104         * doc/posix-functions/logf.texi: Mention the new module.
41106         log: Use a .m4 file.
41107         * m4/log.m4: New file.
41108         * modules/log (Files): Add it.
41109         (configure.ac): Just invoke gl_FUNC_LOG.
41111 2011-10-08  Bruno Haible  <bruno@clisp.org>
41113         Tests for module 'expf'.
41114         * modules/expf-tests: New file.
41115         * tests/test-expf.c: New file.
41117         New module 'expf'.
41118         * lib/math.in.h (expf): New declaration.
41119         * lib/expf.c: New file.
41120         * m4/expf.m4: New file.
41121         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
41122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
41123         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
41124         * modules/expf: New file.
41125         * tests/test-math-c++.cc: Check the declaration of expf.
41126         * doc/posix-functions/expf.texi: Mention the new module.
41128         exp: Use a .m4 file.
41129         * m4/exp.m4: New file.
41130         * modules/exp (Files): Add it.
41131         (configure.ac): Just invoke gl_FUNC_EXP.
41133 2011-10-08  Bruno Haible  <bruno@clisp.org>
41135         Tests for module 'sqrtf'.
41136         * modules/sqrtf-tests: New file.
41137         * tests/test-sqrtf.c: New file.
41139         New module 'sqrtf'.
41140         * lib/math.in.h (sqrtf): New declaration.
41141         * lib/sqrtf.c: New file.
41142         * m4/sqrtf.m4: New file.
41143         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
41144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
41145         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
41146         * modules/sqrtf: New file.
41147         * tests/test-math-c++.cc: Check the declaration of sqrtf.
41148         * doc/posix-functions/sqrtf.texi: Mention the new module.
41150 2011-10-08  Bruno Haible  <bruno@clisp.org>
41152         Tests: Avoid link failures w.r.t. libintl.
41153         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
41154         $(LIBINTL).
41155         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
41156         $(LIBINTL).
41157         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
41158         against $(LIBINTL).
41159         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
41160         $(LIBINTL).
41161         * modules/openat-tests (Makefile.am): Link test-fchmodat against
41162         $(LIBINTL).
41163         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
41165 2011-10-08  Bruno Haible  <bruno@clisp.org>
41167         pow tests: Defeat compiler optimizations.
41168         * tests/test-pow.c (main): Assign arguments to x and y before use.
41170 2011-10-08  Bruno Haible  <bruno@clisp.org>
41172         gnulib-tool: Improve last commit.
41173         * gnulib-tool (func_modules_transitive_closure): Simplify code.
41174         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
41175         ignore dependencies that are not among the modules list.
41177 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
41179         gnulib-tool: don't follow dependencies to avoided modules
41180         This fixes a bug that is related to the previous one.
41181         * gnulib-tool (func_modules_transitive_closure)
41182         (func_emit_autoconf_snippets):
41183         Check whether a dependency is acceptable before using it.
41184         (--extract-dependencies): Report an error if --avoid is also used,
41185         since this combination of options is not yet supported.
41187         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
41188         Problem reported by Peter Dyballa in
41189         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
41190         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
41191         when echoing "$condition".
41193 2011-10-07  Bruno Haible  <bruno@clisp.org>
41195         Fix documentation about math functions on MacOS X.
41196         * doc/posix-functions/exp2.texi: Don't say the function is missing on
41197         MacOS X 10.5.
41198         * doc/posix-functions/fdim.texi: Likewise.
41199         * doc/posix-functions/feclearexcept.texi: Likewise.
41200         * doc/posix-functions/fegetenv.texi: Likewise.
41201         * doc/posix-functions/fegetround.texi: Likewise.
41202         * doc/posix-functions/feholdexcept.texi: Likewise.
41203         * doc/posix-functions/feraiseexcept.texi: Likewise.
41204         * doc/posix-functions/fesetenv.texi: Likewise.
41205         * doc/posix-functions/fesetround.texi: Likewise.
41206         * doc/posix-functions/fetestexcept.texi: Likewise.
41207         * doc/posix-functions/feupdateenv.texi: Likewise.
41208         * doc/posix-functions/fmax.texi: Likewise.
41209         * doc/posix-functions/fmin.texi: Likewise.
41210         * doc/posix-functions/log2.texi: Likewise.
41211         * doc/posix-functions/modff.texi: Likewise.
41212         * doc/posix-functions/nan.texi: Likewise.
41213         * doc/posix-functions/nanf.texi: Likewise.
41214         * doc/posix-functions/nextafterf.texi: Likewise.
41215         * doc/posix-functions/remquo.texi: Likewise.
41217 2011-10-07  Bruno Haible  <bruno@clisp.org>
41219         modff: Drop assumption about library that defines modff.
41220         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
41221         AC_CHECK_FUNCS.
41222         * modules/modff (Files): Add m4/mathfunc.m4.
41224 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
41226         raise tests: Avoid a GCC warning.
41227         * tests/test-raise.c (handler): Use _Noreturn.
41229 2011-10-07  Bruno Haible  <bruno@clisp.org>
41231         Tests for module 'ldexpf'.
41232         * modules/ldexpf-tests: New file.
41233         * tests/test-ldexpf.c: New file.
41235         New module 'ldexpf'.
41236         * lib/math.in.h (ldexpf): New declaration.
41237         * lib/ldexpf.c: New file.
41238         * m4/ldexpf.m4: New file.
41239         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
41240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
41241         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
41242         * modules/ldexpf: New file.
41243         * tests/test-math-c++.cc: Check the declaration of ldexpf.
41244         * doc/posix-functions/ldexpf.texi: Mention the new module.
41246 2011-10-06  Bruno Haible  <bruno@clisp.org>
41248         frexpf: Work around problems on IRIX and mingw.
41249         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
41250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
41251         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
41252         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
41253         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
41254         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
41255         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
41257 2011-10-06  Bruno Haible  <bruno@clisp.org>
41259         fabsf: Drop assumption about library that defines fabsf.
41260         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
41261         AC_CHECK_FUNCS.
41262         * modules/fabsf (Files): Add m4/mathfunc.m4.
41264 2011-10-06  Bruno Haible  <bruno@clisp.org>
41266         frexpf: Drop assumption about library that defines frexpf.
41267         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
41268         'int *', 'float *', 'long double *', 'float', 'long double'.
41269         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
41270         AC_CHECK_FUNCS.
41271         * modules/frexpf (Files): Add m4/mathfunc.m4.
41273         Tests for module 'frexpf'.
41274         * modules/frexpf-tests: New file.
41275         * tests/test-frexpf.c: New file.
41277         New module 'frexpf'.
41278         * lib/math.in.h (frexpf): New declaration.
41279         * lib/frexpf.c: New file.
41280         * m4/frexpf.m4: New file.
41281         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
41282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
41283         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
41284         * modules/frexpf: New file.
41285         * tests/test-math-c++.cc: Check the declaration of frexpf.
41286         * doc/posix-functions/frexpf.texi: Mention the new module.
41288 2011-10-06  Bruno Haible  <bruno@clisp.org>
41290         math: Sort function declarations of math.in.h.
41291         * lib/math.in.h (frexp, logb): Move declarations.
41293 2011-10-05  Bruno Haible  <bruno@clisp.org>
41295         Tests for module 'modff'.
41296         * modules/modff-tests: New file.
41297         * tests/test-modff.c: New file.
41299         New module 'modff'.
41300         * lib/math.in.h (modff): New declaration.
41301         * lib/modff.c: New file.
41302         * m4/modff.m4: New file.
41303         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
41304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
41305         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
41306         * modules/modff: New file.
41307         * tests/test-math-c++.cc: Check the declaration of modff.
41308         * doc/posix-functions/modff.texi: Mention the new module.
41310         modf tests: Make test sharper.
41311         * tests/test-modf.c (main): Strengthen upper bound.
41313         modf: Use a .m4 file.
41314         * m4/modf.m4: New file.
41315         * modules/modf (Files): Add it.
41316         (configure.ac): Just invoke gl_FUNC_MODF.
41318 2011-10-05  Bruno Haible  <bruno@clisp.org>
41320         Tests for module 'fmodf'.
41321         * modules/fmodf-tests: New file.
41322         * tests/test-fmodf.c: New file.
41324         New module 'fmodf'.
41325         * lib/math.in.h (fmodf): New declaration.
41326         * lib/fmodf.c: New file.
41327         * m4/fmodf.m4: New file.
41328         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
41329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
41330         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
41331         * modules/fmodf: New file.
41332         * tests/test-math-c++.cc: Check the declaration of fmodf.
41333         * doc/posix-functions/fmodf.texi: Mention the new module.
41335         fmod: Use a .m4 file.
41336         * m4/fmod.m4: New file.
41337         * modules/fmod (Files): Add it.
41338         (configure.ac): Just invoke gl_FUNC_FMOD.
41340 2011-10-05  Bruno Haible  <bruno@clisp.org>
41342         Tests for module 'fabsf'.
41343         * modules/fabsf-tests: New file.
41344         * tests/test-fabsf.c: New file.
41346         New module 'fabsf'.
41347         * lib/math.in.h (fabsf): New declaration.
41348         * lib/fabsf.c: New file.
41349         * m4/fabsf.m4: New file.
41350         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
41351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
41352         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
41353         * modules/fabsf: New file.
41354         * tests/test-math-c++.cc: Check the declaration of fabsf.
41355         * doc/posix-functions/fabsf.texi: Mention the new module.
41357         fabs: Use a .m4 file.
41358         * m4/fabs.m4: New file.
41359         * modules/fabs (Files): Add it.
41360         (configure.ac): Just invoke gl_FUNC_FABS.
41362 2011-10-05  Jim Meyering  <meyering@redhat.com>
41364         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
41365         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
41366         ls -lL regression introduced in coreutils-8.12, it does so at the
41367         cost of an additional stat call in the common case.  Besides, now
41368         that the kernel change that prompted commit 95f7c57f has been reverted
41369         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
41370         we have no use for commit 95f7c57f, "file-has-acl: use
41371         acl_extended_file_nofollow if available".
41373 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
41375         file-has-acl: revert unintended change in behavior of ls -L
41376         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
41377         derived from...
41378         (file_has_acl): ...code here.  Call it.
41379         This problem was introduced with 2011-07-22 commit 95f7c57f,
41380         "file-has-acl: use acl_extended_file_nofollow if available".
41381         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
41383 2011-10-03  Bruno Haible  <bruno@clisp.org>
41385         poll: Avoid link errors on MSVC.
41386         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
41387         * modules/poll (Depends-on): Add sockets.
41388         (Link): New section.
41389         * NEWS: Mention the change.
41390         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
41391         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
41392         $(LIB_POLL) instead of $(LIBSOCKET).
41394 2011-10-03  Bruno Haible  <bruno@clisp.org>
41396         sys_select tests: Fix link error on MSVC 9.
41397         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
41398         with $(LIB_SELECT) instead of $(LIBSOCKET).
41400 2011-10-03  Bruno Haible  <bruno@clisp.org>
41402         sys_select: Fix compilation error on mingw.
41403         * lib/sys_select.in.h: On native Windows, include <io.h>.
41405 2011-10-03  Bruno Haible  <bruno@clisp.org>
41407         wmemset: Support for MSVC.
41408         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
41409         whether wmemset() exists.
41411 2011-10-03  Bruno Haible  <bruno@clisp.org>
41413         wmemmove: Support for MSVC.
41414         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
41415         whether wmemmove() exists.
41417 2011-10-03  Bruno Haible  <bruno@clisp.org>
41419         wmemcpy: Support for MSVC.
41420         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
41421         whether wmemcpy() exists.
41423 2011-10-03  Bruno Haible  <bruno@clisp.org>
41425         wmemcmp: Support for MSVC.
41426         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
41427         whether wmemcmp() exists.
41429 2011-10-03  Bruno Haible  <bruno@clisp.org>
41431         wmemchr: Support for MSVC.
41432         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
41433         whether wmemchr() exists.
41435 2011-10-03  Bruno Haible  <bruno@clisp.org>
41437         glthread/*, strsignal: Support for MSVC.
41438         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
41439         including <winsock.h> on MSVC 9.
41440         * lib/glthread/lock.h: Likewise.
41441         * lib/glthread/thread.h: Likewise.
41442         * lib/glthread/tls.h: Likewise.
41443         * lib/glthread/yield.h: Likewise.
41444         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
41445         if HAVE_UNISTD_H is false.
41446         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
41448 2011-10-03  Bruno Haible  <bruno@clisp.org>
41450         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
41451         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
41452         Set to 100000.
41454 2011-10-03  Bruno Haible  <bruno@clisp.org>
41456         acl: Fix specification.
41457         * lib/file-has-acl.c (file_has_acl): Fix specification.
41459 2011-10-03  Bruno Haible  <bruno@clisp.org>
41461         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
41462         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
41463         (compute_curr_prefix, shared_library_fullname,
41464         find_shared_library_fullname, get_shared_library_fullname, relocate):
41465         Use it together with PIC && INSTALLDIR.
41466         Reported by <jojelino@gmail.com>
41467         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
41469 2011-10-01  Jim Meyering  <meyering@redhat.com>
41471         maint.mk: adjust a release-related rule not to require use of gzip
41472         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
41473         Instead, check each file in $(DIST_ARCHIVES).  This is better for
41474         projects that build only .tar.xz files.  Also fix an erroneous test.
41476         test-linkat: don't leave behind a temporary file
41477         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
41478         Otherwise, coreutils' "make distcheck" would fail with this:
41479           Only in /c/cu/tests/torture/coreutils/test/\
41480             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
41481           make[2]: *** [my-distcheck] Error 1
41483         float, math: add omitted file
41484         * lib/itold.c: Add file, required for yesterday's float change.
41486 2011-10-01  Bruno Haible  <bruno@clisp.org>
41488         isinf: Fix for OpenBSD/x86.
41489         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
41490         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
41491         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
41493 2011-10-01  Bruno Haible  <bruno@clisp.org>
41495         isfinite: Fix syntax error in configure test.
41496         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
41498         isfinite: Fix typo.
41499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
41500         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
41502 2011-10-01  Bruno Haible  <bruno@clisp.org>
41504         nonblocking tests: Fix test failure on Linux/IA-64.
41505         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
41506         Set to 270000.
41508 2011-10-01  Bruno Haible  <bruno@clisp.org>
41510         mkfifoat tests: Fix a test failure on mingw.
41511         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
41512         with error ENOSYS.
41514 2011-09-30  Bruno Haible  <bruno@clisp.org>
41516         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
41517         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
41518         'long double'. Set REPLACE_ITOLD.
41519         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
41520         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
41521         * lib/itold.c: New file.
41522         * modules/float (Files): Add lib/itold.c.
41523         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
41524         (Makefile.am): Substitute REPLACE_ITOLD.
41525         * modules/math (Depends-on): Add float.
41526         (Makefile.am): Substitute REPLACE_ITOLD.
41527         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
41528         * doc/posix-headers/math.texi: Likewise.
41529         * doc/posix-functions/logl.texi: Likewise.
41531 2011-09-30  Bruno Haible  <bruno@clisp.org>
41533         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
41534         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
41535         Set to 140000.
41537 2011-09-30  Bruno Haible  <bruno@clisp.org>
41539         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
41540         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
41541         invocation, say "right after AC_PROG_CC_STDC", not "right after
41542         AC_PROG_CC".
41543         Reported by Gary V. Vaughan <gary@gnu.org>.
41545 2011-09-30  Bruno Haible  <bruno@clisp.org>
41547         Centralize C99 requirement.
41548         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
41549         * modules/stdarg (configure.ac-early): Invoke it instead of
41550         AC_PROG_CC_STDC.
41551         Reported by Gary V. Vaughan and Paul Eggert.
41553 2011-09-29  Bruno Haible  <bruno@clisp.org>
41555         float: Fix LDBL_MAX value on Linux/PowerPC.
41556         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
41557         on Linux/PowerPC.
41558         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
41559         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
41560         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
41561         platform.
41562         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
41564 2011-09-29  Bruno Haible  <bruno@clisp.org>
41566         doc: Improve doc about gl_EARLY.
41567         * doc/gnulib-tool.texi (Initial import): Mention where to place an
41568         AC_PROG_CC_STDC invocation.
41569         Reported by Gary V. Vaughan <gary@gnu.org>.
41571 2011-09-28  Bruno Haible  <bruno@clisp.org>
41573         fgetc, fputc, fread, fwrite tests: Fix link error.
41574         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
41575         on non-MSVC platforms.
41576         * tests/test-fputc.c (main): Likewise.
41577         * tests/test-fread.c (main): Likewise.
41578         * tests/test-fwrite.c (main): Likewise.
41579         Reported by Jim Meyering.
41581 2011-09-27  Bruno Haible  <bruno@clisp.org>
41583         fputc, fwrite tests: Avoid test failure on MSVC.
41584         * tests/test-fgetc.c: Include msvc-inval.h.
41585         (main): Invoke gl_msvc_inval_ensure_handler.
41586         * tests/test-fputc.c: Include msvc-inval.h.
41587         (main): Invoke gl_msvc_inval_ensure_handler.
41588         * tests/test-fread.c: Include msvc-inval.h.
41589         (main): Invoke gl_msvc_inval_ensure_handler.
41590         * tests/test-fwrite.c: Include msvc-inval.h.
41591         (main): Invoke gl_msvc_inval_ensure_handler.
41592         * modules/fgetc-tests (Depends-on): Add msvc-inval.
41593         * modules/fputc-tests (Depends-on): Likewise.
41594         * modules/fread-tests (Depends-on): Likewise.
41595         * modules/fwrite-tests (Depends-on): Likewise.
41597 2011-09-27  Bruno Haible  <bruno@clisp.org>
41599         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
41600         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
41601         (raise): Remove older, duplicated declaration.
41602         (_gl_raise_SIGPIPE): New declaration.
41603         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
41604         (rpl_raise): Remove function.
41605         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
41606         a gnulib-defined SIGPIPE here.
41607         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
41608         'sigprocmask' has detected missing signal-blocking and the module
41609         'sigpipe' is enabled.
41610         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
41612 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
41614         base64-tests: avoid memory leak
41615         * tests/test-base64.c (main): Plug memory leak.
41617         base32: new module
41618         * modules/base32: New module.
41619         * lib/base32.c: New file.
41620         * lib/base32.h: Likewise.
41621         * m4/base32.m4: Likewise.
41622         * modules/base32-tests: New test.
41623         * tests/test-base32.c: Likewise.
41624         * MODULES.html.sh (Misc): Mention it.
41626 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41628         gnulib: use more-standard license notice wording
41629         * gnulib-tool (func_emit_copyright_notice): When emitting a
41630         license notice into a file, use the standard wording as suggested
41631         by the current information for GNU maintainers, except say "file"
41632         rather than "program".  The new wording gives a license version
41633         number, which addresses an issue raised by Glenn Morris in
41634         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
41635         * m4/onceonly.m4: Use that same wording here, too.
41637         dup2: minor simplification
41638         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
41639         as lib/dup2.c no longer uses 'inline'.
41641 2011-09-25  Bruno Haible  <bruno@clisp.org>
41643         strings: Fix compilation error on MSVC.
41644         * lib/strings.in.h: Include <stddef.h> for size_t.
41646 2011-09-25  Bruno Haible  <bruno@clisp.org>
41648         fflush et al.: Document limitation on MSVC.
41649         * doc/posix-functions/fflush.texi: Document possible crash in handling
41650         mode other than DEFAULT_HANDLING.
41651         * doc/posix-functions/fgetc.texi: Likewise.
41652         * doc/posix-functions/fputc.texi: Likewise.
41653         * doc/posix-functions/fread.texi: Likewise.
41654         * doc/posix-functions/fwrite.texi: Likewise.
41656 2011-09-25  Bruno Haible  <bruno@clisp.org>
41658         msvc-inval: Allow three invalid parameter handling modes.
41659         * lib/msvc-inval.h: Don't include <stdlib.h> here.
41660         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
41661         macros.
41662         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
41663         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
41664         SANE_LIBRARY_HANDLING as a no-op.
41665         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
41666         <stdlib.h>.
41667         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
41669 2011-09-25  Bruno Haible  <bruno@clisp.org>
41671         msvc-inval: Make handler multithread-safe.
41672         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
41673         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
41674         declarations.
41675         (gl_msvc_inval_current): New declaration.
41676         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
41677         Operate on the structure returned by gl_msvc_inval_current().
41678         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
41679         Remove varaiables.
41680         (tls_index, tls_initialized): New variables.
41681         (not_per_thread): New variable.
41682         (gl_msvc_inval_current): New function.
41683         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
41684         returned by gl_msvc_inval_current().
41686 2011-09-25  Bruno Haible  <bruno@clisp.org>
41688         msvc-inval: Install handler globally.
41689         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
41690         !_MSC_VER.
41691         (gl_msvc_invalid_parameter_handler): Remove declaration.
41692         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
41693         declarations.
41694         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
41695         Install the handler globally, don't uninstall it.
41696         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
41697         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
41698         currently valid, call RaiseException instead.
41699         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
41700         for !_MSC_VER.
41702 2011-09-25  Bruno Haible  <bruno@clisp.org>
41704         strerror_r-posix: Fix for MSVC 9.
41705         * lib/strerror_r.c (local_snprintf): New function.
41706         (snprintf): Define to local_snprintf, not to _snprintf.
41708 2011-09-25  Bruno Haible  <bruno@clisp.org>
41710         ftruncate: Support for MSVC 9.
41711         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
41712         (chsize_nothrow): New function.
41713         (chsize): Redefine as a macro.
41714         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
41715         * modules/ftruncate (Depends-on): Add msvc-inval.
41717 2011-09-25  Bruno Haible  <bruno@clisp.org>
41719         New module 'fstat'.
41720         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
41721         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
41722         * lib/fchdir.c (rpl_fstat): Remove function.
41723         * m4/fstat.m4: New file.
41724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
41725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
41726         declared.
41727         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
41728         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
41729         * modules/fstat: New file.
41730         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
41731         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
41732         is set.
41733         * doc/posix-functions/fstat.texi: Mention the new module and the
41734         problem on MSVC.
41735         * NEWS: Mention the change.
41736         * modules/acl (Depends-on): Add fstat.
41737         * modules/chdir-safer (Depends-on): Likewise.
41738         * modules/chown (Depends-on): Likewise.
41739         * modules/copy-file (Depends-on): Likewise.
41740         * modules/fchdir (Depends-on): Likewise.
41741         * modules/fdopendir (Depends-on): Likewise.
41742         * modules/fopen (Depends-on): Likewise.
41743         * modules/fts (Depends-on): Likewise.
41744         * modules/getcwd (Depends-on): Likewise.
41745         * modules/isapipe (Depends-on): Likewise.
41746         * modules/linkat (Depends-on): Likewise.
41747         * modules/lseek (Depends-on): Likewise.
41748         * modules/mkdir-p (Depends-on): Likewise.
41749         * modules/open (Depends-on): Likewise.
41750         * modules/openat (Depends-on): Likewise.
41751         * modules/read-file (Depends-on): Likewise.
41752         * modules/renameat (Depends-on): Likewise.
41753         * modules/utimens (Depends-on): Likewise.
41755 2011-09-25  Bruno Haible  <bruno@clisp.org>
41757         linkat: Fix compilation on MSVC 9.
41758         * lib/linkat.c: Don't include <stdint.h>.
41760 2011-09-25  Bruno Haible  <bruno@clisp.org>
41762         fclose: Support for MSVC 9.
41763         * lib/fclose.c: Include msvc-inval.h.
41764         (fclose_nothrow): New function.
41765         (rpl_fclose): Use it.
41766         * modules/fclose (Depends-on): Add msvc-inval.
41767         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
41769 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
41771         dup2: minor simplifications
41772         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
41773         that it's a performance win.
41774         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
41775         ! defined __CYGWIN__)" to "ifdef F_GETFL".
41777 2011-09-24  Jim Meyering  <meyering@redhat.com>
41779         test-futimens: avoid a warning from gcc -Wshadow
41780         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
41781         to avoid a shadowing warning.
41783 2011-09-24  Bruno Haible  <bruno@clisp.org>
41785         fdopen: Support for MSVC 9.
41786         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
41787         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
41788         * lib/fdopen.c: Include msvc-inval.h.
41789         (fdopen_nothrow): New function.
41790         (rpl_fdopen): Use it.
41791         * modules/fdopen (Depends-on): Add msvc-inval.
41792         * modules/fclose-tests (Depends-on): Add fdopen.
41793         * modules/fflush-tests (Depends-on): Likewise.
41794         * modules/fgetc-tests (Depends-on): Likewise.
41795         * modules/fputc-tests (Depends-on): Likewise.
41796         * modules/fread-tests (Depends-on): Likewise.
41797         * modules/freopen-tests (Depends-on): Likewise.
41798         * modules/fseeko-tests (Depends-on): Likewise.
41799         * modules/ftello-tests (Depends-on): Likewise.
41800         * modules/fwrite-tests  (Depends-on): Likewise.
41801         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
41803 2011-09-24  Bruno Haible  <bruno@clisp.org>
41805         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
41806         * modules/fgetc-tests (Depends-on): Add unistd.
41807         * modules/fputc-tests (Depends-on): Likewise.
41808         * modules/fread-tests (Depends-on): Likewise.
41809         * modules/fwrite-tests (Depends-on): Likewise.
41811 2011-09-24  Bruno Haible  <bruno@clisp.org>
41813         dup: Simplify autoconf test.
41814         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
41815         on gl_MSVC_INVAL's result.
41817 2011-09-24  Bruno Haible  <bruno@clisp.org>
41819         Tests for function fwrite().
41820         * modules/fwrite-tests: New file.
41821         * tests/test-fwrite.c: New file.
41822         * modules/stdio-tests (Depends-on): Add fwrite-tests.
41824         Tests for function fread().
41825         * modules/fread-tests: New file.
41826         * tests/test-fread.c: New file.
41827         * modules/stdio-tests (Depends-on): Add fread-tests.
41829         Activate fputc tests.
41830         * modules/stdio-tests (Depends-on): Add fputc-tests.
41832         Enhance fgetc, fputc tests.
41833         * tests/test-fgetc.c (main): Also test the stream's error indicator.
41834         * tests/test-fputc.c (main): Likewise.
41836 2011-09-24  Bruno Haible  <bruno@clisp.org>
41838         write: Support for MSVC 9.
41839         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
41840         is not 1.
41841         * lib/write.c (write_nothrow): New function.
41842         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
41843         not 1. Use write_nothrow.
41844         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
41845         invalid parameter handler.
41846         (gl_PREREQ_WRITE): New macro.
41847         * modules/write (Depends-on): Add msvc-inval.
41848         (configure.ac): Invoke gl_PREREQ_WRITE.
41849         * doc/posix-functions/write.texi: Mention the problem on MSVC.
41851 2011-09-24  Bruno Haible  <bruno@clisp.org>
41853         read: Fix last commit.
41854         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
41856 2011-09-24  Bruno Haible  <bruno@clisp.org>
41858         dup2: Fix last commit.
41859         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
41860         (rpl_dup2): Disable fcntl workaround on native Windows.
41862         sigprocmask: Make code safer.
41863         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
41864         section that changes macro definitions for this compilation unit.
41866 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
41868         dup2: clarify by coalescing Windows-specific material
41869         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
41870         "msvc-nothrow.h"' to the Windows-specific section, so that the
41871         Emacs source need not contain these include files.
41872         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
41873         Windows-specific fixes into this function rather than just the
41874         nothrow fix, as this shortens and clarifies the code.  Always
41875         define as a function, as that's a bit cleaner than having it be
41876         sometimes a function and sometimes a macro.
41877         (rpl_dup2): Move the Windows-specific stuff out of here and into
41878         ms_windows_dup2.  Don't protect the Haiku-related fix with
41879         "#if !defined __linux__", as the same code also works around
41880         a Linux kernel bug, and it doesn't add any system calls on any
41881         platform.  Add comment about FreeBSD 6.1.
41883         sigprocmask: move #include directive
41884         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
41885         Windows-specific section, so that the Emacs source need not
41886         contain msvc-inval.h.
41888 2011-09-23  Bruno Haible  <bruno@clisp.org>
41890         read: Support for MSVC 9.
41891         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
41892         is not 1.
41893         * lib/read.c (read_nothrow): New function.
41894         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
41895         read_nothrow.
41896         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
41897         invalid parameter handler.
41898         (gl_PREREQ_READ): New macro.
41899         * modules/read (Depends-on): Add msvc-inval.
41900         (configure.ac): Invoke gl_PREREQ_READ.
41901         * doc/posix-functions/read.texi: Mention the problem on MSVC.
41903 2011-09-23  Bruno Haible  <bruno@clisp.org>
41905         close: Support for MSVC 9.
41906         * lib/close.c: Include <errno.h>, msvc-inval.h.
41907         (close_nothrow): New function.
41908         (rpl_close): Use it.
41909         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
41910         invalid parameter handler.
41911         * modules/close (Depends-on): Add msvc-inval.
41912         * modules/dup2-tests (Depends-on): Add close.
41913         * modules/dup3-tests (Depends-on): Likewise.
41914         * modules/fcntl-tests (Depends-on): Likewise.
41915         * modules/spawn-pipe-tests (Depends-on): Likewise.
41916         * modules/unistd-safer-tests (Depends-on): Likewise.
41917         * doc/posix-functions/close.texi: Mention the problem on MSVC.
41919 2011-09-23  Bruno Haible  <bruno@clisp.org>
41921         New module 'dup'.
41922         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
41923         Allow replacement.
41924         * lib/dup.c: New file.
41925         * lib/fchdir.c (rpl_dup): Remove function.
41926         * m4/dup.m4: New file.
41927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
41928         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
41929         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
41930         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
41931         * modules/dup: New file.
41932         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
41933         'dup' module is in use.
41934         * modules/fdopendir (Depends-on): Add dup.
41935         * modules/fdutimensat-tests (Depends-on): Likewise.
41936         * modules/fts (Depends-on): Likewise.
41937         * modules/futimens-tests (Depends-on): Likewise.
41938         * modules/posix_spawnp-tests (Depends-on): Likewise.
41939         * modules/unistd-safer-tests (Depends-on): Likewise.
41940         * modules/utimens-tests (Depends-on): Likewise.
41941         * doc/posix-functions/dup.texi: Mention the new module and the problem
41942         on MSVC.
41944 2011-09-23  Bruno Haible  <bruno@clisp.org>
41946         getdtablesize: Support for MSVC 9.
41947         * lib/getdtablesize.c: Include msvc-inval.h.
41948         (_setmaxstdio_nothrow): New function.
41949         (_setmaxstdio): Redefine it.
41950         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
41951         * modules/getdtablesize (Depends-on): Add msvc-inval.
41952         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
41954 2011-09-23  Bruno Haible  <bruno@clisp.org>
41956         signal-h: Rename from signal.
41957         * modules/signal-h: Renamed from modules/signal.
41958         * modules/pthread_sigmask (Depends-on): Update.
41959         * modules/raise (Depends-on): Likewise.
41960         * modules/sigaction (Depends-on): Likewise.
41961         * modules/sigpipe (Depends-on): Likewise.
41962         * modules/sigprocmask (Depends-on): Likewise.
41963         * modules/sys_select (Depends-on): Likewise.
41964         * modules/signal-h-tests: Renamed from modules/signal-tests.
41965         (Files, Depends-on, Makefile.am): Update.
41966         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
41967         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
41968         (Files, Makefile.am): Update.
41969         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
41970         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
41971         * modules/signal: New placeholder file.
41972         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
41973         * doc/posix-headers/signal.texi: Update.
41974         * NEWS: Mention the change.
41976 2011-09-23  Bruno Haible  <bruno@clisp.org>
41978         sigprocmask: Avoid crashes through signal() on MSVC 9.
41979         * lib/sigprocmask.c: Include msvc-inval.h.
41980         (signal_nothrow): New function.
41981         (signal): Redefine it.
41982         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
41983         * modules/sigprocmask (Depends-on): Add msvc-inval.
41984         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
41986 2011-09-23  Bruno Haible  <bruno@clisp.org>
41988         Tests for module 'raise'.
41989         * modules/raise-tests: New file.
41990         * tests/test-raise.c: New file.
41992         raise: Support for MSVC.
41993         * lib/signal.in.h (raise): New declaration.
41994         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
41995         for native Windows platforms.
41996         * m4/raise.m4: New file.
41997         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
41998         HAVE_RAISE, REPLACE_RAISE.
41999         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
42000         REPLACE_RAISE.
42001         * modules/raise (Status, Notice): Remove fields.
42002         (Files): Add m4/raise.m4.
42003         (Depends-on): Add signal, msvc-inval.
42004         (configure.ac): Use the common idioms.
42005         (Maintainer): Add me.
42006         * tests/test-signal-c++.cc: Check the signature of raise.
42007         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
42009 2011-09-23  Bruno Haible  <bruno@clisp.org>
42011         pipe2: Fix compilation on pre-C99 compilers.
42012         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
42014 2011-09-23  Bruno Haible  <bruno@clisp.org>
42016         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
42017         * lib/msvc-nothrow.h: New file.
42018         * lib/msvc-nothrow.c: New file.
42019         * m4/msvc-nothrow.m4: New file.
42020         * modules/msvc-nothrow: New file.
42021         * lib/dup2.c: Include msvc-nothrow.h.
42022         (rpl_dup2): No need to protect _get_osfhandle call here.
42023         * lib/accept4.c: Include msvc-nothrow.h.
42024         * lib/error.c: Likewise.
42025         * lib/fcntl.c: Likewise.
42026         * lib/lseek.c: Likewise.
42027         * lib/nonblocking.c: Likewise.
42028         * lib/poll.c: Likewise.
42029         * lib/read.c: Likewise.
42030         * lib/select.c: Likewise.
42031         * lib/sockets.h: Likewise.
42032         * lib/sockets.c: Likewise.
42033         * lib/stdio-read.c: Likewise.
42034         * lib/stdio-write.c: Likewise.
42035         * lib/write.c: Likewise.
42036         * lib/w32sock.h: Likewise.
42037         * lib/w32spawn.h: Likewise.
42038         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
42039         * lib/fsync.c: Likewise.
42040         * lib/isapipe.c: Likewise.
42041         * modules/dup2 (Depends-on): Add msvc-nothrow.
42042         * modules/accept4 (Depends-on): Likewise.
42043         * modules/error (Depends-on): Likewise.
42044         * modules/fcntl (Depends-on): Likewise.
42045         * modules/lseek (Depends-on): Likewise.
42046         * modules/nonblocking (Depends-on): Likewise.
42047         * modules/poll (Depends-on): Likewise.
42048         * modules/read (Depends-on): Likewise.
42049         * modules/select (Depends-on): Likewise.
42050         * modules/sockets (Depends-on): Likewise.
42051         * modules/sigpipe (Depends-on): Likewise.
42052         * modules/write (Depends-on): Likewise.
42053         * modules/accept (Depends-on): Likewise.
42054         * modules/bind (Depends-on): Likewise.
42055         * modules/connect (Depends-on): Likewise.
42056         * modules/gethostname (Depends-on): Likewise.
42057         * modules/getpeername (Depends-on): Likewise.
42058         * modules/getsockname (Depends-on): Likewise.
42059         * modules/getsockopt (Depends-on): Likewise.
42060         * modules/ioctl (Depends-on): Likewise.
42061         * modules/listen (Depends-on): Likewise.
42062         * modules/recv (Depends-on): Likewise.
42063         * modules/recvfrom (Depends-on): Likewise.
42064         * modules/send (Depends-on): Likewise.
42065         * modules/sendto (Depends-on): Likewise.
42066         * modules/setsockopt (Depends-on): Likewise.
42067         * modules/shutdown (Depends-on): Likewise.
42068         * modules/socket (Depends-on): Likewise.
42069         * modules/execute (Depends-on): Likewise.
42070         * modules/spawn-pipe (Depends-on): Likewise.
42071         * modules/flock (Depends-on): Likewise.
42072         * modules/fsync (Depends-on): Likewise.
42073         * modules/isapipe (Depends-on): Likewise.
42074         * tests/test-cloexec.c: Include msvc-nothrow.h.
42075         * tests/test-dup-safer.c: Likewise.
42076         * tests/test-dup2.c: Likewise.
42077         * tests/test-dup3.c: Likewise.
42078         * tests/test-fcntl.c: Likewise.
42079         * tests/test-pipe.c: Likewise.
42080         * tests/test-pipe2.c: Likewise.
42081         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
42082         * modules/unistd-safer-tests (Depends-on): Likewise.
42083         * modules/dup2-tests (Depends-on): Likewise.
42084         * modules/dup3-tests (Depends-on): Likewise.
42085         * modules/fcntl-tests (Depends-on): Likewise.
42086         * modules/pipe-posix-tests (Depends-on): Likewise.
42087         * modules/pipe2-tests (Depends-on): Likewise.
42089 2011-09-23  Bruno Haible  <bruno@clisp.org>
42091         dup2: Make code more maintainable.
42092         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
42093         (rpl_dup2): Use it.
42094         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
42095         * modules/dup2 (configure.ac): Invoke it.
42096         Reported by Paul Eggert.
42098 2011-09-23  Bruno Haible  <bruno@clisp.org>
42100         msvc-inval: Fix compilation error.
42101         * lib/msvc-inval.h: Include <excpt.h>.
42103 2011-09-23  Bruno Haible  <bruno@clisp.org>
42105         mkdir: Tweak for MSVC 9.
42106         * lib/sys_stat.in.h: Update comments.
42107         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
42109         Tests for module 'chdir'.
42110         * modules/chdir-tests: New file.
42111         * tests/test-chdir.c: New file.
42113         New module 'chdir'.
42114         * modules/chdir: New file.
42115         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
42116         (chdir): New declaration.
42117         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
42118         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
42119         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
42120         * tests/test-unistd-c++.cc: Check signature of chdir.
42121         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
42122         * modules/chdir-long (Depends-on): Add chdir.
42123         * modules/fchdir (Depends-on): Likewise.
42124         * modules/rename (Depends-on): Likewise.
42125         * modules/savewd (Depends-on): Likewise.
42127         rmdir: Support for mingw, MSVC 9.
42128         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
42129         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
42131         getcwd: Tweak for MSVC 9.
42132         * lib/unistd.in.h: Update comments.
42133         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
42135 2011-09-22  Bruno Haible  <bruno@clisp.org>
42137         strerror_r-posix: Avoid a link error on MSVC.
42138         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
42139         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
42141 2011-09-22  Bruno Haible  <bruno@clisp.org>
42143         select: Avoid link errors on MSVC.
42144         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
42145         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
42146         * modules/pselect (Link): Likewise.
42147         * NEWS: Mention the change.
42148         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
42149         test-select-stdin against $(LIB_SELECT).
42150         * modules/pselect-tests (Makefile.am): Link test-pselect against
42151         $(LIB_SELECT).
42153 2011-09-22  Bruno Haible  <bruno@clisp.org>
42155         select: Avoid compilation error on MSVC.
42156         * lib/select.c: Don't include <stdbool.h>.
42158 2011-09-21  Bruno Haible  <bruno@clisp.org>
42160         Consolidate all uses of PATH_MAX in *.m4 files.
42161         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
42162         macros.
42163         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
42164         and gl_PATHMAX_SNIPPET.
42165         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
42166         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42167         * modules/chdir-long (Files): Add m4/pathmax.m4.
42168         * modules/getcwd (Files): Likewise.
42170 2011-09-21  Bruno Haible  <bruno@clisp.org>
42172         ftruncate: Un-deprecate, concentrate on Win32 support.
42173         * modules/ftruncate (Status, Notice): Remove sections.
42174         (Depends-on): Add largefile.
42175         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
42176         non-mingw platforms.
42177         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
42178         include <io.h>.
42179         * modules/perror-tests (Depends-on): Add ftruncate.
42180         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
42181         'ftruncate' module.
42183 2011-09-21  Bruno Haible  <bruno@clisp.org>
42185         Add dependencies to new dirent related modules.
42186         * modules/opendir (Depends-on): Add closedir.
42187         * modules/getcwd (Depends-on): Add opendir, closedir.
42188         * modules/dirent-safer-tests (Depends-on): Likewise.
42189         * modules/fdopendir-tests (Depends-on): Likewise.
42190         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
42191         * modules/renameat-tests (Depends-on): Likewise.
42193 2011-09-21  Bruno Haible  <bruno@clisp.org>
42195         opendir: Avoid compilation error on mingw.
42196         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
42197         * modules/opendir (Depends-on): Add unistd.
42199 2011-09-21  Bruno Haible  <bruno@clisp.org>
42201         ftruncate tests: Avoid a test failure on mingw.
42202         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
42204 2011-09-21  Bruno Haible  <bruno@clisp.org>
42206         select tests: Avoid test failures on OSF/1 5.1 and mingw.
42207         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
42208         native Windows.
42210 2011-09-21  Bruno Haible  <bruno@clisp.org>
42212         New module 'fdopen'.
42213         * lib/stdio.in.h (fdopen): New declaration.
42214         * lib/fdopen.c: New file.
42215         * m4/fdopen.m4: New file.
42216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
42217         REPLACE_FDOPEN.
42218         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
42219         REPLACE_FDOPEN.
42220         * modules/fdopen: New file.
42221         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
42222         * tests/test-stdio-c++.cc: Check signature of fdopen.
42223         * doc/posix-functions/fdopen.texi: Mention the new module.
42225 2011-09-21  Bruno Haible  <bruno@clisp.org>
42227         unlockpt tests: Avoid test failure on NetBSD 5.1.
42228         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
42229         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
42231 2011-09-21  Bruno Haible  <bruno@clisp.org>
42233         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
42234         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
42235         * tests/test-getlogin_r.c (main): Likewise.
42237 2011-09-20  Bruno Haible  <bruno@clisp.org>
42239         time tests: Don't require pid_t.
42240         * doc/posix-headers/time.texi: Revert last change.
42241         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
42242         * tests/test-time.c: Comment out the check for pid_t.
42244 2011-09-20  Bruno Haible  <bruno@clisp.org>
42246         fsync tests: Avoid a test failure on mingw.
42247         * tests/test-fsync.c (main): Allow a failure with EIO.
42249 2011-09-20  Bruno Haible  <bruno@clisp.org>
42251         euidaccess: Update comments.
42252         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
42254 2011-09-20  Bruno Haible  <bruno@clisp.org>
42256         Ensure EBADF returns for socket functions on mingw.
42257         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
42258         descriptor is invalid.
42259         * lib/bind.c (rpl_bind): Likewise.
42260         * lib/connect.c (rpl_connect): Likewise.
42261         * lib/getpeername.c (rpl_getpeername): Likewise.
42262         * lib/getsockname.c (rpl_getsockname): Likewise.
42263         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42264         * lib/listen.c (rpl_listen): Likewise.
42265         * lib/recv.c (rpl_recv): Likewise.
42266         * lib/recvfrom.c (rpl_recvfrom): Likewise.
42267         * lib/send.c (rpl_send): Likewise.
42268         * lib/sendto.c (rpl_sendto): Likewise.
42269         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42270         * lib/shutdown.c (rpl_shutdown): Likewise.
42272 2011-09-20  Bruno Haible  <bruno@clisp.org>
42274         select tests: EBADF tests.
42275         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
42276         test_bad_fd): New functions.
42277         (test_function): Invoke also test_bad_fd.
42279 2011-09-20  Bruno Haible  <bruno@clisp.org>
42281         Tests for module 'posix_spawn_file_actions_addopen.
42282         * modules/posix_spawn_file_actions_addopen-tests: New file.
42283         * tests/test-posix_spawn_file_actions_addopen.c: New file.
42285         Tests for module 'posix_spawn_file_actions_adddup2'.
42286         * modules/posix_spawn_file_actions_adddup2-tests: New file.
42287         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
42289         Tests for module 'posix_spawn_file_actions_addclose'.
42290         * modules/posix_spawn_file_actions_addclose-tests: New file.
42291         * tests/test-posix_spawn_file_actions_addclose.c: New file.
42293 2011-09-20  Bruno Haible  <bruno@clisp.org>
42295         Tests for module 'unlockpt'.
42296         * modules/unlockpt-tests: New file.
42297         * tests/test-unlockpt.c: New file.
42298         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
42300         Tests for module 'grantpt'.
42301         * modules/grantpt-tests: New file.
42302         * tests/test-grantpt.c: New file.
42303         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
42305 2011-09-20  Bruno Haible  <bruno@clisp.org>
42307         freopen tests: EBADF tests.
42308         * tests/test-freopen.c: Include errno.h, unistd.h.
42309         (main): Add tests for EBADF, commented out for the moment.
42311         fclose tests: EBADF tests.
42312         * tests/test-fclose.c (main): Add tests for EBADF.
42314         fflush tests: EBADF tests.
42315         * tests/test-fflush.c: Include errno.h, macros.h.
42316         (main): Add tests for EBADF.
42318         ftello tests: EBADF tests.
42319         * tests/test-ftello4.sh: New file.
42320         * tests/test-ftello4.c: New file.
42321         * modules/ftello-tests (Files): Add them.
42322         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
42324         fseeko tests: EBADF tests.
42325         * tests/test-fseeko4.sh: New file.
42326         * tests/test-fseeko4.c: New file.
42327         * modules/fseeko-tests (Files): Add them.
42328         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
42330         Tests for function fputc().
42331         * modules/fputc-tests: New file.
42332         * tests/test-fputc.c: New file.
42333         * modules/stdio-tests (Depends-on): Add fputc-tests.
42335         Tests for function fgetc().
42336         * modules/fgetc-tests: New file.
42337         * tests/test-fgetc.c: New file.
42338         * modules/stdio-tests (Depends-on): Add fgetc-tests.
42340         Tests for function fdopen().
42341         * modules/fdopen-tests: New file.
42342         * tests/test-fdopen.c: New file.
42343         * modules/stdio-tests (Depends-on): Add fdopen-tests.
42345         Tests for module 'vdprintf'.
42346         * modules/vdprintf-tests: New file.
42347         * tests/test-vdprintf.c: New file.
42349         Tests for module 'dprintf'.
42350         * modules/dprintf-tests: New file.
42351         * tests/test-dprintf.c: New file.
42353 2011-09-20  Bruno Haible  <bruno@clisp.org>
42355         Tests for module 'ioctl'.
42356         * modules/ioctl-tests: New file.
42357         * tests/test-ioctl.c: New file.
42359 2011-09-20  Bruno Haible  <bruno@clisp.org>
42361         fcntl tests: EBADF tests.
42362         * tests/test-fcntl.c (main): Add more tests for EBADF.
42364 2011-09-20  Bruno Haible  <bruno@clisp.org>
42366         utimensat tests: EBADF tests.
42367         * tests/test-utimensat.c (main): Add tests for EBADF.
42369         renameat tests: EBADF tests.
42370         * tests/test-renameat.c (main): Add tests for EBADF.
42372         mkfifoat tests: EBADF tests.
42373         * tests/test-mkfifoat.c (main): Add tests for EBADF.
42375         readlinkat tests: EBADF tests.
42376         * tests/test-readlinkat.c (main): Add tests for EBADF.
42378         symlinkat tests: EBADF tests.
42379         * tests/test-symlinkat.c (main): Add tests for EBADF.
42381         linkat tests: EBADF tests.
42382         * tests/test-linkat.c (main): Add tests for EBADF.
42384         Tests for module 'faccessat'.
42385         * modules/faccessat-tests: New file.
42386         * tests/test-faccessat.c: New file.
42388         fdopendir tests: EBADF tests.
42389         * tests/test-fdopendir.c (main): Add more tests for EBADF.
42391         openat tests: EBADF tests.
42392         * tests/test-fchownat.c (main): Add tests for EBADF.
42393         * tests/test-fstatat.c (main): Likewise.
42394         * tests/test-mkdirat.c (main): Likewise.
42395         * tests/test-openat.c (main): Likewise.
42396         * tests/test-unlinkat.c (main): Likewise.
42397         * tests/test-fchmodat.c: New file.
42398         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
42399         (Makefile.am): Also run 'test-fchmodat'.
42401 2011-09-20  Bruno Haible  <bruno@clisp.org>
42403         utimens, futimens, fdutimensat tests: EBADF tests.
42404         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
42406         Tests for function fstat().
42407         * modules/fstat-tests: New file.
42408         * tests/test-fstat.c: New file.
42409         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
42411 2011-09-20  Bruno Haible  <bruno@clisp.org>
42413         test-ttyname_r tests: EBADF tests.
42414         * tests/test-ttyname_r.c (main): Add tests for EBADF.
42416         Tests for module 'isatty'.
42417         * modules/isatty-tests: New file.
42418         * tests/test-isatty.c: New file.
42420         Tests for module 'write'.
42421         * modules/write-tests: New file.
42422         * tests/test-write.c: New file.
42424         Tests for module 'read'.
42425         * modules/read-tests: New file.
42426         * tests/test-read.c: New file.
42428         pwrite tests: EBADF tests.
42429         * tests/test-pwrite.c (main): Add tests for EBADF.
42431         pread tests: EBADF tests.
42432         * tests/test-pread.c (main): Add tests for EBADF.
42434         lseek tests: EBADF tests.
42435         * tests/test-lseek.c (main): Add more tests for EBADF.
42437         Tests for module 'ftruncate'.
42438         * modules/ftruncate-tests: New file.
42439         * tests/test-ftruncate.sh: New file.
42440         * tests/test-ftruncate.c: New file.
42442         fsync tests: EBADF tests.
42443         * tests/test-fsync.c (main): Add more tests for EBADF.
42445         fdatasync tests: EBADF tests.
42446         * tests/test-fdatasync.c (main): Add more tests for EBADF.
42448         Tests for module 'fchown'.
42449         * modules/fchown-tests: New file.
42450         * tests/test-fchown.c: New file.
42452         Tests for module 'fchmod'.
42453         * modules/fchmod-tests: New file.
42454         * tests/test-fchmod.c: New file.
42456         fchdir tests: EBADF tests.
42457         * tests/test-fchdir.c (main): Add more tests for EBADF.
42459         dup2 tests: EBADF tests.
42460         * tests/test-dup2.c (main): Add more tests for EBADF.
42462         Tests for module 'dup'.
42463         * modules/dup-tests: New file.
42464         * tests/test-dup.c: New file.
42466         Tests for module 'close'.
42467         * modules/close-tests: New file.
42468         * tests/test-close.c: New file.
42470 2011-09-20  Bruno Haible  <bruno@clisp.org>
42472         Tests for module 'shutdown'.
42473         * modules/shutdown-tests: New file.
42474         * tests/test-shutdown.c: New file.
42476         Tests for module 'setsockopt'.
42477         * modules/setsockopt-tests: New file.
42478         * tests/test-setsockopt.c: New file.
42480         Tests for module 'sendto'.
42481         * modules/sendto-tests: New file.
42482         * tests/test-sendto.c: New file.
42484         Tests for module 'send'.
42485         * modules/send-tests: New file.
42486         * tests/test-send.c: New file.
42488         Tests for module 'recvfrom'.
42489         * modules/recvfrom-tests: New file.
42490         * tests/test-recvfrom.c: New file.
42492         Tests for module 'recv'.
42493         * modules/recv-tests: New file.
42494         * tests/test-recv.c: New file.
42496         Tests for module 'listen'.
42497         * modules/listen-tests: New file.
42498         * tests/test-listen.c: New file.
42500         Tests for module 'getsockopt'.
42501         * modules/getsockopt-tests: New file.
42502         * tests/test-getsockopt.c: New file.
42504         Tests for module 'getsockname'.
42505         * modules/getsockname-tests: New file.
42506         * tests/test-getsockname.c: New file.
42508         Tests for module 'getpeername'.
42509         * modules/getpeername-tests: New file.
42510         * tests/test-getpeername.c: New file.
42512         Tests for module 'connect'.
42513         * modules/connect-tests: New file.
42514         * tests/test-connect.c: New file.
42516         Tests for module 'bind'.
42517         * modules/bind-tests: New file.
42518         * tests/test-bind.c: New file.
42520         accept4 tests: Fix for native Windows.
42521         * tests/test-accept4.c: Include sockets.h.
42522         (main): Invoke gl_sockets_startup.
42523         * modules/accept4-tests (Depends-on): Add sockets.
42525         accept tests: Fix for native Windows.
42526         * tests/test-accept.c: Include sockets.h.
42527         (main): Invoke gl_sockets_startup.
42528         * modules/accept-tests (Depends-on): Add sockets.
42530 2011-09-19  Bruno Haible  <bruno@clisp.org>
42532         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
42533         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
42534         do...while(0).
42535         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
42536         Suggested by Paul Eggert.
42538 2011-09-19  Bruno Haible  <bruno@clisp.org>
42540         sched: Ensure pid_t is defined.
42541         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
42542         not define pid_t.
42543         * lib/sched.in.h: Include <sys/types.h>.
42544         * doc/posix-headers/sched.texi: Mention the pid_t problem.
42545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42547 2011-09-19  Bruno Haible  <bruno@clisp.org>
42549         msvc-inval: Ensure the entire expansion is a single statement.
42550         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
42551         of braces.
42553 2011-09-19  Jim Meyering  <meyering@redhat.com>
42555         tests: use printf, not echo in init.sh's warn_ function
42556         * tests/init.sh (warn_): Use printf, not echo.  The latter would
42557         misbehave when given strings containing a backslash or starting
42558         with e.g., -n.  James Youngman suggested setting IFS.
42560 2011-09-19  Eric Blake  <eblake@redhat.com>
42562         futimens: enhance test
42563         * tests/test-futimens.h (test_futimens): Also check for EBADF on
42564         closed non-negative fd.
42566         date: accept 'hence' as opposite of 'ago'
42567         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
42568         * tests/test-parse-datetime.c (main): Enhance test.
42569         Suggested by Jesse Wilson.
42571 2011-09-19  Jim Meyering  <meyering@redhat.com>
42573         getcwd: don't fail in a deep directory on a system without openat
42574         Before this change, getcwd would fail when called from a directory
42575         of depth PATH_MAX / 3 or greater.  That was due to the fact that
42576         the non-openat implementation used "..", "../..", "../../..", etc.
42577         to access ancestor directories.  With too many, that string would
42578         be longer than PATH_MAX.
42579         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
42580         using gnulib's openat replacement.
42581         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
42582         we're using the replacement function.
42584 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
42586         maint.mk: avoid warnings from perl about missing files
42587         * top/maint.mk (def_sym_regex): Ignore files listed in
42588         $(gl_other_headers_) that do not exist, say because a project
42589         does not use a corresponding module.
42591 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42593         stat: use pathmax.h only if needed
42594         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
42595         This is better for Emacs, which does not have a mingw port and
42596         therefore can avoid the pathmax module.
42598         utimens: remove dependency on dup2
42599         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
42600         to work around the Linux kernel bug.
42601         * modules/utimens (Depends-on): Remove dup2.
42603 2011-09-18  Bruno Haible  <bruno@clisp.org>
42605         inet_ntop, inet_pton: Look for it also in libresolv.
42606         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
42607         libnsl, search for it in libresolv.
42608         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42609         Needed on Solaris 7.
42611 2011-09-18  Bruno Haible  <bruno@clisp.org>
42613         accept, accept4 tests: Avoid link error on Solaris.
42614         * modules/accept-tests (Makefile.am): Link test-accept against
42615         $(LIBSOCKET).
42616         * modules/accept4-tests (Makefile.am): Link test-accept4 against
42617         $(LIBSOCKET).
42619         accept4: Avoid link error on Solaris.
42620         * modules/accept4 (Link): New section.
42622         socket functions: Avoid link errors on Solaris.
42623         * modules/accept (Depends-on): Add socketlib.
42624         (Link): New section.
42625         * modules/bind (Depends-on): Add socketlib.
42626         (Link): New section.
42627         * modules/connect (Depends-on): Add socketlib.
42628         (Link): New section.
42629         * modules/getpeername (Depends-on): Add socketlib.
42630         (Link): New section.
42631         * modules/getsockname (Depends-on): Add socketlib.
42632         (Link): New section.
42633         * modules/getsockopt (Depends-on): Add socketlib.
42634         (Link): New section.
42635         * modules/listen (Depends-on): Add socketlib.
42636         (Link): New section.
42637         * modules/recv (Depends-on): Add socketlib.
42638         (Link): New section.
42639         * modules/recvfrom (Depends-on): Add socketlib.
42640         (Link): New section.
42641         * modules/send (Depends-on): Add socketlib.
42642         (Link): New section.
42643         * modules/sendto (Depends-on): Add socketlib.
42644         (Link): New section.
42645         * modules/setsockopt (Depends-on): Add socketlib.
42646         (Link): New section.
42647         * modules/shutdown (Depends-on): Add socketlib.
42648         (Link): New section.
42649         * modules/socket (Depends-on): Add socketlib.
42650         (Link): New section.
42652 2011-09-18  Bruno Haible  <bruno@clisp.org>
42654         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
42655         * tests/test-ptsname.c (main): Terminate the test if it takes longer
42656         than 5 seconds.
42657         * modules/ptsname-tests (configure.ac): Test for alarm.
42659 2011-09-18  Bruno Haible  <bruno@clisp.org>
42661         posix_spawn_file_actions_add*: Fix module dependencies.
42662         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
42663         posix_spawn_file_actions_init.
42664         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
42665         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
42667 2011-09-18  Bruno Haible  <bruno@clisp.org>
42669         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
42670         * tests/test-rename.h (test_rename): Allow error code EEXIST.
42671         * tests/test-renameat.c (main): Likewise.
42673 2011-09-18  Bruno Haible  <bruno@clisp.org>
42675         Tests for module 'accept4'.
42676         * modules/accept4-tests: New file.
42677         * tests/test-accept4.c: New file.
42679 2011-09-18  Bruno Haible  <bruno@clisp.org>
42681         Tests for module 'accept'.
42682         * modules/accept-tests: New file.
42683         * tests/test-accept.c: New file.
42685 2011-09-18  Bruno Haible  <bruno@clisp.org>
42687         dup2: Support for MSVC.
42688         * lib/dup2.c: Include msvc-inval.h.
42689         (rpl_dup2): Handle invalid parameter notifications during dup2 and
42690         _get_osfhandle calls.
42691         * modules/dup2 (Depends-on): Add msvc-inval.
42692         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
42694         New module 'msvc-inval'.
42695         * lib/msvc-inval.h: New file.
42696         * lib/msvc-inval.c: New file.
42697         * m4/msvc-inval.m4: New file.
42698         * modules/msvc-inval: New file.
42700 2011-09-17  Bruno Haible  <bruno@clisp.org>
42702         Tests for module 'pclose'.
42703         * modules/pclose-tests: New file.
42705         New module 'pclose'.
42706         * lib/stdio.in.h (pclose): New declaration.
42707         * lib/pclose.c: New file.
42708         * m4/pclose.m4: New file.
42709         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
42710         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
42711         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
42712         * modules/pclose: New file.
42713         * modules/popen-tests (Depends-on): Add pclose.
42714         * modules/popen-safer-tests (Depends-on): Likewise.
42715         * doc/posix-functions/pclose.texi: Mention the new module.
42717 2011-09-17  Bruno Haible  <bruno@clisp.org>
42719         popen: Support for MSVC.
42720         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
42721         * lib/popen.c (popen): Provide alternate definition for native Windows.
42722         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
42723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
42724         * modules/popen (Depends-on, configure.ac): Update condition.
42725         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
42726         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
42727         fixed.
42729 2011-09-17  Bruno Haible  <bruno@clisp.org>
42731         isnanl, isnand, isnanf: Work around MSVC bug.
42732         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
42734 2011-09-17  Bruno Haible  <bruno@clisp.org>
42736         sys_socket tests: Fix recent mistake.
42737         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
42739 2011-09-17  Bruno Haible  <bruno@clisp.org>
42741         putenv: Support for MSVC.
42742         * modules/putenv (Depends-on): Add environ.
42743         * lib/putenv.c (environ): Disable declaration.
42744         * lib/unistd.in.h: Update comment.
42746 2011-09-17  Bruno Haible  <bruno@clisp.org>
42748         math: Avoid macro redefinition warnings on MSVC.
42749         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
42750         Undefine before redefining.
42752 2011-09-17  Bruno Haible  <bruno@clisp.org>
42754         doc: Mention functions which are declared as macros.
42755         * doc/posix-functions/*[fl].texi: Mention that some functions are
42756         defined as macros with arguments only.
42758 2011-09-17  Bruno Haible  <bruno@clisp.org>
42760         Add dependencies to new dirent related modules.
42761         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
42762         * modules/fts (Depends-on): Likewise.
42763         * modules/glob (Depends-on): Likewise.
42764         * modules/savedir (Depends-on): Likewise.
42765         * modules/scandir (Depends-on): Likewise.
42766         * modules/dirent-safer (Depends-on): Add opendir, closedir.
42767         * modules/fdopendir (Depends-on): Add opendir.
42769 2011-09-17  Bruno Haible  <bruno@clisp.org>
42771         inet_pton: Support for MSVC on Windows Vista or newer.
42772         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
42773         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
42774         HAVE_DECL_INET_PTON is defined.
42775         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
42776         On platforms with <winsock2.h>, test whether inet_pton is declared in
42777         <ws2tcpip.h>. If so, arrange to replace it.
42778         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
42779         REPLACE_INET_PTON.
42780         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
42781         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
42782         (Depends-on, configure.ac): Update condition.
42783         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
42785 2011-09-17  Bruno Haible  <bruno@clisp.org>
42787         inet_ntop: Support for MSVC on Windows Vista or newer.
42788         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
42789         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
42790         HAVE_DECL_INET_NTOP is defined.
42791         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
42792         On platforms with <winsock2.h>, test whether inet_ntop is declared in
42793         <ws2tcpip.h>. If so, arrange to replace it.
42794         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
42795         REPLACE_INET_NTOP.
42796         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
42797         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
42798         (Depends-on, configure.ac): Update condition.
42799         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
42801 2011-09-16  Eric Blake  <eblake@redhat.com>
42803         test-fsync: yet another enhancement
42804         * tests/test-fsync.c (main): Also test behavior on read-only text
42805         file.
42807 2011-09-16  Bruno Haible  <bruno@clisp.org>
42809         Enhance fsync, fdatasync tests.
42810         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
42811         * tests/test-fdatasync.c (main): Likewise.
42813 2011-09-16  Bruno Haible  <bruno@clisp.org>
42815         Support for MSVC compiler: Ensure mode_t gets defined.
42816         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
42817         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42819         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
42820         * tests/test-fcntl-h.c: Check that mode_t is defined.
42821         * tests/test-sys_stat.c: Likewise.
42822         * tests/test-sys_types.c: Likewise.
42823         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
42824         * doc/posix-headers/sys_stat.texi: Likewise.
42825         * doc/posix-headers/sys_types.texi: Likewise.
42827 2011-09-16  Bruno Haible  <bruno@clisp.org>
42829         sys_stat: Support for MSVC.
42830         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
42831         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
42832         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
42833         MSVC.
42835 2011-09-16  Bruno Haible  <bruno@clisp.org>
42837         Support for MSVC compiler: Ensure off_t gets defined.
42838         * lib/unistd.in.h: Include <sys/types.h>.
42839         * tests/test-fcntl-h.c: Check that off_t is defined.
42840         * tests/test-sys_stat.c: Likewise.
42841         * tests/test-sys_types.c: Likewise.
42843 2011-09-16  Eric Blake  <eblake@redhat.com>
42845         fdatasync: port to Solaris
42846         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
42847         * modules/fdatasync (Link): Document it.
42848         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
42850         fdatasync: port to MacOS X 10.7
42851         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
42852         declared.
42853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
42854         * modules/unistd (Makefile.am): Substitute it.
42855         * lib/unistd.in.h (fdatasync): Declare on MacOS.
42856         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
42858         fdatasync: minor improvements
42859         * modules/fdatasync (Depends-on): Add condition for fsync.
42860         * lib/fdatasync.c (fdatasync): Add comment.
42861         * tests/test-unistd-c++.cc: Test fdatasync.
42863         unistd: update refs to newer POSIX
42864         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
42865         Suggested by Bruno Haible.
42867         fdatasync: new module
42868         * modules/fsync (Description): Document difference to fdatasync.
42869         * modules/fdatasync: New module.
42870         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
42871         * lib/fdatasync.c (fdatasync): Likewise.
42872         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
42873         defaults.
42874         * modules/unistd (Makefile.am): Set witnesses.
42875         * lib/unistd.in.h (fdatasync): Declare.
42876         * MODULES.html.sh: Document it.
42877         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
42878         * modules/fdatasync-tests: New test.
42879         * tests/test-fdatasync.c: Likewise.
42881 2011-09-16  Eric Blake  <eblake@redhat.com>
42883         test-fsync: enhance tests
42884         * modules/fsync-tests (Depends-on): Add errno, for mingw.
42885         * tests/test-fsync.c (main): Enhance test.
42887 2011-09-15  Bruno Haible  <bruno@clisp.org>
42889         Support for MSVC compiler: Ensure ssize_t gets defined.
42890         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
42891         * doc/posix-headers/stdio.texi: Likewise.
42892         * modules/stdio (Depends-on): Add ssize_t.
42893         * modules/sys_socket (Depends-on): Likewise.
42894         * modules/sys_types (Depends-on): Likewise.
42895         * modules/sys_uio (Depends-on): Likewise.
42896         * modules/unistd (Depends-on): Likewise.
42897         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
42898         * tests/test-sys_types.c: Check that ssize_t is defined.
42900 2011-09-14  Bruno Haible  <bruno@clisp.org>
42902         Avoid using #, the m4 comment starter character, near brackets.
42903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
42904         delimiter character in sed expressions.
42905         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42906         Suggested by Eric Blake.
42908         Properly quote AC_CHECK_DECLS' 4th argument.
42909         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
42910         argument.
42911         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
42912         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
42913         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42914         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
42915         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
42916         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
42917         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
42918         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
42919         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
42920         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42921         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
42922         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42923         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42924         * m4/isinf.m4 (gl_ISINF): Likewise.
42925         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42926         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42927         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42928         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42929         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42930         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
42931         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
42932         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
42933         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
42934         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
42935         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
42936         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
42937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
42938         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42940         Reported by Eric Blake.
42942         Properly quote AC_CHECK_DECL's 4th argument.
42943         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
42944         argument.
42945         * m4/argp.m4 (gl_ARGP): Likewise.
42946         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
42947         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
42948         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
42949         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
42950         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
42951         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
42952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
42953         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
42954         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42955         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
42956         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
42957         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
42958         Reported by Eric Blake.
42960 2011-09-14  Eric Blake  <eblake@redhat.com>
42962         opendir: avoid compile warning
42963         * lib/opendir.c (includes): Always include errno.h.
42964         Reported by Tatsuro MATSUOKA.
42966 2011-09-14  Jim Meyering  <meyering@redhat.com>
42968         maint.mk: sc_tight_scope: propagate failure from sub-make
42969         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
42970         Reported by Martin von Gagern.
42972 2011-09-13  Bruno Haible  <bruno@clisp.org>
42974         tempname: Support for MSVC.
42975         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
42976         MSVC.
42977         * modules/tempname (Depends-on): Add fcntl-h.
42979 2011-09-13  Bruno Haible  <bruno@clisp.org>
42981         sys_time: Support for MSVC.
42982         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
42983         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
42984         include <winsock2.h>.
42985         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
42986         function declarations that collide with POSIX.
42987         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
42988         (Makefile.am): Substitute HAVE_WINSOCK2_H.
42990 2011-09-13  Bruno Haible  <bruno@clisp.org>
42992         stat: Support for MSVC.
42993         * lib/stat.c: Include pathmax.h.
42994         * modules/stat (Depends-on): Add pathmax.
42996         pathmax: Support for native Windows.
42997         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
42999 2011-09-12  Bruno Haible  <bruno@clisp.org>
43001         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
43002         * lib/dirent.in.h (struct dirent): New type.
43003         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
43004         DT_WHT): New macros.
43005         (DIR): New type.
43006         (opendir, closedir): Declare only if the module 'opendir' is enabled.
43007         (readdir, rewinddir): New declarations.
43008         * lib/dirent-private.h: New file.
43009         * lib/opendir.c: New file.
43010         * lib/readdir.c: New file.
43011         * lib/rewinddir.c: New file.
43012         * lib/closedir.c: New file.
43013         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
43014         * m4/opendir.m4: New file.
43015         * m4/readdir.m4: New file.
43016         * m4/rewinddir.m4: New file.
43017         * m4/closedir.m4: New file.
43018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
43019         REPLACE_CLOSEDIR here.
43020         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
43021         readdir, rewinddir are declared.
43022         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
43023         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
43024         HAVE_REWINDDIR, HAVE_CLOSEDIR.
43025         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
43026         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
43027         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
43028         * modules/opendir: New file.
43029         * modules/readdir: New file.
43030         * modules/rewinddir: New file.
43031         * modules/closedir: New file.
43032         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
43033         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
43034         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
43035         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
43036         * NEWS: Mention the 'fchdir' change.
43038 2011-09-11  Bruno Haible  <bruno@clisp.org>
43040         asm-underscore.m4: Support for MSVC.
43041         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
43042         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
43044 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
43046         Doc about crypt functions.
43047         * doc/posix-functions/crypt.texi: Expand range of glibc versions
43048         needing for _GNU_SOURCE to get crypt.
43049         * doc/posix-functions/encrypt.texi: Likewise.
43050         * doc/posix-functions/setkey.texi: Likewise.
43052 2011-09-11  Bruno Haible  <bruno@clisp.org>
43054         doc: Update regarding MSVC 9.
43055         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
43056         tested".
43057         * doc/posix-functions/*.texi: Update with info about MSVC 9.
43058         * doc/posix-headers/*.texi: Likewise.
43059         * doc/pastposix-functions/*.texi: Likewise.
43060         * doc/glibc-functions/*.texi: Likewise.
43061         * doc/glibc-headers/*.texi: Likewise.
43063 2011-09-11  Bruno Haible  <bruno@clisp.org>
43065         unistd et al.: Don't assume <unistd.h> exists.
43066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
43067         does not exist.
43068         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
43069         exist. But include <stdlib.h>.
43070         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
43071         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
43072         symlink() does not exist.
43073         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
43074         include <io.h> instead.
43075         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
43076         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
43077         include <direct.h> instead.
43078         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
43079         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43080         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
43081         <io.h> instead.
43082         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
43083         correctly if the system does not have hard links.
43084         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
43085         <direct.h> instead.
43086         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
43087         it when looking for function declarations.
43088         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
43089         <direct.h> and <io.h> instead.
43090         * doc/posix-headers/unistd.texi: More details about MSVC problem.
43092 2011-09-11  Bruno Haible  <bruno@clisp.org>
43094         strcase: Support for MSVC.
43095         * modules/strcase (Status, Notice): Remove obsoletion mark.
43096         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
43097         * doc/posix-functions/strncasecmp.texi: Likewise.
43099         strings: Don't assume <strings.h> exists.
43100         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
43101         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
43102         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
43103         * doc/posix-headers/strings.texi: Mention the MSVC problem.
43105 2011-09-11  Bruno Haible  <bruno@clisp.org>
43107         dirent: Don't assume <dirent.h> exists.
43108         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
43109         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
43110         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
43111         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
43113 2011-09-11  Bruno Haible  <bruno@clisp.org>
43115         Fix wint_t on MSVC.
43116         * lib/wchar.in.h (wint_t): On MSVC, override it.
43117         * lib/wctype.in.h (wint_t): Likewise.
43118         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
43119         MSVC.
43120         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
43121         * doc/posix-headers/wctype.texi: Likewise.
43123 2011-09-11  Bruno Haible  <bruno@clisp.org>
43125         sys_types: Fix typo.
43126         * lib/sys_types.in.h: Fix typo in comment.
43127         Reported by Paul Eggert.
43129         Support for MSVC compiler: Ensure size_t gets defined.
43130         * modules/strings (Depends-on): Add 'sys_types'.
43131         * modules/sys_uio (Depends-on): Likewise.
43132         * lib/sys_uio.in.h: Update comment.
43134         C++ tests for module 'sys_types'.
43135         * modules/sys_types-c++-tests: New file.
43136         * tests/test-sys_types-c++.cc: New file.
43138         Tests for module 'sys_types'.
43139         * modules/sys_types-tests: New file.
43140         * tests/test-sys_types.c: New file.
43142         New module 'sys_types'.
43143         * lib/sys_types.in.h: New file.
43144         * m4/sys_types_h.m4: New file.
43145         * modules/sys_types: New file.
43146         * doc/posix-headers/sys_types.texi: Mention the new module and the
43147         size_t problem on MSVC 9.
43149 2011-09-11  Bruno Haible  <bruno@clisp.org>
43151         Support for MSVC compiler: Avoid division by a literal 0.
43152         * lib/math.in.h (NAN): Define through a function call also on MSVC.
43153         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
43154         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
43155         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
43156         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
43157         * tests/infinity.h: New file.
43158         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
43159         on MSVC.
43160         * tests/test-ceilf1.c: Include infinity.h.
43161         (main): Use Infinityf.
43162         * tests/test-ceil1.c: Include infinity.h.
43163         (main): Use Infinityd.
43164         * tests/test-ceill.c: Include infinity.h.
43165         (main): Use Infinityl.
43166         * tests/test-dprintf-posix.c: Include infinity.h.
43167         (test_function): Use Infinityd.
43168         * tests/test-floorf1.c: Include infinity.h.
43169         (main): Use Infinityf.
43170         * tests/test-floor1.c: Include infinity.h.
43171         (main): Use Infinityd.
43172         * tests/test-floorl.c: Include infinity.h.
43173         (main): Use Infinityl.
43174         * tests/test-fprintf-posix.c: Include infinity.h.
43175         (test_function): Use Infinityd.
43176         * tests/test-frexp.c: Include infinity.h.
43177         (main): Use Infinityd.
43178         * tests/test-frexpl.c: Include infinity.h.
43179         (main): Use Infinityl.
43180         * tests/test-isfinite.c: Include infinity.h.
43181         (test_isfinitef): Use Infinityf.
43182         (test_isfinited): Use Infinityd.
43183         (test_isfinitel): Use Infinityl.
43184         * tests/test-isinf.c: Include infinity.h.
43185         (test_isinff): Use Infinityf.
43186         (test_isinfd): Use Infinityd.
43187         (test_isinfl): Use Infinityl.
43188         * tests/test-isnan.c: Include infinity.h.
43189         (test_float): Use Infinityf.
43190         (test_double): Use Infinityd.
43191         (test_long_double): Use Infinityl.
43192         * tests/test-isnanf.h: Include infinity.h.
43193         (main): Use Infinityf.
43194         * tests/test-isnand.h: Include infinity.h.
43195         (main): Use Infinityd.
43196         * tests/test-isnanl.h: Include infinity.h.
43197         (main): Use Infinityl.
43198         * tests/test-ldexpl.c: Include infinity.h.
43199         (main): Use Infinityl.
43200         * tests/test-printf-posix.h: Include infinity.h.
43201         (test_function): Use Infinityd.
43202         * tests/test-roundf1.c: Include infinity.h.
43203         (main): Use Infinityf.
43204         * tests/test-round1.c: Include infinity.h.
43205         (main): Use Infinityd.
43206         * tests/test-roundl.c: Include infinity.h.
43207         (main): Use Infinityl.
43208         * tests/test-signbit.c: Include infinity.h.
43209         (test_signbitf): Use Infinityf.
43210         (test_signbitd): Use Infinityd.
43211         (test_signbitl): Use Infinityl.
43212         * tests/test-snprintf-posix.h: Include infinity.h.
43213         (test_function): Use Infinityd, Infinityl.
43214         * tests/test-sprintf-posix.h: Include infinity.h.
43215         (test_function): Use Infinityd, Infinityl.
43216         * tests/test-truncf1.c: Include infinity.h.
43217         (main): Use Infinityf.
43218         * tests/test-trunc1.c: Include infinity.h.
43219         (main): Use Infinityd.
43220         * tests/test-truncl.c: Include infinity.h.
43221         (main): Use Infinityl.
43222         * tests/test-vasnprintf-posix.c: Include infinity.h.
43223         (test_function): Use Infinityd, Infinityl.
43224         * tests/test-vasprintf-posix.c: Include infinity.h.
43225         (test_function): Use Infinityd, Infinityl.
43226         * modules/ceilf-tests (Files): Add tests/infinity.h.
43227         * modules/ceil-tests (Files): Likewise.
43228         * modules/ceill-tests (Files): Likewise.
43229         * modules/dprintf-posix-tests (Files): Likewise.
43230         * modules/floorf-tests (Files): Likewise.
43231         * modules/floor-tests (Files): Likewise.
43232         * modules/floorl-tests (Files): Likewise.
43233         * modules/fprintf-posix-tests (Files): Likewise.
43234         * modules/frexp-tests (Files): Likewise.
43235         * modules/frexp-nolibm-tests (Files): Likewise.
43236         * modules/frexpl-tests (Files): Likewise.
43237         * modules/frexpl-nolibm-tests (Files): Likewise.
43238         * modules/isfinite-tests (Files): Likewise.
43239         * modules/isinf-tests (Files): Likewise.
43240         * modules/isnan-tests (Files): Likewise.
43241         * modules/isnanf-tests (Files): Likewise.
43242         * modules/isnanf-nolibm-tests (Files): Likewise.
43243         * modules/isnand-tests (Files): Likewise.
43244         * modules/isnand-nolibm-tests (Files): Likewise.
43245         * modules/isnanl-tests (Files): Likewise.
43246         * modules/isnanl-nolibm-tests (Files): Likewise.
43247         * modules/ldexpl-tests (Files): Likewise.
43248         * modules/printf-posix-tests (Files): Likewise.
43249         * modules/roundf-tests (Files): Likewise.
43250         * modules/round-tests (Files): Likewise.
43251         * modules/roundl-tests (Files): Likewise.
43252         * modules/signbit-tests (Files): Likewise.
43253         * modules/snprintf-posix-tests (Files): Likewise.
43254         * modules/sprintf-posix-tests (Files): Likewise.
43255         * modules/truncf-tests (Files): Likewise.
43256         * modules/trunc-tests (Files): Likewise.
43257         * modules/truncl-tests (Files): Likewise.
43258         * modules/vasnprintf-posix-tests (Files): Likewise.
43259         * modules/vasprintf-posix-tests (Files): Likewise.
43260         * modules/vdprintf-posix-tests (Files): Likewise.
43261         * modules/vfprintf-posix-tests (Files): Likewise.
43262         * modules/vprintf-posix-tests (Files): Likewise.
43263         * modules/vsnprintf-posix-tests (Files): Likewise.
43264         * modules/vsprintf-posix-tests (Files): Likewise.
43265         * modules/xprintf-posix-tests (Files): Likewise.
43267 2011-09-11  Bruno Haible  <bruno@clisp.org>
43269         Ensure pid_t gets defined.
43270         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
43271         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
43272         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
43273         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43274         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
43275         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
43276         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
43277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43278         * tests/test-fcntl-h.c: Check that pid_t is defined.
43279         * tests/test-sched.c: Likewise.
43280         * tests/test-termios.c: Likewise.
43281         * tests/test-time.c: Likewise.
43282         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
43283         * doc/posix-headers/signal.texi: Likewise.
43284         * doc/posix-headers/sys_types.texi: Likewise.
43285         * doc/posix-headers/time.texi: Likewise.
43287 2011-09-11  Bruno Haible  <bruno@clisp.org>
43289         acl: Fix compilation on Solaris 10 (older version).
43290         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
43291         of ACE_EVERYONE.
43292         * lib/set-mode-acl.c (qset_acl): Likewise.
43293         Reported by Christian Jullien <eligis@orange.fr>.
43295 2011-09-10  Bruno Haible  <bruno@clisp.org>
43297         iconv, unsetenv: Add support for MSVC compiler.
43298         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
43299         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
43301 2011-09-10  Bruno Haible  <bruno@clisp.org>
43303         *printf: Add support for MSVC compiler.
43304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
43305         handles the exception caused by the %n directive. When cross-compiling,
43306         guess no on native Windows.
43307         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
43308         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
43309         emulate it through vsnprintf.
43310         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
43311         * doc/posix-functions/dprintf.texi: Update documentation regarding
43312         MSVC 9.
43313         * doc/posix-functions/fprintf.texi: Likewise.
43314         * doc/posix-functions/printf.texi: Likewise.
43315         * doc/posix-functions/snprintf.texi: Likewise.
43316         * doc/posix-functions/sprintf.texi: Likewise.
43317         * doc/posix-functions/swprintf.texi: Likewise.
43318         * doc/posix-functions/vdprintf.texi: Likewise.
43319         * doc/posix-functions/vfprintf.texi: Likewise.
43320         * doc/posix-functions/vprintf.texi: Likewise.
43321         * doc/posix-functions/vsnprintf.texi: Likewise.
43322         * doc/posix-functions/vsprintf.texi: Likewise.
43323         * doc/glibc-functions/asprintf.texi: Likewise.
43324         * doc/glibc-functions/obstack_printf.texi: Likewise.
43325         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43326         * doc/glibc-functions/vasprintf.texi: Likewise.
43328 2011-09-10  Bruno Haible  <bruno@clisp.org>
43330         nocrash: Add support for native Windows.
43331         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
43333 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
43334             Bruno Haible  <bruno@clisp.org>
43336         absolute-header, include-next: Add support for MSVC compiler.
43337         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
43338         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
43339         directory separator in #line directives.
43340         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
43341         recognize also backslash as directory separator in #line directives.
43343 2011-09-08  Jim Meyering  <meyering@redhat.com>
43345         maint.mk: mark the post-release commit log with "maint: " prefix
43346         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
43347         one-line commit-log summary.
43349 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
43350             Bruno Haible  <bruno@clisp.org>
43352         Doc about crypt functions.
43353         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
43354         systems.
43355         * doc/posix-functions/encrypt.texi: Likewise.
43356         * doc/posix-functions/setkey.texi: Likewise.
43358 2011-09-08  Simon Josefsson  <simon@josefsson.org>
43360         * lib/gc.h: Fix copyright header.
43362 2011-09-07  Bruno Haible  <bruno@clisp.org>
43364         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
43365         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
43366         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
43368 2011-09-07  Bruno Haible  <bruno@clisp.org>
43370         openat: Work around compilation error with OSF/1 5.1 DTK cc.
43371         * lib/fopen.c: Use different syntax for include of <stdio.h>.
43372         * lib/freopen.c: Likewise.
43373         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
43374         * lib/lstat.c: Likewise.
43375         * lib/stat.c: Likewise.
43376         * lib/open.c: Use different syntax for include of <fcntl.h>.
43377         * lib/openat.c: Include fcntl.h again, explicitly.
43379 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
43381         parse-datetime: document the newly accepted format
43382         * doc/parse-datetime.texi (Combined date and time of day items):
43383         New section.
43385 2011-09-06  Bruno Haible  <bruno@clisp.org>
43387         acl: Fix a test failure on newer Solaris 10 with ZFS.
43388         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
43389         ENOSYS as no ACL.
43390         Reported by Jim Meyering.
43392 2011-09-06  Bruno Haible  <bruno@clisp.org>
43394         acl: Update for AIX >= 5.3 with NFS.
43395         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
43396         ENOSYS as no ACL.
43398         acl: Fix a test failure on AIX >= 5.3 with NFS.
43399         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
43400         as no ACL.
43402 2011-09-06  Bruno Haible  <bruno@clisp.org>
43404         acl: Fix a test failure on IRIX 6.5 with NFS.
43405         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
43406         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
43407         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
43408         * lib/copy-acl.c (qcopy_acl): Likewise.
43410 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
43412         openat: port to AIX 7.1 with large files
43413         AIX 7.1 does a "#define openat open64at" if large files are in use,
43414         so we can't simply #undef openat.  Use the orig_openat trick (similar
43415         to orig_open in lib/open.c) to work around the problem.  Problem
43416         reported by Kevin Brott for GNU tar, in the thread containing
43417         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
43418         * lib/openat.c (__need_system_fcntl_h): Define first.
43419         Include <fcntl.h> and <sys/types.h> before undefining.
43420         (orig_openat) [HAVE_OPENAT]: New inline function.
43421         (openat) [HAVE_OPENAT]: Do not undef.
43422         (rpl_openat): Use orig_openat, not openat.
43424 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
43425             Bruno Haible  <bruno@clisp.org>
43427         acl: Avoid errors on NonStop Kernel.
43428         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
43429         ENOTSUP errors.
43431 2011-09-05  Bruno Haible  <bruno@clisp.org>
43433         acl: Clean up Solaris code.
43434         * lib/acl-internal.h: Remove no-op #if.
43435         * lib/file-has-acl.c: Likewise.
43436         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
43437         * lib/copy-acl.c (qcopy_acl): Likewise.
43439 2011-09-05  Bruno Haible  <bruno@clisp.org>
43441         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
43442         binaries built on the original Solaris 10.
43443         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
43444         trivial.
43446 2011-09-05  Bruno Haible  <bruno@clisp.org>
43448         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
43449         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
43450         10.
43451         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
43452         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
43453         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
43454         instead of acl_get, facl_get, acl_set, facl_set.
43456 2011-09-05  Bruno Haible  <bruno@clisp.org>
43458         copy-file: Try unit tests on more file systems.
43459         * tests/test-copy-file-1.sh: New file.
43460         * tests/test-copy-file-2.sh: New file.
43461         * modules/copy-file-tests (Files): Add them.
43462         (Makefile.am): Add them to TESTS.
43464         acl: Try unit tests on more file systems.
43465         * tests/test-file-has-acl-1.sh: New file.
43466         * tests/test-file-has-acl-2.sh: New file.
43467         * tests/test-set-mode-acl-1.sh: New file.
43468         * tests/test-set-mode-acl-2.sh: New file.
43469         * tests/test-copy-acl-1.sh: New file.
43470         * tests/test-copy-acl-2.sh: New file.
43471         * modules/acl-tests (Files): Add them.
43472         (Makefile.am): Add them to TESTS.
43474 2011-09-04  Bruno Haible  <bruno@clisp.org>
43476         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
43477         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
43478         10.
43479         (OLD_ALLOW, OLD_DENY): New macros.
43480         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
43481         ACE_ACCESS_ALLOWED_ACE_TYPE.
43482         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
43483         ACE_ACCESS_DENIED_ACE_TYPE.
43484         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
43485         (NEW_ACE_EXECUTE): Fix value.
43486         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
43487         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
43488         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
43489         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
43490         NEW_ACE_SYNCHRONIZE): New macros.
43491         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
43492         instead of acl_fromtext, acl_set, facl_set.
43493         Fixes a coreutils/tests/cp/perm failure.
43495 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
43497         openat: test for fstatat (..., 0) bug
43498         Further testing with tar suggests that fstatat (..., 0)
43499         does not work in general, on AIX 7.1; see
43500         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
43501         So, give up entirely on AIX 7.1's fstatat, and fall back on our
43502         replacement fstatat (which is what older AIX releases were using
43503         anyway).
43504         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
43505         use is now changed to orig_fstatat.  This was probably the right
43506         thing to do anyway.
43507         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
43508         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
43509         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
43510         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
43511         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
43512         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
43513         if the bug is found.
43515         openat: test for fstatat (AT_FDCWD, ..., 0) bug
43516         This tests for another fstatat bug on AIX 7.1:
43517         fstatat (AT_FDCWD, ..., 0) does not work.  See
43518         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
43519         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
43520         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
43521         (rpl_fstatat): Adjust so that it works around either (or both)
43522         bugs if present.
43523         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
43525 2011-09-03  Karl Berry  <karl@gnu.org>
43527         * doc/regex.texi (Character Class Operators): Avoid literal ":"
43528         in index entries.
43530 2011-09-02  Bruno Haible  <bruno@clisp.org>
43532         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
43533         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
43534         values of AR, ARFLAGS, RANLIB.
43535         Reported by John W. Eaton <jwe@gnu.org> for Octave.
43537 2011-09-02  Bruno Haible  <bruno@clisp.org>
43539         Find 'ar' program that fits with --host argument.
43540         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
43542 2011-09-02  Bruno Haible  <bruno@clisp.org>
43544         tests: init.sh: Support any non-GNU diff.
43545         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
43546         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
43547         Solaris 8.
43549 2011-09-02  Bruno Haible  <bruno@clisp.org>
43551         tests: init.sh: work also with any non-GNU diff that supports -u
43552         * tests/init.sh: Relax check for diff -u support.
43553         Rather than checking for GNU diff via --version, simply check
43554         for support for -u itself.  Useful at least on OpenBSD 4.9,
43555         AIX 7.1, IRIX 6.5, and Solaris 10.
43557 2011-09-01  Bruno Haible  <bruno@clisp.org>
43559         strtoimax, strtoumax: Document problem on HP-UX 11.
43560         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
43561         * doc/posix-functions/strtoumax.texi: Likewise.
43563 2011-09-01  Bruno Haible  <bruno@clisp.org>
43565         strtoumax: Avoid link error on OSF/1 with DTK cc.
43566         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
43567         defined as a function.
43568         * modules/strtoumax (Depends-on, configure.ac): Test only whether
43569         strtoumax is defined, not whether it is declared.
43571 2011-09-01  Bruno Haible  <bruno@clisp.org>
43573         strtoimax: Avoid link error on OSF/1 with DTK cc.
43574         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
43575         defined as a function.
43576         * modules/strtoimax (Depends-on, configure.ac): Test only whether
43577         strtoimax is defined, not whether it is declared.
43579 2011-09-01  Bruno Haible  <bruno@clisp.org>
43581         imaxdiv: Avoid link error on OSF/1 with DTK cc.
43582         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
43583         as a function.
43584         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
43585         whether it is declared.
43587 2011-09-01  Bruno Haible  <bruno@clisp.org>
43589         imaxabs: Avoid link error on OSF/1 with DTK cc.
43590         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
43591         as a function.
43592         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
43593         whether it is declared.
43595 2011-09-01  Bruno Haible  <bruno@clisp.org>
43597         Tests for module 'strtoumax'.
43598         * modules/strtoumax-tests: New file.
43599         * tests/test-strtoumax.c: New file.
43601         Tests for module 'strtoimax'.
43602         * modules/strtoimax-tests: New file.
43603         * tests/test-strtoimax.c: New file.
43605         Tests for module 'imaxdiv'.
43606         * modules/imaxdiv-tests: New file.
43607         * tests/test-imaxdiv.c: New file.
43609         Tests for module 'imaxabs'.
43610         * modules/imaxabs-tests: New file.
43611         * tests/test-imaxabs.c: New file.
43613 2011-09-01  Bruno Haible  <bruno@clisp.org>
43615         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
43616         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
43617         pthread_create.
43619 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43621         openat: work around AIX 7.1 fstatat issue
43622         This should fix the problem that was not properly fixed
43623         in the previous change, dated 2011-08-30.
43624         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
43625         __need_system_stat_h defined.
43626         (orig_fstatat) [HAVE_FSTATAT]: New function.
43627         (rpl_fstatat): Go back to the old way of doing things,
43628         except call orig_fstatat instead of fstatat.
43629         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
43630         Remove unnecessary check whether fstatat fills in st_size etc.
43632 2011-09-01  Bruno Haible  <bruno@clisp.org>
43634         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
43635         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
43636         just include the system's header.
43638 2011-08-31  Jim Meyering  <meyering@redhat.com>
43640         tests: avoid spurious assertion failure in test-float.c on ppc64
43641         * tests/test-float.c (test_long_double): Comment out an assertion,
43642         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
43643         with gcc-4.4.4.
43645         maint: indent with spaces, not TABs
43646         I need to get in the habit of running gnulib's "make check".
43647         Both of these would have been caught.
43648         * m4/largefile.m4: Indent with spaces, not TABs.
43649         * lib/parse-datetime.y (iso_8601_time): Likewise.
43650         Spotted by Pádraig Brady.
43652         test-parse-datetime.c: accommodate a relatively strict gcc warning
43653         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
43654         to avoid a warning from gcc's -Werror=missing-declarations.
43655         Insert a few spaces-before-funcall-parenthesis.
43657 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
43659         parse-datetime: accept ISO 8601 date and time rep with "T" separator
43660         The parser now accepts ISO 8601 date-time strings with "T" as the
43661         separator.  It has long parsed dates like "2004-02-29 16:21:42"
43662         with a space between the date and time strings.  Now it also parses
43663         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
43664         variants like "2004-02-29T16:21:42.333-07:00"
43665         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
43666         of day representation using the 'T' separator character.
43667         * doc/parse-datetime.texi (General date syntax): replace use of
43668         deprecated --iso-8601 option with --rfc-3339 in example of date
43669         command output formats that can be parsed.
43670         * tests/test-parse-datetime.c (tm_diff): New function, taken from
43671         lib/parse-datetime.y.
43672         (gmt_offset): New function.
43673         (main): Add additional test cases to validate ISO8601 extended
43674         date and time of day parsing.
43676 2011-08-31  Bruno Haible  <bruno@clisp.org>
43678         freopen: Documentation.
43679         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
43680         name.
43681         Reported by Claudio Bley <claudio.bley@gmail.com>.
43683 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
43685         freopen: Don't crash if the filename argument is NULL.
43686         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
43687         NULL.
43689 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43691         openat: work around AIX 7.1 fstatat bug
43692         Problem reported by Kevin Brott for GNU tar, in the thread containing
43693         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
43694         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
43695         FSTATAT_ST_SIZE_ETC_BROKEN.
43696         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
43697         rpl_fstatat.
43698         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
43699         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
43700         AC_CHECK_FUNCS_ONCE for fstatat.
43701         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
43702         fchmodat, mkdirat, openat and unlinkat.
43704 2011-08-30  Bruno Haible  <bruno@clisp.org>
43706         Avoid endless recursions if config.h includes some header files.
43707         * lib/fopen.c (__need_FILE): Define already before including config.h.
43708         * lib/freopen.c (__need_FILE): Likewise.
43709         * lib/open.c (__need_system_fcntl_h): Likewise.
43710         * lib/stat.c (__need_system_sys_stat_h): Likewise.
43711         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
43712         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43714 2011-08-25  Karl Berry  <karl@gnu.org>
43716         * config/srclist.txt (ylwrap): new try.
43717         * build-aux/ylwrap: new file.
43719 2011-08-23  Bruno Haible  <bruno@clisp.org>
43721         tmpdir: Use a good default directory on native Windows.
43722         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
43723         (P_tmpdir): Default to _P_tmpdir on native Windows.
43724         (path_search): On native Windows, try the value returned by GetTempPath
43725         before trying P_tmpdir.
43726         * modules/tmpdir (Depends-on): Add pathmax.
43727         Suggested by John Darrington <john@darrington.wattle.id.au>.
43729 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
43731         doc: fix typo in README-release
43732         * top/README-release: Capitalize first word of a sentence.
43734 2011-08-19  Jim Meyering  <meyering@redhat.com>
43736         fts: do not exhaust memory when processing million-entry directories
43737         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
43738         directory would require about 256*N bytes of memory.  Thus, it was
43739         easy to construct a directory too large to be processed by any of
43740         those tools.  With this change, fts' maximum memory utilization is
43741         now limited to around 30MB.
43742         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
43743         (fts_read): When we've processed the final entry (i.e., when
43744         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
43745         using the parent entry to read any remaining entries.  Dispatch
43746         depending on what fts_build returns:
43747         - NULL+stop, aka failure: stop
43748         - NULL otherwise: move up in the dir hierarchy
43749         - non-NULL: handle this new entry
43750         (fts_build): Declare and use new local, continue_readdir.
43751         Prepare to be called from fts_read, when the entries
43752         from a partially-read directory have just been exhausted.
43753         In that case, we'll skip the opendir and instead use the parent's
43754         fts_dirp and derive dir_fd from that.
43755         Finally, in the readdir loop, if we read max_entries entries,
43756         exit the loop ensuring *not* to call closedir.  This is required
43757         so that fts_dirp can be reused on a subsequent call.
43758         Prompted by Ben England's report of memory exhaustion in find
43759         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
43761         maint: fts: move decl of `dp' down into while loop; split a long line
43762         * lib/fts.c (fts_build): No semantic change.
43764         fts: add/use new struct member, fts_dirp
43765         We are about to use this to manage any directory with
43766         too many entries to read all of them into memory at once.
43767         To do that, we'll need to save the DIR* pointer in each
43768         affected FTSENT struct.
43769         * lib/fts_.h: Include <dirent.h>.
43770         (struct FTSENT) [fts_dirp]: New member.
43771         * lib/fts.c (closedir_and_clear): Define.
43772         Use it in place of closedir so that we are sure to
43773         clear the new fts_dirp member when done with it.
43774         (fts_alloc): Initialize the new member.
43775         (fts_lfree): Free, if needed.
43777         maint: fts: give __opendir2 a new parameter and rename
43778         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
43779         than surreptitiously using sole caller's "dir_fd".
43780         (fts_opendir): Rename from __opendir2.
43782         maint: fts.c: remove __opendir2's now-unused parameter, oflag
43783         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
43785         maint: fts.c: correct off-by-one indentation
43786         * lib/fts.c (fts_build): Correct indentation, change style
43787         of a couple of block comments, and bracing style.
43789         maint: fts.c: move __opendir2 #define "up" out of function body
43790         * lib/fts.c (__opendir2): Move "up".  No semantic change.
43792         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
43793         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
43794         out for a long time and besides was useful only on BSD systems.
43796 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43798         regex: port to Stratus OpenVOS
43799         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
43800         define to empty, rather than attempting nonportable optimizations.
43801         Problem reported by Paul Green in:
43802         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
43803         and fix suggested by Eric Blake in:
43804         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
43806 2011-08-17  Eric Blake  <eblake@redhat.com>
43808         getcwd: fix test failures on mingw
43809         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
43810         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
43811         test if long directory cannot be created, and allow mingw errno.
43813         getcwd-lgpl: fix m4 to match relaxed test for BSD
43814         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
43815         (gl_FUNC_GETCWD_SIGNATURE): New macro.
43816         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
43817         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
43818         signature problem.
43820         getcwd: fix compilation on mingw64
43821         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
43822         getcwd.
43823         Reported by Marc-André Lureau.
43825         pipe2: silence compiler warning
43826         * lib/pipe2.c (pipe2): Hide label if it is not used.
43828 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
43830         relocatable-prog: fix link error
43831         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
43832         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
43833         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
43834         into modules/relocatable-lib without noticing that
43835         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
43836         also needs to build relocatable.c.
43838 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43840         getaddrinfo: fix sh typo in gai_strerrorA decl checking
43841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
43842         shell code: it contained a 'break' that was not in a loop.
43843         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
43844         via a shell-language loop; this may have been true in old Autoconf
43845         versions, but it's not true in Autoconf 2.68.  I found this bug
43846         when testing coreutils git on Solaris 8, whose shell complains
43847         about the syntax error.
43849 2011-08-12  Simon Josefsson  <simon@josefsson.org>
43851         * lib/base64.c: Fix comment to reference RFC 4648.
43852         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
43853         <gvtulder@gmail.com>.
43855 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43857         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
43859         po/Makefile.in.in: fix make -q problem
43860         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
43861         rule, since there's no file named 'check-macro-version' and its
43862         use as a file breaks make -q.
43863         (all): Don't depend on check-macro-version.
43864         (CHECK_MACRO_VERSION): New macro.
43865         (stamp-po): Use it.
43867         configmake: fix make -q problem
43868         * modules/configmake (configmake.h): Update configmake.h's time stamp
43869         even if the file does not change.  Otherwise, 'make -q' fails.
43870         Problem reported by Simon Josefsson in
43871         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
43873 2011-08-11  Jim Meyering  <meyering@redhat.com>
43875         git-version-gen: correct the advice in a comment
43876         * build-aux/git-version-gen: Correct comment.
43877         Don't recommend to list .tarball-version in .gitignore.
43879 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43881         base64: fix off-by-one buffer size bug
43882         Problem and (trivial) fix reported by Gijs van Tulder in
43883         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
43884         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
43885         * tests/test-base64.c (main): Catch the bug.
43887 2011-08-10  Eric Blake  <eblake@redhat.com>
43889         closein: correct comments
43890         * lib/closein.c (close_stdin): Improve comments.
43892 2011-08-09  Bruno Haible  <bruno@clisp.org>
43894         More tests for 'fseeko'.
43895         * tests/test-fseeko3.c: New file, from Eric Blake.
43896         * tests/test-fseeko3.sh: New file.
43897         * modules/fseeko-tests (Files): Add them.
43898         (TESTS): Add test-fseeko3.sh.
43899         (check_PROGRAMS): Add test-fseeko3.
43901 2011-08-09  Eric Blake  <eblake@redhat.com>
43903         fseeko: remove unneeded hack
43904         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
43906         fseeko: fix bug on glibc
43907         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
43908         Reported by John W. Eaton.
43910 2011-08-08  Bruno Haible  <bruno@clisp.org>
43912         unictype/base: Fix interoperability with preinstalled libunistring.
43913         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
43914         Reported by Simon Josefsson.
43916 2011-08-08  Bruno Haible  <bruno@clisp.org>
43918         iswblank: Detect declaration correctly.
43919         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
43920         AC_CHECK_DECLS invocation.
43922 2011-08-08  Bruno Haible  <bruno@clisp.org>
43924         tcgetsid: Detect declaration correctly.
43925         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
43926         AC_CHECK_DECLS invocation.
43927         Reported by Simon Josefsson.
43929 2011-08-08  Eric Blake  <eblake@redhat.com>
43931         largefile: fix typo that regressed large file support
43932         * modules/largefile (configure.ac-early): Fix section name.
43934 2011-08-06  Karl Berry  <karl@gnu.org>
43936         * MODULES.html.sh (func_all_files): _Noreturn is no longer
43937         a separate module.
43939 2011-08-05  Simon Josefsson  <simon@josefsson.org>
43941         openat: Fix warnings and commens when building unlinkat.c on Hurd.
43942         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
43943         get prototype for free.
43945 2011-08-04  Bruno Haible  <bruno@clisp.org>
43947         Tests for module 'pathmax'.
43948         * modules/pathmax-tests: New file.
43949         * tests/test-pathmax.c: New file.
43951         canonicalize-lgpl: Support larger filenames on the Hurd.
43952         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
43953         Reported by Paul Eggert.
43955         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
43956         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
43957         * lib/chdir-long.h: Include pathmax.h.
43958         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
43959         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
43960         (PATH_MAX): Remove code that is done by pathmax.h.
43961         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
43962         * lib/tmpfile.c: Add a comment.
43963         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
43964         * modules/chdir-long (Depends-on): Add pathmax.
43965         * modules/getcwd (Depends-on): Add pathmax.
43966         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
43967         is not defined.
43968         * doc/posix-headers/limits.texi: Mention the pathmax module.
43969         * NEWS: Mention the change.
43971 2011-08-02  Bruno Haible  <bruno@clisp.org>
43973         pthread_sigmask: Actually use results of gl_THREADLIB.
43974         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
43975         gl_THREADLIB, not gl_[]THREADLIB.
43976         Reported by Eric Blake.
43978 2011-08-02  Jim Meyering  <meyering@redhat.com>
43980         maint.mk: relax the default _gl_TS_function_match regexp
43981         * top/maint.mk (_gl_TS_function_match): Don't require at least one
43982         space between function name and "(" in an "extern" declaration.
43983         That would fail to match a decl with no space there: extern void foo();
43985 2011-07-31  Iain Nicol  <iain@thenicols.net>
43987         git-version-gen: document that EXTRA_DIST must include .version
43988         * build-aux/git-version-gen: In the how-to-use comment, document
43989         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
43990         will fail when run from an unpacked distribution tarball.
43992 2011-08-01  Bruno Haible  <bruno@clisp.org>
43994         wctype-h: Fix last change.
43995         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
43996         REPLACE_TOWLOWER to 0.
43997         Reported by Sam Steingold <sds@gnu.org>.
43999 2011-07-31  Bruno Haible  <bruno@clisp.org>
44001         frexpl: Update autoconf test.
44002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
44003         according to changes of 2011-06-20.
44005 2011-07-31  Bruno Haible  <bruno@clisp.org>
44007         sys_utsname: Add support for Minix.
44008         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
44009         <sys/utsname.h>.
44010         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44011         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
44013 2011-07-31  Bruno Haible  <bruno@clisp.org>
44015         strings: Add support for Minix.
44016         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
44017         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
44018         * doc/posix-headers/strings.texi: Document the Minix problem.
44020 2011-07-31  Bruno Haible  <bruno@clisp.org>
44022         wctype-h: Add support for Minix.
44023         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
44024         REPLACE_TOWLOWER.
44025         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
44026         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
44027         REPLACE_ISWCNTRL.
44029 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
44031         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
44032         This is a performance improvement for 64-bit hosts: it causes the
44033         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
44035 2011-07-31  Bruno Haible  <bruno@clisp.org>
44037         stdioext: Add support for Minix.
44038         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
44039         * lib/fpurge.c (fpurge): Likewise.
44040         * lib/freadahead.c (freadahead): Likewise.
44041         * lib/freadable.c (freadable): Likewise.
44042         * lib/freading.c (freading): Likewise.
44043         * lib/freadptr.c (freadptr): Likewise.
44044         * lib/freadseek.c (freadptrinc): Likewise.
44045         * lib/fseeko.c (rpl_fseeko): Likewise.
44046         * lib/fseterr.c (fseterr): Likewise.
44047         * lib/fwritable.c (fwritable): Likewise.
44048         * lib/fwriting.c (fwriting): Likewise.
44049         * lib/fflush.c (clear_ungetc_buffer): Update comment.
44050         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
44052 2011-07-31  Bruno Haible  <bruno@clisp.org>
44054         errno: Port to Minix.
44055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
44056         ECONNABORTED are defined.
44057         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
44058         GNULIB_defined_ECONNABORTED): New macros.
44059         * lib/strerror-override.h (strerror_override): Test also
44060         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
44061         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
44062         ECONNABORTED.
44063         * doc/posix-headers/errno.texi: Mention the Minix problem.
44065 2011-07-31  Bruno Haible  <bruno@clisp.org>
44067         Work around declaration collisions on Minix.
44068         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
44069         defined, set REPLACE_MBSINIT.
44070         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
44071         defined, set REPLACE_MBRTOWC.
44072         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
44073         set REPLACE_MBRLEN.
44074         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
44075         defined, set REPLACE_MBSRTOWCS.
44076         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
44077         defined, set REPLACE_WCRTOMB.
44078         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
44079         defined, set REPLACE_WCSRTOMBS.
44081 2011-07-31  Bruno Haible  <bruno@clisp.org>
44083         Add support for Minix with ACK compiler.
44084         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
44085         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
44086         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
44088 2011-07-31  Bruno Haible  <bruno@clisp.org>
44090         Documentation about Minix.
44091         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
44092         * doc/glibc-headers/*.texi: Likewise.
44093         * doc/posix-functions/*.texi: Likewise.
44094         * doc/glibc-functions/*.texi: Likewise.
44096 2011-07-31  Bruno Haible  <bruno@clisp.org>
44098         snippet/warn-on-use: Fix indentation.
44099         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
44101 2011-07-25  Jim Meyering  <meyering@redhat.com>
44103         tests: test-update-copyright.sh: remove unnecessary "rm" commands
44104         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
44105         commands.
44107 2011-07-27  Jim Meyering  <meyering@redhat.com>
44109         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
44110         * top/maint.mk (gl_extract_significant_defines_): Now that
44111         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
44112         gnulib/lib/signal.in.h, and now that we recommend to
44113         define-if-undefined those two symbols in application code,
44114         we must filter them out of the "significant" list.
44115         This avoids a "make syntax-check" failure in coreutils.
44117 2011-07-26  Eric Blake  <eblake@redhat.com>
44119         warnings: add comments about previous patch
44120         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
44121         * m4/include_next.m4: Likewise.
44122         * m4/warn-on-use.m4: Likewise.
44123         * m4/warnings.m4: Likewise, and simplify use.
44124         Suggested by Stefano Lattarini.
44126         include-next, warnings: support older autoconf
44127         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
44128         AS_VAR_PUSHDEF in a way that works with older autoconf.
44129         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
44130         Reported by Daniel P. Berrange.
44132 2011-07-25  Bruno Haible  <bruno@clisp.org>
44134         fseek, ftell: Fix doc.
44135         * doc/posix-functions/fseek.texi: Reword statement about
44136         AC_SYS_LARGEFILE.
44137         * doc/posix-functions/ftell.texi: Likewise.
44139 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44140             Bruno Haible  <bruno@clisp.org>
44142         Add dependencies to the 'largefile' module.
44143         * modules/fopen (Depends-on): Add 'largefile'.
44144         * modules/freopen (Depends-on): Likewise.
44145         * modules/fseeko (Depends-on): Likewise.
44146         * modules/ftello (Depends-on): Likewise.
44147         * modules/glob (Depends-on): Likewise.
44148         * modules/lseek (Depends-on): Likewise.
44149         * modules/lstat (Depends-on): Likewise.
44150         * modules/mkostemp (Depends-on): Likewise.
44151         * modules/mkostemps (Depends-on): Likewise.
44152         * modules/mkstemp (Depends-on): Likewise.
44153         * modules/mkstemps (Depends-on): Likewise.
44154         * modules/open (Depends-on): Likewise.
44155         * modules/openat (Depends-on): Likewise.
44156         * modules/pread (Depends-on): Likewise.
44157         * modules/pwrite (Depends-on): Likewise.
44158         * modules/scandir (Depends-on): Likewise.
44159         * modules/stat (Depends-on): Likewise.
44160         * modules/tmpfile (Depends-on): Likewise.
44161         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
44162         since the containing module now depends on the largefile module.
44163         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
44164         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
44165         off_t is fixed by gnulib.
44166         * doc/posix-functions/freopen.texi: Likewise.
44167         * doc/posix-functions/fseeko.texi: Likewise.
44168         * doc/posix-functions/fstatat.texi: Likewise.
44169         * doc/posix-functions/ftello.texi: Likewise.
44170         * doc/posix-functions/glob.texi: Likewise.
44171         * doc/posix-functions/lseek.texi: Likewise.
44172         * doc/posix-functions/lstat.texi: Likewise.
44173         * doc/posix-functions/mkstemp.texi: Likewise.
44174         * doc/posix-functions/open.texi: Likewise.
44175         * doc/posix-functions/openat.texi: Likewise.
44176         * doc/posix-functions/pread.texi: Likewise.
44177         * doc/posix-functions/pwrite.texi: Likewise.
44178         * doc/posix-functions/scandir.texi: Likewise.
44179         * doc/posix-functions/stat.texi: Likewise.
44180         * doc/posix-functions/tmpfile.texi: Likewise.
44181         * doc/glibc-functions/mkostemp.texi: Likewise.
44182         * doc/glibc-functions/mkostemps.texi: Likewise.
44183         * doc/glibc-functions/mkstemps.texi: Likewise.
44185 2011-07-25  Bruno Haible  <bruno@clisp.org>
44187         fcntl: Move AC_LIBOBJ invocation to module description.
44188         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
44189         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
44191         fcntl: Remove call-in from fchdir.m4.
44192         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
44193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
44195         dup3: Remove potential call-in from fchdir.m4.
44196         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
44197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
44199         dup2: Move AC_LIBOBJ invocation to module description.
44200         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
44201         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
44202         Don't invoke AC_LIBOBJ.
44203         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
44205         dup2: Remove call-in from fchdir.m4.
44206         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
44207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
44209         fclose: Move AC_LIBOBJ invocation to module description.
44210         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
44211         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
44212         to 1.
44213         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
44215         fclose: Remove call-in from close.m4.
44216         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
44217         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
44219         close: Move AC_LIBOBJ invocation to module description.
44220         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
44221         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
44222         1.
44223         * modules/close (configure.ac): Invoke AC_LIBOBJ.
44225         close: Remove call-in from fchdir.m4.
44226         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
44227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
44229         open: Move AC_LIBOBJ invocation to module description.
44230         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
44231         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
44232         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
44234         open: Remove call-in from fchdir.m4.
44235         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
44236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
44238         fchdir: Start to remove gl_REPLACE_* idiom.
44239         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
44240         (gl_FUNC_FCHDIR): Invoke it.
44242 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44244         * lib/ftell.c (ftell): Comment out cast.
44246         close: use gl_REPLACE_FCLOSE only if defined
44247         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
44248         is defined.  The close module doesn't depend on the fclose module
44249         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
44250         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
44251         I reproduced the problem with "./gnulib-tool --test close sys_socket".
44253 2011-07-24  Jim Meyering  <meyering@redhat.com>
44255         test-select.h: avoid warning when using gcc's -Wmissing-declarations
44256         * tests/test-select.h (test_function): Declare as "static".
44258 2011-07-24  Bruno Haible  <bruno@clisp.org>
44260         doc: Mention the effects of AC_SYS_LARGEFILE.
44261         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
44262         on this function.
44263         * doc/posix-functions/aio_error.texi: Likewise.
44264         * doc/posix-functions/aio_fsync.texi: Likewise.
44265         * doc/posix-functions/aio_read.texi: Likewise.
44266         * doc/posix-functions/aio_return.texi: Likewise.
44267         * doc/posix-functions/aio_suspend.texi: Likewise.
44268         * doc/posix-functions/aio_write.texi: Likewise.
44269         * doc/posix-functions/fgetpos.texi: Likewise.
44270         * doc/posix-functions/fopen.texi: Likewise.
44271         * doc/posix-functions/freopen.texi: Likewise.
44272         * doc/posix-functions/fsetpos.texi: Likewise.
44273         * doc/posix-functions/fstatvfs.texi: Likewise.
44274         * doc/posix-functions/ftruncate.texi: Likewise.
44275         * doc/posix-functions/ftw.texi: Likewise.
44276         * doc/posix-functions/getrlimit.texi: Likewise.
44277         * doc/posix-functions/glob.texi: Likewise.
44278         * doc/posix-functions/lio_listio.texi: Likewise.
44279         * doc/posix-functions/lockf.texi: Likewise.
44280         * doc/posix-functions/mkstemp.texi: Likewise.
44281         * doc/posix-functions/mmap.texi: Likewise.
44282         * doc/posix-functions/nftw.texi: Likewise.
44283         * doc/posix-functions/openat.texi: Likewise.
44284         * doc/posix-functions/opendir.texi: Likewise.
44285         * doc/posix-functions/posix_fadvise.texi: Likewise.
44286         * doc/posix-functions/posix_fallocate.texi: Likewise.
44287         * doc/posix-functions/pread.texi: Likewise.
44288         * doc/posix-functions/pwrite.texi: Likewise.
44289         * doc/posix-functions/readdir.texi: Likewise.
44290         * doc/posix-functions/readdir_r.texi: Likewise.
44291         * doc/posix-functions/rewinddir.texi: Likewise.
44292         * doc/posix-functions/scandir.texi: Likewise.
44293         * doc/posix-functions/seekdir.texi: Likewise.
44294         * doc/posix-functions/setrlimit.texi: Likewise.
44295         * doc/posix-functions/statvfs.texi: Likewise.
44296         * doc/posix-functions/telldir.texi: Likewise.
44297         * doc/posix-functions/tmpfile.texi: Likewise.
44298         * doc/posix-functions/truncate.texi: Likewise.
44299         * doc/glibc-functions/fallocate.texi: Likewise.
44300         * doc/glibc-functions/fstatfs.texi: Likewise.
44301         * doc/glibc-functions/fts_children.texi: Likewise.
44302         * doc/glibc-functions/fts_read.texi: Likewise.
44303         * doc/glibc-functions/getdirentries.texi: Likewise.
44304         * doc/glibc-functions/mkostemp.texi: Likewise.
44305         * doc/glibc-functions/mkostemps.texi: Likewise.
44306         * doc/glibc-functions/mkstemps.texi: Likewise.
44307         * doc/glibc-functions/preadv.texi: Likewise.
44308         * doc/glibc-functions/pwritev.texi: Likewise.
44309         * doc/glibc-functions/sendfile.texi: Likewise.
44310         * doc/glibc-functions/statfs.texi: Likewise.
44312 2011-07-24  Bruno Haible  <bruno@clisp.org>
44314         doc: Fix typo.
44315         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
44317 2011-07-24  Bruno Haible  <bruno@clisp.org>
44319         doc: Mention fsusage.
44320         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
44322 2011-07-24  Bruno Haible  <bruno@clisp.org>
44324         doc: Mention new glibc headers and functions.
44325         * doc/glibc-headers/gshadow.texi: New file.
44326         * doc/glibc-functions/endsgent.texi: New file.
44327         * doc/glibc-functions/fgetsgent.texi: New file.
44328         * doc/glibc-functions/fgetsgent_r.texi: New file.
44329         * doc/glibc-functions/getsgent.texi: New file.
44330         * doc/glibc-functions/getsgent_r.texi: New file.
44331         * doc/glibc-functions/getsgnam.texi: New file.
44332         * doc/glibc-functions/getsgnam_r.texi: New file.
44333         * doc/glibc-functions/putsgent.texi: New file.
44334         * doc/glibc-functions/setsgent.texi: New file.
44335         * doc/glibc-functions/sgetsgent.texi: New file.
44336         * doc/glibc-functions/sgetsgent_r.texi: New file.
44337         * doc/glibc-functions/malloc_info.texi: New file.
44338         * doc/glibc-functions/preadv.texi: New file.
44339         * doc/glibc-functions/pwritev.texi: New file.
44340         * doc/glibc-functions/register_printf_modifier.texi: New file.
44341         * doc/glibc-functions/register_printf_specifier.texi: New file.
44342         * doc/glibc-functions/register_printf_type.texi: New file.
44343         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
44344         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
44345         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
44346         * doc/glibc-functions/pthread_getname_np.texi: New file.
44347         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
44348         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
44349         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
44350         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
44351         * doc/glibc-functions/pthread_setname_np.texi: New file.
44352         * doc/glibc-functions/pthread_sigqueue.texi: New file.
44353         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
44354         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
44355         * doc/glibc-functions/qsort_r.texi: New file.
44356         * doc/glibc-functions/quick_exit.texi: New file.
44357         * doc/glibc-functions/syncfs.texi: New file.
44358         * doc/gnulib.texi: Include them.
44359         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
44360         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
44361         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
44362         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
44363         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
44364         * doc/glibc-functions/execvpe.texi: Likewise.
44366 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44368         ftell: don't include <unistd.h>
44369         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
44370         guaranteed to define off_t, and the ftell module depends on the
44371         stdio module.
44373         ftell: do not assume wraparound signed arithmetic
44374         * lib/ftell.c: Include <limits.h>.
44375         (ftell): Don't assume wraparound signed arithmetic.
44377 2011-07-24  Bruno Haible  <bruno@clisp.org>
44379         close: No longer depend on module 'fclose'.
44380         * modules/close (Depends-on): Remove fclose.
44381         * NEWS: Mention the change.
44382         Suggested by Sam Steingold <sds@gnu.org>.
44384 2011-07-24  Bruno Haible  <bruno@clisp.org>
44386         fsusage: Enable large volume support on AIX >= 5.2.
44387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
44388         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
44389         instead of STAT_STATVFS.
44390         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
44392         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
44393         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
44394         f_blocks field only on MacOS X.
44396         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
44397         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
44398         * modules/fsusage (Depends-on): Add largefile.
44400 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44402         * README: Modernize discussion of signed integers.
44403         Assuming overflow wraparound is no longer safe.
44404         Mention ones' complement and signed magnitude.
44406 2011-07-22  Bruno Haible  <bruno@clisp.org>
44408         select tests, pselect tests: Refactor.
44409         * tests/test-select.h: New file, extracted from tests/test-select.c.
44410         (select_fn): New type.
44411         (test, do_select, do_select_nowait, do_select_wait, test_tty,
44412         test_connect_first, test_accept_first, test_pair, test_socket_pair,
44413         test_pipe): Add my_select argument.
44414         (test_function): Renamed from main. Add my_select argument.
44415         * tests/test-select.c: Move most code to tests/test-select.h. Include
44416         test-select.h.
44417         * modules/select-tests (Files): Add tests/test-select.h.
44418         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
44419         (my_select, main): New functions.
44420         * modules/pselect-tests (Files): Add tests/test-select.h,
44421         tests/macros.h, tests/signature.h.
44422         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
44423         (configure.ac): Check for <sys/wait.h>.
44425 2011-07-22  Bruno Haible  <bruno@clisp.org>
44427         sys_select tests: Check the signature of FD_*.
44428         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
44429         signature tests from here...
44430         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
44431         here.
44432         * modules/sys_select-tests (Files): Add tests/signature.h.
44434 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44436         largefile: new module, replacing large-inode
44437         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
44438         * MODULES.html.sh: Add largefile, remove large-inode.
44439         * modules/largefile, m4/largefile.m4: New files.
44440         * modules/large-inode, m4/large-inode.m4: Remove.
44442         fsusage: port to MacOS X 10.7 with 4 TiB file systems
44443         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
44444         implementations that use only 32 bits to count blocks.
44445         On typical hosts with 1024-byte blocks, this fails with file
44446         systems as small as 4 TiB.  Problem reported by Herb Wartens
44447         <http://debbugs.gnu.org/9140> and this should also fix a similar
44448         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
44450         large-inode: New module
44451         * MODULES.html.sh: Add it.
44452         * modules/large-inode, m4/large-inode.m4: New files.
44454         extensions: Enable extensions on MacOS X 10.5 and later.
44455         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
44457 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
44459         file-has-acl: use acl_extended_file_nofollow if available
44460         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
44461         (acl_extended_file): New macro.
44462         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
44463         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
44465 2011-07-21  Bruno Haible  <bruno@clisp.org>
44467         Declare system functions in a way that works with C++.
44468         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
44469         declare fdopendir as extern "C".
44470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
44471         declare frexpl as extern "C".
44472         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
44473         declare gai_strerror as extern "C".
44474         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
44475         programs, declare gai_strerror as extern "C".
44476         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
44477         declare getlogin_r as extern "C".
44478         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
44479         as extern "C".
44480         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
44481         declare ldexpl as extern "C".
44482         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
44483         as extern "C".
44484         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
44485         program, declare getmntinfo as extern "C".
44486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
44487         stpncpy as extern "C".
44488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
44489         program, declare __xpg_strerror_r as extern "C".
44490         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
44491         strndup as extern "C".
44492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
44493         declare memset and bzero as extern "C".
44494         Reported by Sam Steingold <sds@gnu.org>.
44496 2011-07-12  Jim Meyering  <meyering@redhat.com>
44498         maint.mk: prohibit inclusion of "verify.h" without use
44499         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
44501 2011-07-19  Pádraig Brady  <P@draigBrady.com>
44503         timer-time: A new module to check for timer_settime()
44504         * m4/timer_time.m4: Check for the posix function.
44505         * modules/timer-time: Add the new module.
44506         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
44507         Mention it.
44509 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
44510             Bruno Haible  <bruno@clisp.org>
44512         pthread_sigmask: assume POSIX threads if --avoid=threadlib
44513         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
44514         not defined, assume POSIX threads and look for pthread_sigmask in
44515         $LIBS, without changing $CPPFLAGS.
44517 2011-07-19  Bruno Haible  <bruno@clisp.org>
44519         strstr: Update cross-compilation guess.
44520         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
44521         CPUs, guess no, in view of glibc
44522         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
44523         Suggested by Eric Blake. Reported by Reuben Thomas.
44525 2011-07-19  Pádraig Brady  <P@draigBrady.com>
44527         getopt-gnu: suppress core dumps from detection code
44528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
44529         to suppress core dumps that may well occur on glibc systems.
44530         * modules/getopt-gnu: Depend on nocrash.
44532 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44534         pthread_sigmask: ensure usleep is declared
44535         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
44536         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
44538 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
44540         doc: Document NonStop portability issues.
44541         * doc/posix-functions/sigaction.texi (sigaction):
44542         * doc/posix-headers/signal.texi (signal.h):
44543         Document NonStop.  See Joachim Schmitz in
44544         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
44546 2011-07-15  Bruno Haible  <bruno@clisp.org>
44548         ffsl, ffsll: Avoid unportable behaviour.
44549         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
44551 2011-07-15  Bruno Haible  <bruno@clisp.org>
44553         ffs: More tests.
44554         * tests/test-ffs.c (NBITS): New macro.
44555         (main): Add more tests.
44556         * tests/test-ffsl.c (NBITS): New macro.
44557         (main): Add more tests.
44558         * tests/test-ffsll.c (NBITS): New macro.
44559         (main): Add more tests.
44561 2011-07-15  Eric Blake  <eblake@redhat.com>
44563         ffsl, ffsll: new modules
44564         * modules/ffsl: New file.
44565         * modules/ffsll: Likewise.
44566         * m4/ffsl.m4: Likewise.
44567         * m4/ffsll.m4: Likewise.
44568         * lib/ffsl.c: Likewise.
44569         * lib/ffsl.h: Likewise.
44570         * lib/ffsll.c: Likewise.
44571         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
44572         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
44573         * modules/string (Makefile.am): Substitute witnesses.
44574         * lib/strings.in.h (ffsl, ffsll): Declare.
44575         * modules/ffsl-tests: New test file.
44576         * modules/ffsll-tests: Likewise.
44577         * tests/test-ffsl.c: Likewise.
44578         * tests/test-ffsll.c: Likewise.
44579         * MODULES.html.sh (Integer arithmetic functions): Mention it.
44580         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
44581         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
44583         ffs: fix m4 prerequisite
44584         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
44586         ffs: avoid undefined behavior
44587         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
44588         * tests/test-ffs.c (naive, main): Avoid signed shifts.
44589         Reported by Bruno Haible.
44591 2011-07-12  Bruno Haible  <bruno@clisp.org>
44593         pthread_sigmask: Rely on module 'threadlib'.
44594         * modules/pthread_sigmask (Depends-on): Add threadlib.
44595         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
44596         is defined.
44598 2011-07-12  Bruno Haible  <bruno@clisp.org>
44600         regex: Depend on module 'strcase'.
44601         * modules/regex (Depends-on): Add strcase, for strcasecmp().
44603 2011-07-12  Jim Meyering  <meyering@redhat.com>
44605         warn-on-use: fix typo in file name
44606         * modules/snippet/warn-on-use (Files): Correct file name:
44607         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
44609 2011-07-12  Bruno Haible  <bruno@clisp.org>
44611         strings: Document module.
44612         * doc/posix-headers/strings.texi: Mention module 'strings'.
44614 2011-07-12  Bruno Haible  <bruno@clisp.org>
44616         Rename module '_Noreturn' to 'snippet/_Noreturn'.
44617         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
44618         (Files, Makefile.am): Update.
44619         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
44620         * modules/stdlib (Depends-on): Update.
44622 2011-07-12  Bruno Haible  <bruno@clisp.org>
44624         * NEWS: Mention the changes.
44626         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
44627         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
44628         (Files, Makefile.am): Update.
44629         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
44630         * modules/arpa_inet (Depends-on): Update.
44631         * modules/ctype (Depends-on): Update.
44632         * modules/dirent (Depends-on): Update.
44633         * modules/fcntl-h (Depends-on): Update.
44634         * modules/glob (Depends-on): Update.
44635         * modules/iconv-h (Depends-on): Update.
44636         * modules/inttypes-incomplete (Depends-on): Update.
44637         * modules/langinfo (Depends-on): Update.
44638         * modules/locale (Depends-on): Update.
44639         * modules/math (Depends-on): Update.
44640         * modules/netdb (Depends-on): Update.
44641         * modules/poll-h (Depends-on): Update.
44642         * modules/pty (Depends-on): Update.
44643         * modules/search (Depends-on): Update.
44644         * modules/signal (Depends-on): Update.
44645         * modules/spawn (Depends-on): Update.
44646         * modules/stdio (Depends-on): Update.
44647         * modules/stdlib (Depends-on): Update.
44648         * modules/string (Depends-on): Update.
44649         * modules/strings (Depends-on): Update.
44650         * modules/sys_file (Depends-on): Update.
44651         * modules/sys_ioctl (Depends-on): Update.
44652         * modules/sys_select (Depends-on): Update.
44653         * modules/sys_socket (Depends-on): Update.
44654         * modules/sys_stat (Depends-on): Update.
44655         * modules/sys_time (Depends-on): Update.
44656         * modules/sys_times (Depends-on): Update.
44657         * modules/sys_utsname (Depends-on): Update.
44658         * modules/sys_wait (Depends-on): Update.
44659         * modules/termios (Depends-on): Update.
44660         * modules/time (Depends-on): Update.
44661         * modules/unistd (Depends-on): Update.
44662         * modules/wchar (Depends-on): Update.
44663         * modules/wctype-h (Depends-on): Update.
44664         * MODULES.html.sh (Support for building libraries and executables):
44665         Update.
44667         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
44668         * modules/snippet/unused-parameter: Renamed from
44669         modules/unused-parameter.
44670         (Files, Makefile.am): Update.
44671         * build-aux/snippet/unused-parameter.h: Renamed from
44672         build-aux/unused-parameter.h.
44673         * modules/selinux-h (Depends-on): Update.
44674         * modules/unistr/base (Depends-on): Update.
44675         * MODULES.html.sh (Core language properties): Update.
44677         Rename module 'link-warning' to 'snippet/link-warning'.
44678         * modules/snippet/link-warning: Renamed from modules/link-warning.
44679         (Files, Makefile.am): Update.
44680         * build-aux/snippet/link-warning.h: Renamed from
44681         build-aux/link-warning.h.
44682         * MODULES.html.sh (Support for building libraries and executables):
44683         Update.
44685         Rename module 'c++defs' to 'snippet/c++defs'.
44686         * modules/snippet/c++defs: Renamed from modules/c++defs.
44687         (Files, Makefile.am): Update.
44688         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
44689         * modules/arpa_inet (Depends-on): Update.
44690         * modules/ctype (Depends-on): Update.
44691         * modules/dirent (Depends-on): Update.
44692         * modules/fcntl-h (Depends-on): Update.
44693         * modules/glob (Depends-on): Update.
44694         * modules/iconv-h (Depends-on): Update.
44695         * modules/langinfo (Depends-on): Update.
44696         * modules/locale (Depends-on): Update.
44697         * modules/math (Depends-on): Update.
44698         * modules/netdb (Depends-on): Update.
44699         * modules/poll-h (Depends-on): Update.
44700         * modules/pty (Depends-on): Update.
44701         * modules/search (Depends-on): Update.
44702         * modules/signal (Depends-on): Update.
44703         * modules/spawn (Depends-on): Update.
44704         * modules/stdio (Depends-on): Update.
44705         * modules/stdlib (Depends-on): Update.
44706         * modules/string (Depends-on): Update.
44707         * modules/strings (Depends-on): Update.
44708         * modules/sys_ioctl (Depends-on): Update.
44709         * modules/sys_select (Depends-on): Update.
44710         * modules/sys_socket (Depends-on): Update.
44711         * modules/sys_stat (Depends-on): Update.
44712         * modules/sys_time (Depends-on): Update.
44713         * modules/sys_wait (Depends-on): Update.
44714         * modules/termios (Depends-on): Update.
44715         * modules/time (Depends-on): Update.
44716         * modules/unistd (Depends-on): Update.
44717         * modules/wchar (Depends-on): Update.
44718         * modules/wctype-h (Depends-on): Update.
44720         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
44721         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
44722         (Files, Makefile.am): Update.
44723         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
44724         * modules/argv-iter (Depends-on): Update.
44725         * modules/arpa_inet (Depends-on): Update.
44726         * modules/dirent (Depends-on): Update.
44727         * modules/fcntl-h (Depends-on): Update.
44728         * modules/fnmatch (Depends-on): Update.
44729         * modules/getopt-posix (Depends-on): Update.
44730         * modules/glob (Depends-on): Update.
44731         * modules/iconv-h (Depends-on): Update.
44732         * modules/inttypes-incomplete (Depends-on): Update.
44733         * modules/locale (Depends-on): Update.
44734         * modules/math (Depends-on): Update.
44735         * modules/netdb (Depends-on): Update.
44736         * modules/search (Depends-on): Update.
44737         * modules/signal (Depends-on): Update.
44738         * modules/spawn (Depends-on): Update.
44739         * modules/stdio (Depends-on): Update.
44740         * modules/stdlib (Depends-on): Update.
44741         * modules/string (Depends-on): Update.
44742         * modules/strings (Depends-on): Update.
44743         * modules/sys_socket (Depends-on): Update.
44744         * modules/sys_stat (Depends-on): Update.
44745         * modules/sys_time (Depends-on): Update.
44746         * modules/sys_times (Depends-on): Update.
44747         * modules/sys_utsname (Depends-on): Update.
44748         * modules/time (Depends-on): Update.
44749         * modules/unistd (Depends-on): Update.
44750         * modules/wchar (Depends-on): Update.
44751         * MODULES.html.sh (Support for building libraries and executables):
44752         Update.
44754 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
44756         Improvements on _Noreturn and related modules.
44758         modules/_Exit-tests: test _Noreturn too
44759         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
44760         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
44761         (main): Use them.
44763         stdnoreturn, stdnoreturn-tests: remove modules
44764         They're not needed here and a bit premature for use elsewhere.  See
44765         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
44766         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
44767         * tests/test-stdnoreturn.c: Remove files.
44768         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
44769         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
44770         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
44771         and using noreturn.
44772         * modules/openat, modules/sigpipe-die, modules/xalloc:
44773         * modules/xmemdup0, modules/xstrtol:
44774         Remove dependency on stdnoreturn.
44776         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
44777         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
44778         Reparenthesize to avoid GCC warning.
44779         Support Microsoft's syntax.
44780         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
44782         _Noreturn-tests: remove module
44783         * modules/_Noreturn-tests: Remove.
44784         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
44785         * tests/test-_Noreturn.c: Remove.
44786         * tests/test-stdnoreturn.c: Merge from the old
44787         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
44789 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
44791         _Noreturn, stdnoreturn, and related modules.
44793         * top/maint.mk: Adjust to new noreturn support.
44794         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
44795         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
44797         xalloc: use stdnoreturn.h
44798         * lib/xalloc.h: Include <stdnoreturn.h>.
44799         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
44800         * modules/xalloc (Depends-on): Add stdnoreturn.
44802         xstrtol: use stdnoreturn.h
44803         * lib/xstrtol.h: Include <stdnoreturn.h>.
44804         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
44805         * modules/xstrtol (Depends-on): Add stdnoreturn.
44807         xmemdup0: use stdnoreturn.h
44808         * lib/xmemdup0.h: Include <stdnoreturn.h>.
44809         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
44810         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
44812         sigpipe-die: use stdnoreturn.h
44813         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
44814         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
44815         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
44817         openat: use stdnoreturn.h
44818         * lib/openat.h: Include <stdnoreturn.h>.
44819         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
44820         * modules/openat (Depends-on): Add stdnoreturn.
44822         * lib/openat-die.c (openat_save_fail): Modernize comment.
44824         * lib/xalloc-die.c (xalloc_die): Modernize comment.
44826         * lib/glthread/thread.h: Modernize comment.
44828         obstack: use _Noreturn
44829         * lib/obstack.c (__attribute__): Remove macro.
44830         (print_and_abort): Use _Noreturn.
44832         c-stack: use _Noreturn
44833         * lib/c-stack.c (die, overflow_handler, segv_handler):
44834         Use _Noreturn rather than __attribute__((noreturn)).
44836         argmatch-tests, exclude_tests: use _Noreturn
44837         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
44838         Remove.
44839         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
44841         stdlib: use _Noreturn
44842         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
44843         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
44844         * modules/stdlib (Depends-on): Add _Noreturn.
44845         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
44847         stdnoreturn-tests: new module
44848         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
44850         stdnoreturn: new module
44851         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
44852         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
44854         _Noreturn-tests: new module
44855         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
44857         _Noreturn: new module
44858         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
44859         New section, mentioning it.
44860         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
44862         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
44864 2011-07-11  Eric Blake  <eblake@redhat.com>
44866         ffs: new module
44867         * modules/ffs: New file.
44868         * m4/ffs.m4: Likewise.
44869         * lib/ffs.c: Likewise.
44870         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
44871         * modules/strings (Makefile.am): Substitute witness.
44872         (Depends-on): Add c++defs.
44873         * lib/strings.in.h (ffs): Declare.
44874         * modules/ffs-tests: New test file.
44875         * tests/test-ffs.c: Test new module.
44876         * MODULES.html.sh (Integer arithmetic functions): Mention it.
44877         * doc/posix-functions/ffs.texi (ffs): Likewise.
44879         regex: avoid compiler warning
44880         * lib/regex.c (includes): Include <strings.h>, for use of
44881         strcasecmp in regcomp.c.
44882         Reported by Joachim Schmitz.
44884 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44886         stdint: respect system's intmax_t if INTMAX_MAX
44887         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
44888         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
44889         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
44890         long but int64_t is long long, and where we will clash with the
44891         system intmax_t if we override it.  See
44892         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
44893         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
44894         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
44895         similarly for UINTMAX_C.
44897 2011-07-08  Bruno Haible  <bruno@clisp.org>
44899         pthread_sigmask tests: Avoid a compiler warning.
44900         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
44901         non-zero.
44903         sigprocmask tests: A better way to avoid a compiler warning.
44904         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
44905         (main): Complain if system() returns non-zero.
44906         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
44908 2011-07-08  Bruno Haible  <bruno@clisp.org>
44910         pthread_sigmask: Work around IRIX bug.
44911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
44912         bug.
44913         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
44914         there may be unblocked pending signals.
44915         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
44917 2011-07-08  Bruno Haible  <bruno@clisp.org>
44919         pthread_sigmask: Work around Cygwin bug.
44920         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
44921         bug.
44922         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
44923         the system's pthread_sigmask function.
44924         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
44926 2011-07-08  Bruno Haible  <bruno@clisp.org>
44928         pthread_sigmask: Work around bug in single-threaded implementation.
44929         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
44930         FreeBSD, HP-UX, Solaris bug.
44931         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
44932         * lib/pthread_sigmask.c: Include <stddef.h>.
44933         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
44934         the system's pthread_sigmask function.
44935         * modules/pthread_sigmask (configure.ac): Invoke
44936         gl_PREREQ_PTHREAD_SIGMASK.
44937         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
44938         HP-UX, Solaris.
44940 2011-07-08  Eric Blake  <eblake@redhat.com>
44942         test-sigprocmask: avoid compiler warning
44943         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
44944         * tests/test-sigprocmask.c (main): Use it to silence warning.
44945         Reported by Jim Meyering.
44947         test-snprintf: avoid compiler warning
44948         * tests/test-snprintf.c (main): Avoid shadowed declaration.
44949         * tests/test-vsnprintf.c (main): Likewise.
44950         Reported by Jim Meyering.
44952 2011-07-08  Bruno Haible  <bruno@clisp.org>
44954         Tests for module 'pthread_sigmask'.
44955         * modules/pthread_sigmask-tests: New file.
44956         * tests/test-pthread_sigmask1.c: New file, based on
44957         tests/test-sigprocmask.c.
44958         * tests/test-pthread_sigmask2.c: New file.
44960 2011-07-08  Jim Meyering  <meyering@redhat.com>
44962         test-getopt.h: avoid warning about an unused variable
44963         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
44965 2011-07-07  Jim Meyering  <meyering@redhat.com>
44967         maint: reduce list of files exempt from sc_prohibit_leading_TABs
44968         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
44969         now that it no longer contains leading TABs.
44970         Remove unused "url=FIXME" statement.
44972 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44974         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
44975         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
44976         When gl_THREADLIB is not in use, assume that the POSIX sematics
44977         are desired.  This is better for Emacs, which uses POSIX semantics
44978         on GNUish and/or POSIXish platforms, and does not use threads at
44979         all otherwise.
44981         pthread_sigmask: fix typo when testing for libraries
44982         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
44983         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
44985 2011-07-08  Eric Blake  <eblake@redhat.com>
44987         fts: introduce FTS_NOATIME
44988         * lib/fts_.h (FTS_NOATIME): New bit flag.
44989         (FTS_OPTIONMASK): Adjust.
44990         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
44991         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
44993 2011-07-08  Bruno Haible  <bruno@clisp.org>
44995         Tests for module 'thread'.
44996         * modules/thread-tests: New file.
44997         * tests/test-thread_self.c: New file.
44998         * tests/test-thread_create.cc: New file.
45000 2011-07-08  Bruno Haible  <bruno@clisp.org>
45002         thread: Avoid gcc warnings when using gl_thread_self().
45003         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
45004         'void *'.
45005         (gl_thread_self_pointer): Update.
45007 2011-07-07  Bruno Haible  <bruno@clisp.org>
45009         signal-c++-tests: Check declaration of pthread_sigmask.
45010         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
45011         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
45012         $(LIB_PTHREAD_SIGMASK).
45014 2011-07-07  Bruno Haible  <bruno@clisp.org>
45016         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
45017         * lib/signal.in.h (pthread_sigmask): Override if
45018         REPLACE_PTHREAD_SIGMASK is 1.
45019         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45020         REPLACE_PTHREAD_SIGMASK.
45021         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
45022         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
45023         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
45024         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
45025         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
45027 2011-07-07  Bruno Haible  <bruno@clisp.org>
45029         pthread_sigmask: Ensure declaration in <signal.h>.
45030         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
45031         include <pthread.h>.
45032         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
45033         problem.
45035 2011-07-07  Bruno Haible  <bruno@clisp.org>
45037         pthread_sigmask: Document the module.
45038         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
45040 2011-07-07  Bruno Haible  <bruno@clisp.org>
45042         pthread_sigmask: Follow gnulib conventions.
45043         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
45044         gl_PTHREAD_SIGMASK.
45045         * modules/pthread_sigmask (configure.ac): Update.
45047 2011-07-07  Bruno Haible  <bruno@clisp.org>
45049         pthread_sigmask: Make declaration C++ safe.
45050         * lib/signal.in.h: In two special conditions, just do an #include_next.
45051         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
45052         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
45053         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45054         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
45055         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
45056         not REPLACE_PTHREAD_MASK.
45057         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
45058         not REPLACE_PTHREAD_MASK.
45059         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
45061 2011-07-07  Bruno Haible  <bruno@clisp.org>
45063         pthread_sigmask: Fix return value.
45064         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
45065         * lib/pthread_sigmask.c: New file.
45066         * modules/pthread_sigmask (Files): Add it.
45067         (configure.ac): Invoke AC_LIBOBJ.
45069 2011-07-07  Eric Blake  <eblake@redhat.com>
45071         getopt: more portable argv creation
45072         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
45073         const, use char arrays rather than strings.
45074         Suggested by Paul Eggert.
45076 2011-07-07  Bruno Haible  <bruno@clisp.org>
45078         Tests for module 'sigprocmask'.
45079         * modules/sigprocmask-tests: New file.
45080         * tests/test-sigprocmask.c: New file.
45082 2011-07-07  Bruno Haible  <bruno@clisp.org>
45084         float tests: Tweak.
45085         * tests/test-float.c (main): Tweak skip message.
45087 2011-07-07  Eric Blake  <eblake@redhat.com>
45089         getopt: avoid compiler warning during configure
45090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
45091         assigning string literals to non-const pointer.
45093         getopt-gnu: avoid crash in glibc getopt
45094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
45095         * tests/test-getopt.h (test_getopt): Enhance test.
45096         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45097         * doc/posix-functions/getopt.texi (getopt): Document it.
45098         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
45099         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
45100         Likewise.
45102 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
45104         getopt: handle W; without long options in getopt [BZ #12922]
45105         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
45106         but no long options are defined, just return 'W'.
45108 2011-07-07  Bruno Haible  <bruno@clisp.org>
45110         Avoid literal tabs.
45111         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
45112         variable containing a tab instead of a literal tab.
45113         Reported by Jim Meyering.
45115 2011-07-07  Bruno Haible  <bruno@clisp.org>
45117         Comments.
45118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
45120 2011-07-06  Bruno Haible  <bruno@clisp.org>
45122         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
45123         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
45124         <winsock2.h>.
45125         (rpl_fd_isset, FD_ISSET): New definitions, copied from
45126         lib/sys_socket.in.h.
45127         (close, gethostname): Hide declarations from <winsock2.h>.
45128         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45129         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
45130         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
45131         (select): Don't override if gnulib's <sys/select.h> was already
45132         included.
45133         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
45134         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
45135         setsockopt, shutdown, select): Tweak indentation.
45137 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45139         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
45140         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
45141         in an application that does not use the sys_select module.
45143 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
45145         poll: do not return 0 on timeout=-1
45146         * lib/poll.c: Loop with yield if no events occurred.
45148 2011-07-06  Eric Blake  <eblake@redhat.com>
45150         pthread_sigmask: always replace when not using pthread
45151         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
45152         replacement when using some threading other than pthread.  Fix
45153         logic bug.
45155 2011-07-06  Bruno Haible  <bruno@clisp.org>
45157         Comments.
45158         * m4/printf.m4: Update comments about mingw.
45160 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45162         sys_select: define sigset_t more portably
45163         * lib/sys_select.in.h: Always include <sys/types.h>, since
45164         we now need sigset_t and mingw defines it there.
45165         Include <signal.h> before split inclusion guard, to avoid
45166         mishaps on Solaris, whose <signal.h> eventually includes us.
45167         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
45168         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
45169         which come from ...
45170         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45171         gl_CHECK_TYPE_SIGSET_T.
45172         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
45173         does the real work.
45174         * modules/sys_select (Depends-on): Add 'signal'.
45176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
45177         Suggested by Bruno Haible.
45179         pselect: Use pthread_sigmask, not sigprocmask.
45180         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
45181         multithreaded apps better than sigprocmask does.
45182         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
45183         sigprocmask directly.
45185 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45187         * lib/pselect.c (pselect): Use plain name, without "rpl_".
45188         Don't #undef,  since we don't need any underlying pselect.
45189         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
45190         (Depends-on): Add select.
45191         (Link): Add $(LIBSOCKET).
45192         These changes suggested by Bruno Haible.
45194         pselect: document better
45195         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
45196         * doc/posix-functions/pselect.texi (pselect): Document new module.
45198         pthread_sigmask: new module
45199         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
45200         * doc/posix-functions/pthread_sigmask.texi: Document new module.
45201         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
45202         This is done only as a macro; I don't know how well that'll
45203         work for C++.  Move <sys/types.h> include before the include_next,
45204         to avoid mishap on Solaris.
45205         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
45206         * modules/signal (Makefile.am): Substitute the check's results.
45207         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
45209         test-pselect: new module
45210         * modules/pselect-tests, tests/test-pselect.c: New files.
45211         * tests/test-select.c, tests/test-sys_select-c++.cc:
45212         If TEST_PSELECT is defined, test pselect instead of testing select.
45214         * tests/test-sys_select.c (sigset_t): Test for it, too.
45215         Suggested by Bruno Haible.
45217 2011-07-05  Eric Blake  <eblake@redhat.com>
45219         snprintf: guarantee %1$d, for libintl
45220         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
45221         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
45222         * doc/posix-functions/snprintf.texi (snprintf): Update.
45223         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45224         * tests/test-snprintf.c (main): Enhance test.
45225         * tests/test-vsnprintf.c (main): Likewise.
45227 2011-07-05  Jim Meyering  <meyering@redhat.com>
45229         maint: exempt stdio-read.c and stdio-write.c from the cppi check
45230         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
45231         per Bruno's request, to accommodate this idiom (no space after "#")
45232         even when the function is inside an #if block:
45233         char *
45234         gets (char *s)
45235         #undef gets
45236         {
45237           ...
45238         }
45240 2011-07-04  Jim Meyering  <meyering@redhat.com>
45242         maint: indent with spaces, not TABs, and add a rule to check this
45243         * tests/test-userspec.c: Indent with spaces, not TABs.
45244         * tests/test-argp.c: Likewise.
45245         * tests/test-c-stack2.sh: Likewise.
45246         * tests/test-parse-duration.sh: Likewise
45247         * m4/strtod.m4: Likewise.
45248         * m4/alloca.m4: Likewise.
45249         * m4/pselect.m4: Likewise.
45250         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
45252 2011-07-03  Jim Meyering  <meyering@redhat.com>
45254         maint.mk: correct omissions in prohibit_argmatch_without_use check
45255         This rule would mistakenly report that argmatch.h is included without
45256         use even when both the argmatch and invalid_arg macro were used.
45257         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
45258         of argmatch and invalid_arg.
45260 2011-07-03  Bruno Haible  <bruno@clisp.org>
45262         Comments about EINTR.
45263         * lib/safe-read.h: Explain the purpose of this module.
45264         * lib/safe-write.h: Likewise.
45265         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
45266         module.
45267         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
45268         module.
45269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45271 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45273         xnanosleep: Rewrite to use new dtotimespec module.
45274         It has the conversion code that used to be in xnanosleep.
45275         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
45276         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
45277         (TIME_T_MAX): Remove.
45278         (xnanosleep): Rewrite in terms of dtotimespec.
45279         * modules/xnanosleep (Depends-on): Add dtotimespec.
45280         Remove intprops, stdbool.
45282         timespec-add, timespec-sub: new modules
45283         * lib/timespec.h (timespec_add, timespec_sub): New decls.
45284         * lib/timespec-add.c, lib/timespec-sub.c:
45285         * modules/timespec-add, modules/timespec-sub: New files.
45287         dtotimespec: new module
45288         * lib/timespec.h (dtotimespec): New decl.
45289         * lib/dtotimespec.c, modules/dtotimespec: New files.
45291         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
45293         pselect: new module
45294         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
45295         (pselect): New decls.
45296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
45297         since the standard pselect decl uses 'restrict'.
45298         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
45299         HAVE_PSELECT, REPLACE_PSELECT.
45300         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
45301         HAVE_PSELECT, REPLACE_PSELECT.
45302         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
45304         sys_select: don't depend on sys_socket
45305         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
45306         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
45307         This fix works on GNU and GNU-like platforms, but has not been tested
45308         on native Windows.
45309         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
45310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
45311         gl_HEADER_SYS_SOCKET.
45312         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
45313         gl_PREREQ_SYS_H_WINSOCK2.
45315 2011-06-29  Eric Blake  <eblake@redhat.com>
45317         pipe2: fix C89 compile problem
45318         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
45319         Reported by Bruno Haible.
45321         pipe, pipe2: don't corrupt fd on error
45322         * lib/pipe.c (pipe): Leave fd unchanged on error.
45323         * lib/pipe2.c (pipe2): Likewise.
45324         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
45325         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
45327 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
45329         mmap-anon: do not use regular expressions inadvertently
45330         * m4/mmap-anon.m4: Remove trailing period from strings sought
45331         in the output.
45333 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
45335         nanosleep: fix integer overflow problem
45336         * lib/nanosleep.c (my_usleep): Don't assume signed integer
45337         arithmetic wraps around on overflow.
45339         nanosleep: simplify carrying
45340         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
45341         first call to the underyling nanosleep, not for the last one.
45342         This doesn't fix any bugs, but it simplifies the computation of
45343         the remaining delay.  Found while auditing integer overflow issues.
45345         dup2: remove test for existence of fcntl
45346         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
45347         "#if HAVE_FCNTL", in the configure-time test program.
45348         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
45349         and therefore speeds up "configure" a bit.  Found while
45350         adding the dup2 module to Emacs.
45352 2011-06-24  Eric Blake  <eblake@redhat.com>
45354         maint.mk: enhance useless header checks
45355         * top/maint.mk (_sc_header_without_use): Check both include
45356         styles.
45357         (sc_prohibit_assert_without_use)
45358         (sc_prohibit_close_stream_without_use)
45359         (sc_prohibit_getopt_without_use)
45360         (sc_prohibit_quotearg_without_use)
45361         (sc_prohibit_quote_without_use)
45362         (sc_prohibit_long_options_without_use)
45363         (sc_prohibit_inttostr_without_use)
45364         (sc_prohibit_ignore_value_without_use)
45365         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
45366         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
45367         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
45368         (sc_prohibit_hash_pjw_without_use)
45369         (sc_prohibit_safe_read_without_use)
45370         (sc_prohibit_argmatch_without_use)
45371         (sc_prohibit_canonicalize_without_use)
45372         (sc_prohibit_root_dev_ino_without_use)
45373         (sc_prohibit_openat_without_use)
45374         (sc_prohibit_c_ctype_without_use)
45375         (sc_prohibit_signal_without_use)
45376         (sc_prohibit_stdio--_without_use)
45377         (sc_prohibit_stdio-safer_without_use)
45378         (sc_prohibit_strings_without_use)
45379         (sc_prohibit_intprops_without_use)
45380         (sc_prohibit_stddef_without_use)
45381         (sc_prohibit_xfreopen_without_use): Update clients.
45383 2011-06-24  Jim Meyering  <meyering@redhat.com>
45385         syntax-check: keep one maint.mk rule in sync with its header
45386         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
45387         of the bug Eric has just fixed, with today's commit 25e4c2ec.
45388         I prefer to avoid temporary files here, so use <(...), but that
45389         is not supported by /bin/sh, so...
45390         (SHELL): Define to /bin/bash.
45392 2011-06-24  Eric Blake  <eblake@redhat.com>
45394         maint.mk: update sc_prohibit_intprops_without_use
45395         * top/maint.mk (_intprops_names): Match recent changes.
45397 2011-06-24  Bruno Haible  <bruno@clisp.org>
45399         strerror-override: No-op tweak.
45400         * lib/strerror-override.h (strerror_override): Reorder conditions,
45401         for consistency with lib/strerror-override.c.
45403 2011-06-23  Eric Blake  <eblake@redhat.com>
45405         maint.mk: test further PATH_MAX issues
45406         * top/maint.mk (sc_prohibit_path_max_array): Rename...
45407         (sc_prohibit_path_max_allocation): ...and also test alloca.
45408         Suggested by Jim Meyering.
45410 2011-06-22  Eric Blake  <eblake@redhat.com>
45412         maint.mk: add syntax-check to avoid char[PATH_MAX]
45413         * top/maint.mk (sc_prohibit_path_max_array): New rule.
45415         stat: be robust to PATH_MAX definition
45416         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
45417         * modules/stat (Depends-on): Add verify.
45419         link: work around IRIX bug
45420         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
45421         * lib/link.c (rpl_link): Work around it.
45422         * tests/test-link.h (test_link): Enhance test.
45423         * doc/posix-functions/link.texi (link): Document the bug.
45425         getopt: silence clang warning
45426         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
45427         dereference.
45428         Reported by Gustavo Martin Domato.
45430 2011-06-22  Jim Meyering  <meyering@redhat.com>
45432         bootstrap: do not insert a blank line into each .gitignore file
45433         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
45435 2011-06-21  Eric Blake  <eblake@redhat.com>
45437         perror: test for output mismatch
45438         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
45439         perror on IRIX.
45441         strerror_r: fix OpenBSD behavior on out-of-range
45442         * lib/strerror_r.c (strerror_r): Always use maximal string.
45443         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45445         strerror_r: fix OpenBSD behavior on 0
45446         * lib/strerror-override.c (strerror_override): Also override 0
45447         when needed.
45448         * lib/strerror-override.h (strerror_override): Likewise.
45449         * lib/strerror.c (strerror): Simplify, now that 0 override is done
45450         earlier.
45451         * lib/strerror_r.c (strerror_r): Likewise.
45452         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
45453         behavior...
45454         (gl_FUNC_STRERROR_0): ...into new macro.
45455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
45456         is overridden.
45457         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
45458         * modules/strerror-override (Files): Add strerror.m4.
45459         (configure.ac): Also provide override for 0 when needed.
45460         * doc/posix-functions/strerror.texi (strerror): Document this.
45461         * doc/posix-functions/perror.texi (perror): Likewise.
45463         perror: adjust array size
45464         * modules/perror (Depends-on): Add strerror-override.
45465         * lib/perror.c (perror): Use it to avoid magic number.
45467         strerror-override: reduce size
45468         * lib/strerror-override.c (strerror_override): Use fewer lines.
45470 2011-06-20  Bruno Haible  <bruno@clisp.org>
45472         pathmax: Ensure correct value for PATH_MAX on HP-UX.
45473         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
45475 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45477         alloca: port to compilers that can optimize like GCC 4.6.0
45478         * lib/alloca.c (find_stack_direction): New signature, taken from
45479         Autoconf git.  This works with GCC 4.6.0.  This code should never
45480         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
45481         be used with other compilers that optimize as well as GCC 4.6.0 does.
45482         (alloca): Adjust to new signature.
45483         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
45484         New macro, which patches Autoconf in a similar way.
45486         c-stack: stop worrying about stack direction
45487         * lib/c-stack.c (find_stack_direction): Remove.
45488         (segv_handler): Don't worry about stack direction growth, as it's
45489         too much of a pain to configure this correctly, given how compilers
45490         are optimizing-away our stack-growth detection code.  Instead, assume
45491         that any access to just before or just after the stack is OK.
45492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45493         Don't require AC_FUNC_ALLOCA; no longer needed.
45495 2011-06-20  Eric Blake  <eblake@redhat.com>
45497         test-stat: don't allocate PATH_MAX bytes
45498         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
45499         PATH_MAX-sized buffer.
45500         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
45501         * modules/stat-tests (Depends-on): Likewise.
45502         * tests/test-fstatat.c (includes): Drop pathmax.h.
45503         * tests/test-stat.c (includes): Likewise.
45504         Reported by Bruno Haible.
45506 2011-06-20  Bruno Haible  <bruno@clisp.org>
45508         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
45509         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
45510         * lib/float.c: New file.
45511         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
45512         REPLACE_FLOAT_LDBL.
45513         * modules/float (Files): Add lib/float.c.
45514         (configure.ac): Invoke AC_LIBOBJ.
45515         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
45517 2011-06-20  Bruno Haible  <bruno@clisp.org>
45519         Tests for module 'float'.
45520         * modules/float-tests: New file.
45521         * tests/test-float.c: New file.
45523 2011-06-19  Bruno Haible  <bruno@clisp.org>
45525         isinf: Coding style.
45526         * lib/isinf.c: Use GNU coding style.
45528 2011-06-19  Bruno Haible  <bruno@clisp.org>
45530         linkat test: Avoid test failure on AIX 7.1.
45531         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
45532         * tests/test-link.h (test_link): Likewise.
45534 2011-06-19  Bruno Haible  <bruno@clisp.org>
45536         pread test: Avoid test failure on OpenBSD 4.9.
45537         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
45539 2011-06-19  Bruno Haible  <bruno@clisp.org>
45541         sprintf-posix: Fix test failure on AIX 7.1.
45542         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
45543         * doc/posix-functions/dprintf.texi: Mention limited precision problem
45544         on AIX.
45545         * doc/posix-functions/fprintf.texi: Likewise.
45546         * doc/posix-functions/printf.texi: Likewise.
45547         * doc/posix-functions/snprintf.texi: Likewise.
45548         * doc/posix-functions/sprintf.texi: Likewise.
45549         * doc/posix-functions/vdprintf.texi: Likewise.
45550         * doc/posix-functions/vfprintf.texi: Likewise.
45551         * doc/posix-functions/vprintf.texi: Likewise.
45552         * doc/posix-functions/vsnprintf.texi: Likewise.
45553         * doc/posix-functions/vsprintf.texi: Likewise.
45555 2011-06-19  Bruno Haible  <bruno@clisp.org>
45557         roundl-ieee: Fix test failure on AIX 7.1.
45558         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
45559         * doc/posix-functions/roundl.texi: Mention problem with negative
45560         arguments.
45562 2011-06-19  Bruno Haible  <bruno@clisp.org>
45564         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
45565         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
45566         * doc/posix-functions/round.texi: Mention problem with negative
45567         arguments.
45568         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
45570 2011-06-19  Bruno Haible  <bruno@clisp.org>
45572         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
45573         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
45574         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
45575         * doc/posix-functions/roundf.texi: Mention problem with negative
45576         arguments.
45577         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
45579 2011-06-19  Bruno Haible  <bruno@clisp.org>
45581         ceilf-ieee: Work around bug on MacOS X 10.5.
45582         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
45584         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
45585         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
45586         IEEE compliant, avoid compiler optimizations.
45587         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
45588         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45589         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
45590         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45591         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45592         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45594         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45595         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45596         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45598 2011-06-19  Bruno Haible  <bruno@clisp.org>
45600         ceilf-ieee: Work around bug on AIX 7.1.
45601         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
45602         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
45604 2011-06-19  Bruno Haible  <bruno@clisp.org>
45606         ceil-ieee: Work around bug on AIX 7.1.
45607         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
45608         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
45610 2011-06-18  Bruno Haible  <bruno@clisp.org>
45612         fsync test: Avoid test failure on MacOS X and AIX.
45613         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
45614         EINVAL.
45616 2011-06-18  Bruno Haible  <bruno@clisp.org>
45618         openat, fdopendir tests: Fix link errors.
45619         * modules/openat-tests (Depends-on): Add progname.
45620         * modules/fdopendir-tests (Depends-on): Likewise.
45621         * tests/test-fchownat.c: Include progname.h.
45622         (main): Call set_program_name.
45623         * tests/test-fstatat.c: Include progname.h.
45624         (main): Call set_program_name.
45625         * tests/test-mkdirat.c: Include progname.h.
45626         (main): Call set_program_name.
45627         * tests/test-openat.c: Include progname.h.
45628         (main): Call set_program_name.
45629         * tests/test-unlinkat.c: Include progname.h.
45630         (main): Call set_program_name.
45631         * tests/test-fdopendir.c: Include progname.h.
45632         (main): Call set_program_name.
45634 2011-06-18  Bruno Haible  <bruno@clisp.org>
45636         Doc update.
45637         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
45638         HP-UX.
45639         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
45641 2011-06-18  Bruno Haible  <bruno@clisp.org>
45643         getcwd tests: Avoid compilation error on HP-UX 11.31.
45644         * modules/getcwd-tests (Depends-on): Add pathmax.
45645         * tests/test-getcwd.c: Include pathmax.h.
45647 2011-06-18  Bruno Haible  <bruno@clisp.org>
45649         isfinite, isinf: Fix link error on AIX 6 and 7.
45650         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
45651         needed, also test the macro with a 'float' argument.
45652         * m4/isinf.m4 (gl_ISINF): Likewise.
45654 2011-06-18  Bruno Haible  <bruno@clisp.org>
45656         getloadavg: Don't clobber LIBS. Regression from previous commit.
45657         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
45658         AC_CHECK_LIB from here...
45659         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
45660         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
45661         gl_func_getloadavg_done.
45662         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45664 2011-06-18  Bruno Haible  <bruno@clisp.org>
45666         clean-temp: Improve documentation.
45667         * lib/clean-temp.h: Explain better how to use this module.
45668         Reported by John Darrington <john@darrington.wattle.id.au>.
45670 2011-06-17  Bruno Haible  <bruno@clisp.org>
45672         pread, pwrite: Avoid cc warning on AIX.
45673         * lib/unistd.in.h (pread): Undefine before defining as a macro.
45674         (pwrite): Likewise.
45676 2011-06-17  Bruno Haible  <bruno@clisp.org>
45678         spawn-pipe tests: Fix link error.
45679         * tests/test-spawn-pipe-child.c: Undefine fprintf.
45680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45682 2011-06-17  Bruno Haible  <bruno@clisp.org>
45684         Tests: Remove unnecessary dependency.
45685         * modules/canonicalize-tests (Depends-on): Remove progname.
45686         * modules/chown-tests (Depends-on): Likewise.
45687         * modules/dirname-tests (Depends-on): Likewise.
45688         * modules/fdopendir-tests (Depends-on): Likewise.
45689         * modules/fdutimensat-tests (Depends-on): Likewise.
45690         * modules/hash-tests (Depends-on): Likewise.
45691         * modules/lchown-tests (Depends-on): Likewise.
45692         * modules/linkat-tests (Depends-on): Likewise.
45693         * modules/renameat-tests (Depends-on): Likewise.
45694         * modules/spawn-pipe-tests (Depends-on): Likewise.
45695         * modules/utimensat-tests (Depends-on): Likewise.
45697 2011-06-17  Bruno Haible  <bruno@clisp.org>
45699         spawn-pipe tests: Fix link error.
45700         * tests/test-spawn-pipe-child.c: Undefine fflush.
45702 2011-06-17  Bruno Haible  <bruno@clisp.org>
45704         Fix tests link errors.
45705         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
45706         * modules/chown-tests (Makefile.am): Don't link test-chown with
45707         LIBINTL.
45708         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
45709         LIBINTL.
45710         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
45711         LIBINTL.
45712         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
45713         LIBINTL.
45715 2011-06-16  Bruno Haible  <bruno@clisp.org>
45717         crypto/gc-sha1: Fix recent regression.
45718         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
45719         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
45721         crypto/gc-md5: Fix recent regression.
45722         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
45724         crypto/gc-md4: Fix recent regression.
45725         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
45726         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
45728         crypto/gc-arctwo: Fix recent regression.
45729         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
45730         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
45732         crypto/gc-rijndael: Fix recent regression.
45733         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
45734         (configure.ac): Invoke AC_LIBOBJ here.
45735         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
45736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45738         crypto/gc-hmac-sha1: Fix recent regression.
45739         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
45740         (configure.ac): Invoke AC_LIBOBJ here.
45741         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
45742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45744         crypto/gc-hmac-md5: Fix recent regression.
45745         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
45746         (configure.ac): Invoke AC_LIBOBJ here.
45747         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
45748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45750         crypto/gc-des: Fix recent regression.
45751         * modules/crypto/gc-des (Files): Remove m4/des.m4.
45752         (configure.ac): Invoke AC_LIBOBJ here.
45753         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
45754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45756         crypto/gc-arcfour: Fix recent regression.
45757         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
45758         (configure.ac): Invoke AC_LIBOBJ here.
45759         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
45760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45762 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
45764         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
45765         After the 2011-05-21 change, this macro requires
45766         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
45767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45769 2011-06-16  Bruno Haible  <bruno@clisp.org>
45771         fprintftime: Move AC_LIBOBJ invocations to module description.
45772         * m4/fprintftime.m4: Remove file.
45773         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
45774         (configure.ac): Remove gl_FPRINTFTIME call.
45775         (Makefile.am): Augment lib_SOURCES.
45776         Reported by Jim Meyering.
45778 2011-06-16  Bruno Haible  <bruno@clisp.org>
45780         tmpfile-safer: Finish 2011-05-23 commit.
45781         * m4/stdio-safer.m4: Really remove file.
45782         Reported by Jim Meyering.
45784 2011-06-16  Bruno Haible  <bruno@clisp.org>
45786         syntax-check: Fix typo.
45787         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
45788         printf-posix.m4.
45789         Reported by Jim Meyering.
45791 2011-06-13  Jim Meyering  <meyering@redhat.com>
45793         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
45794         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
45796 2011-05-23  Bruno Haible  <bruno@clisp.org>
45798         yesno: Move AC_LIBOBJ invocations to module description.
45799         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
45800         * modules/yesno (Makefile.am): Augment lib_SOURCES.
45802 2011-05-23  Bruno Haible  <bruno@clisp.org>
45804         xstrtol: Move AC_LIBOBJ invocations to module description.
45805         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
45806         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
45808 2011-05-23  Bruno Haible  <bruno@clisp.org>
45810         xstrtold: Move AC_LIBOBJ invocations to module description.
45811         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
45812         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
45814 2011-05-23  Bruno Haible  <bruno@clisp.org>
45816         xstrtod: Move AC_LIBOBJ invocations to module description.
45817         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
45818         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
45820 2011-05-23  Bruno Haible  <bruno@clisp.org>
45822         xnanosleep: Move AC_LIBOBJ invocations to module description.
45823         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
45824         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
45826 2011-05-23  Bruno Haible  <bruno@clisp.org>
45828         xgetcwd: Move AC_LIBOBJ invocations to module description.
45829         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
45830         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
45832 2011-05-23  Bruno Haible  <bruno@clisp.org>
45834         xalloc: Move AC_LIBOBJ invocations to module description.
45835         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
45836         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
45838 2011-05-23  Bruno Haible  <bruno@clisp.org>
45840         write-any-file: Move AC_LIBOBJ invocations to module description.
45841         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
45842         invocation.
45843         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
45845 2011-05-23  Bruno Haible  <bruno@clisp.org>
45847         utimens: Move AC_LIBOBJ invocations to module description.
45848         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
45849         * modules/utimens (Makefile.am): Augment lib_SOURCES.
45851 2011-05-23  Bruno Haible  <bruno@clisp.org>
45853         utimecmp: Move AC_LIBOBJ invocations to module description.
45854         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
45855         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
45857 2011-05-23  Bruno Haible  <bruno@clisp.org>
45859         userspec: Move AC_LIBOBJ invocations to module description.
45860         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
45861         * modules/userspec (Makefile.am): Augment lib_SOURCES.
45863 2011-05-23  Bruno Haible  <bruno@clisp.org>
45865         unlinkdir: Move AC_LIBOBJ invocations to module description.
45866         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
45867         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
45869 2011-05-23  Bruno Haible  <bruno@clisp.org>
45871         unistd-safer: Move AC_LIBOBJ invocations to module description.
45872         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
45873         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
45875 2011-05-23  Bruno Haible  <bruno@clisp.org>
45877         tempname: Move AC_LIBOBJ invocations to module description.
45878         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
45879         * modules/tempname (Makefile.am): Augment lib_SOURCES.
45881 2011-05-23  Bruno Haible  <bruno@clisp.org>
45883         strftime: Move AC_LIBOBJ invocations to module description.
45884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
45885         * modules/strftime (Makefile.am): Augment lib_SOURCES.
45887 2011-05-23  Bruno Haible  <bruno@clisp.org>
45889         stdlib-safer: Move AC_LIBOBJ invocations to module description.
45890         * m4/stdlib-safer.m4: Remove file.
45891         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
45892         (configure.ac): Remove gl_STDLIB_SAFER call.
45893         (Makefile.am): Augment lib_SOURCES.
45895 2011-05-23  Bruno Haible  <bruno@clisp.org>
45897         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
45898         * m4/stdio-safer.m4: Remove file.
45899         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
45900         (configure.ac): Remove gl_TMPFILE_SAFER call.
45901         (Makefile.am): Augment lib_SOURCES.
45903 2011-05-23  Bruno Haible  <bruno@clisp.org>
45905         popen-safer: Move AC_LIBOBJ invocations to module description.
45906         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
45907         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
45908         (configure.ac): Remove gl_POPEN_SAFER call.
45909         (Makefile.am): Augment lib_SOURCES.
45911 2011-05-23  Bruno Haible  <bruno@clisp.org>
45913         freopen-safer: Move AC_LIBOBJ invocations to module description.
45914         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
45915         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
45916         (configure.ac): Remove gl_FREOPEN_SAFER call.
45917         (Makefile.am): Augment lib_SOURCES.
45919 2011-05-23  Bruno Haible  <bruno@clisp.org>
45921         fopen-safer: Move AC_LIBOBJ invocations to module description.
45922         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
45923         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
45924         (configure.ac): Remove gl_FOPEN_SAFER call.
45925         (Makefile.am): Augment lib_SOURCES.
45927 2011-05-23  Bruno Haible  <bruno@clisp.org>
45929         crypto/sha512: Move AC_LIBOBJ invocations to module description.
45930         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
45931         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
45933 2011-05-23  Bruno Haible  <bruno@clisp.org>
45935         crypto/sha256: Move AC_LIBOBJ invocations to module description.
45936         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
45937         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
45939 2011-05-23  Bruno Haible  <bruno@clisp.org>
45941         crypto/sha1: Move AC_LIBOBJ invocations to module description.
45942         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
45943         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
45945 2011-05-23  Bruno Haible  <bruno@clisp.org>
45947         settime: Move AC_LIBOBJ invocations to module description.
45948         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
45949         * modules/settime (Makefile.am): Augment lib_SOURCES.
45951 2011-05-23  Bruno Haible  <bruno@clisp.org>
45953         savedir: Move AC_LIBOBJ invocations to module description.
45954         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
45955         * modules/savedir (Makefile.am): Augment lib_SOURCES.
45957 2011-05-23  Bruno Haible  <bruno@clisp.org>
45959         save-cwd: Move AC_LIBOBJ invocations to module description.
45960         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
45961         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
45963 2011-05-23  Bruno Haible  <bruno@clisp.org>
45965         same: Move AC_LIBOBJ invocations to module description.
45966         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
45967         * modules/same (Makefile.am): Augment lib_SOURCES.
45969 2011-05-23  Bruno Haible  <bruno@clisp.org>
45971         safe-write: Move AC_LIBOBJ invocations to module description.
45972         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
45973         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
45974         instead of gl_SAFE_WRITE.
45975         (Makefile.am): Augment lib_SOURCES.
45977 2011-05-23  Bruno Haible  <bruno@clisp.org>
45979         safe-read: Move AC_LIBOBJ invocations to module description.
45980         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
45981         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
45982         of gl_SAFE_READ.
45983         (Makefile.am): Augment lib_SOURCES.
45985 2011-05-23  Bruno Haible  <bruno@clisp.org>
45987         safe-alloc: Move AC_LIBOBJ invocations to module description.
45988         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
45989         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
45991 2011-05-23  Bruno Haible  <bruno@clisp.org>
45993         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
45994         * m4/rijndael.m4: Remove file.
45995         * modules/crypto/rijndael (Files): Remove it.
45996         (configure.ac): Remove gl_RIJNDAEL call.
45997         (Makefile.am): Augment lib_SOURCES.
45999 2011-05-23  Bruno Haible  <bruno@clisp.org>
46001         readtokens: Move AC_LIBOBJ invocations to module description.
46002         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
46003         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
46005 2011-05-23  Bruno Haible  <bruno@clisp.org>
46007         read-file: Move AC_LIBOBJ invocations to module description.
46008         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
46009         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
46010         of gl_FUNC_READ_FILE.
46011         (Makefile.am): Augment lib_SOURCES.
46013 2011-05-23  Bruno Haible  <bruno@clisp.org>
46015         quotearg: Move AC_LIBOBJ invocations to module description.
46016         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
46017         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
46019 2011-05-23  Bruno Haible  <bruno@clisp.org>
46021         quote: Move AC_LIBOBJ invocations to module description.
46022         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
46023         * modules/quote (Makefile.am): Augment lib_SOURCES.
46025 2011-05-23  Bruno Haible  <bruno@clisp.org>
46027         posixver: Move AC_LIBOBJ invocations to module description.
46028         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
46029         * modules/posixver (Makefile.am): Augment lib_SOURCES.
46031 2011-05-23  Bruno Haible  <bruno@clisp.org>
46033         posixtm: Move AC_LIBOBJ invocations to module description.
46034         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
46035         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
46037 2011-05-23  Bruno Haible  <bruno@clisp.org>
46039         physmem: Move AC_LIBOBJ invocations to module description.
46040         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
46041         * modules/physmem (Makefile.am): Augment lib_SOURCES.
46043 2011-05-23  Bruno Haible  <bruno@clisp.org>
46045         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
46046         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
46047         invocation.
46048         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
46050 2011-05-23  Bruno Haible  <bruno@clisp.org>
46052         mpsort: Move AC_LIBOBJ invocations to module description.
46053         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
46054         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
46056 2011-05-23  Bruno Haible  <bruno@clisp.org>
46058         modechange: Move AC_LIBOBJ invocations to module description.
46059         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
46060         * modules/modechange (Makefile.am): Augment lib_SOURCES.
46062 2011-05-23  Bruno Haible  <bruno@clisp.org>
46064         mkdir-p: Move AC_LIBOBJ invocations to module description.
46065         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
46066         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
46068 2011-05-23  Bruno Haible  <bruno@clisp.org>
46070         mkancesdirs: Move AC_LIBOBJ invocations to module description.
46071         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
46072         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
46074 2011-05-23  Bruno Haible  <bruno@clisp.org>
46076         mgetgroups: Move AC_LIBOBJ invocations to module description.
46077         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
46078         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
46080 2011-05-23  Bruno Haible  <bruno@clisp.org>
46082         memxor: Move AC_LIBOBJ invocations to module description.
46083         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
46084         * modules/memxor (Makefile.am): Augment lib_SOURCES.
46086 2011-05-23  Bruno Haible  <bruno@clisp.org>
46088         memcoll: Move AC_LIBOBJ invocations to module description.
46089         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
46090         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
46092 2011-05-23  Bruno Haible  <bruno@clisp.org>
46094         memcasecmp: Move AC_LIBOBJ invocations to module description.
46095         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
46096         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
46098 2011-05-23  Bruno Haible  <bruno@clisp.org>
46100         crypto/md5: Move AC_LIBOBJ invocations to module description.
46101         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
46102         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
46104 2011-05-23  Bruno Haible  <bruno@clisp.org>
46106         crypto/md4: Move AC_LIBOBJ invocations to module description.
46107         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
46108         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
46110 2011-05-23  Bruno Haible  <bruno@clisp.org>
46112         crypto/md2: Move AC_LIBOBJ invocations to module description.
46113         * m4/md2.m4: Remove file.
46114         * modules/crypto/md2 (Files): Remove it.
46115         (configure.ac): Remove gl_MD2 call.
46116         (Makefile.am): Augment lib_SOURCES.
46118 2011-05-23  Bruno Haible  <bruno@clisp.org>
46120         long-options: Move AC_LIBOBJ invocations to module description.
46121         * m4/long-options.m4: Remove file.
46122         * modules/long-options (Files): Remove it.
46123         (configure.ac): Remove gl_LONG_OPTIONS call.
46124         (Makefile.am): Augment lib_SOURCES.
46126 2011-05-23  Bruno Haible  <bruno@clisp.org>
46128         i-ring: Move AC_LIBOBJ invocations to module description.
46129         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
46130         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
46132 2011-05-23  Bruno Haible  <bruno@clisp.org>
46134         idcache: Move AC_LIBOBJ invocations to module description.
46135         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
46136         * modules/idcache (Makefile.am): Augment lib_SOURCES.
46138 2011-05-23  Bruno Haible  <bruno@clisp.org>
46140         human: Move AC_LIBOBJ invocations to module description.
46141         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
46142         * modules/human (Makefile.am): Augment lib_SOURCES.
46144 2011-05-23  Bruno Haible  <bruno@clisp.org>
46146         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
46147         * m4/hmac-sha1.m4: Remove file.
46148         * modules/crypto/hmac-sha1 (Files): Remove it.
46149         (configure.ac): Remove gl_HMAC_SHA1 call.
46150         (Makefile.am): Augment lib_SOURCES.
46152 2011-05-23  Bruno Haible  <bruno@clisp.org>
46154         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
46155         * m4/hmac-md5.m4: Remove file.
46156         * modules/crypto/hmac-md5 (Files): Remove it.
46157         (configure.ac): Remove gl_HMAC_MD5 call.
46158         (Makefile.am): Augment lib_SOURCES.
46160 2011-05-23  Bruno Haible  <bruno@clisp.org>
46162         hash: Move AC_LIBOBJ invocations to module description.
46163         * m4/hash.m4: Remove file.
46164         * modules/hash (Files): Remove it.
46165         (configure.ac): Remove gl_HASH call.
46166         (Makefile.am): Augment lib_SOURCES.
46168 2011-05-23  Bruno Haible  <bruno@clisp.org>
46170         hard-locale: Move AC_LIBOBJ invocations to module description.
46171         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
46172         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
46174 2011-05-23  Bruno Haible  <bruno@clisp.org>
46176         getugroups: Move AC_LIBOBJ invocations to module description.
46177         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
46178         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
46180 2011-05-23  Bruno Haible  <bruno@clisp.org>
46182         gettime: Move AC_LIBOBJ invocations to module description.
46183         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
46184         * modules/gettime (Makefile.am): Augment lib_SOURCES.
46186 2011-05-23  Bruno Haible  <bruno@clisp.org>
46188         getndelim2: Move AC_LIBOBJ invocations to module description.
46189         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
46190         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
46192 2011-05-23  Bruno Haible  <bruno@clisp.org>
46194         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
46195         * m4/gc-pbkdf2-sha1.m4: Remove file.
46196         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
46197         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
46198         (Makefile.am): Augment lib_SOURCES.
46200 2011-05-23  Bruno Haible  <bruno@clisp.org>
46202         fts: Move AC_LIBOBJ invocations to module description.
46203         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
46204         * modules/fts (configure.ac): ... to here.
46206 2011-05-23  Bruno Haible  <bruno@clisp.org>
46208         file-type: Move AC_LIBOBJ invocations to module description.
46209         * m4/file-type.m4: Remove file.
46210         * modules/file-type (Files): Remove it.
46211         (configure.ac): Remove gl_FILE_TYPE call.
46212         (Makefile.am): Augment lib_SOURCES.
46214 2011-05-23  Bruno Haible  <bruno@clisp.org>
46216         filenamecat*: Respect rules for use of AC_LIBOBJ.
46217         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
46218         Remove AC_LIBOBJ invocation.
46219         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
46220         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
46222 2011-05-23  Bruno Haible  <bruno@clisp.org>
46224         filemode: Move AC_LIBOBJ invocations to module description.
46225         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
46226         * modules/filemode (Makefile.am): Augment lib_SOURCES.
46228 2011-05-23  Bruno Haible  <bruno@clisp.org>
46230         openat-safer: Move AC_LIBOBJ invocations to module description.
46231         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
46232         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
46234 2011-05-23  Bruno Haible  <bruno@clisp.org>
46236         fcntl-safer: Move AC_LIBOBJ invocations to module description.
46237         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
46238         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
46240 2011-05-23  Bruno Haible  <bruno@clisp.org>
46242         exclude: Move AC_LIBOBJ invocations to module description.
46243         * m4/exclude.m4: Remove file.
46244         * modules/exclude (Files): Remove it.
46245         (configure.ac): Remove gl_EXCLUDE call.
46246         (Makefile.am): Augment lib_SOURCES.
46248 2011-05-23  Bruno Haible  <bruno@clisp.org>
46250         dirname*: Respect rules for use of AC_LIBOBJ.
46251         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
46252         invocations.
46253         * modules/dirname (Makefile.am): Augment lib_SOURCES.
46254         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
46256 2011-05-23  Bruno Haible  <bruno@clisp.org>
46258         dirent-safer: Move AC_LIBOBJ invocations to module description.
46259         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
46260         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
46262 2011-05-23  Bruno Haible  <bruno@clisp.org>
46264         crypto/des: Move AC_LIBOBJ invocations to module description.
46265         * m4/des.m4: Remove file.
46266         * modules/crypto/des (Files): Remove it.
46267         (configure.ac): Remove gl_DES call.
46268         (Makefile.am): Augment lib_SOURCES.
46270 2011-05-23  Bruno Haible  <bruno@clisp.org>
46272         cycle-check: Move AC_LIBOBJ invocations to module description.
46273         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
46274         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
46276 2011-05-23  Bruno Haible  <bruno@clisp.org>
46278         c-strtold: Move AC_LIBOBJ invocations to module description.
46279         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
46280         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
46282 2011-05-23  Bruno Haible  <bruno@clisp.org>
46284         c-strtod: Move AC_LIBOBJ invocations to module description.
46285         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
46286         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
46288 2011-05-23  Bruno Haible  <bruno@clisp.org>
46290         crc: Move AC_LIBOBJ invocations to module description.
46291         * m4/crc.m4: Remove file.
46292         * modules/crc (Files): Remove it.
46293         (configure.ac): Remove gl_CRC call.
46294         (Makefile.am): Augment lib_SOURCES.
46296 2011-05-23  Bruno Haible  <bruno@clisp.org>
46298         close-stream: Move AC_LIBOBJ invocations to module description.
46299         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
46300         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
46302 2011-05-23  Bruno Haible  <bruno@clisp.org>
46304         closeout: Move AC_LIBOBJ invocations to module description.
46305         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
46306         * modules/closeout (Makefile.am): Augment lib_SOURCES.
46308 2011-05-23  Bruno Haible  <bruno@clisp.org>
46310         closein: Move AC_LIBOBJ invocations to module description.
46311         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
46312         * modules/closein (Makefile.am): Augment lib_SOURCES.
46314 2011-05-23  Bruno Haible  <bruno@clisp.org>
46316         cloexec: Move AC_LIBOBJ invocations to module description.
46317         * m4/cloexec.m4: Remove file.
46318         * modules/cloexec (Files): Remove it.
46319         (configure.ac): Remove gl_CLOEXEC call.
46320         (Makefile.am): Augment lib_SOURCES.
46322 2011-05-23  Bruno Haible  <bruno@clisp.org>
46324         check-version: Move AC_LIBOBJ invocations to module description.
46325         * m4/check-version.m4: Remove file.
46326         * modules/check-version (Files): Remove it.
46327         (configure.ac): Remove gl_CHECK_VERSION call.
46328         (Makefile.am): Augment lib_SOURCES.
46330 2011-05-23  Bruno Haible  <bruno@clisp.org>
46332         chdir-safer: Move AC_LIBOBJ invocations to module description.
46333         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
46334         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
46336 2011-05-23  Bruno Haible  <bruno@clisp.org>
46338         canonicalize: Move AC_LIBOBJ invocations to module description.
46339         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
46340         AC_LIBOBJ invocation.
46341         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
46343 2011-05-23  Bruno Haible  <bruno@clisp.org>
46345         canon-host: Move AC_LIBOBJ invocations to module description.
46346         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
46347         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
46348         instead of gl_CANON_HOST.
46349         (Makefile.am): Augment lib_SOURCES.
46351 2011-05-23  Bruno Haible  <bruno@clisp.org>
46353         backupfile: Move AC_LIBOBJ invocations to module description.
46354         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
46355         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
46357 2011-05-23  Bruno Haible  <bruno@clisp.org>
46359         argmatch: Move AC_LIBOBJ invocations to module description.
46360         * m4/argmatch.m4: Remove file.
46361         * modules/argmatch (Files): Remove it.
46362         (configure.ac): Remove gl_ARGMATCH call.
46363         (Makefile.am): Augment lib_SOURCES.
46365 2011-05-23  Bruno Haible  <bruno@clisp.org>
46367         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
46368         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
46369         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
46371 2011-05-23  Bruno Haible  <bruno@clisp.org>
46373         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
46374         * m4/arcfour.m4: Remove file.
46375         * modules/crypto/arcfour (Files): Remove it.
46376         (configure.ac): Remove gl_ARCFOUR call.
46377         (Makefile.am): Augment lib_SOURCES.
46379 2011-05-22  Bruno Haible  <bruno@clisp.org>
46381         write: Move AC_LIBOBJ invocations to module description.
46382         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
46383         * modules/write (configure.ac): ... to here.
46385 2011-05-22  Bruno Haible  <bruno@clisp.org>
46387         wmemset: Move AC_LIBOBJ invocations to module description.
46388         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
46389         here...
46390         * modules/wmemset (configure.ac): ... to here.
46392 2011-05-22  Bruno Haible  <bruno@clisp.org>
46394         wmemmove: Move AC_LIBOBJ invocations to module description.
46395         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
46396         here...
46397         * modules/wmemmove (configure.ac): ... to here.
46399 2011-05-22  Bruno Haible  <bruno@clisp.org>
46401         wmemcpy: Move AC_LIBOBJ invocations to module description.
46402         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
46403         here...
46404         * modules/wmemcpy (configure.ac): ... to here.
46406 2011-05-22  Bruno Haible  <bruno@clisp.org>
46408         wmemcmp: Move AC_LIBOBJ invocations to module description.
46409         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
46410         here...
46411         * modules/wmemcmp (configure.ac): ... to here.
46413 2011-05-22  Bruno Haible  <bruno@clisp.org>
46415         wmemchr: Move AC_LIBOBJ invocations to module description.
46416         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
46417         here...
46418         * modules/wmemchr (configure.ac): ... to here.
46420 2011-05-22  Bruno Haible  <bruno@clisp.org>
46422         wcswidth: Move AC_LIBOBJ invocations to module description.
46423         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
46424         here...
46425         * modules/wcswidth (configure.ac): ... to here.
46427 2011-05-22  Bruno Haible  <bruno@clisp.org>
46429         wcwidth: Respect rules for use of AC_LIBOBJ.
46430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
46431         invocation from here...
46432         * modules/wcwidth (configure.ac): ... to here.
46433         (Depends-on): Update conditions.
46435 2011-05-22  Bruno Haible  <bruno@clisp.org>
46437         wctype: Move AC_LIBOBJ invocations to module description.
46438         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
46439         invocation from here...
46440         * modules/wctype (configure.ac): ... to here.
46441         (Depends-on): Update conditions.
46443 2011-05-22  Bruno Haible  <bruno@clisp.org>
46445         wctrans: Move AC_LIBOBJ invocations to module description.
46446         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
46447         invocation from here...
46448         * modules/wctrans (configure.ac): ... to here.
46450 2011-05-22  Bruno Haible  <bruno@clisp.org>
46452         wctomb: Move AC_LIBOBJ invocations to module description.
46453         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
46454         invocations from here...
46455         * modules/wctomb (configure.ac): ... to here.
46457 2011-05-22  Bruno Haible  <bruno@clisp.org>
46459         wctob: Move AC_LIBOBJ invocations to module description.
46460         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
46461         gl_PREREQ_WCTOB invocations from here...
46462         * modules/wctob (configure.ac): ... to here.
46463         (Depends-on): Update conditions.
46465 2011-05-22  Bruno Haible  <bruno@clisp.org>
46467         wcsxfrm: Move AC_LIBOBJ invocations to module description.
46468         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
46469         here...
46470         * modules/wcsxfrm (configure.ac): ... to here.
46472 2011-05-22  Bruno Haible  <bruno@clisp.org>
46474         wcstok: Move AC_LIBOBJ invocations to module description.
46475         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
46476         * modules/wcstok (configure.ac): ... to here.
46478 2011-05-22  Bruno Haible  <bruno@clisp.org>
46480         wcsstr: Move AC_LIBOBJ invocations to module description.
46481         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
46482         * modules/wcsstr (configure.ac): ... to here.
46484 2011-05-22  Bruno Haible  <bruno@clisp.org>
46486         wcsspn: Move AC_LIBOBJ invocations to module description.
46487         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
46488         * modules/wcsspn (configure.ac): ... to here.
46490 2011-05-22  Bruno Haible  <bruno@clisp.org>
46492         wcsrtombs: Move AC_LIBOBJ invocations to module description.
46493         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
46494         gl_PREREQ_WCSRTOMBS invocations from here...
46495         * modules/wcsrtombs (configure.ac): ... to here.
46497 2011-05-22  Bruno Haible  <bruno@clisp.org>
46499         wcsrchr: Move AC_LIBOBJ invocations to module description.
46500         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
46501         here...
46502         * modules/wcsrchr (configure.ac): ... to here.
46504 2011-05-22  Bruno Haible  <bruno@clisp.org>
46506         wcspbrk: Move AC_LIBOBJ invocations to module description.
46507         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
46508         here...
46509         * modules/wcspbrk (configure.ac): ... to here.
46511 2011-05-22  Bruno Haible  <bruno@clisp.org>
46513         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
46514         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
46515         gl_PREREQ_WCSNRTOMBS invocations from here...
46516         * modules/wcsnrtombs (configure.ac): ... to here.
46518 2011-05-22  Bruno Haible  <bruno@clisp.org>
46520         wcsnlen: Move AC_LIBOBJ invocations to module description.
46521         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
46522         here...
46523         * modules/wcsnlen (configure.ac): ... to here.
46525 2011-05-22  Bruno Haible  <bruno@clisp.org>
46527         wcsncpy: Move AC_LIBOBJ invocations to module description.
46528         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
46529         here...
46530         * modules/wcsncpy (configure.ac): ... to here.
46532 2011-05-22  Bruno Haible  <bruno@clisp.org>
46534         wcsncmp: Move AC_LIBOBJ invocations to module description.
46535         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
46536         here...
46537         * modules/wcsncmp (configure.ac): ... to here.
46539 2011-05-22  Bruno Haible  <bruno@clisp.org>
46541         wcsncat: Move AC_LIBOBJ invocations to module description.
46542         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
46543         here...
46544         * modules/wcsncat (configure.ac): ... to here.
46546 2011-05-22  Bruno Haible  <bruno@clisp.org>
46548         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
46549         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
46550         from here...
46551         * modules/wcsncasecmp (configure.ac): ... to here.
46553 2011-05-22  Bruno Haible  <bruno@clisp.org>
46555         wcslen: Move AC_LIBOBJ invocations to module description.
46556         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
46557         * modules/wcslen (configure.ac): ... to here.
46559 2011-05-22  Bruno Haible  <bruno@clisp.org>
46561         wcsdup: Move AC_LIBOBJ invocations to module description.
46562         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
46563         * modules/wcsdup (configure.ac): ... to here.
46565 2011-05-22  Bruno Haible  <bruno@clisp.org>
46567         wcscspn: Move AC_LIBOBJ invocations to module description.
46568         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
46569         here...
46570         * modules/wcscspn (configure.ac): ... to here.
46572 2011-05-22  Bruno Haible  <bruno@clisp.org>
46574         wcscpy: Move AC_LIBOBJ invocations to module description.
46575         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
46576         * modules/wcscpy (configure.ac): ... to here.
46578 2011-05-22  Bruno Haible  <bruno@clisp.org>
46580         wcscoll: Move AC_LIBOBJ invocations to module description.
46581         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
46582         here...
46583         * modules/wcscoll (configure.ac): ... to here.
46585 2011-05-22  Bruno Haible  <bruno@clisp.org>
46587         wcscmp: Move AC_LIBOBJ invocations to module description.
46588         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
46589         * modules/wcscmp (configure.ac): ... to here.
46591 2011-05-22  Bruno Haible  <bruno@clisp.org>
46593         wcschr: Move AC_LIBOBJ invocations to module description.
46594         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
46595         * modules/wcschr (configure.ac): ... to here.
46597 2011-05-22  Bruno Haible  <bruno@clisp.org>
46599         wcscat: Move AC_LIBOBJ invocations to module description.
46600         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
46601         * modules/wcscat (configure.ac): ... to here.
46603 2011-05-22  Bruno Haible  <bruno@clisp.org>
46605         wcscasecmp: Move AC_LIBOBJ invocations to module description.
46606         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
46607         here...
46608         * modules/wcscasecmp (configure.ac): ... to here.
46610 2011-05-22  Bruno Haible  <bruno@clisp.org>
46612         wcrtomb: Move AC_LIBOBJ invocations to module description.
46613         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
46614         invocations from here...
46615         * modules/wcrtomb (configure.ac): ... to here.
46617 2011-05-22  Bruno Haible  <bruno@clisp.org>
46619         wcpncpy: Move AC_LIBOBJ invocations to module description.
46620         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
46621         here...
46622         * modules/wcpncpy (configure.ac): ... to here.
46624 2011-05-22  Bruno Haible  <bruno@clisp.org>
46626         wcpcpy: Move AC_LIBOBJ invocations to module description.
46627         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
46628         * modules/wcpcpy (configure.ac): ... to here.
46630 2011-05-22  Bruno Haible  <bruno@clisp.org>
46632         waitpid: Move AC_LIBOBJ invocations to module description.
46633         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
46634         invocation from here...
46635         * modules/waitpid (configure.ac): ... to here.
46637 2011-05-22  Bruno Haible  <bruno@clisp.org>
46639         utimensat: Move AC_LIBOBJ invocations to module description.
46640         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
46641         here...
46642         * modules/utimensat (configure.ac): ... to here.
46644 2011-05-22  Bruno Haible  <bruno@clisp.org>
46646         usleep: Move AC_LIBOBJ invocations to module description.
46647         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
46648         here...
46649         * modules/usleep (configure.ac): ... to here.
46651 2011-05-22  Bruno Haible  <bruno@clisp.org>
46653         unlockpt: Move AC_LIBOBJ invocations to module description.
46654         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
46655         gl_PREREQ_UNLOCKPT invocations from here...
46656         * modules/unlockpt (configure.ac): ... to here.
46658 2011-05-22  Bruno Haible  <bruno@clisp.org>
46660         unlink: Respect rules for use of AC_LIBOBJ.
46661         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
46662         * modules/unlink (configure.ac): ... to here.
46664 2011-05-22  Bruno Haible  <bruno@clisp.org>
46666         uname: Move AC_LIBOBJ invocations to module description.
46667         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
46668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
46669         here...
46670         * modules/uname (configure.ac): ... to here.
46672 2011-05-22  Bruno Haible  <bruno@clisp.org>
46674         ttyname_r: Move AC_LIBOBJ invocations to module description.
46675         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
46676         gl_PREREQ_TTYNAME_R invocations from here...
46677         * modules/ttyname_r (configure.ac): ... to here.
46679 2011-05-22  Bruno Haible  <bruno@clisp.org>
46681         tsearch: Move AC_LIBOBJ invocations to module description.
46682         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
46683         invocations from here...
46684         * modules/tsearch (configure.ac): ... to here.
46686 2011-05-22  Bruno Haible  <bruno@clisp.org>
46688         towctrans: Move AC_LIBOBJ invocations to module description.
46689         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
46690         AC_LIBOBJ invocation from here...
46691         * modules/towctrans (configure.ac): ... to here.
46693 2011-05-22  Bruno Haible  <bruno@clisp.org>
46695         tmpfile: Move AC_LIBOBJ invocations to module description.
46696         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
46697         invocations from here...
46698         * modules/tmpfile (configure.ac): ... to here.
46700 2011-05-22  Bruno Haible  <bruno@clisp.org>
46702         times: Move AC_LIBOBJ invocations to module description.
46703         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
46704         * modules/times (configure.ac): ... to here.
46706 2011-05-22  Bruno Haible  <bruno@clisp.org>
46708         time_r: Move AC_LIBOBJ invocations to module description.
46709         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
46710         invocations from here...
46711         * modules/time_r (configure.ac): ... to here.
46713 2011-05-22  Bruno Haible  <bruno@clisp.org>
46715         timegm: Move AC_LIBOBJ invocations to module description.
46716         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
46717         invocations from here...
46718         * modules/timegm (configure.ac): ... to here.
46720 2011-05-22  Bruno Haible  <bruno@clisp.org>
46722         tcgetsid: Move AC_LIBOBJ invocations to module description.
46723         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
46724         and gl_PREREQ_TCGETSID invocations from here...
46725         * modules/tcgetsid (configure.ac): ... to here.
46726         (Depends-on): Update conditions.
46728 2011-05-22  Bruno Haible  <bruno@clisp.org>
46730         symlinkat: Move AC_LIBOBJ invocations to module description.
46731         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
46732         here...
46733         * modules/symlinkat (configure.ac): ... to here.
46735 2011-05-22  Bruno Haible  <bruno@clisp.org>
46737         symlink: Move AC_LIBOBJ invocations to module description.
46738         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
46739         here...
46740         * modules/symlink (configure.ac): ... to here.
46742 2011-05-22  Bruno Haible  <bruno@clisp.org>
46744         strverscmp: Move AC_LIBOBJ invocations to module description.
46745         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
46746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
46747         from here...
46748         * modules/strverscmp (configure.ac): ... to here.
46750 2011-05-22  Bruno Haible  <bruno@clisp.org>
46752         strtok_r: Move AC_LIBOBJ invocations to module description.
46753         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
46754         and gl_PREREQ_STRTOK_R invocations from here...
46755         * modules/strtok_r (configure.ac): ... to here.
46756         (Depends-on): Update conditions.
46758 2011-05-22  Bruno Haible  <bruno@clisp.org>
46760         strtoumax: Move AC_LIBOBJ invocations to module description.
46761         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
46762         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
46763         from here...
46764         * modules/strtoumax (configure.ac): ... to here.
46766 2011-05-22  Bruno Haible  <bruno@clisp.org>
46768         strtoimax: Move AC_LIBOBJ invocations to module description.
46769         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
46770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
46771         from here...
46772         * modules/strtoimax (configure.ac): ... to here.
46774 2011-05-22  Bruno Haible  <bruno@clisp.org>
46776         strtoull: Move AC_LIBOBJ invocations to module description.
46777         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
46778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
46779         from here...
46780         * modules/strtoull (configure.ac): ... to here.
46782 2011-05-22  Bruno Haible  <bruno@clisp.org>
46784         strtoll: Move AC_LIBOBJ invocations to module description.
46785         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
46786         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
46787         here...
46788         * modules/strtoll (configure.ac): ... to here.
46790 2011-05-22  Bruno Haible  <bruno@clisp.org>
46792         strtoul: Move AC_LIBOBJ invocations to module description.
46793         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
46794         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
46795         * modules/strtoul (configure.ac): ... to here.
46797 2011-05-22  Bruno Haible  <bruno@clisp.org>
46799         strtol: Move AC_LIBOBJ invocations to module description.
46800         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
46801         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
46802         * modules/strtol (configure.ac): ... to here.
46804 2011-05-22  Bruno Haible  <bruno@clisp.org>
46806         strtod: Move AC_LIBOBJ invocations to module description.
46807         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
46808         invocations from here...
46809         * modules/strtod (configure.ac): ... to here.
46811 2011-05-22  Bruno Haible  <bruno@clisp.org>
46813         strstr*: Move AC_LIBOBJ invocations to module description.
46814         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
46815         invocations from here...
46816         * modules/strstr-simple (configure.ac): ... to here.
46817         * modules/strstr (configure.ac): ... and here.
46819 2011-05-22  Bruno Haible  <bruno@clisp.org>
46821         strsignal: Move AC_LIBOBJ invocations to module description.
46822         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
46823         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
46824         * modules/strsignal (configure.ac): ... to here.
46825         (Depends-on): Update conditions.
46827 2011-05-22  Bruno Haible  <bruno@clisp.org>
46829         strsep: Move AC_LIBOBJ invocations to module description.
46830         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
46831         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
46832         here...
46833         * modules/strsep (configure.ac): ... to here.
46835 2011-05-22  Bruno Haible  <bruno@clisp.org>
46837         strptime: Move AC_LIBOBJ invocations to module description.
46838         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
46839         gl_PREREQ_STRPTIME invocations from here...
46840         * modules/strptime (configure.ac): ... to here.
46842 2011-05-22  Bruno Haible  <bruno@clisp.org>
46844         strpbrk: Move AC_LIBOBJ invocations to module description.
46845         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
46846         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
46847         here...
46848         * modules/strpbrk (configure.ac): ... to here.
46850 2011-05-22  Bruno Haible  <bruno@clisp.org>
46852         strnlen: Move AC_LIBOBJ invocations to module description.
46853         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
46854         invocations from here...
46855         * modules/strnlen (configure.ac): ... to here.
46857 2011-05-22  Bruno Haible  <bruno@clisp.org>
46859         strndup: Move AC_LIBOBJ invocations to module description.
46860         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
46861         invocations from here...
46862         * modules/strndup (configure.ac): ... to here.
46863         (Depends-on): Update conditions.
46865 2011-05-22  Bruno Haible  <bruno@clisp.org>
46867         strncat: Move AC_LIBOBJ invocations to module description.
46868         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
46869         invocations from here...
46870         * modules/strncat (configure.ac): ... to here.
46872 2011-05-22  Bruno Haible  <bruno@clisp.org>
46874         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
46875         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
46876         invocations from here...
46877         * modules/strdup (configure.ac): ... to here.
46878         * modules/strdup-posix (configure.ac): ... and here.
46880 2011-05-22  Bruno Haible  <bruno@clisp.org>
46882         strcspn: Move AC_LIBOBJ invocations to module description.
46883         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
46884         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
46885         here...
46886         * modules/strcspn (configure.ac): ... to here.
46888 2011-05-22  Bruno Haible  <bruno@clisp.org>
46890         strchrnul: Move AC_LIBOBJ invocations to module description.
46891         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
46892         gl_PREREQ_STRCHRNUL invocations from here...
46893         * modules/strchrnul (configure.ac): ... to here.
46895 2011-05-22  Bruno Haible  <bruno@clisp.org>
46897         strcasestr*: Move AC_LIBOBJ invocations to module description.
46898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
46899         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
46900         * modules/strcasestr-simple (configure.ac): ... to here.
46901         * modules/strcasestr (configure.ac): ... and here.
46903 2011-05-22  Bruno Haible  <bruno@clisp.org>
46905         strcase: Move AC_LIBOBJ invocations to module description.
46906         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
46907         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
46908         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
46909         gl_PREREQ_STRNCASECMP invocations from here...
46910         * modules/strcase (configure.ac): ... to here.
46912 2011-05-22  Bruno Haible  <bruno@clisp.org>
46914         stpncpy: Move AC_LIBOBJ invocations to module description.
46915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
46916         here...
46917         * modules/stpncpy (configure.ac): ... to here.
46919 2011-05-22  Bruno Haible  <bruno@clisp.org>
46921         stpcpy: Move AC_LIBOBJ invocations to module description.
46922         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
46923         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
46924         here...
46925         * modules/stpcpy (configure.ac): ... to here.
46927 2011-05-21  Bruno Haible  <bruno@clisp.org>
46929         stat: Move AC_LIBOBJ invocations to module description.
46930         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
46931         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
46932         here...
46933         * modules/stat (configure.ac): ... to here.
46935 2011-05-21  Bruno Haible  <bruno@clisp.org>
46937         sleep: Move AC_LIBOBJ invocations to module description.
46938         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
46939         * modules/sleep (configure.ac): ... to here.
46941 2011-05-21  Bruno Haible  <bruno@clisp.org>
46943         signbit: Move AC_LIBOBJ invocations to module description.
46944         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
46945         * modules/signbit (configure.ac): ... to here.
46947 2011-05-21  Bruno Haible  <bruno@clisp.org>
46949         sigprocmask: Move AC_LIBOBJ invocations to module description.
46950         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
46951         gl_PREREQ_SIGPROMASK invocations from here...
46952         * modules/sigprocmask (configure.ac): ... to here.
46954 2011-05-21  Bruno Haible  <bruno@clisp.org>
46956         sigaction: Move AC_LIBOBJ invocations to module description.
46957         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
46958         gl_PREREQ_SIGACTION invocations from here...
46959         * modules/sigaction (configure.ac): ... to here.
46961 2011-05-21  Bruno Haible  <bruno@clisp.org>
46963         sig2str: Move AC_LIBOBJ invocations to module description.
46964         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
46965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
46966         here...
46967         * modules/sig2str (configure.ac): ... to here.
46969 2011-05-21  Bruno Haible  <bruno@clisp.org>
46971         setlocale: Move AC_LIBOBJ invocations to module description.
46972         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
46973         gl_PREREQ_SETLOCALE invocations from here...
46974         * modules/setlocale (configure.ac): ... to here.
46976 2011-05-21  Bruno Haible  <bruno@clisp.org>
46978         unsetenv: Move AC_LIBOBJ invocations to module description.
46979         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
46980         and gl_PREREQ_UNSETENV invocations from here...
46981         * modules/unsetenv (configure.ac): ... to here.
46982         (Depends-on): Update.
46984 2011-05-21  Bruno Haible  <bruno@clisp.org>
46986         setenv: Move AC_LIBOBJ invocations to module description.
46987         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
46988         here...
46989         * modules/setenv (configure.ac): ... to here.
46991 2011-05-21  Bruno Haible  <bruno@clisp.org>
46993         selinux-h: Move AC_LIBOBJ invocations to module description.
46994         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
46995         AC_LIBOBJ invocation from here...
46996         * modules/selinux-h (configure.ac): ... to here.
46998 2011-05-21  Bruno Haible  <bruno@clisp.org>
47000         select: Respect rules for use of AC_LIBOBJ.
47001         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
47002         here...
47003         * modules/select (configure.ac): ... to here.
47005 2011-05-21  Bruno Haible  <bruno@clisp.org>
47007         scandir: Move AC_LIBOBJ invocations to module description.
47008         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
47009         invocations from here...
47010         * modules/scandir (configure.ac): ... to here.
47012 2011-05-21  Bruno Haible  <bruno@clisp.org>
47014         rpmatch: Move AC_LIBOBJ invocations to module description.
47015         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
47016         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
47017         here...
47018         * modules/rpmatch (configure.ac): ... to here.
47020 2011-05-21  Bruno Haible  <bruno@clisp.org>
47022         rmdir: Respect rules for use of AC_LIBOBJ.
47023         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
47024         * modules/rmdir (configure.ac): ... to here.
47026 2011-05-21  Bruno Haible  <bruno@clisp.org>
47028         renameat: Move AC_LIBOBJ invocations to module description.
47029         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
47030         here...
47031         * modules/renameat (configure.ac): ... to here.
47033 2011-05-21  Bruno Haible  <bruno@clisp.org>
47035         rename: Respect rules for use of AC_LIBOBJ.
47036         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
47037         here...
47038         * modules/rename (configure.ac): ... to here.
47040 2011-05-21  Bruno Haible  <bruno@clisp.org>
47042         remove: Move AC_LIBOBJ invocations to module description.
47043         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
47044         here...
47045         * modules/remove (configure.ac): ... to here.
47047 2011-05-21  Bruno Haible  <bruno@clisp.org>
47049         relocatable-lib: Move AC_LIBOBJ invocations to module description.
47050         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
47051         macro.
47052         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
47053         * modules/relocatable-lib (configure.ac): ... to here.
47054         * modules/relocatable-prog-wrapper (configure.ac): Invoke
47055         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
47057 2011-05-21  Bruno Haible  <bruno@clisp.org>
47059         relocatable-prog: Move AC_LIBOBJ invocations to module description.
47060         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
47061         here...
47062         * modules/relocatable-prog (configure.ac): ... to here.
47064 2011-05-21  Bruno Haible  <bruno@clisp.org>
47066         regex: Move AC_LIBOBJ invocations to module description.
47067         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
47068         invocations from here...
47069         * modules/regex (configure.ac): ... to here.
47071 2011-05-21  Bruno Haible  <bruno@clisp.org>
47073         realloc-*: Move AC_LIBOBJ invocations to module description.
47074         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
47075         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
47076         AC_LIBOBJ invocations from here...
47077         * modules/realloc-gnu (configure.ac): ... to here.
47078         * modules/realloc-posix (configure.ac): ... and here.
47080 2011-05-21  Bruno Haible  <bruno@clisp.org>
47082         readutmp: Move AC_LIBOBJ invocations to module description.
47083         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
47084         * modules/readutmp (configure.ac): ... to here.
47086 2011-05-21  Bruno Haible  <bruno@clisp.org>
47088         readlinkat: Move AC_LIBOBJ invocations to module description.
47089         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
47090         here...
47091         * modules/readlinkat (configure.ac): ... to here.
47093 2011-05-21  Bruno Haible  <bruno@clisp.org>
47095         readlink: Move AC_LIBOBJ invocations to module description.
47096         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
47097         gl_PREREQ_READLINK invocations from here...
47098         * modules/readlink (configure.ac): ... to here.
47100 2011-05-21  Bruno Haible  <bruno@clisp.org>
47102         readline: Move AC_LIBOBJ invocations to module description.
47103         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
47104         gl_PREREQ_READLINE invocations from here...
47105         * modules/readline (configure.ac): ... to here.
47107 2011-05-21  Bruno Haible  <bruno@clisp.org>
47109         read: Move AC_LIBOBJ invocations to module description.
47110         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
47111         * modules/read (configure.ac): ... to here.
47113 2011-05-21  Bruno Haible  <bruno@clisp.org>
47115         rawmemchr: Move AC_LIBOBJ invocations to module description.
47116         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
47117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
47118         from here...
47119         * modules/rawmemchr (configure.ac): ... to here.
47121 2011-05-21  Bruno Haible  <bruno@clisp.org>
47123         random_r: Move AC_LIBOBJ invocations to module description.
47124         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
47125         gl_PREREQ_RANDOM_R invocations from here...
47126         * modules/random_r (configure.ac): ... to here.
47128 2011-05-21  Bruno Haible  <bruno@clisp.org>
47130         pwrite: Move AC_LIBOBJ invocations to module description.
47131         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
47132         * modules/pwrite (configure.ac): ... to here.
47134 2011-05-21  Bruno Haible  <bruno@clisp.org>
47136         putenv: Move AC_LIBOBJ invocations to module description.
47137         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
47138         * modules/putenv (configure.ac): ... to here.
47140 2011-05-21  Bruno Haible  <bruno@clisp.org>
47142         login_tty: Move AC_LIBOBJ invocations to module description.
47143         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
47144         * modules/login_tty (configure.ac): ... to here.
47146 2011-05-21  Bruno Haible  <bruno@clisp.org>
47148         openpty: Move AC_LIBOBJ invocations to module description.
47149         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
47150         * modules/openpty (configure.ac): ... to here.
47152 2011-05-21  Bruno Haible  <bruno@clisp.org>
47154         forkpty: Move AC_LIBOBJ invocations to module description.
47155         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
47156         * modules/forkpty (configure.ac): ... to here.
47158 2011-05-21  Bruno Haible  <bruno@clisp.org>
47160         ptsname: Move AC_LIBOBJ invocations to module description.
47161         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
47162         invocations from here...
47163         * modules/ptsname (configure.ac): ... to here.
47165 2011-05-21  Bruno Haible  <bruno@clisp.org>
47167         pread: Move AC_LIBOBJ invocations to module description.
47168         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
47169         * modules/pread (configure.ac): ... to here.
47171 2011-05-21  Bruno Haible  <bruno@clisp.org>
47173         posix_spawn*: Move AC_LIBOBJ invocations to module description.
47174         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
47175         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
47176         * modules/posix_spawn (configure.ac): ... to here.
47177         * modules/posix_spawnp (configure.ac): ... and here.
47179 2011-05-21  Bruno Haible  <bruno@clisp.org>
47181         popen: Move AC_LIBOBJ invocations to module description.
47182         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
47183         invocations from here...
47184         * modules/popen (configure.ac): ... to here.
47186 2011-05-21  Bruno Haible  <bruno@clisp.org>
47188         poll: Move AC_LIBOBJ invocations to module description.
47189         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
47190         invocations from here...
47191         * modules/poll (configure.ac): ... to here.
47193 2011-05-21  Bruno Haible  <bruno@clisp.org>
47195         pipe-posix: Move AC_LIBOBJ invocations to module description.
47196         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
47197         * modules/pipe-posix (configure.ac): ... to here.
47199 2011-05-21  Bruno Haible  <bruno@clisp.org>
47201         openat: Respect rules for use of AC_LIBOBJ.
47202         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
47203         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
47204         * modules/openat (configure.ac): ... to here.
47206 2011-05-21  Bruno Haible  <bruno@clisp.org>
47208         obstack-printf*: Move AC_LIBOBJ invocations to module description.
47209         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
47210         invocation from here...
47211         * modules/obstack-printf (configure.ac): ... to here.
47212         * modules/obstack-printf-posix (configure.ac): ... and here.
47214 2011-05-21  Bruno Haible  <bruno@clisp.org>
47216         nl_langinfo: Move AC_LIBOBJ invocations to module description.
47217         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
47218         from here...
47219         * modules/nl_langinfo (configure.ac): ... to here.
47221 2011-05-21  Bruno Haible  <bruno@clisp.org>
47223         nanosleep: Move AC_LIBOBJ invocations to module description.
47224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
47225         gl_PREREQ_NANOSLEEP invocations from here...
47226         * modules/nanosleep (configure.ac): ... to here.
47228 2011-05-21  Bruno Haible  <bruno@clisp.org>
47230         mountlist: Move AC_LIBOBJ invocations to module description.
47231         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
47232         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
47233         * modules/mountlist (configure.ac): ... to here.
47235 2011-05-21  Bruno Haible  <bruno@clisp.org>
47237         mktime: Respect rules for use of AC_LIBOBJ.
47238         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
47239         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
47240         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
47241         (gl_FUNC_MKTIME_INTERNAL): ... and here...
47242         * modules/mktime (configure.ac): ... to here.
47243         * modules/mktime-internal (configure.ac): ... and here.
47244         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
47246 2011-05-21  Bruno Haible  <bruno@clisp.org>
47248         mkstemps: Move AC_LIBOBJ invocations to module description.
47249         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
47250         here...
47251         * modules/mkstemps (configure.ac): ... to here.
47253 2011-05-21  Bruno Haible  <bruno@clisp.org>
47255         mkstemp: Move AC_LIBOBJ invocations to module description.
47256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
47257         gl_PREREQ_MKSTEMP invocations from here...
47258         * modules/mkstemp (configure.ac): ... to here.
47260 2011-05-21  Bruno Haible  <bruno@clisp.org>
47262         mkostemps: Move AC_LIBOBJ invocations to module description.
47263         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
47264         here...
47265         * modules/mkostemps (configure.ac): ... to here.
47267 2011-05-21  Bruno Haible  <bruno@clisp.org>
47269         mkostemp: Move AC_LIBOBJ invocations to module description.
47270         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
47271         gl_PREREQ_MKOSTEMP invocations from here...
47272         * modules/mkostemp (configure.ac): ... to here.
47274 2011-05-21  Bruno Haible  <bruno@clisp.org>
47276         mknod: Move AC_LIBOBJ invocations to module description.
47277         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
47278         * modules/mknod (configure.ac): ... to here.
47280 2011-05-21  Bruno Haible  <bruno@clisp.org>
47282         mkfifoat: Move AC_LIBOBJ invocations to module description.
47283         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
47284         here...
47285         * modules/mkfifoat (configure.ac): ... to here.
47287 2011-05-21  Bruno Haible  <bruno@clisp.org>
47289         mkfifo: Respect rules for use of AC_LIBOBJ.
47290         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
47291         here...
47292         * modules/mkfifo (configure.ac): ... to here.
47294 2011-05-21  Bruno Haible  <bruno@clisp.org>
47296         mkdtemp: Move AC_LIBOBJ invocations to module description.
47297         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
47298         invocations from here...
47299         * modules/mkdtemp (configure.ac): ... to here.
47301 2011-05-21  Bruno Haible  <bruno@clisp.org>
47303         mkdir: Move AC_LIBOBJ invocations to module description.
47304         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
47305         * modules/mkdir (configure.ac): ... to here.
47307 2011-05-21  Bruno Haible  <bruno@clisp.org>
47309         memset: Move AC_LIBOBJ invocations to module description.
47310         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
47311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
47312         here...
47313         * modules/memset (configure.ac): ... to here.
47315 2011-05-21  Bruno Haible  <bruno@clisp.org>
47317         memrchr: Move AC_LIBOBJ invocations to module description.
47318         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
47319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
47320         here...
47321         * modules/memrchr (configure.ac): ... to here.
47323 2011-05-21  Bruno Haible  <bruno@clisp.org>
47325         mempcpy: Move AC_LIBOBJ invocations to module description.
47326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
47327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
47328         here...
47329         * modules/mempcpy (configure.ac): ... to here.
47331 2011-05-21  Bruno Haible  <bruno@clisp.org>
47333         memmove: Move AC_LIBOBJ invocations to module description.
47334         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
47335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
47336         here...
47337         * modules/memmove (configure.ac): ... to here.
47339 2011-05-21  Bruno Haible  <bruno@clisp.org>
47341         memmem*: Move AC_LIBOBJ invocations to module description.
47342         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
47343         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
47344         here...
47345         (gl_FUNC_MEMMEM): ... and here...
47346         * modules/memmem-simple (configure.ac): ... to here.
47347         * modules/memmem (configure.ac): ... and here.
47349 2011-05-21  Bruno Haible  <bruno@clisp.org>
47351         memcpy: Move AC_LIBOBJ invocations to module description.
47352         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
47353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
47354         here...
47355         * modules/memcpy (configure.ac): ... to here.
47357 2011-05-21  Bruno Haible  <bruno@clisp.org>
47359         memcmp: Simplify autoconf macro.
47360         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
47361         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
47362         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
47364 2011-05-21  Bruno Haible  <bruno@clisp.org>
47366         memcmp: Move AC_LIBOBJ invocations to module description.
47367         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
47368         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
47369         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
47370         * modules/memcmp (configure.ac): ... to here.
47371         (Depends-on): Update conditions.
47373 2011-05-21  Bruno Haible  <bruno@clisp.org>
47375         memchr: Respect rules for use of AC_LIBOBJ.
47376         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
47377         invocations from here...
47378         * modules/memchr (configure.ac): ... to here.
47380 2011-05-21  Bruno Haible  <bruno@clisp.org>
47382         mbtowc: Move AC_LIBOBJ invocations to module description.
47383         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
47384         invocations from here...
47385         * modules/mbtowc (configure.ac): ... to here.
47387 2011-05-21  Bruno Haible  <bruno@clisp.org>
47389         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
47390         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
47391         gl_PREREQ_MBSRTOWCS invocations from here...
47392         * modules/mbsrtowcs (configure.ac): ... to here.
47394 2011-05-21  Bruno Haible  <bruno@clisp.org>
47396         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
47397         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
47398         gl_PREREQ_MBSNRTOWCS invocations from here...
47399         * modules/mbsnrtowcs (configure.ac): ... to here.
47401 2011-05-21  Bruno Haible  <bruno@clisp.org>
47403         mbsinit: Move AC_LIBOBJ invocations to module description.
47404         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
47405         invocations from here...
47406         * modules/mbsinit (configure.ac): ... to here.
47408 2011-05-21  Bruno Haible  <bruno@clisp.org>
47410         mbrlen: Move AC_LIBOBJ invocations to module description.
47411         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
47412         invocations from here...
47413         * modules/mbrlen (configure.ac): ... to here.
47415 2011-05-21  Bruno Haible  <bruno@clisp.org>
47417         mbrtowc: Respect rules for use of AC_LIBOBJ.
47418         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
47419         invocations from here...
47420         * modules/mbrtowc (configure.ac): ... to here.
47422 2011-05-21  Bruno Haible  <bruno@clisp.org>
47424         malloc-*: Move AC_LIBOBJ invocations to module description.
47425         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
47426         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
47427         AC_LIBOBJ invocations from here...
47428         * modules/malloc-gnu (configure.ac): ... to here.
47429         * modules/malloc-posix (configure.ac): ... and here.
47431 2011-05-21  Bruno Haible  <bruno@clisp.org>
47433         lstat, openat: Respect rules for use of AC_LIBOBJ.
47434         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
47435         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
47436         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
47437         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
47438         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
47439         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
47440         here.
47441         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
47443 2011-05-21  Bruno Haible  <bruno@clisp.org>
47445         lseek: Move AC_LIBOBJ invocations to module description.
47446         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
47447         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
47448         * modules/lseek (configure.ac): ... to here.
47450 2011-05-21  Bruno Haible  <bruno@clisp.org>
47452         linkat: Move AC_LIBOBJ invocations to module description.
47453         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
47454         here...
47455         * modules/linkat (configure.ac): ... to here.
47457 2011-05-21  Bruno Haible  <bruno@clisp.org>
47459         link: Respect rules for use of AC_LIBOBJ.
47460         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
47461         * modules/link (configure.ac): ... to here.
47463 2011-05-21  Bruno Haible  <bruno@clisp.org>
47465         lchown: Move AC_LIBOBJ invocations to module description.
47466         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
47467         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
47468         * modules/lchown (configure.ac): ... to here.
47470 2011-05-21  Bruno Haible  <bruno@clisp.org>
47472         iswctype: Move AC_LIBOBJ invocations to module description.
47473         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
47474         here...
47475         * modules/iswctype (configure.ac): ... to here.
47477 2011-05-21  Bruno Haible  <bruno@clisp.org>
47479         iswblank: Move AC_LIBOBJ invocations to module description.
47480         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
47481         here...
47482         * modules/iswblank (configure.ac): ... to here.
47484 2011-05-21  Bruno Haible  <bruno@clisp.org>
47486         atanl: Move AC_LIBOBJ invocations to module description.
47487         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
47488         * modules/atanl (configure.ac): ... to here.
47490 2011-05-21  Bruno Haible  <bruno@clisp.org>
47492         acosl: Move AC_LIBOBJ invocations to module description.
47493         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
47494         * modules/acosl (configure.ac): ... to here.
47496 2011-05-21  Bruno Haible  <bruno@clisp.org>
47498         asinl: Respect rules for use of AC_LIBOBJ.
47499         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
47500         * modules/asinl (configure.ac): ... to here.
47502 2011-05-21  Bruno Haible  <bruno@clisp.org>
47504         tanl: Move AC_LIBOBJ invocations to module description.
47505         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
47506         * modules/tanl (configure.ac): ... to here.
47508 2011-05-21  Bruno Haible  <bruno@clisp.org>
47510         cosl: Move AC_LIBOBJ invocations to module description.
47511         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
47512         * modules/cosl (configure.ac): ... to here.
47514 2011-05-21  Bruno Haible  <bruno@clisp.org>
47516         sinl: Move AC_LIBOBJ invocations to module description.
47517         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
47518         * modules/sinl (configure.ac): ... to here.
47520 2011-05-21  Bruno Haible  <bruno@clisp.org>
47522         logl: Move AC_LIBOBJ invocations to module description.
47523         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
47524         * modules/logl (configure.ac): ... to here.
47526 2011-05-21  Bruno Haible  <bruno@clisp.org>
47528         expl: Move AC_LIBOBJ invocations to module description.
47529         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
47530         * modules/expl (configure.ac): ... to here.
47532 2011-05-21  Bruno Haible  <bruno@clisp.org>
47534         roundl: Move AC_LIBOBJ invocations to module description.
47535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
47536         * modules/roundl (configure.ac): ... to here.
47538 2011-05-21  Bruno Haible  <bruno@clisp.org>
47540         round: Move AC_LIBOBJ invocations to module description.
47541         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
47542         * modules/round (configure.ac): ... to here.
47544 2011-05-21  Bruno Haible  <bruno@clisp.org>
47546         roundf: Move AC_LIBOBJ invocations to module description.
47547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
47548         * modules/roundf (configure.ac): ... to here.
47550 2011-05-21  Bruno Haible  <bruno@clisp.org>
47552         truncl: Move AC_LIBOBJ invocations to module description.
47553         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
47554         * modules/truncl (configure.ac): ... to here.
47556 2011-05-21  Bruno Haible  <bruno@clisp.org>
47558         trunc: Move AC_LIBOBJ invocations to module description.
47559         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
47560         * modules/trunc (configure.ac): ... to here.
47562 2011-05-21  Bruno Haible  <bruno@clisp.org>
47564         truncf: Move AC_LIBOBJ invocations to module description.
47565         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
47566         * modules/truncf (configure.ac): ... to here.
47568 2011-05-21  Bruno Haible  <bruno@clisp.org>
47570         ceill: Move AC_LIBOBJ invocations to module description.
47571         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
47572         * modules/ceill (configure.ac): ... to here.
47574 2011-05-21  Bruno Haible  <bruno@clisp.org>
47576         ceil: Move AC_LIBOBJ invocations to module description.
47577         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
47578         * modules/ceil (configure.ac): ... to here.
47580 2011-05-21  Bruno Haible  <bruno@clisp.org>
47582         ceilf: Move AC_LIBOBJ invocations to module description.
47583         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
47584         * modules/ceilf (configure.ac): ... to here.
47586 2011-05-21  Bruno Haible  <bruno@clisp.org>
47588         floorl: Respect rules for use of AC_LIBOBJ.
47589         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
47590         * modules/floorl (configure.ac): ... to here.
47592 2011-05-21  Bruno Haible  <bruno@clisp.org>
47594         floor: Respect rules for use of AC_LIBOBJ.
47595         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
47596         * modules/floor (configure.ac): ... to here.
47598 2011-05-21  Bruno Haible  <bruno@clisp.org>
47600         floorf: Move AC_LIBOBJ invocations to module description.
47601         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
47602         * modules/floorf (configure.ac): ... to here.
47604 2011-05-20  Bruno Haible  <bruno@clisp.org>
47606         sqrtl: Respect rules for use of AC_LIBOBJ.
47607         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
47608         * modules/sqrtl (configure.ac): ... to here.
47610 2011-05-20  Bruno Haible  <bruno@clisp.org>
47612         ldexpl: Respect rules for use of AC_LIBOBJ.
47613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
47614         * modules/ldexpl (configure.ac): ... to here.
47616 2011-05-20  Bruno Haible  <bruno@clisp.org>
47618         frexpl*: Respect rules for use of AC_LIBOBJ.
47619         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
47620         invocation from here...
47621         * modules/frexpl (configure.ac): ... to here.
47622         * modules/frexpl-nolibm (configure.ac): ... and here.
47624 2011-05-20  Bruno Haible  <bruno@clisp.org>
47626         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
47627         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
47628         invocation from here...
47629         * modules/frexp (configure.ac): ... to here.
47630         * modules/frexp-nolibm (configure.ac): ... and here.
47632 2011-05-20  Bruno Haible  <bruno@clisp.org>
47634         isnan: Respect rules for use of AC_LIBOBJ.
47635         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
47636         invocations here.
47637         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
47638         REPLACE_ISNAN.
47639         * modules/isnand (configure.ac): Likewise.
47640         * modules/isnanl (configure.ac): Likewise.
47642 2011-05-20  Bruno Haible  <bruno@clisp.org>
47644         isnanl*: Respect rules for use of AC_LIBOBJ.
47645         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
47646         invocation from here...
47647         * modules/isnanl (configure.ac): ... to here.
47648         * modules/isnanl-nolibm (configure.ac): ... and here.
47650 2011-05-20  Bruno Haible  <bruno@clisp.org>
47652         isnand*: Move AC_LIBOBJ invocations to module description.
47653         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
47654         invocation from here...
47655         * modules/isnand (configure.ac): ... to here.
47656         * modules/isnand-nolibm (configure.ac): ... and here.
47658 2011-05-20  Bruno Haible  <bruno@clisp.org>
47660         isnanf*: Move AC_LIBOBJ invocations to module description.
47661         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
47662         invocation from here...
47663         * modules/isnanf (configure.ac): ... to here.
47664         * modules/isnanf-nolibm (configure.ac): ... and here.
47666 2011-05-20  Bruno Haible  <bruno@clisp.org>
47668         isnan*: Separate the AC_LIBOBJ invocations.
47669         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
47670         AC_LIBOBJ invocation.
47671         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
47672         here.
47673         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
47674         AC_LIBOBJ invocation.
47675         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
47676         here.
47677         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
47678         AC_LIBOBJ invocation.
47679         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
47680         here.
47681         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
47683 2011-05-08  Bruno Haible  <bruno@clisp.org>
47685         isinf: Move AC_LIBOBJ invocations to module description.
47686         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
47687         * modules/isinf (configure.ac): ... to here.
47689 2011-05-08  Bruno Haible  <bruno@clisp.org>
47691         isfinite: Move AC_LIBOBJ invocations to module description.
47692         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
47693         * modules/isfinite (configure.ac): ... to here.
47695 2011-05-08  Bruno Haible  <bruno@clisp.org>
47697         isblank: Move AC_LIBOBJ invocations to module description.
47698         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
47699         here...
47700         * modules/isblank (configure.ac): ... to here.
47702 2011-05-08  Bruno Haible  <bruno@clisp.org>
47704         isapipe: Move AC_LIBOBJ invocations to module description.
47705         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
47706         gl_PREREQ_ISAPIPE invocations from here...
47707         * modules/isapipe (configure.ac): ... to here.
47708         (Depends-on): Update condition.
47710 2011-05-08  Bruno Haible  <bruno@clisp.org>
47712         ioctl: Move AC_LIBOBJ invocations to module description.
47713         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
47714         invocations from here...
47715         * modules/ioctl (configure.ac): ... to here.
47716         (Depends-on): Update condition.
47718 2011-05-08  Bruno Haible  <bruno@clisp.org>
47720         imaxdiv: Move AC_LIBOBJ invocations to module description.
47721         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
47722         invocations from here...
47723         * modules/imaxdiv (configure.ac): ... to here.
47725 2011-05-08  Bruno Haible  <bruno@clisp.org>
47727         imaxabs: Move AC_LIBOBJ invocations to module description.
47728         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
47729         invocations from here...
47730         * modules/imaxabs (configure.ac): ... to here.
47732 2011-05-08  Bruno Haible  <bruno@clisp.org>
47734         getaddrinfo: Move AC_LIBOBJ invocations to module description.
47735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
47736         AC_LIBOBJ invocations from here...
47737         * modules/getaddrinfo (configure.ac): ... to here.
47738         (Depends-on): Add conditions.
47740 2011-05-08  Bruno Haible  <bruno@clisp.org>
47742         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
47743         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
47744         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
47745         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
47746         (gl_PREREQ_INET_PTON): ... from here.
47747         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
47748         gl_PREREQ_INET_PTON here.
47749         (Depends-on): Update condition.
47751 2011-05-08  Bruno Haible  <bruno@clisp.org>
47753         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
47754         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
47755         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
47756         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
47757         (gl_PREREQ_INET_NTOP): ... from here.
47758         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
47759         gl_PREREQ_INET_NTOP here.
47760         (Depends-on): Update condition.
47762 2011-05-08  Bruno Haible  <bruno@clisp.org>
47764         iconv_open: Move AC_LIBOBJ invocations to module description.
47765         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
47766         AC_LIBOBJ invocations from here...
47767         * modules/iconv_open (configure.ac): ... to here.
47769 2011-05-08  Bruno Haible  <bruno@clisp.org>
47771         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
47772         If module 'iconv_open' is among the main modules and module
47773         'iconv_open-utf' is among the tests dependencies, then
47774         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
47775         return the special iconv_t values. Therefore iconv() and iconv_close()
47776         must support these special iconv_t values, already in lib, not only in
47777         tests.
47778         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
47779         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
47780         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
47781         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
47782         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
47783         (Depends-on): Add the dependencies of iconv_open-utf.
47784         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
47785         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
47786         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
47788 2011-05-08  Bruno Haible  <bruno@clisp.org>
47790         group-member: Move AC_LIBOBJ invocations to module description.
47791         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
47792         gl_PREREQ_GROUP_MEMBER invocations from here...
47793         * modules/group-member (configure.ac): ... to here.
47795 2011-05-08  Bruno Haible  <bruno@clisp.org>
47797         grantpt: Move AC_LIBOBJ invocations to module description.
47798         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
47799         invocations from here...
47800         * modules/grantpt (configure.ac): ... to here.
47802 2011-05-08  Bruno Haible  <bruno@clisp.org>
47804         glob: Move AC_LIBOBJ invocations to module description.
47805         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
47806         from here...
47807         * modules/glob (configure.ac): ... to here.
47809 2011-05-08  Bruno Haible  <bruno@clisp.org>
47811         getusershell: Move AC_LIBOBJ invocations to module description.
47812         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
47813         Move AC_LIBOBJ invocation from here...
47814         * modules/getusershell (configure.ac): ... to here.
47815         (Depends-on): Update condition.
47817 2011-05-08  Bruno Haible  <bruno@clisp.org>
47819         gettimeofday: Move AC_LIBOBJ invocations to module description.
47820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47821         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
47822         gl_PREREQ_GETTIMEOFDAY invocations from here...
47823         * modules/gettimeofday (configure.ac): ... to here.
47825 2011-05-08  Bruno Haible  <bruno@clisp.org>
47827         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
47828         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
47829         just gl_FUNC_TZSET.
47830         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
47831         (gl_FUNC_TZSET_CLOBBER): Remove actions.
47832         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
47833         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
47835 2011-05-08  Bruno Haible  <bruno@clisp.org>
47837         getsubopt: Move AC_LIBOBJ invocations to module description.
47838         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
47839         gl_PREREQ_GETSUBOPT invocations from here...
47840         * modules/getsubopt (configure.ac): ... to here.
47842 2011-05-08  Bruno Haible  <bruno@clisp.org>
47844         getpass-gnu: Move AC_LIBOBJ invocations to module description.
47845         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
47846         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
47847         * modules/getpass-gnu (configure.ac): ... to here.
47849 2011-05-08  Bruno Haible  <bruno@clisp.org>
47851         getpass: Move AC_LIBOBJ invocations to module description.
47852         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
47853         gl_PREREQ_GETPASS invocations from here...
47854         * modules/getpass (configure.ac): ... to here.
47856 2011-05-08  Bruno Haible  <bruno@clisp.org>
47858         getpagesize: Move AC_LIBOBJ invocations to module description.
47859         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
47860         from here...
47861         * modules/getpagesize (configure.ac): ... to here.
47863 2011-05-08  Bruno Haible  <bruno@clisp.org>
47865         getopt: Move AC_LIBOBJ invocations to module description.
47866         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
47867         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
47868         invocations from here...
47869         * modules/getopt-gnu (configure.ac): ... to here.
47870         * modules/getopt-posix (configure.ac): ... and here.
47871         (Depends-on): Update condition.
47873 2011-05-08  Bruno Haible  <bruno@clisp.org>
47875         getopt, argp: Respect rules for use of AC_LIBOBJ.
47876         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
47877         (gl_REPLACE_GETOPT_ALWAYS): New macro.
47878         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
47879         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
47881 2011-05-08  Bruno Haible  <bruno@clisp.org>
47883         getlogin_r: Move AC_LIBOBJ invocations to module description.
47884         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
47885         gl_PREREQ_GETLOGIN_R invocations from here...
47886         * modules/getlogin_r (configure.ac): ... to here.
47888 2011-05-08  Bruno Haible  <bruno@clisp.org>
47890         getlogin: Move AC_LIBOBJ invocations to module description.
47891         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
47892         here...
47893         * modules/getlogin (configure.ac): ... to here.
47895 2011-05-08  Bruno Haible  <bruno@clisp.org>
47897         getloadavg: Move AC_LIBOBJ invocations to module description.
47898         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
47899         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
47900         * modules/getloadavg (configure.ac): ... to here.
47902 2011-05-08  Bruno Haible  <bruno@clisp.org>
47904         gethrxtime: Move AC_LIBOBJ invocations to module description.
47905         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
47906         LIB_GETHRXTIME from here...
47907         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
47908         invocations from here...
47909         * modules/gethrxtime (configure.ac): ... to here.
47911 2011-05-08  Bruno Haible  <bruno@clisp.org>
47913         gethostname: Move AC_LIBOBJ invocations to module description.
47914         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
47915         gl_PREREQ_GETHOSTNAME invocations from here...
47916         * modules/gethostname (configure.ac): ... to here.
47918 2011-05-08  Bruno Haible  <bruno@clisp.org>
47920         getgroups: Move AC_LIBOBJ invocations to module description.
47921         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
47922         here...
47923         * modules/getgroups (configure.ac): ... to here.
47925 2011-05-08  Bruno Haible  <bruno@clisp.org>
47927         getdtablesize: Move AC_LIBOBJ invocations to module description.
47928         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
47929         invocation from here...
47930         * modules/getdtablesize (configure.ac): ... to here.
47932 2011-05-08  Bruno Haible  <bruno@clisp.org>
47934         getdomainname: Move AC_LIBOBJ invocations to module description.
47935         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
47936         gl_PREREQ_GETDOMAINNAME invocations from here...
47937         * modules/getdomainname (configure.ac): ... to here.
47939 2011-05-08  Bruno Haible  <bruno@clisp.org>
47941         getline: Move AC_LIBOBJ invocations to module description.
47942         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
47943         invocations from here...
47944         * modules/getline (configure.ac): ... to here.
47946 2011-05-08  Bruno Haible  <bruno@clisp.org>
47948         getline: Simplify.
47949         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
47950         It's already handled through the module dependency.
47952 2011-05-08  Bruno Haible  <bruno@clisp.org>
47954         getdelim: Move AC_LIBOBJ invocations to module description.
47955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
47956         and gl_PREREQ_GETDELIM invocations from here...
47957         * modules/getdelim (configure.ac): ... to here.
47958         (Depends-on): Fix condition.
47960 2011-05-08  Bruno Haible  <bruno@clisp.org>
47962         getcwd: Move AC_LIBOBJ invocations to module description.
47963         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
47964         invocations from here...
47965         * modules/getcwd (configure.ac): ... to here.
47967 2011-05-08  Bruno Haible  <bruno@clisp.org>
47969         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
47970         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
47971         here...
47972         * modules/getcwd-lgpl (configure.ac): ... to here.
47974 2011-05-07  Bruno Haible  <bruno@clisp.org>
47976         crypto/gc: Move AC_LIBOBJ invocations to module description.
47977         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
47978         * modules/crypto/gc (configure.ac): ... to here.
47980 2011-05-07  Bruno Haible  <bruno@clisp.org>
47982         fwriting: Move AC_LIBOBJ invocations to module description.
47983         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
47984         here...
47985         * modules/fwriting (configure.ac): ... to here.
47987 2011-05-07  Bruno Haible  <bruno@clisp.org>
47989         fwritable: Move AC_LIBOBJ invocations to module description.
47990         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
47991         here...
47992         * modules/fwritable (configure.ac): ... to here.
47994 2011-05-07  Bruno Haible  <bruno@clisp.org>
47996         futimens: Move AC_LIBOBJ invocations to module description.
47997         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
47998         here...
47999         * modules/futimens (configure.ac): ... to here.
48001 2011-05-07  Bruno Haible  <bruno@clisp.org>
48003         ftruncate: Move AC_LIBOBJ invocations to module description.
48004         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
48005         gl_PREREQ_FTRUNCATE invocations from here...
48006         * modules/ftruncate (configure.ac): ... to here.
48008 2011-05-07  Bruno Haible  <bruno@clisp.org>
48010         fsync: Move AC_LIBOBJ invocations to module description.
48011         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
48012         invocations from here...
48013         * modules/fsync (configure.ac): ... to here.
48015 2011-05-07  Bruno Haible  <bruno@clisp.org>
48017         fsusage: Move AC_LIBOBJ invocations to module description.
48018         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
48019         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
48020         * modules/fsusage (configure.ac): ... to here.
48022 2011-05-07  Bruno Haible  <bruno@clisp.org>
48024         freopen: Move AC_LIBOBJ invocations to module description.
48025         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
48026         invocations from here...
48027         * modules/freopen (configure.ac): ... to here.
48029 2011-05-07  Bruno Haible  <bruno@clisp.org>
48031         free: Move AC_LIBOBJ invocations to module description.
48032         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
48033         invocations from here...
48034         * modules/free (configure.ac): ... to here.
48036 2011-05-07  Bruno Haible  <bruno@clisp.org>
48038         freadable: Move AC_LIBOBJ invocations to module description.
48039         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
48040         here...
48041         * modules/freadable (configure.ac): ... to here.
48043 2011-05-07  Bruno Haible  <bruno@clisp.org>
48045         fpurge: Move AC_LIBOBJ invocations to module description.
48046         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
48047         invocations from here...
48048         * modules/fpurge (configure.ac): ... to here.
48050 2011-05-07  Bruno Haible  <bruno@clisp.org>
48052         fpending: Move AC_LIBOBJ invocations to module description.
48053         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
48054         gl_FUNC_FPENDING.
48055         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
48056         invocations from here...
48057         * modules/fpending (configure.ac): ... to here.
48059 2011-05-07  Bruno Haible  <bruno@clisp.org>
48061         fopen: Move AC_LIBOBJ invocations to module description.
48062         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
48063         invocations from here...
48064         * modules/fopen (configure.ac): ... to here.
48066 2011-05-07  Bruno Haible  <bruno@clisp.org>
48068         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
48069         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
48070         gl_FUNC_FNMATCH_POSIX.
48071         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
48072         invocations from here...
48073         * modules/fnmatch (configure.ac): ... to here.
48074         * modules/fnmatch-gnu (configure.ac): ... and here.
48076 2011-05-07  Bruno Haible  <bruno@clisp.org>
48078         flock: Move AC_LIBOBJ invocations to module description.
48079         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
48080         invocations from here...
48081         * modules/flock (configure.ac): ... to here.
48083 2011-05-07  Bruno Haible  <bruno@clisp.org>
48085         fileblocks: Move AC_LIBOBJ invocations to module description.
48086         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
48087         gl_PREREQ_FILEBLOCKS invocations from here...
48088         * modules/fileblocks (configure.ac): ... to here.
48090 2011-05-06  Bruno Haible  <bruno@clisp.org>
48092         fflush: Move AC_LIBOBJ invocations to module description.
48093         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
48094         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
48095         invocations from here...
48096         * modules/fflush (configure.ac): ... to here.
48098 2011-05-06  Bruno Haible  <bruno@clisp.org>
48100         fdopendir: Move AC_LIBOBJ invocations to module description.
48101         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
48102         here...
48103         * modules/fdopendir (configure.ac): ... to here.
48104         (Depends-on): Improve conditions.
48106 2011-05-06  Bruno Haible  <bruno@clisp.org>
48108         _Exit: Move AC_LIBOBJ invocations to module description.
48109         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
48110         invocations from here...
48111         * modules/_Exit (configure.ac): ... to here.
48113 2011-05-21  Bruno Haible  <bruno@clisp.org>
48115         euidaccess: Respect rules for use of AC_LIBOBJ.
48116         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
48117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
48118         from here...
48119         * modules/euidaccess (configure.ac): ... to here.
48121 2011-05-06  Bruno Haible  <bruno@clisp.org>
48123         error: Move AC_LIBOBJ invocations to module description.
48124         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
48125         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
48126         invocations from here...
48127         * modules/error (configure.ac): ... to here.
48129 2011-05-06  Bruno Haible  <bruno@clisp.org>
48131         duplocale: Move AC_LIBOBJ invocations to module description.
48132         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
48133         gl_PREREQ_DUPLOCALE invocations from here...
48134         * modules/duplocale (configure.ac): ... to here.
48136 2011-05-05  Bruno Haible  <bruno@clisp.org>
48138         dirfd: Move AC_LIBOBJ invocations to module description.
48139         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
48140         gl_FUNC_DIRFD.
48141         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
48142         here...
48143         * modules/dirfd (configure.ac): ... to here.
48144         (Depends-on): Fix condition.
48146 2011-05-05  Bruno Haible  <bruno@clisp.org>
48148         chown: Respect rules for use of AC_LIBOBJ.
48149         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
48150         * modules/chown (configure.ac): ... to here.
48152 2011-05-05  Bruno Haible  <bruno@clisp.org>
48154         chdir-long: Move AC_LIBOBJ invocations to module description.
48155         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
48156         gl_PREREQ_CHDIR_LONG invocations from here...
48157         * modules/chdir-long (configure.ac): ... to here.
48159 2011-05-05  Bruno Haible  <bruno@clisp.org>
48161         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
48162         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
48163         from here...
48164         * modules/canonicalize-lgpl (configure.ac): ... to here.
48166 2011-05-05  Bruno Haible  <bruno@clisp.org>
48168         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
48169         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
48170         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
48171         REPLACE_CALLOC.
48172         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
48173         * modules/calloc-gnu (configure.ac): Likewise.
48175 2011-05-05  Bruno Haible  <bruno@clisp.org>
48177         btowc: Move AC_LIBOBJ invocations to module description.
48178         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
48179         invocations from here...
48180         * modules/btowc (configure.ac): ... to here.
48182 2011-05-21  Bruno Haible  <bruno@clisp.org>
48184         atexit: Move AC_LIBOBJ invocations to module description.
48185         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
48186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
48187         here...
48188         * modules/atexit (configure.ac): ... to here.
48190 2011-05-05  Bruno Haible  <bruno@clisp.org>
48192         atoll: Move AC_LIBOBJ invocations to module description.
48193         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
48194         invocations from here...
48195         * modules/atoll (configure.ac): ... to here.
48197 2011-05-05  Bruno Haible  <bruno@clisp.org>
48199         argz: Move AC_LIBOBJ invocations to module description.
48200         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
48201         * modules/argz (configure.ac): ... to here.
48203 2011-05-05  Bruno Haible  <bruno@clisp.org>
48205         alphasort: Move AC_LIBOBJ invocations to module description.
48206         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
48207         gl_PREREQ_ALPHASORT invocations from here...
48208         * modules/alphasort (configure.ac): ... to here.
48210 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48212         verify: new macro verify_expr; verify_true deprecated
48213         * NEWS: Mention this.
48214         * doc/verify.texi (Compile-time Assertions): Document this.
48215         * lib/verify.h (verify_true): Deprecate.
48216         (verify_expr): New macro.
48217         * tests/test-verify.c (function): Test verify_expr.
48219 2011-06-14  Jim Meyering  <meyering@redhat.com>
48221         init.sh: give more portable redirection-related advice in a comment
48222         * tests/init.sh (stderr_fileno_): Update the advice in comments.
48223         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
48224         for lots of discussion.  Stefano Lattarini suggested the solution
48225         of putting "9>&2" after the command.  Reported by Bruno Haible.
48227 2011-06-13  Bruno Haible  <bruno@clisp.org>
48229         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
48230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
48231         'none'.
48233 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
48235         ftoastr: use strtof only if HAVE_STRTOF
48236         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
48237         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
48238         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
48239         * modules/ftoastr (configure.ac): Check for strtof.
48241 2011-06-13  Bruno Haible  <bruno@clisp.org>
48243         gnulib-tool: Addendum to 2011-06-08 commit.
48244         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
48245         and --witness-c-macro have been given, augment AM_CPPFLAGS.
48247 2011-06-13  Bruno Haible  <bruno@clisp.org>
48249         fseeko: Provide a non-inline replacement of fseek().
48250         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
48251         * modules/fseeko (Depends-on): Add fseek.
48252         * modules/fseek (License): Change to LGPLv2+.
48254 2011-06-13  Bruno Haible  <bruno@clisp.org>
48256         ftello: Provide a non-inline replacement of ftell().
48257         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
48258         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
48259         not have ftello() (such as on mingw).
48260         * modules/ftello (Depends-on): Add ftell.
48261         * modules/ftell (License): Change to LGPLv2+.
48263 2011-05-07  Bruno Haible  <bruno@clisp.org>
48265         ftell: Move AC_LIBOBJ invocations to module description.
48266         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
48267         * modules/ftell (configure.ac): ... to here.
48269 2011-05-07  Bruno Haible  <bruno@clisp.org>
48271         ftello: Respect rules for use of AC_LIBOBJ.
48272         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
48273         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
48274         here...
48275         * modules/ftello (configure.ac): ... to here.
48277 2011-05-07  Bruno Haible  <bruno@clisp.org>
48279         fseeko: Simplify.
48280         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
48281         (gl_FUNC_FSEEKO): Inline it here.
48283 2011-05-07  Bruno Haible  <bruno@clisp.org>
48285         fseek: Move AC_LIBOBJ invocations to module description.
48286         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
48287         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
48288         * modules/fseek (configure.ac): ... to here.
48290 2011-05-07  Bruno Haible  <bruno@clisp.org>
48292         fseek: Respect rules for use of AC_LIBOBJ.
48293         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
48294         here...
48295         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
48297 2011-05-07  Bruno Haible  <bruno@clisp.org>
48299         fseeko: Respect rules for use of AC_LIBOBJ.
48300         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
48301         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
48302         here...
48303         * modules/fseeko (configure.ac): ... to here.
48305 2011-06-13  Bruno Haible  <bruno@clisp.org>
48307         gnulib-tool: Allow comments in the 'Depends-on' section.
48308         * doc/gnulib.texi (Module description): Mention comment syntax in the
48309         Depends-on section.
48310         * gnulib-tool (func_get_dependencies): Filter out comment lines.
48312 2011-06-13  Bruno Haible  <bruno@clisp.org>
48314         file-set.h: guard __attibute__ use, now that it's not always defined
48315         * lib/file-set.h (record_file): Use __attribute__ only with compiler
48316         versions that support it.  This fixes a coreutils build failure with
48317         the vendor cc on HP-UX 11.31.
48319 2011-06-12  Bruno Haible  <bruno@clisp.org>
48321         acl: Add support for HP-UX >= 11.11 JFS ACLs.
48322         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
48323         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
48324         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
48325         (acl, aclsort): New declarations.
48326         (aclv_nontrivial): New declaration.
48327         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
48328         (file_has_acl): Read also the second kind of HP-UX ACLs.
48329         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
48330         kind of HP-UX ACLs if the first kind fails.
48331         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
48332         second kind of HP-UX ACLs.
48333         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
48334         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
48335         agree.
48336         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
48337         hpuxjfs.
48338         Handle hpuxjfs.
48339         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
48340         hpuxjfs.
48341         Handle hpuxjfs.
48342         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
48343         (func_test_same_acls): Use both lsacl and getacl.
48344         Handle hpuxjfs.
48345         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
48346         (func_test_same_acls): Use both lsacl and getacl.
48347         Handle hpuxjfs.
48349 2011-06-12  Bruno Haible  <bruno@clisp.org>
48351         acl: Complete the 2010-08-10 fix.
48352         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
48353         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
48354         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
48355         explicitly.
48356         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
48357         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
48359 2011-06-12  Bruno Haible  <bruno@clisp.org>
48361         spawn-pipe tests: Comments.
48362         * tests/test-spawn-pipe-child.c (main): Update comment.
48363         Reported by James Youngman <jay@gnu.org>.
48365 2011-06-11  James Youngman  <jay@gnu.org>
48367         New module 'stat-size'.
48368         * modules/stat-size: New module.  Provides macros for accessing
48369         file size information in instances of struct stat.  Depends on the
48370         fileblocks module because it calls st_blocks.
48371         * lib/stat-size.h: New file, adapted from coreutils' system.h.
48372         * doc/gnulib.texi: Include stat-size.texi.
48373         * doc/stat-size.texi: Documentation for this module.
48374         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
48375         * m4/fileblocks.m4: Mention that stat-size depends on the call to
48376         AC_STRUCT_ST_BLOCKS.
48378 2011-06-09  Bruno Haible  <bruno@clisp.org>
48380         thread: Support pthreads-win32.
48381         * lib/glthread/thread.h (gl_thread_self): Define differently on
48382         pthreads-win32.
48383         (gl_null_thread): New declaration.
48384         (gl_thread_self_pointer): New macro.
48385         * lib/glthread/thread.c (gl_null_thread): New constant.
48386         * tests/test-lock.c: Use gl_thread_self_pointer instead of
48387         gl_thread_self.
48388         * tests/test-tls.c: Likewise.
48389         Suggested by Paul Eggert. Reported by Eric Blake.
48391 2011-06-09  Bruno Haible  <bruno@clisp.org>
48393         thread: Fix confusion between NULL and 0.
48394         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
48395         Reported by Paul Eggert.
48397 2011-06-09  Bruno Haible  <bruno@clisp.org>
48399         spawn-pipe tests: Avoid test failure on HP-UX 11.
48400         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
48401         is closed.
48403 2011-06-09  Bruno Haible  <bruno@clisp.org>
48405         acl tests: Fix compilation error on HP-UX 11.
48406         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
48408 2011-06-09  Bruno Haible  <bruno@clisp.org>
48410         rmdir: Avoid test failure on HP-UX 10.20.
48411         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
48412         EEXIST.
48414 2011-06-08  Eric Blake  <eblake@redhat.com>
48416         perror: fix test on mingw
48417         * modules/perror-tests (Depends-on): Add dup2.
48419         strerror_r-posix: fix on MacOS
48420         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
48421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
48422         logic bug.
48423         * lib/strerror_r.c (strerror_r): Fix the bug.
48424         * lib/strerror.c (strerror): Likewise.
48425         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
48426         problem.
48427         * doc/posix-functions/strerror.texi (strerror): Likewise.
48428         * doc/posix-functions/perror.texi (perror): Likewise.
48429         * tests/test-strerror.c (main): Enhance test.
48430         * tests/test-strerror_r.c (main): Likewise.
48432 2011-06-08  Bruno Haible  <bruno@clisp.org>
48434         gnulib-tool: Better isolation between different gnulib-tool invocations.
48435         * gnulib-tool: New option --witness-c-macro.
48436         (witness_c_macro): New variable.
48437         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
48438         AM_CPPFLAGS define it as a C macro.
48439         (func_emit_tests_Makefile_am): Likewise.
48440         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
48441         read it from there.
48442         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
48443         m4_define, not AC_DEFUN.
48444         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
48445         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
48446         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
48447         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
48448         s|...|...|, to substitute the values of the GNULIB_* module indicator
48449         variables.
48450         * modules/dirent (Makefile.am): Likewise.
48451         * modules/fcntl-h (Makefile.am): Likewise.
48452         * modules/iconv-h (Makefile.am): Likewise.
48453         * modules/langinfo (Makefile.am): Likewise.
48454         * modules/locale (Makefile.am): Likewise.
48455         * modules/math (Makefile.am): Likewise.
48456         * modules/netdb (Makefile.am): Likewise.
48457         * modules/poll-h (Makefile.am): Likewise.
48458         * modules/pty (Makefile.am): Likewise.
48459         * modules/search (Makefile.am): Likewise.
48460         * modules/signal (Makefile.am): Likewise.
48461         * modules/spawn (Makefile.am): Likewise.
48462         * modules/stdio (Makefile.am): Likewise.
48463         * modules/stdlib (Makefile.am): Likewise.
48464         * modules/string (Makefile.am): Likewise.
48465         * modules/sys_ioctl (Makefile.am): Likewise.
48466         * modules/sys_select (Makefile.am): Likewise.
48467         * modules/sys_socket (Makefile.am): Likewise.
48468         * modules/sys_stat (Makefile.am): Likewise.
48469         * modules/sys_times (Makefile.am): Likewise.
48470         * modules/sys_utsname (Makefile.am): Likewise.
48471         * modules/sys_wait (Makefile.am): Likewise.
48472         * modules/termios (Makefile.am): Likewise.
48473         * modules/time (Makefile.am): Likewise.
48474         * modules/unistd (Makefile.am): Likewise.
48475         * modules/wchar (Makefile.am): Likewise.
48477 2011-06-08  Eric Blake  <eblake@redhat.com>
48479         strerror: simplify replacement
48480         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
48481         * modules/strerror (configure.ac): No prereqs needed here...
48482         * modules/strerror-override (configure.ac): ...but this needs it.
48483         (Files): Add file for needed prereq macro.
48485 2011-06-08  Bruno Haible  <bruno@clisp.org>
48487         strerror_r-posix: Tweaks.
48488         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
48489         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
48490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
48491         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
48492         (gl_FUNC_STRERROR_R): ... to here.
48493         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
48495 2011-06-07  Eric Blake  <eblake@redhat.com>
48497         perror: document fixed bugs
48498         * doc/posix-functions/perror.texi (perror): Document recent
48499         patches.
48501 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
48503         stat-time: get_stat_birthtime failure is better-defined
48504         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
48505         return a timestamp whose tv_sec and tv_nsec values are both -1.
48506         Previously, the spec said only that the tv_nsec value was negative.
48507         This upward-compatible change simplifies GNU tar a bit.
48509 2011-06-07  Eric Blake  <eblake@redhat.com>
48511         strerror_r-posix: work around cygwin 1.7.9
48512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
48513         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
48514         bug without replacing strerror_r.
48515         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
48516         strerror_r is buggy, but without requiring strerror_r compilation.
48517         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
48519         test-perror: relax test to ignore cygwin bug
48520         * tests/test-perror2.c (main): Relax test on requiring detection
48521         of stream errors, and use unbuffered stream.
48522         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
48523         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
48524         * doc/posix-functions/fputc.texi (fputc): Likewise.
48525         * doc/posix-functions/fputs.texi (fputs): Likewise.
48526         * doc/posix-functions/fputws.texi (fputws): Likewise.
48527         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
48528         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
48529         * doc/posix-functions/getopt.texi (getopt): Likewise.
48530         * doc/posix-functions/perror.texi (perror): Likewise.
48531         * doc/posix-functions/printf.texi (printf): Likewise.
48532         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
48533         * doc/posix-functions/psignal.texi (psignal): Likewise.
48534         * doc/posix-functions/putc.texi (putc): Likewise.
48535         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
48536         Likewise.
48537         * doc/posix-functions/putchar.texi (putchar): Likewise.
48538         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
48539         Likewise.
48540         * doc/posix-functions/puts.texi (puts): Likewise.
48541         * doc/posix-functions/putwc.texi (putwc): Likewise.
48542         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48543         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48544         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48545         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
48546         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48547         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48548         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
48549         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
48551 2011-05-22  Bruno Haible  <bruno@clisp.org>
48553         strerror: Move AC_LIBOBJ invocations to module description.
48554         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
48555         gl_PREREQ_STRERROR invocations from here...
48556         * modules/strerror (configure.ac): ... to here.
48558 2011-05-21  Bruno Haible  <bruno@clisp.org>
48560         perror: Use common idiom.
48561         * modules/perror (configure.ac): Reorder statements.
48563 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
48565         tests: fix usage message in 'mktempd_'
48566         * tests/init.sh (mktempd_): In the usage message, use literal
48567         'mktempd_', not '$ME' (which is even undefined), as the name of
48568         the subroutine.
48570 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
48572         tests init: new function 'fatal_', for hard errors
48573         Before this patch, the only way offered by tests/init.sh to
48574         properly signal a hard error was the `framework_failure_'
48575         function.  But the error message issued by that function,
48576         as its name would suggest, refers to a set-up failure in the
48577         testsuite, while hard errors can obviously also be due to
48578         other reasons.  The best way to fix this inconsistency is to
48579         introduce a new function with a more general error message.
48580         * tests/init.sh (fatal_): New function.
48582 2011-06-06  Eric Blake  <eblake@redhat.com>
48584         canonicalize-lgpl: use common idiom
48585         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
48586         over newer POSIX -Rf.
48587         Reported by Bruno Haible.
48589         canonicalize-lgpl: work around AIX realpath bug
48590         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
48591         * doc/posix-functions/realpath.texi (realpath): Document it.
48592         Reported by Bruno Haible.
48594         strerror: work around FreeBSD bug
48595         * lib/strerror.c (strerror): Special case 0.
48596         Reported by Bruno Haible.
48598         strerror-override: avoid bloating errno module
48599         * modules/errno (Files, configure.ac): Move replacement strings...
48600         * modules/strerror-override: ...to new module.
48601         * modules/strerror (Depends-on): Add strerror-override.
48602         * modules/strerror_r-posix (Depends-on): Likewise.
48603         * MODULES.html.sh: Document new module.
48604         Reported by Bruno Haible.
48606 2011-06-06  Bruno Haible  <bruno@clisp.org>
48608         spawn-pipe tests: Rename program.
48609         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
48610         * tests/test-spawn-pipe-child.c: Update comment.
48611         * tests/test-spawn-pipe.sh: Update.
48612         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
48614         spawn-pipe tests: Link the child program only against libc.
48615         * tests/test-spawn-pipe-child.c: New file, extracted from
48616         tests/test-spawn-pipe.c.
48617         (main): Expect only one argument.
48618         (is_open): New function, copied from tests/test-pipe.c.
48619         * tests/test-spawn-pipe.c: Don't include <errno.h>.
48620         (child_main): Remove function.
48621         (test_pipe): Pass only one argument to the child program.
48622         (main): Remove child process code. Expect the child program's name as
48623         first argument.
48624         * tests/test-spawn-pipe.sh: Pass the child program's name as first
48625         argument.
48626         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
48627         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
48628         test-spawn-pipe-child against no libraries.
48630 2011-06-06  Bruno Haible  <bruno@clisp.org>
48632         careadlinkat: Avoid mismatch between ssize_t and int.
48633         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
48634         * lib/careadlinkat.c (careadlinkatcwd): Define always.
48636 2011-06-06  Jim Meyering  <meyering@redhat.com>
48638         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
48639         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
48640         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
48642 2011-06-05  Bruno Haible  <bruno@clisp.org>
48644         ansi-c++-opt: Interoperability with libtool.
48645         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
48646         set the variable to "no", not to ":".
48647         * NEWS: Mention the change.
48649 2011-06-05  Bruno Haible  <bruno@clisp.org>
48651         acl: Fix test failure on AIX 7.
48652         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
48653         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
48655 2011-06-05  Bruno Haible  <bruno@clisp.org>
48657         pipe-filter-ii: Fix test failure on AIX and IRIX.
48658         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
48659         with EAGAIN, retry with a smaller buffer size.
48661 2011-06-05  Bruno Haible  <bruno@clisp.org>
48663         localename: Fix link dependencies.
48664         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
48665         * modules/localename-tests (Makefile.am): Link test-localename with
48666         $(LIBTHREAD).
48668 2011-06-05  Bruno Haible  <bruno@clisp.org>
48670         error: Avoid gcc warning.
48671         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
48673 2011-06-05  Bruno Haible  <bruno@clisp.org>
48675         unsetenv: Avoid gcc warning.
48676         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
48678 2011-06-05  Bruno Haible  <bruno@clisp.org>
48680         setenv: Avoid gcc warning.
48681         * lib/setenv.c (setenv): Provide declaration if system lacks it.
48683 2011-06-05  Bruno Haible  <bruno@clisp.org>
48685         sys_select: Ensure memset is declared also on AIX 7.
48686         * lib/sys_select.in.h: Include <string.h> also on AIX.
48687         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
48688         self-contained also on AIX 7.1.
48690 2011-06-04  Jim Meyering  <meyering@redhat.com>
48692         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
48693         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
48694         function name, "error".
48695         (_gl_translatable_diag_func_re): New configurable variable.
48697 2011-06-04  Bruno Haible  <bruno@clisp.org>
48699         getopt: Avoid gcc warning.
48700         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
48702 2011-06-04  Bruno Haible  <bruno@clisp.org>
48704         strerror_r: Fix comments.
48705         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
48706         commit.
48708 2011-06-04  Bruno Haible  <bruno@clisp.org>
48710         perror: Fix compilation error.
48711         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
48712         Undefine fprintf, not sprintf.
48713         * modules/perror (Depends-on): Remove intprops, verify.
48715 2011-06-04  Bruno Haible  <bruno@clisp.org>
48717         setlocale: Enable replacement on Cygwin 1.5.
48718         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
48719         Cygwin 1.5.x.
48720         * doc/posix-functions/setlocale.texi: Mention that the problem with the
48721         LC_CTYPE category also exists on Cygwin 1.5.x.
48723 2011-06-04  Bruno Haible  <bruno@clisp.org>
48725         strerror-override: Don't disable symbol renamings.
48726         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
48727         * lib/strerror-override.c: Include config.h.
48728         (strerror_override): Don't undefine.
48730 2011-06-03  Bruno Haible  <bruno@clisp.org>
48732         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
48733         * lib/localename.h: Update copyright header.
48734         * lib/localename.c: Likewise.
48735         * lib/relocatable.h: Likewise.
48736         * lib/relocatable.c: Likewise.
48738 2011-06-02  Bruno Haible  <bruno@clisp.org>
48740         doc: Fix a module name.
48741         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
48743 2011-06-02  Bruno Haible  <bruno@clisp.org>
48745         pipe2: Remove dependency on 'nonblocking' module.
48746         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
48747         O_NONBLOCK is defined by gnulib.
48748         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
48749         is zero.
48750         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
48751         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
48752         defined by gnulib.
48753         (get_nonblocking_flag): New function.
48754         (main): Test O_NONBLOCK flag only if it is nonzero.
48755         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
48757 2011-06-03  Jim Meyering  <meyering@redhat.com>
48759         maint: three new prohibit-header-without-use rules
48760         Prohibit use of cloexec.h, posixver.h, same.h without use.
48761         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
48762         (sc_prohibit_posixver_without_use): Likewise.
48763         (sc_prohibit_same_without_use): Likewise.
48765 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48767         allocator: 'die' routine is now given requested size
48768         * lib/allocator.h (struct allocator.die): New size arg.
48769         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
48770         If the actual problem is an ssize_t limitation, not a size_t or
48771         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
48773 2011-06-01  Eric Blake  <eblake@redhat.com>
48775         strerror: drop strerror_r dependency
48776         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
48777         * lib/strerror-override.c (strerror_override): ...to new file.
48778         * lib/strerror-override.h: Add prototype.
48779         * lib/strerror-impl.h: Delete.
48780         * lib/strerror.c (strerror): New implementation.
48781         * modules/errno (Files): Add new files.
48782         (configure.ac): Compile new file as appropriate.
48783         * modules/strerror (Files): Drop unused file.
48784         (Depends-on): Drop strerror_r-posix.
48785         * MODULES.html.sh: Document strerror_r-posix.
48786         Requested by Sam Steingold.
48788         perror: call strerror_r directly
48789         * modules/perror (Files): Drop strerror-impl.h.
48790         * lib/perror.c (perror): Use our own stack buffer, rather than
48791         calling a wrapper that uses static storage.
48792         * doc/posix-functions/perror.texi (perror): Document a limitation
48793         of our replacement.
48795         strerror_r: fix includes for FreeBSD
48796         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
48797         since we use abort on some platforms.
48798         Reported by Matthias Bolte.
48800 2011-05-31  Bruno Haible  <bruno@clisp.org>
48802         Fix link errors in tests: openat-die uses gettext-h.
48803         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
48804         against $(LIBINTL).
48805         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
48806         against $(LIBINTL).
48807         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
48808         $(LIBINTL).
48809         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
48810         against $(LIBINTL).
48811         * modules/linkat-tests (Makefile.am): Link test-linkat against
48812         $(LIBINTL).
48813         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
48814         $(LIBINTL).
48815         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
48816         against $(LIBINTL).
48817         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
48818         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
48819         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
48820         $(LIBINTL).
48821         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
48822         $(LIBINTL).
48823         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
48824         $(LIBINTL).
48825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48827 2011-05-31  Bruno Haible  <bruno@clisp.org>
48829         Fix link errors in tests: wait-process uses gettext-h.
48830         * modules/nonblocking-pipe-tests (Makefile.am): Set
48831         test_nonblocking_pipe_main_LDADD.
48832         * modules/nonblocking-socket-tests (Makefile.am): Link
48833         test-nonblocking-socket-main against $(LIBINTL).
48834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48836 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
48838         assert-h: work around 'verify' incompatibility
48839         * lib/verify.h: Use @...@ directives, not ifdef.
48840         * modules/assert-h (assert.h): Implement the directives.
48841         (assert.h): Substitute the symbol-prefix more consistently.
48843 2011-05-29  Jim Meyering  <meyering@redhat.com>
48845         trim: remove three superfluous assignments
48846         * lib/trim.c (trim2): Remove three superfluous assignments
48847         and correct brace positioning.
48849 2011-05-29  Bruno Haible  <bruno@clisp.org>
48851         wctype-h: Avoid namespace pollution on Solaris 2.6.
48852         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
48853         identifiers.
48854         * doc/posix-headers/wctype.texi: Mention the problem.
48855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48857 2011-05-28  Jim Meyering  <meyering@redhat.com>
48859         parse-datetime.y: accommodate -Wstrict-overflow
48860         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
48861         placate -Wstrict-overflow.
48863         trim: avoid a warning from -O2 -Wstrict-overflow
48864         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
48866 2011-05-29  Bruno Haible  <bruno@clisp.org>
48868         gnulib-tool: Fix bug in yesterday's commit.
48869         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
48870         twice.
48872 2011-05-29  Bruno Haible  <bruno@clisp.org>
48874         Allow multiple gnulib generated include files to be combined.
48875         * gnulib-tool (func_compute_include_guard_prefix): New function.
48876         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
48877         ${gl_include_guard_prefix} references.
48878         (func_import, func_create_testdir): Invoke
48879         func_compute_include_guard_prefix.
48880         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
48881         * lib/ctype.in.h: Likewise.
48882         * lib/dirent.in.h: Likewise.
48883         * lib/errno.in.h: Likewise.
48884         * lib/fcntl.in.h: Likewise.
48885         * lib/float.in.h: Likewise.
48886         * lib/getopt.in.h: Likewise.
48887         * lib/iconv.in.h: Likewise.
48888         * lib/langinfo.in.h: Likewise.
48889         * lib/locale.in.h: Likewise.
48890         * lib/math.in.h: Likewise.
48891         * lib/netdb.in.h: Likewise.
48892         * lib/netinet_in.in.h: Likewise.
48893         * lib/poll.in.h: Likewise.
48894         * lib/pthread.in.h: Likewise.
48895         * lib/pty.in.h: Likewise.
48896         * lib/sched.in.h: Likewise.
48897         * lib/se-selinux.in.h: Likewise.
48898         * lib/search.in.h: Likewise.
48899         * lib/signal.in.h: Likewise.
48900         * lib/spawn.in.h: Likewise.
48901         * lib/stdarg.in.h: Likewise.
48902         * lib/stddef.in.h: Likewise.
48903         * lib/stdint.in.h: Likewise.
48904         * lib/stdio.in.h: Likewise.
48905         * lib/stdlib.in.h: Likewise.
48906         * lib/string.in.h: Likewise.
48907         * lib/strings.in.h: Likewise.
48908         * lib/sys_file.in.h: Likewise.
48909         * lib/sys_ioctl.in.h: Likewise.
48910         * lib/sys_select.in.h: Likewise.
48911         * lib/sys_socket.in.h: Likewise.
48912         * lib/sys_stat.in.h: Likewise.
48913         * lib/sys_time.in.h: Likewise.
48914         * lib/sys_times.in.h: Likewise.
48915         * lib/sys_uio.in.h: Likewise.
48916         * lib/sys_utsname.in.h: Likewise.
48917         * lib/sys_wait.in.h: Likewise.
48918         * lib/sysexits.in.h: Likewise.
48919         * lib/termios.in.h: Likewise.
48920         * lib/time.in.h: Likewise.
48921         * lib/unistd.in.h: Likewise.
48922         * lib/wchar.in.h: Likewise.
48923         * lib/wctype.in.h: Likewise.
48924         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
48925         * modules/ctype (Makefile.am): Likewise.
48926         * modules/dirent (Makefile.am): Likewise.
48927         * modules/errno (Makefile.am): Likewise.
48928         * modules/fcntl-h (Makefile.am): Likewise.
48929         * modules/float (Makefile.am): Likewise.
48930         * modules/getopt-posix (Makefile.am): Likewise.
48931         * modules/iconv-h (Makefile.am): Likewise.
48932         * modules/langinfo (Makefile.am): Likewise.
48933         * modules/locale (Makefile.am): Likewise.
48934         * modules/math (Makefile.am): Likewise.
48935         * modules/netdb (Makefile.am): Likewise.
48936         * modules/netinet_in (Makefile.am): Likewise.
48937         * modules/poll-h (Makefile.am): Likewise.
48938         * modules/pthread (Makefile.am): Likewise.
48939         * modules/pty (Makefile.am): Likewise.
48940         * modules/sched (Makefile.am): Likewise.
48941         * modules/search (Makefile.am): Likewise.
48942         * modules/selinux-h (Makefile.am): Likewise.
48943         * modules/signal (Makefile.am): Likewise.
48944         * modules/spawn (Makefile.am): Likewise.
48945         * modules/stdarg (Makefile.am): Likewise.
48946         * modules/stddef (Makefile.am): Likewise.
48947         * modules/stdint (Makefile.am): Likewise.
48948         * modules/stdio (Makefile.am): Likewise.
48949         * modules/stdlib (Makefile.am): Likewise.
48950         * modules/string (Makefile.am): Likewise.
48951         * modules/strings (Makefile.am): Likewise.
48952         * modules/sys_file (Makefile.am): Likewise.
48953         * modules/sys_ioctl (Makefile.am): Likewise.
48954         * modules/sys_select (Makefile.am): Likewise.
48955         * modules/sys_socket (Makefile.am): Likewise.
48956         * modules/sys_stat (Makefile.am): Likewise.
48957         * modules/sys_time (Makefile.am): Likewise.
48958         * modules/sys_times (Makefile.am): Likewise.
48959         * modules/sys_uio (Makefile.am): Likewise.
48960         * modules/sys_utsname (Makefile.am): Likewise.
48961         * modules/sys_wait (Makefile.am): Likewise.
48962         * modules/sysexits (Makefile.am): Likewise.
48963         * modules/termios (Makefile.am): Likewise.
48964         * modules/time (Makefile.am): Likewise.
48965         * modules/unistd (Makefile.am): Likewise.
48966         * modules/wchar (Makefile.am): Likewise.
48967         * modules/wctype-h (Makefile.am): Likewise.
48968         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
48970 2011-05-29  Bruno Haible  <bruno@clisp.org>
48972         assert-h: Allow multiple gnulib generated replacements to coexist.
48973         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
48975 2011-05-29  Bruno Haible  <bruno@clisp.org>
48977         argp: Allow coexistence with strerror_r-posix module.
48978         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
48979         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
48980         by gnulib's <string.h> replacement), assume it has the POSIX signature,
48981         not the glibc signature.
48983 2011-05-28  Bruno Haible  <bruno@clisp.org>
48985         gnulib-tool: Alternative structure of testdirs, similar to --import.
48986         * gnulib-tool: New option --single-configure.
48987         (func_usage): Document it.
48988         (single_configure): New variable.
48989         (func_modules_transitive_closure_separately,
48990         func_modules_transitive_closure_separately,
48991         func_determine_use_libtests, func_modules_add_dummy_separately,
48992         func_modules_to_filelist_separately): New functions, extracted from
48993         func_import.
48994         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
48995         (func_import): Use the new functions.
48996         (func_create_testdir): Set final_modules. Handle $single_configure =
48997         true case.
48999 2011-05-28  Bruno Haible  <bruno@clisp.org>
49001         getloadavg: Remove an unreliable safety check.
49002         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
49003         getloadavg.c is in place.
49004         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
49005         Reported by Sam Steingold <sds@gnu.org>.
49007 2011-05-28  Bruno Haible  <bruno@clisp.org>
49009         doc: Cleanup yet another file produced by texinfo.tex.
49010         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
49012 2011-05-28  Bruno Haible  <bruno@clisp.org>
49014         Finish the conditional dependencies mechanism.
49015         * gnulib-tool: New option --no-conditional-dependencies.
49016         (func_usage): Document it. Don't mark --conditional-dependencies as
49017         experimental.
49018         (cond_dependencies): The possible values can now be true, false, empty.
49019         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
49020         (func_import): Store setting in gnulib-cache.m4 and read it from there.
49021         * doc/gnulib-tool.texi (Conditional dependencies): New section.
49023 2011-05-28  Bruno Haible  <bruno@clisp.org>
49025         doc: Use a recent texinfo.tex.
49026         * doc/Makefile (tex_opts): New variable.
49027         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
49029 2011-05-28  Jim Meyering  <meyering@redhat.com>
49031         intprops.h: adjust comment to match code change
49032         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
49033         only once, it *may* have side effects.  Also fix an unrelated typo.
49034         (_GL_INT_SIGNED): Likewise.
49036 2011-05-26  Simon Josefsson  <simon@josefsson.org>
49038         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
49040 2011-05-26  Bruno Haible  <bruno@clisp.org>
49042         mbsrchr: Avoid collision with system function on Interix.
49043         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
49044         Reported by Markus Duft <mduft@gentoo.org>.
49046 2011-05-15  James Youngman  <jay@gnu.org>
49048         getopt: for ambiguous options, enumerate the possibilities.
49049         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
49050         the ambiguous options when an ambiguous prefix is given. This was
49051         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
49052         glibc change was
49053         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
49055 2011-05-25  Eric Blake  <eblake@redhat.com>
49057         getcwd: work around mingw bug
49058         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
49059         * doc/posix-functions/getcwd.texi (getcwd): Document it.
49060         Reported by Matthias Bolte.
49062 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
49064         test-intprops: disable -Wtype-limits diagnostics
49065         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
49066         diagnostics.  Otherwise, the integer overflow macros generate many
49067         diagnostics.  Reported by Jim Meyering in
49068         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
49070         intprops: shorten, to pacify gcc -Woverlength-strings
49071         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
49072         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
49073         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
49074         likely to run afoul of C compiler limits for string constant lengths.
49075         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
49077 2011-05-24  Eric Blake  <eblake@redhat.com>
49079         docs: document recently fixed glibc printf bug
49080         * doc/posix-functions/fprintf.texi (fprintf): Document it.
49081         * doc/posix-functions/printf.texi (printf): Likewise.
49082         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49083         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49085         closein-tests: convert to init.sh
49086         * modules/closein-tests (Files): Add init.sh
49087         * tests/test-closein.sh Use it.
49089         yesno-tests: convert to init.sh
49090         * modules/yesno-tests (Files): Add init.sh.
49091         * tests/test-yesno.sh: Use it.
49093         atexit-tests: ensure reliable exit status
49094         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
49095         Reported by Bruno Haible.
49097 2011-05-24  Bruno Haible  <bruno@clisp.org>
49099         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
49100         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
49101         gl_PREREQ_STRERROR_R invocations from here...
49102         * modules/strerror_r-posix (configure.ac): ... to here.
49104 2011-05-24  Eric Blake  <eblake@redhat.com>
49106         strerror_r: fix missing header
49107         * lib/strerror_r.c: Avoid compiler warning about snprintf.
49109         strerror_r: fix AIX test failures
49110         * lib/strerror_r.c (strerror_r): Convert silent truncation to
49111         ERANGE failure.
49113         strerror_r: fix Solaris test failures
49114         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
49115         failures.
49116         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
49118         strerror_r: enforce POSIX recommendations
49119         * lib/strerror_r.c (safe_copy): New helper method.
49120         (strerror_r): Guarantee a non-empty string.
49121         * tests/test-strerror_r.c (main): Enhance tests to incorporate
49122         recent POSIX rulings and to match our strerror guarantees.
49123         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
49125 2011-05-24  Jim Meyering  <meyering@redhat.com>
49127         test-perror2.c: avoid warning about unused variable
49128         * tests/test-perror2.c (main): Remove declaration of unused "fp".
49130 2011-05-24  Eric Blake  <eblake@redhat.com>
49132         perror: avoid spurious test failure on HP-UX
49133         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
49135         tests: fix logic bug in init.sh
49136         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
49137         shell.
49139 2011-05-24  Jim Meyering  <meyering@redhat.com>
49141         utimensat: do not reference an out-of-scope buffer
49142         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
49143         declared in an inner scope, yet "times" would be dereferenced outside
49144         the scope in which "ts" was valid.
49145         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
49146         of ts[2] "out/up", so that the use of aliased "times" (via
49147         "times = ts;") does not end up referencing an out-of-scope "ts"
49149         opendir-safer.c: don't clobber errno; don't close negative FD
49150         * lib/opendir-safer.c (opendir_safer):
49151         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
49152         file descriptor, and more importantly, don't clobber the
49153         offending errno value with EINVAL.  Before, upon failure
49154         of dup_safer, we would pass the negative file descriptor to
49155         fdopendir, which would clobber errno.
49157 2011-05-23  Bruno Haible  <bruno@clisp.org>
49159         idcache: Fix module description.
49160         * modules/idcache (Include): Set to "idcache.h".
49162 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
49164         gnulib-tool: fix portability problem with MacOS sed
49165         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
49166         before the "}".  Problem reported by Leo in
49167         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
49168         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
49169         sed_extract_condition1, sed_extract_condition2.
49171 2011-05-23  Bruno Haible  <bruno@clisp.org>
49173         hash: Simplify autoconf macro.
49174         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
49176 2011-05-23  Bruno Haible  <bruno@clisp.org>
49178         getugroups: Fix module description.
49179         * modules/getugroups (Include): Set to "getugroups.h".
49181 2011-05-23  Bruno Haible  <bruno@clisp.org>
49183         linkat: Simplify autoconf macro.
49184         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
49186 2011-05-23  Bruno Haible  <bruno@clisp.org>
49187             Eric Blake  <eblake@redhat.com>
49189         linkat, renameat: Update dependencies.
49190         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
49191         * modules/linkat (Depends-on): Likewise. Remove also readlink,
49192         symlinkat.
49194 2011-05-23  Jim Meyering  <meyering@redhat.com>
49196         maint.mk: more tight_scope improvements
49197         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
49198         (_gl_TS_headers): Define only in if-0'd block.
49199         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
49200         sometimes we must *not* use it.  Adjust uses accordingly.
49201         (sc_tight_scope): Use much simpler grep-based test to determine
49202         whether we skip this rule.
49204         maint.mk: generalize/improve the tight-scope rule
49205         * top/maint.mk: Emit a warning when the test is skipped.
49206         (_gl_TS_dir): Add $(srcdir)/ prefix.
49207         (_gl_TS_function_match): Simplify, rather than trying
49208         to enumerate common types.  Otherwise, it would fail to match an
49209         "extern unsigned char const *" declaration in idutils.
49210         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
49211         a way to support use of that type of macro.
49212         (_gl_TS_var_match): Simplify regexp.
49213         (_gl_TS_obj_files): New configurable variable.
49214         (_gl_TS_headers): Likewise.
49216 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49218         verify: fix bug when gnulib <assert.h> is also included
49219         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
49220         is defined, not if _GL_STATIC_ASSERT_H is not defined.
49221         Perhaps there's a better way, but this fixes the immediate problem.
49222         Problem reported by Bruno Haible in
49223         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
49225 2011-05-22  Bruno Haible  <bruno@clisp.org>
49227         xgetcwd: Simplify autoconf macro.
49228         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
49230 2011-05-22  Bruno Haible  <bruno@clisp.org>
49232         New module 'mktime-internal'.
49233         * modules/mktime-internal: New file.
49234         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
49235         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
49236         mktime_internal as a C macro if libc has __mktime_internal.
49237         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
49238         conditions.
49239         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
49241 2011-05-22  Bruno Haible  <bruno@clisp.org>
49243         timegm: Correct mktime replacement statements.
49244         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
49245         defining mktime as a C macro. This completes a 2009-07-28 commit.
49247 2011-05-22  Bruno Haible  <bruno@clisp.org>
49249         timegm: Simplify autoconf macro.
49250         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
49252 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
49254         clock-time: change to LGPLv2+.
49255         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
49256         BSD-like but we have no mark for that; this is good enough for now.
49258 2011-05-21  Bruno Haible  <bruno@clisp.org>
49260         strerror_r: Fix comments.
49261         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
49263 2011-05-21  Bruno Haible  <bruno@clisp.org>
49265         relocatable-prog-wrapper: Fix possible link error.
49266         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
49267         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
49268         (gl_FUNC_SETENV): ... to here.
49269         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
49270         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
49272 2011-05-21  Bruno Haible  <bruno@clisp.org>
49274         relocatable-prog-wrapper: Assume strerror() exists.
49275         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
49276         m4/strerror.m4.
49277         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
49278         * lib/relocwrapper.c: Remove mention of strerror module.
49279         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
49280         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
49281         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
49282         C macro.
49284 2011-05-21  Bruno Haible  <bruno@clisp.org>
49286         select: Simplify replacement idiom.
49287         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
49288         Win32 platforms.
49289         * lib/sys_select.in.h (select): Simplify accordingly.
49290         * modules/select (Depends-on): Likewise.
49292 2011-05-21  Bruno Haible  <bruno@clisp.org>
49294         mkdir-p: Simplify autoconf macro.
49295         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
49296         gl_FUNC_LCHOWN.
49298 2011-05-21  Eric Blake  <eblake@redhat.com>
49300         strerror_r: avoid clobbering strerror on cygwin
49301         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
49302         fall back instead to sys_errlist.
49303         * modules/strerror (configure.ac): Add witness.
49304         * tests/test-strerror_r.c (main): Enhance test.
49305         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49306         * tests/test-perror2.c (main): Free memory before exit.
49308 2011-05-21  Bruno Haible  <bruno@clisp.org>
49310         mkdtemp: Use gnulib naming conventions.
49311         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
49312         * modules/mkdtemp (configure.ac): Update.
49314 2011-05-20  Eric Blake  <eblake@redhat.com>
49316         strerror_r: avoid corrupting errno on Solaris
49317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
49318         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
49320         strerror_r: avoid compiler warning
49321         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
49323         strerror_r: simplify AIX code
49324         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
49326         test-perror: avoid spurious failure on FreeBSD
49327         * modules/perror-tests (Depends-on): Add strerror, now that
49328         strerror_r no longer pulls it in.
49330 2011-05-20  Bruno Haible  <bruno@clisp.org>
49332         strerror_r-posix: Remove unused dependencies.
49333         * modules/strerror_r-posix (Depends-on): Remove strerror.
49334         Reported by Eric Blake.
49336 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49338         intprops: remove assumption about A|B representation
49339         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
49340         is a valid integer if both A and B are.  Although this is true for
49341         all known practical hosts, the C standard doesn't guarantee it,
49342         and the code need not assume it.  Also, this change may work around
49343         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
49344         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
49346 2011-05-20  Eric Blake  <eblake@redhat.com>
49348         perror: work around FreeBSD bug
49349         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
49350         is broken.  Move AC_LIBOBJ...
49351         * modules/perror (configure.ac): Here.
49352         * doc/posix-functions/perror.texi (perror): Document this.
49353         * tests/test-perror2.c (main): Enhance test.
49355         test-perror: check for strerror interactions
49356         * tests/macros.h (STREQ): Add macro.
49357         * modules/perror-tests (Files): Add second test.
49358         * tests/test-perror2.c (main): New file.
49359         * doc/posix-functions/perror.texi (perror): Document glibc bug.
49361         test-perror: rewrite to use init script
49362         * modules/perror-tests (Files): Add init.sh.
49363         * tests/test-perror.sh: Use temporary directory.
49365 2011-05-20  Jim Meyering  <meyering@redhat.com>
49367         maint: replace misused "a" with "an"
49368         * doc/intprops.texi: "a integer"
49369         * doc/regex.texi: "a explanation"
49370         * lib/alignof.h: "a object"
49371         * lib/argmatch.h: "a explanation"
49372         * lib/argp-help.c: "a option" and "a OPTION_DOC"
49373         * lib/stdint.in.h: "a integer"
49374         * lib/userspec.c: "a owner"
49375         * doc/gnulib.texi: Fix "a idea", and reword.
49377 2011-05-19  Jim Meyering  <meyering@redhat.com>
49379         maint: correct misuse of "a" and "an"
49380         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
49381         * lib/argp-help.c: "an docum...": s/an/a/
49382         * lib/argp-parse.c: "An vector": s/An/A/
49383         * lib/execute.c: "an native": s/an/a/
49384         * lib/spawn-pipe.c: Likewise.
49385         * lib/gc.h: "an Gc_rc": s/an/a/
49386         * lib/unigbrk.in.h: "an grapheme": s/an/a/
49387         * lib/fts.c: "an stat.st_dev": s/an/a/
49389 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49391         intprops-tests: work around HP-UX 11.23 cc bug with constants
49392         * tests/test-intprops.c (VERIFY): New macro.
49393         (main): Use it, instead of verify, to work around the compiler bug; see
49394         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49396         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
49397         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
49398         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
49399         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
49400         (_GL_REMAINDER_OVERFLOW): Use it.
49402         intprops-tests: revert unsigned part of previous change
49403         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
49404         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
49405         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
49406         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
49408 2011-05-19  Bruno Haible  <bruno@clisp.org>
49410         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
49411         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
49412         strerror_r() returned without filling the buffer.
49413         Reported by Eric Blake.
49415 2011-05-19  Eric Blake  <eblake@redhat.com>
49417         strerror_r: guarantee unchanged errno
49418         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
49419         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
49420         failure.
49421         * tests/test-strerror_r.c (main): Enhance test.
49423 2011-05-19  Bruno Haible  <bruno@clisp.org>
49425         strerror_r: Reorder #if blocks.
49426         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
49427         for consistency with the previous commit.
49429 2011-05-19  Bruno Haible  <bruno@clisp.org>
49431         perror: Avoid clobbering the strerror buffer when possible.
49432         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
49433         * lib/strerror.c: Include it.
49434         * modules/strerror (Files): Add lib/strerror-impl.h.
49435         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
49436         (my_strerror): New function, defined through lib/strerror-impl.h.
49437         (perror): Use it instead of strerror.
49438         * modules/perror (Files): Add lib/strerror-impl.h.
49439         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
49441 2011-05-19  Eric Blake  <eblake@redhat.com>
49443         strerror_r: fix on newer cygwin
49444         * lib/strerror_r.c (strerror_r): Cygwin now has
49445         __xpg_strerror_r, use it.
49447 2011-05-19  Bruno Haible  <bruno@clisp.org>
49449         strerror_r: Avoid clobbering the strerror buffer when possible.
49450         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
49451         (sys_nerr, sys_errlist): New declarations.
49452         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
49453         HP-UX, native Win32, IRIX, and 32-bit Solaris.
49454         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
49456 2011-05-19  Bruno Haible  <bruno@clisp.org>
49458         strerror_r: Fix test failure on mingw.
49459         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
49460         EXTEND_STRERROR_R.
49461         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
49462         macros from errno.in.h instead.
49464 2011-05-19  Eric Blake  <eblake@redhat.com>
49466         strerror: relax test for Solaris
49467         * tests/test-strerror.c (main): Permit Solaris behavior.
49468         * tests/test-strerror_r.c (main): Likewise.
49470         strerror: enforce POSIX ruling on strerror(0)
49471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
49472         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
49473         * lib/strerror_r.c (rpl_strerror_r): Work around it.
49474         * doc/posix-functions/strerror.texi (strerror): Document it.
49475         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
49476         * tests/test-strerror.c (main): Strengthen test.
49477         * tests/test-strerror_r.c (main): Likewise.
49479 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
49481         intprop-tests: port to older and more-pedantic compilers
49482         * modules/intprops-tests (Files): Add tests/macros.h.
49483         * tests/test-intprops.c: Include macros.h.
49484         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
49485         it's no longer documented to expand to an integer constant expression.
49486         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
49487         argument is floating point, as it's no longer documented to expand
49488         to an integer constant expression in that case.
49489         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
49490         compiler bugs reported by Bruno Haible.  See
49491         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49492         (U0, U1): New constants, to work around the same bugs.  Also,
49493         in tests, use e.g., "(unsigned int) 39" rather than "39u".
49495         intprops: work around C compiler bugs
49496         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
49497         bug in Sun C 5.11 2010/08/13 and other compilers; see
49498         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
49500         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
49501         * doc/intprops.texi (Integer Type Determination): Fix
49502         documentation for TYPE_IS_INTEGER: it returns an constant
49503         expression, not an integer constant expression.  Fix doc for
49504         TYPE_SIGNED: it returns an integer constant expression only if its
49505         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
49506         hardly worth documented that way....)
49508 2011-05-18  Bruno Haible  <bruno@clisp.org>
49510         strerror_r: Avoid clobbering the strerror buffer when possible.
49511         * lib/strerror_r.c (strerror_r): Merge the three implementations.
49512         Handle gnulib defined errno values here. When strerror() returns NULL
49513         or an empty string, return EINVAL.
49514         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
49515         gnulib defined errno values here.
49516         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
49518 2011-05-18  Eric Blake  <eblake@redhat.com>
49520         fnmatch: avoid compiler warning
49521         * lib/fnmatch_loop.c (FCT): Use correct type.
49522         Reported by Matthias Bolte.
49524 2011-05-13  Jim Meyering  <meyering@redhat.com>
49526         maint.mk: three new prohibit_<HDR>_without_use rules
49527         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
49528         (sc_prohibit_stdio-safer_without_use): Likewise.
49529         (sc_prohibit_xfreopen_without_use): Likewise.
49531 2011-05-17  Jim Meyering  <meyering@redhat.com>
49533         announce-gen: fail if the NEWS delta is empty
49534         If there's nothing noteworthy in NEWS, then either you forgot
49535         or you shouldn't be releasing.
49536         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
49538 2011-05-17  Pádraig Brady  <P@draigBrady.com>
49540         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
49541         reserved symbols starting with double underscore from the check.
49543 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49545         intprops: add doc
49546         * doc/intprops.texi: New file, documenting intprops.
49547         * doc/gnulib.texi (Particular Modules): Include it.
49549         verify: add doc to gnulib manual and fix example
49550         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
49551         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
49552         (Compile-time Assertions): Fix example so it can't overflow.
49554 2011-05-17  Jim Meyering  <meyering@redhat.com>
49556         warnings.m4: don't usurp save_CPPFLAGS variable name
49557         * m4/warnings.m4: Prefix local temporary variable name with gl_.
49559         doc: fix typo
49560         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
49562 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49563             Bruno Haible  <bruno@clisp.org>
49565         doc: Tweak recent change.
49566         * README (Portability guidelines): Tweak new text.
49567         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
49568         Interix 6.1.
49570 2011-05-16  Eric Blake  <eblake@redhat.com>
49572         inttypes: avoid autoconf warning
49573         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
49574         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49576 2011-05-16  Sam Steingold  <sds@gnu.org>
49577         and Eric Blake  <eblake@redhat.com>
49579         vc-list-files: accept multiple directory operands
49580         * build-aux/vc-list-files: Iterate over all remaining operands.
49582 2011-05-16  Bruno Haible  <bruno@clisp.org>
49584         Fix confusion regarding deprecated modules.
49585         * modules/calloc (Status, Notice): Mark module as deprecated, not
49586         obsolete.
49587         * modules/fnmatch-posix (Status, Notice): Likewise.
49588         * modules/getdate (Status, Notice): Likewise.
49589         * modules/getopt (Status, Notice): Likewise.
49590         * modules/malloc (Status, Notice): Likewise.
49591         * modules/pipe (Status, Notice): Likewise.
49592         * modules/realloc (Status, Notice): Likewise.
49593         * modules/rename-dest-slash (Status, Notice): Likewise.
49594         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
49595         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
49596         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
49597         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
49598         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
49600 2011-05-16  Bruno Haible  <bruno@clisp.org>
49602         doc: List the target platforms.
49603         * doc/gnulib-intro.texi (Target Platforms): New section.
49604         * doc/gnulib.texi (Introduction): Update menu.
49605         * README (Portability guidelines): Refer to the new section. Update
49606         statement about oldest supported environment. Remove rationale why
49607         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
49608         unportable C89 function.
49609         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
49610         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
49612 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49614         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
49616 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
49618         intprops-tests: new module
49619         * modules/intprops-tests, tests/test-intprops.c: New files.
49621         intprops: add safe, portable integer overflow checking
49622         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
49623         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
49624         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
49625         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
49626         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
49627         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
49628         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
49629         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
49630         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
49631         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
49632         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
49634 2011-05-12  James Youngman  <jay@gnu.org>
49636         Add a test for glibc's Bugzilla bug #12378.
49637         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
49638         doesn't allow the literal matching of a lone "[" (which is
49639         required by POSIX).
49640         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
49642 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
49644         Sync glibc change fixing Bugzilla bug #12378.
49645         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
49646         beginning and fall back to matching as normal character if the
49647         string ends before the matching ']' is found.  This is what POSIX
49648         requires.
49650 2011-05-13  Eric Blake  <eblake@redhat.com>
49652         getcwd-lgpl: relax test for FreeBSD
49653         * doc/posix-functions/getcwd.texi (getcwd): Document portability
49654         issue.
49655         * tests/test-getcwd-lgpl.c (main): Relax test.
49656         Reported by Matthias Bolte.
49658 2011-05-11  Eric Blake  <eblake@redhat.com>
49660         test-fflush: silence compiler warning
49661         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
49663 2011-05-11  Bruno Haible  <bruno@clisp.org>
49665         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
49666         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
49667         * modules/canonicalize (Depends-on): Add 'nocrash'.
49668         * modules/canonicalize-lgpl (Depends-on): Likewise.
49669         * doc/posix-functions/realpath.texi: Update platforms list.
49670         Reported by Ryan Schmidt <ryandesign@macports.org>.
49672 2011-05-11  Bruno Haible  <bruno@clisp.org>
49674         group-member: Declare function in <unistd.h>.
49675         * lib/unistd.in.h (group_member): New declaration.
49676         * lib/group-member.h: Remove file.
49677         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
49678         * tests/test-unistd-c++.cc: Check signature of group_member.
49679         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
49680         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
49681         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
49682         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
49683         HAVE_GROUP_MEMBER.
49684         * modules/group-member (Files): Remove lib/group-member.h.
49685         (Depends-on): Add unistd. Specify conditions.
49686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49687         (Include): Change to <unistd.h>.
49688         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
49689         HAVE_GROUP_MEMBER.
49690         * NEWS: Mention the change.
49691         * lib/euidaccess.c: Don't include group-member.h.
49693 2011-05-11  Bruno Haible  <bruno@clisp.org>
49695         group-member: Document module.
49696         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
49697         module.
49699 2011-05-11  Bruno Haible  <bruno@clisp.org>
49701         fclose: Fix mistake earlier today.
49702         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
49704 2011-05-11  Eric Blake  <eblake@redhat.com>
49706         fclose: preserve fflush errors
49707         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
49708         Reported by Jim Meyering.
49710         bootstrap: support a prereq of 'rpcgen -' on RHEL5
49711         * build-aux/bootstrap (check_versions): When no specific version
49712         is required, merely check that the app produces an exit status
49713         that indicates its existence.
49715         maint.mk: drop redundant check
49716         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
49717         the same but better.
49719 2011-05-11  Bruno Haible  <bruno@clisp.org>
49721         fclose: Fix possible link error.
49722         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
49723         unregister_shadow_fd. Improve comments.
49724         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
49725         Eric Blake.
49727 2011-05-11  Jim Meyering  <meyering@redhat.com>
49729         maint.mk: improve "can not" detection and generalize rule name
49730         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
49731         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
49732         Use the same technique as in sc_prohibit_doubled_word, so that
49733         we recognize "can not" also when the words are separated by a newline.
49734         Suggested by Eric Blake.
49735         (perl_filename_lineno_text_): Define.  Factored out of...
49736         (prohibit_doubled_word_): ...here.  Use the new definition.
49737         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
49738         (prohibit_undesirable_word_seq_RE_): New overridable variable.
49739         (ignore_undesirable_word_sequence_RE_): New overridable variable.
49741 2011-05-10  Eric Blake  <eblake@redhat.com>
49743         fclose: avoid double close race when possible
49744         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
49745         all but WINDOWS_SOCKETS.
49747 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
49749         openat: correct new comment
49750         * lib/openat-proc.c (openat_proc_name): Correct the comment.
49752 2011-05-10  Jim Meyering  <meyering@redhat.com>
49754         openat: add comments
49755         * lib/openat-proc.c (openat_proc_name): Add comments,
49756         mostly from Eric Blake.
49758 2011-05-09  Eric Blake  <eblake@redhat.com>
49760         openat: reduce syscalls in first probe of /proc
49761         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
49762         be a directory.  Simplify the probe for .. bugs.
49763         * modules/openat (Depends-on): Drop same-inode.
49764         Reported by Bastien ROUCARIES.
49766 2011-05-09  Jim Meyering  <meyering@redhat.com>
49768         maint.mk: change semantics/name of tight_scope variables
49769         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
49770         Rename variables to align with semantics that make them more useful.
49772         maint.mk: tweak new rule's name not to impinge
49773         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
49774         (sc_tight_scope): Use new rule name rather than $@-0.
49776         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
49777         * top/maint.mk (sc_tight_scope): New rule.
49778         (sc_tight_scope-0): New rule, ifdef'd out.
49779         (_gl_TS_dir): Default.
49780         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
49781         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
49783 2011-05-09  Simon Josefsson  <simon@josefsson.org>
49785         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
49786         Haible <bruno@clisp.org>.
49788 2011-05-08  Bruno Haible  <bruno@clisp.org>
49790         Comments.
49791         * m4/isnanf.m4: Add comment.
49792         * m4/isnanl.m4: Likewise.
49794 2011-05-08  Bruno Haible  <bruno@clisp.org>
49796         glob: Remove obsolete macro.
49797         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
49799 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
49801         intprops: Sun C 5.11 supports __typeof__
49802         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
49803         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
49804         which is new.
49805         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
49807         intprops: switch to usual gnulib indenting and naming
49808         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
49809         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
49811         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
49813 2011-05-08  Jim Meyering  <meyering@redhat.com>
49815         maint.mk: suppress "Entering/Leaving directory" diag in announcement
49816         * top/maint.mk (release-prep): Use make's --no-print-directory
49817         option when generating the announcement.  This eliminates the
49818         pesky "make[2]: Entering/Leaving directory" diagnostics in the
49819         generated announcement template.
49821 2011-05-08  Bruno Haible  <bruno@clisp.org>
49823         tzset: Fix gettimeofday wrapper on Solaris 2.6.
49824         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
49825         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
49827 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
49829         ignore-value, verify: Omit include files from lib_SOURCES.
49830         * modules/ignore-value, modules/verify (Makefile.am):
49831         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
49832         that leads Automake to duplicate use of am__objects_... variables
49833         in Makefile.in.  See
49834         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
49836 2011-05-07  Bruno Haible  <bruno@clisp.org>
49838         fclose: Simplify autoconf macro.
49839         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
49840         defined.
49842 2011-05-07  Bruno Haible  <bruno@clisp.org>
49844         canonicalize-lgpl: Fix autoconf macro ordering bug.
49845         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
49846         gl_STDLIB_H_DEFAULTS.
49848 2011-05-06  Eric Blake  <eblake@redhat.com>
49850         maintainer-makefile: make sc_po_check easier to tune
49851         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
49852         to probe for strings, such as an alternate location for gnulib.
49854         fclose: guarantee behavior on seekable stdin
49855         * modules/fclose (Depends-on): Add fflush.
49856         * doc/posix-functions/fclose.texi (fclose): Document this.
49857         * tests/test-fclose.c (main): Make test for this unconditional.
49859 2011-05-06  Bruno Haible  <bruno@clisp.org>
49861         fflush, fpurge: Relicense under LGPLv2+.
49862         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
49863         * modules/fpurge (License): Likewise.
49864         With permission from Eric Blake and Jim Meyering.
49865         Suggested by Eric Blake.
49867 2011-05-06  Karl Berry  <karl@gnu.org>
49869         * MODULES.html.sh (func_all_modules): remove exit.
49871 2011-05-06  Jim Meyering  <meyering@redhat.com>
49873         maint.mk: use info-gnu@ as the default only for a stable release
49874         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
49875         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
49876         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
49877         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
49879 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
49881         assert-h: new module, which supports C1X-style static_assert
49882         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
49883         * lib/verify.h: Revamp so that this can be copied into assert.h,
49884         while retaining the ability to use it standalone as before.
49885         Rename private identifiers so as not to encroach on the
49886         standard C namespace, since this is now used by assert.h.
49887         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
49888         the old verify_true.
49889         (_GL_VERIFY_TRUE): New macro, with much of the contents of
49890         the old verify_true.  Use _GL_VERIFY_TYPE.
49891         (_GL_VERIFY): New macro, with much of the contents of the old verify.
49892         (static_assert): New macro, if _GL_STATIC_ASSERT_H
49893         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
49894         defined when this file is copied into the replacement assert.h.
49895         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
49896         and _Static_assert is not built in.
49897         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
49898         defined, and use the new macros mentioned above.
49899         * doc/posix-headers/assert.texi: Document this.
49901 2011-05-05  Bruno Haible  <bruno@clisp.org>
49903         fclose, fflush: Respect rules for use of AC_LIBOBJ.
49904         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
49905         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
49906         gl_REPLACE_FCLOSE here.
49907         * modules/fflush (Depends-on): Remove fclose.
49908         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
49909         combination with module 'fclose'.
49911 2011-05-05  Bruno Haible  <bruno@clisp.org>
49913         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
49914         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
49915         gl_FUNC_FFLUSH.
49916         (gl_FUNC_FFLUSH): Use it.
49917         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
49918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
49919         gl_REPLACE_FSEEKO here.
49921 2011-05-05  Bruno Haible  <bruno@clisp.org>
49923         tzset: Relicense under LGPL.
49924         * modules/tzset (License): Change to LGPL.
49925         No agreement needed; it's a no-op.
49927         strtoimax, strtoumax: Relicense under LGPL.
49928         * modules/strtoimax (License): Change to LGPL.
49929         * modules/strtoumax (License): Likewise.
49930         With permission from Jim Meyering, Paul Eggert:
49931         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
49932         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
49934         getgroups: Relicense under LGPL.
49935         * modules/getgroups (License): Change to LGPL.
49936         With permission from Jim Meyering, Paul Eggert, Eric Blake:
49937         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
49938         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
49939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
49941         nanosleep: Relicense under LGPL.
49942         * modules/nanosleep (License): Change to LGPL.
49943         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
49944         Haible:
49945         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
49946         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
49947         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
49948         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
49950         futimens: Relicense under LGPL.
49951         * modules/futimens (License): Change to LGPL.
49952         With permission from Eric Blake:
49953         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
49955         fflush: Relicense under LGPL.
49956         * modules/fflush (License): Change to LGPL.
49957         With permission from Eric Blake, Bruno Haible, Jim Meyering:
49958         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
49959         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
49960         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
49962         tmpfile: Relicense under LGPL.
49963         * modules/tmpfile (License): Change to LGPL.
49964         With permission from Ben Pfaff:
49965         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
49967         isfinite: Relicense under LGPL.
49968         * modules/isfinite (License): Change to LGPL.
49969         With permission from Ben Pfaff, Bruno Haible:
49970         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
49971         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
49973         acosl..tanl: Relicense under LGPL.
49974         * modules/acosl (License): Change to LGPL.
49975         * modules/asinl (License): Likewise.
49976         * modules/atanl (License): Likewise.
49977         * modules/cosl (License): Likewise.
49978         * modules/expl (License): Likewise.
49979         * modules/logl (License): Likewise.
49980         * modules/sinl (License): Likewise.
49981         * modules/sqrtl (License): Likewise.
49982         * modules/tanl (License): Likewise.
49983         Source code originally from glibc and Paolo Bonzini. Agreements:
49984         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
49985         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
49987 2011-05-05  Bruno Haible  <bruno@clisp.org>
49989         signal: Define sighandler_t.
49990         * lib/signal.in.h (sighandler_t): New type.
49991         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
49992         whether sighandler_t is defined.
49993         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
49994         * modules/signal (Depends-on): Add extensions.
49995         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
49996         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
49997         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
49999 2011-05-05  Eric Blake  <eblake@redhat.com>
50001         maint: remove useless REPLACE_*_H macros
50002         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
50003         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
50004         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
50005         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
50006         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
50007         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
50008         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
50009         * m4/btowc.m4: Update callers.
50010         * m4/dirfd.m4: Likewise.
50011         * m4/duplocale.m4: Likewise.
50012         * m4/fchdir.m4: Likewise.
50013         * m4/fdopendir.m4: Likewise.
50014         * m4/inet_ntop.m4: Likewise.
50015         * m4/inet_pton.m4: Likewise.
50016         * m4/ioctl.m4: Likewise.
50017         * m4/mbrlen.m4: Likewise.
50018         * m4/mbrtowc.m4: Likewise.
50019         * m4/mbsinit.m4: Likewise.
50020         * m4/mbsnrtowcs.m4: Likewise.
50021         * m4/mbsrtowcs.m4: Likewise.
50022         * m4/poll.m4: Likewise.
50023         * m4/setlocale.m4: Likewise.
50024         * m4/wcrtomb.m4: Likewise.
50025         * m4/wcsnrtombs.m4: Likewise.
50026         * m4/wcsrtombs.m4: Likewise.
50027         * m4/wctob.m4: Likewise.
50028         * m4/wcwidth.m4: Likewise.
50029         * modules/posix_spawn: Likewise.
50030         * modules/posix_spawn_file_actions_addclose: Likewise.
50031         * modules/posix_spawn_file_actions_adddup2: Likewise.
50032         * modules/posix_spawn_file_actions_addopen: Likewise.
50033         * modules/posix_spawn_file_actions_destroy: Likewise.
50034         * modules/posix_spawn_file_actions_init: Likewise.
50035         * modules/posix_spawnattr_destroy: Likewise.
50036         * modules/posix_spawnattr_getflags: Likewise.
50037         * modules/posix_spawnattr_getpgroup: Likewise.
50038         * modules/posix_spawnattr_getschedparam: Likewise.
50039         * modules/posix_spawnattr_getschedpolicy: Likewise.
50040         * modules/posix_spawnattr_getsigdefault: Likewise.
50041         * modules/posix_spawnattr_getsigmask: Likewise.
50042         * modules/posix_spawnattr_init: Likewise.
50043         * modules/posix_spawnattr_setflags: Likewise.
50044         * modules/posix_spawnattr_setpgroup: Likewise.
50045         * modules/posix_spawnattr_setschedparam: Likewise.
50046         * modules/posix_spawnattr_setschedpolicy: Likewise.
50047         * modules/posix_spawnattr_setsigdefault: Likewise.
50048         * modules/posix_spawnattr_setsigmask: Likewise.
50049         * modules/posix_spawnp: Likewise.
50051 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
50053         Add option to do-release-commit-and-tag to specify branch.
50054         * build-aux/do-release-commit-and-tag: Add --branch.
50056 2011-05-03  Bruno Haible  <bruno@clisp.org>
50058         Avoid unnecessary compilation units, through conditional dependencies.
50059         * modules/accept (Depends-on): Add conditions to the dependencies.
50060         * modules/acosl (Depends-on): Likewise.
50061         * modules/argz (Depends-on): Likewise.
50062         * modules/asinl (Depends-on): Likewise.
50063         * modules/atanl (Depends-on): Likewise.
50064         * modules/atoll (Depends-on): Likewise.
50065         * modules/bind (Depends-on): Likewise.
50066         * modules/btowc (Depends-on): Likewise.
50067         * modules/canonicalize-lgpl (Depends-on): Likewise.
50068         * modules/ceil (Depends-on): Likewise.
50069         * modules/ceilf (Depends-on): Likewise.
50070         * modules/ceill (Depends-on): Likewise.
50071         * modules/chdir-long (Depends-on): Likewise.
50072         * modules/chown (Depends-on): Likewise.
50073         * modules/close (Depends-on): Likewise.
50074         * modules/connect (Depends-on): Likewise.
50075         * modules/cosl (Depends-on): Likewise.
50076         * modules/dirfd (Depends-on): Likewise.
50077         * modules/dprintf (Depends-on): Likewise.
50078         * modules/dprintf-posix (Depends-on): Likewise.
50079         * modules/error (Depends-on): Likewise.
50080         * modules/euidaccess (Depends-on): Likewise.
50081         * modules/expl (Depends-on): Likewise.
50082         * modules/faccessat (Depends-on): Likewise.
50083         * modules/fchdir (Depends-on): Likewise.
50084         * modules/fclose (Depends-on): Likewise.
50085         * modules/fcntl (Depends-on): Likewise.
50086         * modules/fdopendir (Depends-on): Likewise.
50087         * modules/fflush (Depends-on): Likewise.
50088         * modules/floor (Depends-on): Likewise.
50089         * modules/floorf (Depends-on): Likewise.
50090         * modules/floorl (Depends-on): Likewise.
50091         * modules/fnmatch (Depends-on): Likewise.
50092         * modules/fopen (Depends-on): Likewise.
50093         * modules/fprintf-posix (Depends-on): Likewise.
50094         * modules/frexp (Depends-on): Likewise.
50095         * modules/frexp-nolibm (Depends-on): Likewise.
50096         * modules/frexpl (Depends-on): Likewise.
50097         * modules/frexpl-nolibm (Depends-on): Likewise.
50098         * modules/fseek (Depends-on): Likewise.
50099         * modules/fsusage (Depends-on): Likewise.
50100         * modules/ftell (Depends-on): Likewise.
50101         * modules/ftello (Depends-on): Likewise.
50102         * modules/futimens (Depends-on): Likewise.
50103         * modules/getcwd (Depends-on): Likewise.
50104         * modules/getcwd-lgpl (Depends-on): Likewise.
50105         * modules/getdelim (Depends-on): Likewise.
50106         * modules/getdomainname (Depends-on): Likewise.
50107         * modules/getgroups (Depends-on): Likewise.
50108         * modules/gethostname (Depends-on): Likewise.
50109         * modules/getline (Depends-on): Likewise.
50110         * modules/getlogin_r (Depends-on): Likewise.
50111         * modules/getopt-posix (Depends-on): Likewise.
50112         * modules/getpeername (Depends-on): Likewise.
50113         * modules/getsockname (Depends-on): Likewise.
50114         * modules/getsockopt (Depends-on): Likewise.
50115         * modules/getsubopt (Depends-on): Likewise.
50116         * modules/getusershell (Depends-on): Likewise.
50117         * modules/glob (Depends-on): Likewise.
50118         * modules/grantpt (Depends-on): Likewise.
50119         * modules/iconv_open (Depends-on): Likewise.
50120         * modules/iconv_open-utf (Depends-on): Likewise.
50121         * modules/inet_ntop (Depends-on): Likewise.
50122         * modules/inet_pton (Depends-on): Likewise.
50123         * modules/ioctl (Depends-on): Likewise.
50124         * modules/isapipe (Depends-on): Likewise.
50125         * modules/isfinite (Depends-on): Likewise.
50126         * modules/isinf (Depends-on): Likewise.
50127         * modules/lchown (Depends-on): Likewise.
50128         * modules/ldexpl (Depends-on): Likewise.
50129         * modules/link (Depends-on): Likewise.
50130         * modules/linkat (Depends-on): Likewise.
50131         * modules/listen (Depends-on): Likewise.
50132         * modules/logl (Depends-on): Likewise.
50133         * modules/lstat (Depends-on): Likewise.
50134         * modules/mbrlen (Depends-on): Likewise.
50135         * modules/mbrtowc (Depends-on): Likewise.
50136         * modules/mbsinit (Depends-on): Likewise.
50137         * modules/mbsnrtowcs (Depends-on): Likewise.
50138         * modules/mbsrtowcs (Depends-on): Likewise.
50139         * modules/mbtowc (Depends-on): Likewise.
50140         * modules/memcmp (Depends-on): Likewise.
50141         * modules/mkdir (Depends-on): Likewise.
50142         * modules/mkdtemp (Depends-on): Likewise.
50143         * modules/mkfifo (Depends-on): Likewise.
50144         * modules/mkfifoat (Depends-on): Likewise.
50145         * modules/mknod (Depends-on): Likewise.
50146         * modules/mkostemp (Depends-on): Likewise.
50147         * modules/mkostemps (Depends-on): Likewise.
50148         * modules/mkstemp (Depends-on): Likewise.
50149         * modules/mkstemps (Depends-on): Likewise.
50150         * modules/mktime (Depends-on): Likewise.
50151         * modules/nanosleep (Depends-on): Likewise.
50152         * modules/open (Depends-on): Likewise.
50153         * modules/openat (Depends-on): Likewise.
50154         * modules/perror (Depends-on): Likewise.
50155         * modules/poll (Depends-on): Likewise.
50156         * modules/popen (Depends-on): Likewise.
50157         * modules/posix_spawn (Depends-on): Likewise.
50158         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
50159         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50160         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50161         * modules/posix_spawnp (Depends-on): Likewise.
50162         * modules/pread (Depends-on): Likewise.
50163         * modules/printf-posix (Depends-on): Likewise.
50164         * modules/ptsname (Depends-on): Likewise.
50165         * modules/putenv (Depends-on): Likewise.
50166         * modules/pwrite (Depends-on): Likewise.
50167         * modules/readline (Depends-on): Likewise.
50168         * modules/readlink (Depends-on): Likewise.
50169         * modules/readlinkat (Depends-on): Likewise.
50170         * modules/recv (Depends-on): Likewise.
50171         * modules/recvfrom (Depends-on): Likewise.
50172         * modules/regex (Depends-on): Likewise.
50173         * modules/remove (Depends-on): Likewise.
50174         * modules/rename (Depends-on): Likewise.
50175         * modules/renameat (Depends-on): Likewise.
50176         * modules/rmdir (Depends-on): Likewise.
50177         * modules/round (Depends-on): Likewise.
50178         * modules/roundf (Depends-on): Likewise.
50179         * modules/roundl (Depends-on): Likewise.
50180         * modules/rpmatch (Depends-on): Likewise.
50181         * modules/select (Depends-on): Likewise.
50182         * modules/send (Depends-on): Likewise.
50183         * modules/sendto (Depends-on): Likewise.
50184         * modules/setenv (Depends-on): Likewise.
50185         * modules/setlocale (Depends-on): Likewise.
50186         * modules/setsockopt (Depends-on): Likewise.
50187         * modules/shutdown (Depends-on): Likewise.
50188         * modules/sigaction (Depends-on): Likewise.
50189         * modules/signbit (Depends-on): Likewise.
50190         * modules/sigprocmask (Depends-on): Likewise.
50191         * modules/sinl (Depends-on): Likewise.
50192         * modules/sleep (Depends-on): Likewise.
50193         * modules/snprintf (Depends-on): Likewise.
50194         * modules/snprintf-posix (Depends-on): Likewise.
50195         * modules/socket (Depends-on): Likewise.
50196         * modules/sprintf-posix (Depends-on): Likewise.
50197         * modules/sqrtl (Depends-on): Likewise.
50198         * modules/stat (Depends-on): Likewise.
50199         * modules/strchrnul (Depends-on): Likewise.
50200         * modules/strdup-posix (Depends-on): Likewise.
50201         * modules/strerror (Depends-on): Likewise.
50202         * modules/strerror_r-posix (Depends-on): Likewise.
50203         * modules/strndup (Depends-on): Likewise.
50204         * modules/strnlen (Depends-on): Likewise.
50205         * modules/strptime (Depends-on): Likewise.
50206         * modules/strsep (Depends-on): Likewise.
50207         * modules/strsignal (Depends-on): Likewise.
50208         * modules/strstr-simple (Depends-on): Likewise.
50209         * modules/strtod (Depends-on): Likewise.
50210         * modules/strtoimax (Depends-on): Likewise.
50211         * modules/strtok_r (Depends-on): Likewise.
50212         * modules/strtoumax (Depends-on): Likewise.
50213         * modules/symlink (Depends-on): Likewise.
50214         * modules/symlinkat (Depends-on): Likewise.
50215         * modules/tanl (Depends-on): Likewise.
50216         * modules/tcgetsid (Depends-on): Likewise.
50217         * modules/tmpfile (Depends-on): Likewise.
50218         * modules/trunc (Depends-on): Likewise.
50219         * modules/truncf (Depends-on): Likewise.
50220         * modules/truncl (Depends-on): Likewise.
50221         * modules/uname (Depends-on): Likewise.
50222         * modules/unlink (Depends-on): Likewise.
50223         * modules/unlockpt (Depends-on): Likewise.
50224         * modules/unsetenv (Depends-on): Likewise.
50225         * modules/usleep (Depends-on): Likewise.
50226         * modules/utimensat (Depends-on): Likewise.
50227         * modules/vasprintf (Depends-on): Likewise.
50228         * modules/vdprintf (Depends-on): Likewise.
50229         * modules/vdprintf-posix (Depends-on): Likewise.
50230         * modules/vfprintf-posix (Depends-on): Likewise.
50231         * modules/vprintf-posix (Depends-on): Likewise.
50232         * modules/vsnprintf (Depends-on): Likewise.
50233         * modules/vsnprintf-posix (Depends-on): Likewise.
50234         * modules/vsprintf-posix (Depends-on): Likewise.
50235         * modules/wcrtomb (Depends-on): Likewise.
50236         * modules/wcscasecmp (Depends-on): Likewise.
50237         * modules/wcscspn (Depends-on): Likewise.
50238         * modules/wcsdup (Depends-on): Likewise.
50239         * modules/wcsncasecmp (Depends-on): Likewise.
50240         * modules/wcsnrtombs (Depends-on): Likewise.
50241         * modules/wcspbrk (Depends-on): Likewise.
50242         * modules/wcsrtombs (Depends-on): Likewise.
50243         * modules/wcsspn (Depends-on): Likewise.
50244         * modules/wcsstr (Depends-on): Likewise.
50245         * modules/wcstok (Depends-on): Likewise.
50246         * modules/wcswidth (Depends-on): Likewise.
50247         * modules/wctob (Depends-on): Likewise.
50248         * modules/wctomb (Depends-on): Likewise.
50249         * modules/wctype (Depends-on): Likewise.
50250         * modules/wcwidth (Depends-on): Likewise.
50251         * modules/write (Depends-on): Likewise.
50253 2011-05-03  Bruno Haible  <bruno@clisp.org>
50255         Support for conditional dependencies.
50256         * doc/gnulib.texi (Module description): Document the syntax of
50257         conditional dependencies.
50258         * gnulib-tool: New option --conditional-dependencies.
50259         (func_usage): Document it.
50260         (cond_dependencies): New variable.
50261         (func_get_automake_snippet_conditional,
50262         func_get_automake_snippet_unconditional): New functions, extracted from
50263         func_get_automake_snippet.
50264         (func_get_automake_snippet): Use them.
50265         (sed_first_32_chars): New variable.
50266         (func_module_shellfunc_name): New function.
50267         (func_module_shellvar_name): New function.
50268         (func_module_conditional_name): New function.
50269         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
50270         func_cond_module_condition): New functions.
50271         (func_modules_transitive_closure): Add support for conditional
50272         dependencies.
50273         (func_emit_lib_Makefile_am): For a conditional module, enclose the
50274         conditional automake snippet in an automake conditional.
50275         (func_emit_autoconf_snippets): Emit shell functions that contain the
50276         code for conditional modules.
50277         (func_import, func_create_testdir): Update specification.
50279 2011-05-03  Eric Blake  <eblake@redhat.com>
50281         test-getaddrinfo: report error information
50282         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
50284 2011-05-03  Jim Meyering  <meyering@redhat.com>
50286         bootstrap: avoid build failure when $GZIP is set
50287         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
50288         program name.  If defined at all, it is supposed to list gzip options.
50289         Reported by Alan Curry in http://debbugs.gnu.org/8609
50291 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
50293         readme-release: new module with release instructions
50294         * modules/readme-release: New module.
50295         * top/README-release: New file, from coreutils, grep, diffutils.
50296         * MODULES.html.sh (Support for maintaining and releasing): Add it.
50298 2011-05-02  Eric Blake  <eblake@redhat.com>
50300         fflush: also replace fclose when fixing fflush
50301         * modules/fflush (Depends-on): Add fclose.
50302         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
50303         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
50304         memstreams with no backing fd.
50305         * doc/posix-functions/fclose.texi (fclose): Document the use of
50306         fflush module to fix the bug.
50307         * tests/test-fclose.c (main): Relax test when fclose is used in
50308         isolation.
50310         fclose: add some tests
50311         * modules/fclose-tests: New test module.
50312         * tests/test-fclose.c: New file.
50313         * doc/posix-functions/fclose.texi (fclose): Document the bug.
50315         fclose: reduced dependencies
50316         * modules/fclose (Depends-on): Switch from fflush/fseeko to
50317         simpler lseek.
50318         * lib/fclose.c (rpl_fclose): Likewise.
50319         Reported by Simon Josefsson.
50321         exit: drop remaining clients
50322         * modules/argmatch (Depends-on): Replace exit with stdlib.
50323         * modules/copy-file (Depends-on): Likewise.
50324         * modules/execute (Depends-on): Likewise.
50325         * modules/exitfail (Depends-on): Likewise.
50326         * modules/obstack (Depends-on): Likewise.
50327         * modules/pagealign_alloc (Depends-on): Likewise.
50328         * modules/pipe-filter-gi (Depends-on): Likewise.
50329         * modules/pipe-filter-ii (Depends-on): Likewise.
50330         * modules/savewd (Depends-on): Likewise.
50331         * modules/spawn-pipe (Depends-on): Likewise.
50332         * modules/wait-process (Depends-on): Likewise.
50333         * modules/xsetenv (Depends-on): Likewise.
50334         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
50335         * modules/git-merge-changelog (Depends-on): Likewise.
50336         * modules/long-options (Depends-on): Likewise.
50337         * modules/pt_chown (Depends-on): Likewise.
50338         * modules/sysexits (Depends-on): Likewise.
50340         freading: relax license from LGPLv3+ to LGPLv2+
50341         * modules/freading (License): Relax LGPL version.
50343 2011-05-02  Bruno Haible  <bruno@clisp.org>
50345         fchdir: Remove unused dependencies.
50346         * modules/fchdir (Depends-on): Remove include_next.
50348 2011-05-02  Bruno Haible  <bruno@clisp.org>
50350         gnulib-tool: Refactor.
50351         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
50352         from func_emit_autoconf_snippets.
50353         (func_emit_autoconf_snippets): Use it.
50355 2011-05-02  Simon Josefsson  <simon@josefsson.org>
50357         * NEWS: Document removal of 'exit'.
50358         * modules/exit: Remove file.
50360 2011-05-01  Bruno Haible  <bruno@clisp.org>
50362         Update DEPENDENCIES.
50363         * DEPENDENCIES (gettext): Recommend the newest release.
50364         Reported by Simon Josefsson.
50366 2011-05-01  Bruno Haible  <bruno@clisp.org>
50368         gnulib-tool: Reduce code duplication.
50369         * gnulib-tool (func_emit_autoconf_snippets): New function.
50370         (func_import, func_create_testdir): Use it.
50372 2011-04-30  Eric Blake  <eblake@redhat.com>
50374         fclose: don't fail on non-seekable input stream
50375         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
50376         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
50377         since fflush is allowed to fail in that case.
50379 2011-04-30  Bruno Haible  <bruno@clisp.org>
50381         dup3: cleanup
50382         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
50384 2011-04-30  Bruno Haible  <bruno@clisp.org>
50386         netdb: Make it work in C++ mode.
50387         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
50388         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
50389         module.
50390         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
50391         gl_MODULE_INDICATOR_FOR_TESTS.
50392         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
50393         * modules/netdb-c++-tests: New file.
50394         * tests/test-netdb-c++.cc: New file.
50396 2011-04-30  Bruno Haible  <bruno@clisp.org>
50398         New modules 'vfscanf', 'vscanf'.
50399         * modules/vfscanf: New file.
50400         * modules/vscanf: New file.
50401         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
50402         here.
50403         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
50404         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
50406 2011-04-30  Bruno Haible  <bruno@clisp.org>
50408         passfd: Add comments.
50409         * lib/passfd.c: Add comments about platforms.
50411 2011-04-30  Bruno Haible  <bruno@clisp.org>
50413         sys_uio: Make <sys/uio.h> self-contained.
50414         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
50415         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
50417 2011-04-30  Bruno Haible  <bruno@clisp.org>
50419         sys_socket: Ensure 'struct iovec' definition.
50420         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
50421         <sys/socket.h>.
50422         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
50424 2011-04-30  Bruno Haible  <bruno@clisp.org>
50426         sys_uio: Protect definition of 'struct iovec'.
50427         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
50428         it as a C struct.
50430 2011-04-30  Bruno Haible  <bruno@clisp.org>
50432         manywarnings: fix indentation
50433         * m4/manywarnings.m4: Indent by 2 spaces consistently.
50435 2011-04-30  Pádraig Brady  <P@draigBrady.com>
50437         manywarnings: add -Wno-missing-field-initializers if needed.
50438         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
50439         option if it's needed to allow initialization with { 0, }
50441 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
50443         announce-gen: cosmetic improvement
50444         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
50446 2011-04-29  Jim Meyering  <meyering@redhat.com>
50448         vc-list-files: indent with spaces, not TABs
50449         * build-aux/vc-list-files: Convert leading TABs to spaces,
50450         to match the style of most other files in gnulib.
50452         announce-gen: indent with spaces, not TABs
50453         * build-aux/announce-gen: Convert all TABs to spaces, to match
50454         the style of most other files in gnulib.
50456 2011-04-29  Eric Blake  <eblake@redhat.com>
50458         quotearg: avoid uninitialized variable use
50459         * lib/quotearg.c (quoting_options_from_style): Initialize
50460         remaining fields, and ensure that custom styles are only used via
50461         quoting_options rather than quoting_style.
50463 2011-04-29  Jim Meyering  <meyering@redhat.com>
50465         maint.mk: remove unused VC-tag variable
50466         * top/maint.mk (VC-tag): Remove unused variable.
50468 2011-04-29  Bruno Haible  <bruno@clisp.org>
50470         netdb: fix gai_strerror replacements
50471         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
50472         * modules/netdb: Substitute it.
50474 2011-04-29  Jim Meyering  <meyering@redhat.com>
50476         test-getcwd.c: avoid new set-but-not-used warning
50477         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
50478         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
50479         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
50480         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
50482         test-hash.c: avoid a new shadowing warning
50483         * tests/test-hash.c (main): Don't shadow "dup".
50485 2011-04-28  Eric Blake  <eblake@redhat.com>
50487         getaddrinfo: fix gai_strerror signature
50488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
50489         and work around mingw with UNICODE defined.
50490         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
50491         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
50492         * modules/netdb (Makefile.am): Substitute it.
50493         * lib/netdb.in.h (gai_strerror): Declare replacement.
50494         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
50495         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
50496         the fix.
50498         getsockopt: avoid compiler warning
50499         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
50500         Reported by Matthias Bolte.
50502         tests: drop unused link dependency
50503         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
50504         * modules/dirent-safer-tests (Makefile.am): Likewise.
50505         * modules/fdopendir-tests (Makefile.am): Likewise.
50506         * modules/mkfifoat-tests (Makefile.am): Likewise.
50507         * modules/openat-safer-tests (Makefile.am): Likewise.
50508         * modules/openat-tests (Makefile.am): Likewise.
50509         * modules/readlinkat-tests (Makefile.am): Likewise.
50510         * modules/symlinkat-tests (Makefile.am): Likewise.
50511         * modules/linkat-tests (Makefile.am): Likewise.
50512         (Depends-on): Switch to filenamecat-lgpl.
50513         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
50514         LIBINTL.
50515         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
50516         * tests/test-linkat.c (main): Don't require xalloc.
50518         hash, mgetgroups: drop xalloc dependency
50519         * lib/hash.c (includes): Adjust includes.
50520         * lib/mgetgroups.c (includes): Likewise.
50521         (xgetgroups): Move...
50522         * lib/xgetgroups.c: ...to new file.
50523         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
50524         * modules/xgetgroups: New file, split from...
50525         * modules/mgetgroups: ...here.
50526         (Depends-on): Add xalloc-oversized.
50527         * modules/hash (Depends-on): Likewise.
50528         * modules/hash-tests (Depends-on): Drop xalloc.
50529         (test_hash_LDADD): Drop unused library.
50530         * tests/test-hash.c (main): Break xalloc dependency.
50531         (includes): Drop unused include.
50533         xalloc-oversized: new module
50534         * modules/xalloc-oversized: New module.
50535         * modules/xalloc (Depends-on): Add it.
50536         * lib/xalloc.h (xalloc_oversized): Move...
50537         * lib/xalloc-oversized.h: ...into new file.
50539         utimecmp: drop dependency on xmalloc
50540         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
50541         due to memory pressure.
50542         * modules/utimecmp (Depends-on): Drop xalloc.
50544 2011-04-27  Eric Blake  <eblake@redhat.com>
50546         getcwd: fix mingw bugs
50547         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
50548         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
50549         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
50551 2011-04-27  Bruno Haible  <bruno@clisp.org>
50553         mkstemps: Ensure declaration on MacOS X 10.5.
50554         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
50555         * doc/glibc-functions/mkstemps.texi: Document header file problem on
50556         MacOS X.
50558 2011-04-27  Bruno Haible  <bruno@clisp.org>
50560         mkstemp: More documentation.
50561         * doc/posix-functions/mkstemp.texi: Document header file problem on
50562         MacOS X.
50564 2011-04-27  Bruno Haible  <bruno@clisp.org>
50566         mkstemp: Tweak configure message when cross-compiling.
50567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
50568         result as a guess.
50570 2011-04-27  Bruno Haible  <bruno@clisp.org>
50572         clean-temp: Clarify what it does.
50573         * lib/clean-temp.h: Add more comments.
50574         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
50575         module.
50576         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
50577         * doc/glibc-functions/mkstemps.texi: Likewise.
50578         * doc/glibc-functions/mkostemps.texi: Likewise.
50580 2011-04-27  Eric Blake  <eblake@redhat.com>
50582         fchdir: avoid extra chdir and fix test
50583         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
50584         getcwd-lgpl.
50585         * lib/fchdir.c (get_name): Any absolute name will do; it does not
50586         have to be canonical.
50587         (canonicalize_file_name): Drop unused macro.
50588         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
50590         filenamecat-lgpl: fix licence
50591         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
50592         when it was first created.
50594         linkat, renameat: add missing dependency
50595         * modules/linkat (Depends-on): Require getcwd-lgpl.
50596         * modules/renameat (Depends-on): Likewise.
50598         tests: reduce dependencies
50599         * tests/test-linkat.c (main): Use lighter-weight getcwd.
50600         * tests/test-renameat.c (main): Likewise.
50601         * modules/linkat-tests (Depends-on): Relax dependency.
50602         * modules/renameat-tests (Depends-on): Likewise.
50603         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
50604         dependency explicit.
50606         save-cwd: reduce default dependency
50607         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
50608         * lib/save-cwd.c: Update comments.
50609         * NEWS: Document the semantic change.
50611         getcwd: enhance tests
50612         * tests/test-getcwd-lgpl.c: New file, taken from...
50613         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
50614         repeat long path stress tests from m4 probe.
50615         * modules/getcwd-lgpl-tests: New module.
50616         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
50617         * m4/getcwd-abort-bug.m4: Update comment.
50618         * m4/getcwd-path-max.m4: Likewise.
50620         getcwd-lgpl: new module
50621         * modules/getcwd-lgpl: New module.
50622         * lib/getcwd-lgpl.c: New file.
50623         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50624         * MODULES.html.sh (lacking POSIX:2008): Likewise.
50625         * modules/getcwd (configure.ac): Set C witness.
50626         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
50628         getcwd: tweak comments
50629         * m4/getcwd-abort-bug.m4: Fix comments.
50630         * m4/getcwd-path-max.m4: Likewise.
50631         * m4/getcwd.m4: Likewise.
50633 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
50634         and Eric Blake  <eblake@redhat.com>
50636         mkstemp: replace if system version uses wrong permissions
50637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
50638         read/write mode bits set in file created by mkstemp.
50639         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
50641 2011-04-27  Eric Blake  <eblake@redhat.com>
50643         passfd: avoid compiler warning
50644         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
50645         Reported by Laine Stump.
50647 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
50649         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
50650         required by the NetBSD (and perhaps other 4.4BSD derived) join.
50652 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
50653         and Eric Blake  <eblake@redhat.com>
50655         mkstemp: mention clean-temp module
50656         * lib/mkstemp.c: Add comment.
50657         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
50659 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
50661         inttypes: also provide default values for 32-bit tests
50662         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
50663         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
50665 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50667         strtoumax: remove dependency on strtoimax
50668         This is like the strtoull change of yesterday.
50669         * modules/strtoumax (Files): Add lib/strtoimax.c.
50670         (Depends-on): Remove strtoimax and add verify.
50672         inttypes-incomplete: new module
50673         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
50674         all but the PRI* and SCN* parts of gl_INTTYPES_H.
50675         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
50676         of gl_INTTYPES_H.
50677         (gl_INTTYPES_H): Rewrite in terms of these new macros.
50678         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
50679         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
50680         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
50681         * modules/strtoumax, modules/xstrtol (Depends-on):
50682         Depend on inttypes-incomplete, not inttypes.
50683         * modules/inttypes-incomplete: New module, containing the contents
50684         of the old modules/inttypes module, except that the Files: section
50685         omits m4/inttypes-pri.m4, and the configure.ac section invokes
50686         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
50687         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
50688         (Depends-on): Depend only on inttypes-incomplete.
50689         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
50691         inttypes: omit now-redundant strtoimax and strtoumax work
50692         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
50693         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
50695         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
50696         This supports apps that need pointers to strtoimax and strtoumax,
50697         and ports to HP-UX 11.00 64.bit, which has macros that expand to
50698         nonexistent functions.  See
50699         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
50700         et seq.
50701         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
50702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
50703         a macro.
50704         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
50706 2011-04-25  Simon Josefsson  <simon@josefsson.org>
50708         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
50710 2011-04-25  Bruno Haible  <bruno@clisp.org>
50712         strtol, strtoul: Mark modules as obsolete.
50713         * modules/strtol (Status, Notice): New sections.
50714         * modules/strtoul (Status, Notice): New sections.
50716 2011-04-25  Bruno Haible  <bruno@clisp.org>
50718         strtod: Remove check for strtod, unless supporting old platforms.
50719         * modules/strtod-obsolete: New file.
50720         * m4/strtod-obsolete.m4: New file.
50721         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
50722         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
50723         * modules/strtod (Depends-on): Add strtod-obsolete.
50724         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
50726 2011-04-25  Bruno Haible  <bruno@clisp.org>
50728         strcase: Make module obsolete.
50729         * modules/strcase (Status, Notice): New sections.
50731 2011-04-25  Bruno Haible  <bruno@clisp.org>
50733         dup2: Remove check for dup2, unless supporting old obsolete platforms.
50734         * modules/dup2-obsolete: New file.
50735         * m4/dup2-obsolete.m4: New file.
50736         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
50737         gl_FUNC_DUP2_OBSOLETE is not also defined.
50738         * modules/dup2 (Depends-on): Add dup2-obsolete.
50739         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
50741 2011-04-25  Bruno Haible  <bruno@clisp.org>
50743         strnlen: Avoid memchr related link error on old obsolete platforms.
50744         * modules/memchr-obsolete: New file.
50745         * m4/memchr-obsolete.m4: New file.
50746         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
50747         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
50748         * modules/memchr (Depends-on): Add memchr-obsolete.
50749         * modules/strnlen (Depends-on): Likewise.
50750         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
50752 2011-04-25  Jim Meyering  <meyering@redhat.com>
50754         maint.mk: makefile_at_at_check extend and clean up
50755         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
50756         in addition to */Makefile.am.
50757         Exempt legitimate uses of @VAR@ notation, e.g.,
50758         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
50759         Remove obsolete coreutils-specific comment.
50760         Prompted by discussion here:
50761         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
50763 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50765         strtoul: remove dependency on strtol
50766         This is so that 'configure' need not check for strtol merely because
50767         the application needs strtoul.
50768         * modules/strtoul (Files): Add lib/strtol.c.
50769         (Depends-on): Remove strtol.
50771         strtoull: remove dependency on strtoul
50772         This is like the strtoll change.
50773         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
50774         (Depends-on): Remove strtoul.
50776         strtoll: remove dependency on strtol
50777         This is so that 'configure' need not check for strtol merely because
50778         the application needs strtoll.
50779         * modules/strtoll (Files): Add lib/strtol.c.
50780         (Depends-on): Remove strtol.
50782 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
50784         inttypes: Move some configure check to module 'imaxdiv'.
50785         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
50786         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
50787         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
50789 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
50791         inttypes: Move some configure check to module 'imaxabs'.
50792         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
50793         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
50794         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
50796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
50798         inttypes: Remove configure tests that are not needed since 2009-12-31.
50799         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
50800         gl_cv_header_working_inttypes_h.
50802 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
50804         * modules/strnlen (Depends-on): Remove memchr.
50805         The strnlen implementation doesn't need the memchr module's fixes; see
50806         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
50808         strtol: remove dependency on wchar
50809         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
50810         * modules/strtol (Depends-on): Remove wchar.
50812 2011-04-21  Eric Blake  <eblake@redhat.com>
50814         passfd: fix test regression on Linux
50815         * modules/passfd-tests (configure.ac): Correct socketpair check.
50817         passfd: speed up configure and drop unused code
50818         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
50819         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
50820         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
50821         Instead of probing at configure for unix_scm_rights_bsd44_way,
50822         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
50823         check to a struct member probe.
50824         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
50825         (sendfd, recvfd): Update preprocessor checks.
50826         * modules/passfd (Files): Reflect rename, and drop unused file.
50827         (Depends-on): Drop unused dependency.
50829         passfd: allow compilation on mingw
50830         * modules/sys_socket (Depends-on): Add sys_uio.
50831         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
50832         iovec and a minimal struct msghdr.
50833         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
50834         * tests/test-sys_socket.c (main): Enhance test.
50835         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
50836         guaranteed to provide what we need.
50837         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
50838         * modules/passfd-tests (Depends-on): Add sys_wait.
50839         * tests/test-passfd.c (main): Skip test on mingw, for now.
50840         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
50841         partial 'struct msghdr' implementation.
50843         sys_uio: new module
50844         * modules/sys_uio: New module.
50845         * modules/sys_uio-tests: Likewise.
50846         * lib/sys_uio.in.h: New file.
50847         * m4/sys_uio_h.m4: Likewise.
50848         * tests/test-sys_uio.c: Likewise.
50849         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
50850         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
50852 2011-04-20  Jim Meyering  <meyering@redhat.com>
50854         useless-if-before-free: avoid false-positive
50855         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
50856         disjunct so that it too requires a terminating ";".  Without that,
50857         this script would identify as useless one statement from gcc that
50858         was not:
50859           if (aligned_ptr)
50860             free (((void **) aligned_ptr) [-1]);
50862 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
50864         doc: update users.txt.
50865         * users.txt: Add barcode.
50867 2011-04-19  Bruno Haible  <bruno@clisp.org>
50869         ioctl: Remove link dependency on native Windows.
50870         * lib/fd-hook.h: Renamed from lib/close-hook.h.
50871         (gl_close_fn, gl_ioctl_fn): New types.
50872         (struct fd_hook): Renamed from struct close_hook. Change type of
50873         private_close_fn field. Add private_ioctl_fn field.
50874         (close_hook_fn): Add parameter for primary close method.
50875         (execute_close_hooks, execute_all_close_hooks): Likewise.
50876         (ioctl_hook_fn): New type.
50877         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
50878         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
50879         argument.
50880         (unregister_fd_hook): Renamed from unregister_close_hook.
50881         * lib/fd-hook.c: Renamed from lib/close-hook.c.
50882         Don't include <unistd.h>.
50883         (close): Remove undef.
50884         (anchor): Update.
50885         (execute_close_hooks): Add argument for primary close method.
50886         (execute_all_close_hooks): Likewise.
50887         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
50888         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
50889         argument. Allow each argument to be NULL.
50890         (unregister_fd_hook): Renamed from unregister_close_hook.
50891         * lib/close.c (rpl_close): Pass 'close' function pointer to
50892         execute_all_close_hooks.
50893         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
50894         (primary_ioctl): New function.
50895         (ioctl): Don't call ioctlsocket here. Instead, call
50896         execute_all_ioctl_hooks.
50897         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
50898         close method.
50899         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
50900         (fd_sockets_hook): Renamed from close_sockets_hook.
50901         (gl_sockets_startup, gl_sockets_cleanup): Update.
50902         * modules/fd-hook: Renamed from modules/close-hook. Update.
50903         * modules/close (Depends-on): Add fd-hook, remove close-hook.
50904         * modules/sockets (Depends-on): Likewise.
50905         * modules/ioctl (Depends-on): Add fd-hook.
50906         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
50907         GNULIB_SOCKET.
50909 2011-04-19  Bruno Haible  <bruno@clisp.org>
50911         Move the support of O_NONBLOCK in open() to the 'open' module.
50912         * modules/nonblocking (Depends-on): Remove 'open'.
50913         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
50914         gl_cv_have_open_O_NONBLOCK.
50915         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
50916         O_NONBLOCK support.
50917         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
50919 2011-04-17  Bruno Haible  <bruno@clisp.org>
50921         pipe2: Simplify code.
50922         * lib/pipe2.c (pipe2): Reduce code duplication.
50924 2011-04-17  Bruno Haible  <bruno@clisp.org>
50926         nonblocking: Add comment.
50927         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
50929 2011-04-17  Bruno Haible  <bruno@clisp.org>
50931         nonblocking: Add tests for sockets.
50932         * tests/test-nonblocking-socket.sh: New file.
50933         * tests/test-nonblocking-socket-main.c: New file.
50934         * tests/test-nonblocking-socket-child.c: New file.
50935         * tests/test-nonblocking-socket.h: New file.
50936         * tests/socket-server.h: New file.
50937         * tests/socket-client.h: New file.
50938         * modules/nonblocking-socket-tests: New file.
50939         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
50941 2011-04-17  Bruno Haible  <bruno@clisp.org>
50943         nonblocking: Add tests for pipes.
50944         * tests/test-nonblocking-pipe.sh: New file.
50945         * tests/test-nonblocking-pipe-main.c: New file.
50946         * tests/test-nonblocking-pipe-child.c: New file.
50947         * tests/test-nonblocking-pipe.h: New file.
50948         * tests/test-nonblocking-writer.h: New file.
50949         * tests/test-nonblocking-reader.h: New file.
50950         * tests/test-nonblocking-misc.h: New file.
50951         * modules/nonblocking-pipe-tests: New file.
50952         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
50954 2011-04-16  Bruno Haible  <bruno@clisp.org>
50956         gettext: Clarify the needed programmer actions.
50957         * modules/gettext (Notice): New field.
50958         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50960 2011-04-16  Bruno Haible  <bruno@clisp.org>
50962         strchrnul: Tweak last commit.
50963         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
50964         bug.
50965         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
50966         as in _GL_FUNCDECL_SYS.
50967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
50968         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
50970 2011-04-15  Eric Blake  <eblake@redhat.com>
50972         strchrnul: work around cygwin bug
50973         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
50974         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
50975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
50976         * modules/string (Makefile.am): Substitute it.
50977         * lib/string.in.h (strchrnul): Use it.
50979 2011-04-15  Bruno Haible  <bruno@clisp.org>
50981         Don't require lib/stdio-write.c when only module 'stdio' is used.
50982         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
50983         invocation.
50984         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
50986 2011-04-14  Bruno Haible  <bruno@clisp.org>
50988         Support non-blocking pipe I/O in read() on native Windows.
50989         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
50990         (read): New declaration.
50991         * lib/read.c: New file.
50992         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
50993         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
50994         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
50995         vscanf): New declarations.
50996         * lib/stdio-read.c: New file.
50997         * m4/read.m4: New file.
50998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
50999         REPLACE_READ.
51000         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
51001         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51002         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
51003         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
51004         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
51005         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51006         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
51007         * modules/read: New file.
51008         * modules/nonblocking (Files): Add lib/stdio-read.c.
51009         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
51010         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
51011         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
51012         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
51013         * modules/pread (Depends-on): Add read.
51014         * modules/safe-read (Depends-on): Likewise.
51015         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
51016         gets, scanf, vfscanf, vscanf): Verify signatures.
51017         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
51018         problem with non-blocking pipes.
51019         * doc/posix-functions/fgetc.texi: Likewise.
51020         * doc/posix-functions/fgets.texi: Likewise.
51021         * doc/posix-functions/fread.texi: Likewise.
51022         * doc/posix-functions/fscanf.texi: Likewise.
51023         * doc/posix-functions/getc.texi: Likewise.
51024         * doc/posix-functions/getchar.texi: Likewise.
51025         * doc/posix-functions/gets.texi: Likewise.
51026         * doc/posix-functions/scanf.texi: Likewise.
51027         * doc/posix-functions/vfscanf.texi: Likewise.
51028         * doc/posix-functions/vscanf.texi: Likewise.
51030 2011-04-14  Bruno Haible  <bruno@clisp.org>
51032         Support non-blocking pipe I/O in write() on native Windows.
51033         * lib/write.c (rpl_write): Split a write request that failed merely
51034         because the byte count was larger than the pipe buffer's size.
51035         * doc/posix-functions/write.texi: Mention the problem with large byte
51036         counts.
51038 2011-04-14  Bruno Haible  <bruno@clisp.org>
51040         wchar: Ensure that wchar_t gets defined on uClibc.
51041         * lib/wchar.in.h: On uClibc, include <stddef.h>.
51042         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
51044 2011-04-13  Bruno Haible  <bruno@clisp.org>
51046         safe-write, full-read: Avoid unnecessary compilation units.
51047         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
51048         (Depends-on): Remove safe-read. Add ssize_t.
51049         * modules/full-read (Files): Add lib/full-write.c.
51050         (Depends-on): Add full-write.
51052 2011-04-13  Bruno Haible  <bruno@clisp.org>
51054         Support non-blocking pipe I/O and SIGPIPE in pwrite().
51055         * modules/pwrite (Depends-on): Add 'write'.
51057 2011-04-13  Bruno Haible  <bruno@clisp.org>
51059         Support non-blocking pipe I/O in write() on native Windows.
51060         * lib/unistd.in.h (write): Enable replacement also if
51061         GNULIB_UNISTD_H_NONBLOCKING is 1.
51062         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
51063         (rpl_write): When failing to write on a non-blocking pipe, change
51064         errno from ENOSPC to EAGAIN.
51065         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
51066         putchar, puts, vfprintf, vprintf): Enable replacement also if
51067         GNULIB_STDIO_H_NONBLOCKING is 1.
51068         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
51069         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
51070         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
51071         CALL_WITH_SIGPIPE_EMULATION.
51072         (CALL_WITH_SIGPIPE_EMULATION): Use them.
51073         * m4/nonblocking.m4: New file.
51074         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
51075         for non-blocking I/O support.
51076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51077         GNULIB_UNISTD_H_NONBLOCKING.
51078         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
51079         required for non-blocking I/O support.
51080         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
51081         * modules/nonblocking (Files): Add m4/nonblocking.m4,
51082         lib/stdio-write.c, m4/asm-underscore.m4.
51083         (Depends-on): Add stdio, unistd.
51084         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
51085         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
51086         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
51087         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
51088         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
51089         problem with non-blocking pipes.
51090         * doc/posix-functions/fputc.texi: Likewise.
51091         * doc/posix-functions/fputs.texi: Likewise.
51092         * doc/posix-functions/fwrite.texi: Likewise.
51093         * doc/posix-functions/printf.texi: Likewise.
51094         * doc/posix-functions/putc.texi: Likewise.
51095         * doc/posix-functions/putchar.texi: Likewise.
51096         * doc/posix-functions/puts.texi: Likewise.
51097         * doc/posix-functions/vfprintf.texi: Likewise.
51098         * doc/posix-functions/vprintf.texi: Likewise.
51099         * doc/posix-functions/write.texi: Likewise.
51101 2011-04-10  Jim Meyering  <meyering@redhat.com>
51103         maint.mk: prohibit doubled words
51104         Detect them also when they're separated by a newline.
51105         There are 3 ways to customize it:
51106           - disable the test on a per file basis, as usual with rules using
51107             $(VC_LIST_EXCEPT)
51108           - replace the default doubled-word-selecting regexp (affects all files)
51109           - ignore a particular file-vs-doubled-word match
51110         I nearly used that last one to ignore the "is is" match in
51111         coreutils' NEWS file, since the text was "ls -is is ..."
51112         To do that, I would have added this line to cfg.mk:
51113           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
51114         but it would have ignored any "is is" match in NEWS.
51115         Low probability, but still...
51116         Instead, I changed the text, slightly:
51117           -  ls -is is now consistent with ls -lis in ignoring values returned
51118           +  "ls -is" is now consistent with ls -lis in ignoring values returned
51119         * top/maint.mk (prohibit_double_word_RE_): Provide default.
51120         (prohibit_doubled_word_): Define.
51121         (sc_prohibit_doubled_word): New rule.
51122         (sc_prohibit_the_the): Remove.  Subsumed by the above.
51124 2011-04-10  Jim Meyering  <meyering@redhat.com>
51126         maint: fix doubled-word typo in comment
51127         * m4/gethostname.m4: s/is is/it is/
51128         * m4/getdomainname.m4: Likewise.
51130 2011-04-10  Jim Meyering  <meyering@redhat.com>
51132         maint: remove doubled word: s/it it/it/
51133         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
51135 2011-04-10  Jim Meyering  <meyering@redhat.com>
51137         maint.mk: remove useless semicolon and backslash
51138         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
51139         semicolon and backslash.
51141 2011-04-10  Bruno Haible  <bruno@clisp.org>
51143         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
51144         * modules/stdint-tests (Depends-on): Add wchar.
51146 2011-04-10  Jim Meyering  <meyering@redhat.com>
51148         maint: remove doubled words in comments, e.g., s/a a/a/
51149         * lib/strptime.c (day_of_the_week): s/the the/the/
51150         * tests/test-chown.h (test_chown): s/a a/a/
51152         test-chown.h: correct a cast
51153         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
51154         when the destination is a stat.st_gid.
51156 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
51158         getaddrinfo: Fix test for sa_len member.
51159         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
51160         include <sys/types.h> before <sys/socket.h>.
51162 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51164         maint: change "can not" to "cannot"
51165         * doc/posix-functions/iconv.texi (iconv): This one crossed line
51166         boundaries.
51168 2011-04-09  Jim Meyering  <meyering@redhat.com>
51170         maint: change "a a" to "a"
51171         * tests/test-lchown.h (test_lchown): s/a a/a/
51173         maint.mk: prohibit \<the the\>
51174         * top/maint.mk (sc_prohibit_the_the): New rule.
51176         maint: fix "the the" in comment
51177         * lib/count-one-bits.h: s/the the/the/
51179         maint: change "can not" to "cannot"
51180         But do not change the occurrences in maintain.texi or in
51181         build-aux/po/Makefile.in.in, which I presume comes from gettext.
51182         * doc/gnulib-tool.texi: s/can not/cannot/
51183         * doc/posix-functions/accept.texi (accept): Likewise.
51184         * doc/posix-functions/socket.texi (socket): Likewise.
51185         * lib/mbrtowc.c: Likewise.
51187         maint.mk: prohibit use of "can not"
51188         * top/maint.mk (sc_prohibit_can_not): New rule.
51189         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
51191 2011-04-09  Bruno Haible  <bruno@clisp.org>
51193         careadlinkat: Guard against misuse of careadlinkatcwd.
51194         * lib/careadlinkat.c: Include <stdlib.h>.
51195         (careadlinkatcwd): Check that the fd argument is as expected.
51197 2011-04-09  Bruno Haible  <bruno@clisp.org>
51199         careadlinkat: Use common coding style.
51200         * lib/careadlinkat.c: Move gnulib includes after system includes.
51202 2011-04-09  Bruno Haible  <bruno@clisp.org>
51204         careadlinkat: Clarify specification.
51205         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
51206         (careadlinkatcwd): Add comment.
51207         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
51209 2011-04-09  Bruno Haible  <bruno@clisp.org>
51211         areadlinkat: Avoid link error on many platforms.
51212         * modules/areadlinkat (Depends-on): Add areadlink.
51214 2011-04-09  Bruno Haible  <bruno@clisp.org>
51216         allocator, careadlinkat: Fix double-inclusion guard.
51217         * lib/allocator.h: Fix double-inclusion guard.
51218         * lib/careadlinkat.h: Likewise.
51220 2011-04-09  Bruno Haible  <bruno@clisp.org>
51222         relocatable-prog-wrapper: Update after module 'areadlink' changed.
51223         * lib/relocwrapper.c: Update dependencies hierarchy.
51224         * build-aux/install-reloc: Update list of files to be compiled.
51225         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
51226         lib/allocator.[hc].
51228 2011-04-08  Eric Blake  <eblake@redhat.com>
51230         strftime: silence gnulib-tool warning
51231         * modules/strftime-tests (Depends-on): Drop automatic dependency.
51233 2011-04-08  Bruno Haible  <bruno@clisp.org>
51235         verify: Fix syntax error with GCC 4.6 in C++ mode.
51236         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
51237         (HAVE_STATIC_ASSERT): New macro.
51238         (verify_true, verify): Use 'static_assert' if it is supported and
51239         '_Static_assert' is not supported.
51241 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
51243         allocator: New module.
51244         * modules/allocator, lib/allocator.c: New files.
51245         * lib/allocator.h (stdlib_allocator): New decl.
51246         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
51247         Remove.  Do not include <stdlib.h>.
51248         (careadlinkat): Use stdlib_allocator instead of rolling our own.
51249         * modules/careadlinkat (Files): Remove lib/allocator.h.
51250         (Depends-on): Add allocator.
51252         stdlib: let modules use system malloc, realloc
51253         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
51254         if !_GL_USE_STDLIB_ALLOC.
51255         (malloc, realloc): Limit this change to a smaller scope.
51257         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
51258         (malloc, realloc): Don't #undef; no longer needed.
51259         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51260         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51261         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
51262         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51263         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51264         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51265         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
51266         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
51268         careadlinkat: rename members to avoid problem
51269         * lib/allocator.h (struct allocator): Rename members from
51270         malloc/realloc to allocate/reallocate, to avoid problems if malloc
51271         and realloc are #define'd.  Reported by Eric Blake in
51272         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
51273         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
51275 2011-04-08  Eric Blake  <eblake@redhat.com>
51277         nonblocking: reduce dependency
51278         * tests/test-nonblocking.c: Only test sockets when in use.
51279         * modules/nonblocking-tests (Depends-on): Drop socket.
51280         (Makefile.am): Link even if sockets are not present.
51281         * modules/pipe2-tests (Makefile.am): Likewise.
51282         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
51284         pipe2: fix O_NONBLOCK support on mingw
51285         * modules/pipe2 (Depends-on): Add nonblocking.
51286         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
51287         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
51288         * tests/test-nonblocking.c (main): Likewise.
51289         * modules/pipe2-tests (Makefile.am): Avoid link failure.
51291         fcntl-h: fix O_ACCMODE on cygwin
51292         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
51293         * lib/fcntl.in.h (O_ACCMODE): Fix it.
51295         pipe-filter: drop O_NONBLOCK workarounds
51296         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
51297         * modules/pipe-filter-ii (Depends-on): Likewise.
51298         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
51300         nonblocking: provide O_NONBLOCK for mingw
51301         * modules/nonblocking (Depends-on): Add open.
51302         (configure.ac): Set new witness macro.
51303         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
51304         * modules/fcntl-h (Makefile.am): Substitute it.
51305         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
51306         nonblocking module is in use.
51307         * lib/nonblocking.c: Adjust portability test.
51308         * lib/open.c (open): Don't let native open see gnulib flag.
51309         * tests/test-fcntl-h.c (main): Enhance test.
51310         * tests/test-open.h (test_open): Likewise.
51311         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
51313         careadlinkat: fix compilation error on mingw
51314         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
51315         within struct allocator.
51317 2011-04-06  Eric Blake  <eblake@redhat.com>
51319         binary-io: relicense under LGPLv2+
51320         * modules/binary-io (License): Relax to LGPLv2+.
51321         Requested for libvirt, and required by pipe2.
51323 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
51325         verify: use _Static_assert if available
51326         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
51327         (verify_true, verify): Use it if available.  This generates better
51328         diagnostics with GCC 4.6.0 and later.
51330 2011-04-05  Bruno Haible  <bruno@clisp.org>
51332         Remove leftover generated .h files after config.status changed.
51334         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
51335         GL_GENERATE_ALLOCA_H.
51336         * modules/alloca-opt (Makefile.am): Remove alloca.h if
51337         GL_GENERATE_ALLOCA_H evaluates to false.
51339         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
51340         GL_GENERATE_ARGZ_H.
51341         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
51342         evaluates to false.
51344         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
51345         GL_GENERATE_BYTESWAP_H.
51346         * modules/byteswap (Makefile.am): Remove byteswap.h if
51347         GL_GENERATE_BYTESWAP_H evaluates to false.
51349         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
51350         GL_GENERATE_ERRNO_H.
51351         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
51352         evaluates to false.
51354         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
51355         GL_GENERATE_FLOAT_H.
51356         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
51357         evaluates to false.
51359         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
51360         GL_GENERATE_FNMATCH_H.
51361         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
51362         GL_GENERATE_FNMATCH_H evaluates to false.
51364         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
51365         GL_GENERATE_GLOB_H.
51366         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
51367         evaluates to false.
51369         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
51370         automake conditional GL_GENERATE_ICONV_H.
51371         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
51372         evaluates to false.
51374         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
51375         GL_GENERATE_NETINET_IN_H.
51376         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
51377         GL_GENERATE_NETINET_IN_H evaluates to false.
51379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
51380         conditional GL_GENERATE_PTHREAD_H.
51381         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
51382         * modules/pthread (Makefile.am): Remove pthread.h if
51383         GL_GENERATE_PTHREAD_H evaluates to false.
51385         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
51386         GL_GENERATE_SCHED_H.
51387         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
51388         evaluates to false.
51390         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
51391         conditional GL_GENERATE_SELINUX_CONTEXT_H.
51392         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
51393         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
51395         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
51396         GL_GENERATE_STDARG_H.
51397         * modules/stdarg (Makefile.am): Remove stdarg.h if
51398         GL_GENERATE_STDARG_H evaluates to false.
51400         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
51401         GL_GENERATE_STDBOOL_H.
51402         * modules/stdbool (Makefile.am): Remove stdbool.h if
51403         GL_GENERATE_STDBOOL_H evaluates to false.
51405         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
51406         conditional GL_GENERATE_STDDEF_H.
51407         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
51408         * modules/stddef (Makefile.am): Remove stddef.h if
51409         GL_GENERATE_STDDEF_H evaluates to false.
51411         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
51412         GL_GENERATE_STDINT_H.
51413         * modules/stdint (Makefile.am): Remove stdint.h if
51414         GL_GENERATE_STDINT_H evaluates to false.
51416         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
51417         GL_GENERATE_SYSEXITS_H.
51418         * modules/sysexits (Makefile.am): Remove sysexits.h if
51419         GL_GENERATE_SYSEXITS_H evaluates to false.
51421         Reported by Karl Berry and Ralf Wildenhues.
51423 2011-04-05  Bruno Haible  <bruno@clisp.org>
51425         Ensure to rebuild generated .h files when config.status has changed.
51426         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
51427         config.status.
51428         * modules/ctype (Makefile.am): Likewise.
51429         * modules/dirent (Makefile.am): Likewise.
51430         * modules/errno (Makefile.am): Likewise.
51431         * modules/fcntl-h (Makefile.am): Likewise.
51432         * modules/float (Makefile.am): Likewise.
51433         * modules/getopt-posix (Makefile.am): Likewise.
51434         * modules/glob (Makefile.am): Likewise.
51435         * modules/iconv-h (Makefile.am): Likewise.
51436         * modules/inttypes (Makefile.am): Likewise.
51437         * modules/langinfo (Makefile.am): Likewise.
51438         * modules/locale (Makefile.am): Likewise.
51439         * modules/math (Makefile.am): Likewise.
51440         * modules/netdb (Makefile.am): Likewise.
51441         * modules/netinet_in (Makefile.am): Likewise.
51442         * modules/poll-h (Makefile.am): Likewise.
51443         * modules/pthread (Makefile.am): Likewise.
51444         * modules/pty (Makefile.am): Likewise.
51445         * modules/sched (Makefile.am): Likewise.
51446         * modules/search (Makefile.am): Likewise.
51447         * modules/selinux-h (Makefile.am): Likewise.
51448         * modules/signal (Makefile.am): Likewise.
51449         * modules/spawn (Makefile.am): Likewise.
51450         * modules/stdarg (Makefile.am): Likewise.
51451         * modules/stdbool (Makefile.am): Likewise.
51452         * modules/stddef (Makefile.am): Likewise.
51453         * modules/stdint (Makefile.am): Likewise.
51454         * modules/stdio (Makefile.am): Likewise.
51455         * modules/stdlib (Makefile.am): Likewise.
51456         * modules/string (Makefile.am): Likewise.
51457         * modules/strings (Makefile.am): Likewise.
51458         * modules/sys_file (Makefile.am): Likewise.
51459         * modules/sys_ioctl (Makefile.am): Likewise.
51460         * modules/sys_select (Makefile.am): Likewise.
51461         * modules/sys_socket (Makefile.am): Likewise.
51462         * modules/sys_stat (Makefile.am): Likewise.
51463         * modules/sys_time (Makefile.am): Likewise.
51464         * modules/sys_times (Makefile.am): Likewise.
51465         * modules/sys_utsname (Makefile.am): Likewise.
51466         * modules/sys_wait (Makefile.am): Likewise.
51467         * modules/sysexits (Makefile.am): Likewise.
51468         * modules/termios (Makefile.am): Likewise.
51469         * modules/time (Makefile.am): Likewise.
51470         * modules/unistd (Makefile.am): Likewise.
51471         * modules/wchar (Makefile.am): Likewise.
51472         * modules/wctype-h (Makefile.am): Likewise.
51473         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
51475 2011-04-05  Bruno Haible  <bruno@clisp.org>
51477         pipe2: Relicense under LGPLv2+.
51478         * modules/pipe2 (License): Change to LGPLv2+.
51479         Requested by Eric Blake, for libvirt.
51481 2011-04-05  Bruce Korb  <bkorb@gnu.org>
51483         bootstrap: compute gnulib_extra_files after updating build_aux
51484         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
51485         change build_aux or also supply gnulib_extra_files.  Handle correctly.
51487 2011-04-05  Eric Blake  <eblake@redhat.com>
51489         bootstrap: preserve git whitelist item sorting
51490         * build-aux/bootstrap (sort_patterns): New function.
51491         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
51493 2011-04-05  Simon Josefsson  <simon@josefsson.org>
51495         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
51496         sc_space_tab check.
51498 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
51500         areadlink, areadlinkat: rewrite in terms of careadlinkat
51501         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
51502         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
51503         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
51504         (malloc, realloc): Remove #undefs.
51505         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
51506         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
51507         readlink, ssize_t, stdint, unistd.
51508         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
51509         areadlink, stdint.
51511         careadlinkat: new module
51512         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
51513         * modules/careadlinkat: New files, written by me with
51514         a review and feedback from Ben Pfaff in
51515         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
51517 2011-04-01  Bruno Haible  <bruno@clisp.org>
51519         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
51520         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
51521         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
51522         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
51523         Reported by Bruce Korb <bruce.korb@gmail.com>.
51525 2011-04-01  Bruno Haible  <bruno@clisp.org>
51527         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
51528         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
51529         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
51530         * modules/wcpcpy (Depends-on): Add extensions.
51531         * modules/wcpncpy (Depends-on): Likewise.
51532         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
51533         systems.
51534         * doc/posix-functions/wcpncpy.texi: Likewise.
51535         * doc/posix-functions/wcwidth.texi: Likewise.
51537 2011-03-31  Eric Blake  <eblake@redhat.com>
51539         nonblocking: fix mingw test failures
51540         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
51541         non-blocking flag on regular file.
51542         (get_nonblocking_flag): Set errno on invalid fd.
51543         * tests/test-nonblocking.c (main): Avoid test failure on
51544         directories if fchdir is not active.
51545         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
51547 2011-03-31  Bruno Haible  <bruno@clisp.org>
51549         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
51550         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
51551         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
51552         Reported by Simon Josefsson <simon@josefsson.org>.
51554 2011-03-31  Bruno Haible  <bruno@clisp.org>
51555         and Eric Blake  <eblake@redhat.com>
51557         nonblocking: new module
51558         * modules/nonblocking: New module.
51559         * modules/nonblocking-tests: Likewise.
51560         * lib/nonblocking.h: New file.
51561         * lib/nonblocking.c: Likewise.
51562         * tests/test-nonblocking.c: New test.
51563         * lib/ioctl.c (ioctl) [mingw]: Update comment.
51565 2011-03-30  Bruno Haible  <bruno@clisp.org>
51567         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
51568         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
51569         instead of 'printf' format for GCC >= 4.4.
51570         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
51571         (fprintf, printf, vfprintf, vprintf): Declare with
51572         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
51573         the system's vfprintf() function.
51574         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
51576 2011-03-30  Eric Blake  <eblake@redhat.com>
51578         passfd: fix scoping bug
51579         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
51580         before sendmsg/recvmsg.
51582         passfd: standardize coding conventions
51583         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
51584         can be learned at compile time.
51585         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
51586         ifdefs.
51587         (sendfd, recvfd): Follow gnulib code conventions.
51589         passfd: fix incorrect sendmsg arguments
51590         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
51591         incorrect msg_controllen value.
51592         * modules/passfd-tests (Depends-on): Check for alarm.
51593         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
51594         Reported by Bastien ROUCARIES.
51596 2011-03-30  Bruno Haible  <bruno@clisp.org>
51598         c-strcasestr: Relicense under LGPLv2+.
51599         * modules/c-strcasestr (License): Change to LGPLv2+.
51600         Requested by Eric Blake, for libvirt.
51602 2011-03-30  Simon Josefsson  <simon@josefsson.org>
51604         * users.txt: Add libidn2.  Fix libtasn1 link.
51606 2011-03-30  Jim Meyering  <meyering@redhat.com>
51608         tests: readlink* ("",... fails with EINVAL on newer kernels
51609         readlink and readlinkat have typically failed with ENOENT for
51610         the invalid, empty file name,  "".  However, with the advent
51611         of linux-2.6.39, they fail with EINVAL.
51612         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
51613         when operating on the empty file name.
51614         * tests/test-readlink.h (test_readlink): Likewise.
51616 2011-03-29  Bruno Haible  <bruno@clisp.org>
51618         Relicense some modules under LGPLv2+, for libidn2.
51619         * modules/array-mergesort (License): Change to LGPLv2+.
51620         * modules/c-strcaseeq (License): Likewise.
51621         * modules/striconveh (License): Likewise.
51622         * modules/striconveha (License): Likewise.
51623         * modules/uniconv/base (License): Likewise.
51624         * modules/uniconv/u8-conv-from-enc (License): Likewise.
51625         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
51626         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
51627         * modules/unictype/base (License): Likewise.
51628         * modules/unictype/bidiclass-of (License): Likewise.
51629         * modules/unictype/category-M (License): Likewise.
51630         * modules/unictype/category-none (License): Likewise.
51631         * modules/unictype/category-of (License): Likewise.
51632         * modules/unictype/category-test (License): Likewise.
51633         * modules/unictype/category-test-withtable (License): Likewise.
51634         * modules/unictype/combining-class (License): Likewise.
51635         * modules/unictype/joiningtype-of (License): Likewise.
51636         * modules/unictype/scripts (License): Likewise.
51637         * modules/uninorm/base (License): Likewise.
51638         * modules/uninorm/canonical-decomposition (License): Likewise.
51639         * modules/uninorm/composition (License): Likewise.
51640         * modules/uninorm/decompose-internal (License): Likewise.
51641         * modules/uninorm/decomposition-table (License): Likewise.
51642         * modules/uninorm/nfc (License): Likewise.
51643         * modules/uninorm/nfd (License): Likewise.
51644         * modules/uninorm/u32-normalize (License): Likewise.
51645         * modules/unistr/base (License): Likewise.
51646         * modules/unistr/u32-cpy (License): Likewise.
51647         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
51648         * modules/unistr/u32-to-u8 (License): Likewise.
51649         * modules/unistr/u32-uctomb (License): Likewise.
51650         * modules/unistr/u8-check (License): Likewise.
51651         * modules/unistr/u8-mblen (License): Likewise.
51652         * modules/unistr/u8-mbtouc (License): Likewise.
51653         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
51654         * modules/unistr/u8-mbtoucr (License): Likewise.
51655         * modules/unistr/u8-prev (License): Likewise.
51656         * modules/unistr/u8-strlen (License): Likewise.
51657         * modules/unistr/u8-to-u32 (License): Likewise.
51658         * modules/unistr/u8-uctomb (License): Likewise.
51659         * modules/unitypes (License): Likewise.
51660         Requested by Simon Josefsson.
51662 2011-03-29  Simon Josefsson  <simon@josefsson.org>
51664         lib-symbol-visibility: Add a notice.
51665         * modules/lib-symbol-visibility (Notice): New field.
51667 2011-03-29  Bruno Haible  <bruno@clisp.org>
51669         getaddrinfo: Doc fix.
51670         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
51671         section "fixed in Gnulib".
51673 2011-03-28  Simon Josefsson  <simon@josefsson.org>
51675         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
51676         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
51678 2011-03-26  Bruno Haible  <bruno@clisp.org>
51680         unictype/property-byname: Reduce the number of load-time relocations.
51681         * lib/unictype/pr_byname.c: Include <stdlib.h>.
51682         (UC_PROPERTY_INDEX_*): New enumeration values.
51683         (uc_property_byname): Convert an index from the lookup table to an
51684         uc_property_t.
51685         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
51686         values.
51688 2011-03-26  Bruno Haible  <bruno@clisp.org>
51690         unictype/property-byname: Allow omitted word separators and aliases.
51691         * lib/unictype/pr_byname.gperf: Add property names without word
51692         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
51693         for 'space'.
51695 2011-03-26  Bruno Haible  <bruno@clisp.org>
51697         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
51698         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
51699         also hyphens to space.
51700         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
51701         without spaces.
51702         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
51704 2011-03-26  Bruno Haible  <bruno@clisp.org>
51706         unictype/joiningtype-byname: Recognize long names as well.
51707         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
51708         a long name.
51709         * lib/unictype/joiningtype_byname.c: Include <string.h>,
51710         unictype/joiningtype_byname.h.
51711         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
51712         * lib/unictype/joiningtype_byname.gperf: New file.
51713         * modules/unictype/joiningtype-byname (Files): Add
51714         lib/unictype/joiningtype_byname.gperf.
51715         (Depends-on): Add gperf.
51716         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
51717         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
51718         long names.
51720         Tests for module 'unictype/joiningtype-longname'.
51721         * modules/unictype/joiningtype-longname-tests: New file.
51722         * tests/unictype/test-joiningtype_longname.c: New file.
51724         New module 'unictype/joiningtype-longname'.
51725         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
51726         * lib/unictype/joiningtype_longname.c: New file.
51727         * modules/unictype/joiningtype-longname: New file.
51728         * modules/unictype/joiningtype-all (Depends-on): Add
51729         unictype/joiningtype-longname.
51731 2011-03-26  Bruno Haible  <bruno@clisp.org>
51733         unictype/bidiclass-byname: Recognize long names as well.
51734         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
51735         name.
51736         * lib/unictype/bidi_byname.c: Include <string.h>,
51737         unictype/bidi_byname.h.
51738         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
51739         * lib/unictype/bidi_byname.gperf: New file.
51740         * modules/unictype/bidiclass-byname (Files): Add
51741         lib/unictype/bidi_byname.gperf.
51742         (Depends-on): Add gperf.
51743         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
51744         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
51745         long names.
51747         Tests for module 'unictype/bidiclass-longname'.
51748         * modules/unictype/bidiclass-longname-tests: New file.
51749         * tests/unictype/test-bidi_longname.c: New file.
51751         New module 'unictype/bidiclass-longname'.
51752         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
51753         * lib/unictype/bidi_longname.c: New file.
51754         * modules/unictype/bidiclass-longname: New file.
51755         * modules/unictype/bidiclass-all (Depends-on): Add
51756         unictype/bidiclass-longname.
51758 2011-03-26  Bruno Haible  <bruno@clisp.org>
51760         unictype/bidi*: Rename modules.
51761         * modules/unictype/bidiclass-all: Renamed from
51762         modules/unictype/bidicategory-all.
51763         * modules/unictype/bidiclass-name: Renamed from
51764         modules/unictype/bidiclass-name.
51765         (Description): Update.
51766         * modules/unictype/bidiclass-name-tests: Renamed from
51767         modules/unictype/bidicategory-name-tests.
51768         * modules/unictype/bidiclass-byname: Renamed from
51769         modules/unictype/bidicategory-byname.
51770         (Description): Update.
51771         * modules/unictype/bidiclass-byname-tests: Renamed from
51772         modules/unictype/bidicategory-byname-tests.
51773         * modules/unictype/bidiclass-of: Renamed from
51774         modules/unictype/bidicategory-of.
51775         (Description): Update.
51776         * modules/unictype/bidiclass-of-tests: Renamed from
51777         modules/unictype/bidicategory-of-tests.
51778         * modules/unictype/bidiclass-test: Renamed from
51779         modules/unictype/bidicategory-test.
51780         (Description): Update.
51781         * modules/unictype/bidiclass-test-tests: Renamed from
51782         modules/unictype/bidicategory-test-tests.
51783         * modules/unictype/bidicategory-all: New file, a simple redirection.
51784         * modules/unictype/bidicategory-name: Likewise.
51785         * modules/unictype/bidicategory-byname: Likewise.
51786         * modules/unictype/bidicategory-of: Likewise.
51787         * modules/unictype/bidicategory-test: Likewise.
51788         * modules/unictype/property-bidi-* (Dependencies): Update.
51789         * lib/unictype/bidi_*.c: Update comment.
51791 2011-03-26  Bruno Haible  <bruno@clisp.org>
51793         unictype/bidi*: Rename functions, part 2.
51794         * modules/unictype/bidicategory-name (configure.ac): Update required
51795         libunistring version.
51796         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
51798 2011-03-25  Bruno Haible  <bruno@clisp.org>
51800         New module 'unictype/combining-class-all'.
51801         * modules/unictype/combining-class-all: New file.
51803         Tests for module 'unictype/combining-class-byname'.
51804         * modules/unictype/combining-class-byname-tests: New file.
51805         * tests/unictype/test-combiningclass_byname.c: New file.
51807         New module 'unictype/combining-class-byname'.
51808         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
51809         * lib/unictype/combiningclass_byname.c: New file.
51810         * lib/unictype/combiningclass_byname.gperf: New file.
51811         * modules/unictype/combining-class-byname: New file.
51813         Tests for module 'unictype/combining-class-longname'.
51814         * modules/unictype/combining-class-longname-tests: New file.
51815         * tests/unictype/test-combiningclass_longname.c: New file.
51817         New module 'unictype/combining-class-longname'.
51818         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
51819         * lib/unictype/combiningclass_longname.c: New file.
51820         * modules/unictype/combining-class-longname: New file.
51822         Tests for module 'unictype/combining-class-name'.
51823         * modules/unictype/combining-class-name-tests: New file.
51824         * tests/unictype/test-combiningclass_name.c: New file.
51826         New module 'unictype/combining-class-name'.
51827         * lib/unictype.in.h (uc_combining_class_name): New declaration.
51828         * lib/unictype/combiningclass_name.c: New file.
51829         * modules/unictype/combining-class-name: New file.
51831 2011-03-25  Bruno Haible  <bruno@clisp.org>
51833         unictype/combining-class: Rename source files.
51834         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
51835         of unictype/combining.h.
51836         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
51837         Update.
51838         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
51839         * modules/unictype/combining-class (Description): Fix.
51840         (Files, Makefile.am): Update.
51841         * tests/unictype/test-combiningclass.c: Renamed from
51842         tests/unictype/test-combining.c.
51843         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
51845 2011-03-25  Bruno Haible  <bruno@clisp.org>
51847         unictype: Update list of canonical combining classes.
51848         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
51850 2011-03-25  Bruno Haible  <bruno@clisp.org>
51852         unictype/category-byname: Recognize long names as well.
51853         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
51854         a long name.
51855         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
51856         unictype/categ_byname.h.
51857         (UC_CATEGORY_INDEX_*): New enumeration values.
51858         (uc_general_category_byname): Use uc_general_category_lookup and
51859         convert from index to value.
51860         * lib/unictype/categ_byname.gperf: New file.
51861         * modules/unictype/category-byname (Files): Add
51862         lib/unictype/categ_byname.gperf.
51863         (Depends-on): Add gperf.
51864         (Makefile.am): Add rule for generating unictype/categ_byname.h.
51865         * tests/unictype/test-categ_byname.c (main): Test the recognition of
51866         long names.
51868         Tests for module 'unictype/category-longname'.
51869         * modules/unictype/category-longname-tests: New file.
51870         * tests/unictype/test-categ_longname.c: New file.
51872         New module 'unictype/category-longname'.
51873         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
51874         * lib/unictype/categ_longname.c: New file.
51875         * modules/unictype/category-longname: New file.
51876         * modules/unictype/category-all (Depends-on): Add it.
51878 2011-03-25  Bruno Haible  <bruno@clisp.org>
51880         Tests for module 'unictype/category-LC'.
51881         * modules/unictype/category-LC-tests: New file.
51882         * tests/unictype/test-categ_LC.c: New file, automatically generated.
51884         New module 'unictype/category-LC'.
51885         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
51886         (UC_CATEGORY_LC): New declaration.
51887         (UC_CASED_LETTER): New macro.
51888         * lib/gen-uni-tables.c (is_category_LC): New function.
51889         (output_categories): Also handle category LC.
51890         (UC_CATEGORY_MASK_LC): New enumeration value.
51891         (general_category_byname): Also handle category LC.
51892         * lib/unictype/categ_LC.c: New file.
51893         * lib/unictype/categ_LC.h: New file, automatically generated.
51894         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
51895         category LC.
51896         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
51897         * modules/unictype/category-LC: New file.
51898         * modules/unictype/category-byname (Depends-on): Add
51899         unictype/category-LC.
51900         * modules/unictype/category-all (Depends-on): Likewise.
51902 2011-03-25  Eric Blake  <eblake@redhat.com>
51904         xmalloc: revert yesterday's regression
51905         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
51906         realloc's underlying behavior (allowing allocation of zero-size
51907         objects, especially if malloc-gnu is also in use).
51909 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
51911         maint.mk: add missing version to VC-tag
51912         * top/maint.mk: git tag was missing actual tag name; add it.
51914         valgrind: do leak checking, and exit with code 1 on error (not 0)
51915         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
51916         to VALGRIND.
51918 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
51920         posix-modules: say what it does.
51921         * posix-modules: Add a line to the --help output saying what it does.
51923 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
51925         xmalloc: Do not leak if underlying realloc is C99 compatible.
51926         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
51927         This avoids a leak on C99-based systems.  See
51928         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
51930 2011-03-24  Eric Blake  <eblake@redhat.com>
51932         realloc: document portability problem
51933         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
51934         passing 0 size to realloc.
51936 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
51938         doc: update users.txt
51939         * users.txt: Add cvsps, tmpwatch
51941 2011-03-23  Matt Rice  <ratmice@gmail.com>
51943         doc: update users.txt
51944         * users.txt: Add gdb.
51946 2011-03-23  Jim Meyering  <meyering@redhat.com>
51948         doc: update users.txt
51949         Looking through matches up to the following URL (there are still
51950         several more pages), I found several projects that use gnulib:
51951         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
51952         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
51953         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
51955 2011-03-22  Bruno Haible  <bruno@clisp.org>
51957         unictype/bidi*: Rename functions.
51958         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
51959         uc_bidi_class, uc_is_bidi_class): New declarations.
51960         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
51961         uc_bidi_category_byname.
51962         (uc_bidi_category_byname): New function.
51963         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
51964         u_bidi_category_name.
51965         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
51966         (uc_bidi_category_name): New function.
51967         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
51968         uc_bidi_category.
51969         (uc_bidi_category): New function.
51970         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
51971         uc_is_bidi_category. Invoke uc_bidi_class.
51972         (uc_is_bidi_category): New function.
51973         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
51974         instead of uc_bidi_category_byname.
51975         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
51976         instead of uc_bidi_category_name.
51977         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
51978         uc_bidi_category.
51979         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
51980         instead of uc_is_bidi_category.
51982 2011-03-21  Bruno Haible  <bruno@clisp.org>
51984         New module 'unictype/joininggroup-all'.
51985         * modules/unictype/joininggroup-all: New file.
51987         Tests for module 'unictype/joininggroup-of'.
51988         * modules/unictype/joininggroup-of-tests: New file.
51989         * tests/unictype/test-joininggroup_of.c: New file.
51990         * tests/unictype/test-joininggroup_of.h: New file, automatically
51991         generated by gen-uni-tables.
51993         New module 'unictype/joininggroup-of'.
51994         * modules/unictype/joininggroup-of: New file.
51995         * lib/unictype/joininggroup_of.c: New file.
51996         * lib/unictype/joininggroup_of.h: New file, automatically generated by
51997         gen-uni-tables.
51999         Tests for module 'unictype/joininggroup-byname'.
52000         * modules/unictype/joininggroup-byname-tests: New file.
52001         * tests/unictype/test-joininggroup_byname.c: New file.
52003         New module 'unictype/joininggroup-byname'.
52004         * modules/unictype/joininggroup-byname: New file.
52005         * lib/unictype/joininggroup_byname.c: New file.
52006         * lib/unictype/joininggroup_byname.gperf: New file.
52008         Tests for module 'unictype/joininggroup-name'.
52009         * modules/unictype/joininggroup-name-tests: New file.
52010         * tests/unictype/test-joininggroup_name.c: New file.
52012         New module 'unictype/joininggroup-name'.
52013         * modules/unictype/joininggroup-name: New file.
52014         * lib/unictype/joininggroup_name.c: New file.
52015         * lib/unictype/joininggroup_name.h: New file.
52017         New module 'unictype/joiningtype-all'.
52018         * modules/unictype/joiningtype-all: New file.
52020         Tests for module 'unictype/joiningtype-of'.
52021         * modules/unictype/joiningtype-of-tests: New file.
52022         * tests/unictype/test-joiningtype_of.c: New file.
52023         * tests/unictype/test-joiningtype_of.h: New file, automatically
52024         generated by gen-uni-tables.
52026         New module 'unictype/joiningtype-of'.
52027         * modules/unictype/joiningtype-of: New file.
52028         * lib/unictype/joiningtype_of.c: New file.
52029         * lib/unictype/joiningtype_of.h: New file, automatically generated by
52030         gen-uni-tables.
52032         Tests for module 'unictype/joiningtype-byname'.
52033         * modules/unictype/joiningtype-byname-tests: New file.
52034         * tests/unictype/test-joiningtype_byname.c: New file.
52036         New module 'unictype/joiningtype-byname'.
52037         * modules/unictype/joiningtype-byname: New file.
52038         * lib/unictype/joiningtype_byname.c: New file.
52040         Tests for module 'unictype/joiningtype-name'.
52041         * modules/unictype/joiningtype-name-tests: New file.
52042         * tests/unictype/test-joiningtype_name.c: New file.
52044         New module 'unictype/joiningtype-name'.
52045         * modules/unictype/joiningtype-name: New file.
52046         * lib/unictype/joiningtype_name.c: New file.
52048         unictype: Add support for Arabic shaping properties.
52049         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
52050         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
52051         declarations.
52052         (UC_JOINING_GROUP_*): New enumeration values.
52053         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
52054         declarations.
52055         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
52056         (unicode_joining_type): New variable.
52057         (UC_JOINING_GROUP_*): New enumeration values.
52058         (unicode_joining_group): New variable.
52059         (fill_arabicshaping, joining_type_as_c_identifier,
52060         output_joining_type_test, output_joining_type,
52061         joining_group_as_c_identifier, output_joining_group_test,
52062         output_joining_group): New functions.
52063         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
52064         fill_arabicshaping and output_joining_type_test, output_joining_type,
52065         output_joining_group_test, output_joining_group.
52066         Reported by Simon Josefsson.
52068 2011-03-21  Jim Meyering  <meyering@redhat.com>
52070         strftime: fix a bug in yesterday's change
52071         * lib/strftime.c (add): Accommodate width's initial value of -1.
52072         Otherwise, nstrftime would copy uninitialized data into
52073         the result buffer.
52075 2011-03-21  Jim Meyering  <meyering@redhat.com>
52077         tests: add strftime-tests module
52078         * tests/test-strftime.c: New file.
52079         * modules/strftime-tests: New module.
52081 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52083         strftime: don't assume a byte count fits in 'int'
52084         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
52085         found this problem by static analysis, using gcc -Wstrict-overflow
52086         (GCC 4.5.2, x86-64).  This reported an optimization that depended
52087         on an integer overflow having undefined behavior, but it turns out
52088         that the argument is a size, which might not fit in 'int' anyway,
52090 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52092         stdio: don't require ignore_value around fwrite
52094         This patch works around libc bug 11959
52095         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
52096         Without this patch, applications must often write
52097         ignore_value (fwrite (...)) even though the ignore_value is
52098         not helpful here.  It's common to write many objects, using
52099         fwrite/printf/etc., and then use ferror to detect output error.
52101         I considered making this patch optional, but decided against it,
52102         because libc is obviously being inconsistent here: there is no
52103         reason libc should insist that user code must inspect fwrite
52104         return's value without also insisting that it inspect printf's,
52105         putchar's, etc.  If user code wants to have a strict style where
52106         all these functions' values are checked (so that ferror need not
52107         be checked), we could add support for that style in a new gnulib
52108         module, but in the meantime it's better to be consistent and to
52109         support common usage.
52111         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
52112         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
52113         that we are compiling in checking mode, and if not C++, and
52114         if not already wrapping fwrite for some other reason.
52115         (fwrite): #define to rpl_fwrite if the latter is defined.
52117 2011-03-20  Bruno Haible  <bruno@clisp.org>
52119         verror: Fix compilation error introduced on 2011-02-13.
52120         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
52121         instead of __attribute__.
52122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52124 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
52125             Bruno Haible  <bruno@clisp.org>
52127         socklen: do not depend on sys_socket
52128         While trying to modify Emacs to use gnulib's socklen module,
52129         I discovered a circular dependency: socklen depends on sys_socket
52130         and vice versa.  Emacs can use socklen, but it does not need
52131         sys_socket because it has its own substitute for sys/socket.h.
52132         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
52133         gl_TYPE_SOCKLEN_T.
52134         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
52135         gl_PREREQ_SYS_H_SOCKET.
52136         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
52137         gl_PREREQ_SYS_H_SOCKET.
52138         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
52139         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
52140         * modules/socklen (Depends-on): Do not depend on sys_socket.
52141         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
52143 2011-03-20  Jim Meyering  <meyering@redhat.com>
52145         maint.mk: sort file names *after* new transformation
52146         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
52147         prefix would have led to an unwarranted failure in GNU parted.
52148         Sort after that transformation.
52150 2011-03-19  Jim Meyering  <meyering@redhat.com>
52152         maint.mk: fix po-file syntax-check rule
52153         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
52154         Patch by Bruno Haible.
52156 2011-03-19  Bruno Haible  <bruno@clisp.org>
52158         socklen: Update comment.
52159         * m4/socklen.m4: Update comment about platforms.
52161 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52162             Bruno Haible  <bruno@clisp.org>
52164         inet_ntop, inet_pton: Simplify.
52165         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
52166         documented to provide socklen_t and we already depend on sys_socket.
52167         * modules/inet_pton (Depends-on): Likewise.
52168         * lib/arpa_inet.in.h: Adjust comment.
52170 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52171             Bruno Haible  <bruno@clisp.org>
52173         netdb: Simplify.
52174         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
52175         documented to provide socklen_t and we already depend on sys_socket.
52176         * lib/netdb.in.h: Adjust comment.
52178 2011-03-19  Bruno Haible  <bruno@clisp.org>
52180         sys_socket, netdb: Document problem with socklen_t.
52181         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
52182         platforms.
52183         * doc/posix-headers/netdb.texi: Likewise.
52185 2011-03-18  Eric Blake  <eblake@redhat.com>
52187         maint.mk: let po check work in VPATH build
52188         * top/maint.mk (po_file): Allow cfg.mk override.
52189         (sc_po_check): Allow VPATH use.
52190         Reported by Jiri Denemark.
52192 2011-03-16  Jim Meyering  <meyering@redhat.com>
52194         maint.mk: allow fine-grained syntax-check exclusion via Make variables
52195         Before, you would have had to create one .x-sc_ file per rule in order
52196         to exempt offending files.  Now, you may instead use a Make variable --
52197         usually defined in cfg.mk -- whose name identifies the affected rule.
52198         * top/maint.mk (_sc_excl): Define.
52199         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
52200         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
52202 2011-03-13  Bruno Haible  <bruno@clisp.org>
52204         ignore-value tests: Avoid warnings.
52205         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
52206         empty for gcc < 3.4.
52208 2011-03-13  Bruno Haible  <bruno@clisp.org>
52210         passfd: Fix link error on Solaris.
52211         * modules/passfd (Description): Correct.
52212         (Depends-on): Add socketlib.
52213         (Link): New section.
52214         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
52216 2011-03-13  Bruno Haible  <bruno@clisp.org>
52218         passfd: Fix link error on AIX 5.2.
52219         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
52221 2011-03-13  Bruno Haible  <bruno@clisp.org>
52223         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
52224         * lib/sys_socket.in.h: Include <stddef.h>.
52225         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
52226         CMSG_FIRSTHDR. Remove unused variable.
52228 2011-03-13  Bruno Haible  <bruno@clisp.org>
52230         passfd: Fix compilation error on OpenBSD.
52231         * lib/passfd.c: Include <sys/uio.h>.
52233 2011-03-13  Bruno Haible  <bruno@clisp.org>
52235         passfd test: Fix warnings.
52236         * tests/test-passfd.c: Include <sys/wait.h>.
52237         (main): Fix typo.
52239 2011-03-13  Bruno Haible  <bruno@clisp.org>
52241         passfd module, part 4, tweaks.
52242         * tests/test-passfd.c: Reorder includes.
52243         (main): Fix perror and printf calls.
52245 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52247         passfd module, part 4.
52248         * modules/passfd-tests: New file.
52249         * tests/test-passfd.c: New file.
52251 2011-03-13  Jim Meyering  <meyering@redhat.com>
52253         Makefile: rely on GNU make; derive syntax-check rule names
52254         Rather than requiring that each sc_ rule be listed as a dependent
52255         of "check", use features of GNU make to derive the list.
52256         * Makefile (syntax-check-rules): Define.
52257         (check): Depend on the new variable, not the hard-coded list.
52259 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
52260             Bruno Haible  <bruno@clisp.org>
52262         passfd module, part 3.
52263         * lib/passfd.h (recvfd): Add a flags argument.
52264         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
52265         (recvfd): Add a flags argument.
52266         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
52267         exists.
52268         * modules/passfd (Depends-on): Add cloexec.
52269         Suggested by Eric Blake.
52271 2011-03-13  Bruno Haible  <bruno@clisp.org>
52273         passfd module, part 2, tweaks.
52274         * modules/passfd (Files): Reorder.
52275         (Depends-on): Remove errno.
52276         (Include): Remove <sys/socket.h>, <sys/un.h>.
52277         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
52278         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
52279         specification header. Include <sys/socket.h> always. Don't include
52280         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
52281         (sendfd): Clarify that it sets errno when it fails.
52282         (recvfd): Fix specification.
52284 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52286         passfd module, part 2.
52287         * modules/passfd: New file.
52288         * lib/passfd.h: New file.
52289         * lib/passfd.c: New file.
52291 2011-03-12  Bruno Haible  <bruno@clisp.org>
52293         wcswidth, mbswidth: Avoid integer overflow.
52294         * lib/wcswidth.c: Include <limits.h>.
52295         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
52296         * lib/mbswidth.c: Include <limits.h>.
52297         (mbsnwidth): Avoid 'int' overflow.
52298         Reported by Jim Meyering.
52300 2011-03-12  Bruno Haible  <bruno@clisp.org>
52302         futimens, utimensat: Avoid endless recursion on Solaris 10.
52303         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
52304         Solaris.
52305         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
52306         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
52308 2011-03-11  Jim Meyering  <meyering@redhat.com>
52310         maint.mk: relax a regexp to accommodate other formatting styles
52311         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
52312         between "ngettext" and the following "(".
52314 2011-03-11  Pádraig Brady  <P@draigBrady.com>
52316         maint.mk: suppress a false positive warning
52317         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
52318         diagnostics are marked with ngettext.
52320 2011-03-10  Eric Blake  <eblake@redhat.com>
52322         wchar: add explicit dependencies, for Tru64
52323         * modules/mbmemcasecoll (Depends-on): Add wchar.
52324         * modules/mbtowc (Depends-on): Likewise.
52325         * modules/vasnprintf (Depends-on): Likewise.
52326         * modules/unistdio/u-printf-args (Depends-on): Likewise.
52327         * modules/wctomb (Depends-on): Likewise.
52328         Reported by Peter O'Gorman.
52330 2011-03-08  Bruno Haible  <bruno@clisp.org>
52332         passfd module, part 1, tweaks.
52333         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
52334         Improve indentation. Improve AC_MSG_CHECKING messages.
52335         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
52336         gl_SOCKET_FAMILIES.
52338 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
52340         passfd module, part 1.
52341         * m4/afunix.m4: New file.
52342         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
52343         sockets.
52345 2011-03-08  Bruno Haible  <bruno@clisp.org>
52347         regex-quote: New API.
52348         * lib/regex-quote.h: Include <stdbool.h>.
52349         (struct regex_quote_spec): New type.
52350         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
52351         New declarations.
52352         (regex_quote_length, regex_quote_copy, regex_quote): Take a
52353         'const struct regex_quote_spec *' argument.
52354         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
52355         (pcre_special): New constant.
52356         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
52357         New functions.
52358         (regex_quote_length, regex_quote_copy, regex_quote): Take a
52359         'const struct regex_quote_spec *' argument.
52360         * modules/regex-quote (Depends-on): Add stdbool.
52361         * tests/test-regex-quote.c (check): Update for new API. Add test for
52362         anchored results.
52363         * NEWS: Mention the API change.
52364         Reported by Reuben Thomas and Eric Blake.
52366 2011-03-06  Bruno Haible  <bruno@clisp.org>
52368         regex-quote: Fix creation of POSIX extended regular expressions.
52369         * lib/regex-quote.c (ere_special): Add grouping and alternation
52370         operators.
52372 2011-03-05  Bruno Haible  <bruno@clisp.org>
52374         doc: Improve doc regarding autopoint vs. gnulib.
52375         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
52376         disable autopoint while running autoreconf.
52377         Suggested by Ralf Wildenhues.
52379 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52381         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
52382         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
52384 2011-03-03  Bruce Korb  <bkorb@gnu.org>
52386         parse-duration: remove xalloc.h dependency
52387         * lib/parse-duration.c (parse_period): handle NULL return from
52388         strdup instead of calling xstrdup().
52389         * modules/parse-duration: remove "xalloc" dependency
52391 2011-03-03  Matthew Booth  <mbooth@redhat.com>
52393         bootstrap: honor m4_base when running aclocal
52394         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
52396 2011-03-02  Jim Meyering  <meyering@redhat.com>
52398         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
52399         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
52400         on request from Matt Booth.
52402 2011-03-01  Eric Blake  <eblake@redhat.com>
52404         test-link: work on Hurd
52405         * tests/test-link.h (test_link): Hurd rejects linking directories
52406         with EISDIR instead of the POSIX-mandated EPERM.
52408 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
52410         stdio: simplify by moving files to printf-posix, sigpipe
52411         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
52412         since this symbol is needed only if printf is replaced.
52413         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
52414         Require gl_ASM_SYMBOL_PREFIX.
52415         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
52416         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
52417         (Depends-on): Add 'raise'.
52418         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
52419         * modules/stdio (Files): Remove lib/stdio-write.c,
52420         m4/asm-underscore.m4.
52421         (Depends-on): Remove 'raise'.
52423         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
52424         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
52425         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
52426         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
52428 2011-02-28  Bruno Haible  <bruno@clisp.org>
52430         localcharset: Assume ANSI C behaviour of free().
52431         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
52432         calling free().
52433         Suggested by Simon Josefsson <simon@josefsson.org>.
52435 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
52436             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
52437             Bruno Haible  <bruno@clisp.org>  (tiny change)
52439         On Cygwin, use /proc file system instead of win32 API.
52440         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
52441         Win32 file names.
52442         (DllMain): Simplify by removing Cygwin specific code.
52443         (find_shared_library_fullname): Use Linux specific implementation also
52444         for Cygwin.
52445         (get_shared_library_fullname): Update accordingly.
52446         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
52447         Win32 file names.
52448         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
52449         Cygwin specific code.
52451 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
52452             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
52454         Fix OpenMP flag detection for various Fortran compilers.
52455         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
52456         OpenMP-conditional compilation construct, to force compile
52457         failure with missing OpenMP flag.
52458         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
52460 2011-02-25  Eric Blake  <eblake@redhat.com>
52462         strstr: expand test coverage
52463         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
52464         compilation.
52465         * tests/test-memmem.c (main): Duplicate tests.
52466         * tests/test-strcasestr.c (main): Likewise.
52467         * tests/test-c-strcasestr.c (main): Likewise.
52469 2011-02-25  Jim Meyering  <meyering@redhat.com>
52471         maint.mk: detect missing-NL-at-EOF, too
52472         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
52473         it also detects when a file lacks a newline at EOF.
52474         (require_exactly_one_NL_at_EOF_): Renamed from
52475         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
52476         since people may well have .x-sc_... file names tied to the
52477         existing name.  Suggested by Eric Blake.
52479 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52481         dirname: move m4/dos.m4 functionality into lib/dosname.h
52483         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
52484         extracts symbols from it, puts them into config.h; but it's much
52485         easier to use the symbols directly.  filename.h already does this,
52486         but it disagrees with dos.m4 in some respects.  This patch
52487         introduces a different include file dosname.h that packages up
52488         dos.m4, and then later we can work on merging filename.h and
52489         dosname.h.  Applications that need only the easy-to-configure
52490         symbols should consider including dosname.h rather than dirname.h.
52491         * NEWS: Mention incompatible changes.
52492         * m4/dos.m4: Remove.
52493         * lib/dosname.h, modules/dosname: New files.
52494         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
52495         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
52496         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
52497         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
52498         Include dosname.h, not dirname.h.
52499         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
52500         Include dosname.h, for definitions of symbols like ISSLASH
52501         that used to be in config.h.
52502         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
52503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
52504         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52505         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
52506         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
52507         * modules/rmdir (Files): Likewise.
52508         * modules/stat (Files): Likewise.
52509         * modules/unlink (Files): Likewise.
52510         * modules/dirname-lgpl (Depends-on): Add dosname.
52511         * modules/lstat (Depends-on): Likewise.
52512         * modules/openat (Depends-on): Likewise.
52513         * modules/rmdir (Depends-on): Likewise.
52514         * modules/savewd (Depends-on): Likewise.
52515         * modules/stat (Depends-on): Likewise.
52516         * modules/unlink (Depends-on): Likewise.
52517         * modules/openat (Depends-on): Remove dirname-lgpl.
52518         * modules/savewd (Depends-on): Likewise.
52519         * tests/test-dirname.c: Do not use removed symbols like
52520         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
52521         the remaining symbols, e.g., ISSLASH ('\\').
52523 2011-02-25  Eric Blake  <eblake@redhat.com>
52525         strstr: revert patches that introduced bug and pessimization
52526         * lib/str-two-way.h: Add another reference.
52527         (two_way_short_needle, two_way_long_needle): Revert changes from
52528         2011-02-24; they pessimize search speed.
52529         (critical_factorization): Partially revert changes from
52530         2010-06-22; they violate the requirement that the left half of the
52531         needle be smaller than the period of the needle.
52533 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52535         filenamecat: remove unnecessary dependency on dirname-lgpl
52536         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
52537         is no direct dependency, just an indirect one via filenamecat-lgpl.
52539         remove: remove unnecessary use of m4/dos.m4
52540         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
52541         * modules/remove (FILES): Remove m4/dos.m4.
52543         * lib/openat-proc.c: Don't include dirname.h; not needed.
52545         backupfile: remove unnecessary use of m4/dos.m4
52546         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
52547         of its symbols are used by the backupfile code.  backupfile.c does
52548         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
52549         for the rare case of programs that want all their backup file
52550         names to live within 8+3 limits, and dos.m4 doesn't address that.
52551         * modules/backupfile (Files): Remove m4/dos.m4.
52553 2011-02-24  Jim Meyering  <meyering@redhat.com>
52555         strstr: fix a bug whereby strstr would mistakenly return NULL
52556         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
52557         in period calculation.
52558         (two_way_long_needle): Likewise.
52559         The original problem was reported by Mike Stump in
52560         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
52561         Ralf Wildenhues provided the short needle and haystack.
52562         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
52563         Add a more involved test to trigger the bug in two_way_long_needle.
52565 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
52567         gnulib-tool: remove use of bold display in help screen
52568         * gnulib-tool (func_usage): Do not use bold display anymore in the
52569         help screen.  That was just meant to be a temporary emphasis for a
52570         backward-incompatible change.
52572 2011-02-23  Bruno Haible  <bruno@clisp.org>
52574         Fix misindentation of preprocessor directives.
52575         * lib/argp-namefrob.h: Reindent preprocessor directives.
52576         * lib/getopt_int.h (struct _getopt_data): Likewise.
52577         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
52578         * lib/vasnprintf.c (decode_long_double): Likewise.
52579         * tests/test-argmatch.c: Insert blank lines, for clarity.
52580         * tests/test-exclude.c: Likewise.
52582 2011-02-22  Bruno Haible  <bruno@clisp.org>
52584         ioctl: Fix for MacOS X in 64-bit mode.
52585         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
52586         value.
52587         Suggested by Eric Blake.
52588         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
52590 2011-02-22  Jim Meyering  <meyering@redhat.com>
52592         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
52593         * Makefile (sc_cpp_indent_check): Don't limit the check to files
52594         in lib/.
52596 2011-02-22  Eric Blake  <eblake@redhat.com>
52598         maint: avoid any CDPATH issue
52599         * Makefile (sc_cpp_indent_check): Anchor cd argument.
52601         maint: adjust cpp indentation for my modules, as well
52602         * Makefile (sc_cpp_indent_check): Add my name.
52603         * lib/fbufmode.c: Filter through cppi.
52604         * lib/fpurge.c: Likewise.
52605         * lib/freadable.c: Likewise.
52606         * lib/freading.c: Likewise.
52607         * lib/fwritable.c: Likewise.
52608         * lib/fwriting.c: Likewise.
52609         * lib/sigaction.c: Likewise.
52611 2011-02-22  Jim Meyering  <meyering@redhat.com>
52613         maint: adjust cpp indentation to reflect nesting depth
52614         I.e., in a block of code that begins with an unnested "#if",
52615         put one space between the "#" in column 1 and following token.
52616         For example,
52617         -#include <sys/vfs.h>
52618         +# include <sys/vfs.h>
52619         Do this only in .c files that are part of a module I maintain.
52620         * lib/linkat.c: Filter through cppi.
52621         * lib/nanosleep.c: Likewise.
52622         * lib/openat.c: Likewise.
52623         * lib/openat-die.c: Likewise.
52624         * lib/dup3.c: Likewise.
52625         * lib/fchownat.c: Likewise.
52626         * lib/flock.c: Likewise.
52627         * lib/fsync.c: Likewise.
52628         * lib/fts.c: Likewise.
52629         * lib/getpass.c: Likewise.
52630         * lib/gettimeofday.c: Likewise.
52631         * lib/userspec.c: Likewise.
52632         * Makefile (sc_cpp_indent_check): New rule, to check this.
52634 2011-02-22  Bruno Haible  <bruno@clisp.org>
52636         New module 'wctomb'.
52637         * lib/stdlib.in.h (wctomb): New declaration.
52638         * lib/wctomb.c: New file.
52639         * lib/wctomb-impl.h: New file.
52640         * m4/wctomb.m4: New file.
52641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
52642         REPLACE_WCTOMB.
52643         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
52644         REPLACE_WCTOMB.
52645         * modules/wctomb: New file.
52646         * tests/test-stdlib-c++.cc: Test signature of wctomb.
52647         * doc/posix-functions/wctomb.texi: Mention the new module.
52648         * modules/wctob (Depends-on): Add wctomb.
52650 2011-02-22  Bruno Haible  <bruno@clisp.org>
52652         New module 'mbtowc'.
52653         * lib/stdlib.in.h (mbtowc): New declaration.
52654         * lib/mbtowc.c: New file.
52655         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
52656         * m4/mbtowc.m4: New file.
52657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
52658         REPLACE_MBTOWC.
52659         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
52660         REPLACE_MBTOWC.
52661         * modules/mbtowc: New file.
52662         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
52663         * doc/posix-functions/mbtowc.texi: Mention the new module.
52664         * modules/btowc (Depends-on): Add mbtowc.
52666 2011-02-22  Bruno Haible  <bruno@clisp.org>
52668         wcrtomb: Add more tests for native Windows platforms.
52669         * tests/test-wcrtomb-w32-1.sh: New file.
52670         * tests/test-wcrtomb-w32-2.sh: New file.
52671         * tests/test-wcrtomb-w32-3.sh: New file.
52672         * tests/test-wcrtomb-w32-4.sh: New file.
52673         * tests/test-wcrtomb-w32-5.sh: New file.
52674         * tests/test-wcrtomb-w32.c: New file.
52675         * modules/wcrtomb-tests (Files): Add them.
52676         (Makefile.am): Arrange to run these tests.
52677         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
52678         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
52680 2011-02-20  Bruno Haible  <bruno@clisp.org>
52682         wcrtomb: Enhance test.
52683         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
52685 2011-02-20  Bruno Haible  <bruno@clisp.org>
52687         mbrtowc: Tiny optimization.
52688         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
52690 2011-02-20  Jim Meyering  <meyering@redhat.com>
52692         test-exclude.c: remove unmatched #endif
52693         * tests/test-exclude.c: Remove stray #endif, left over from
52694         the change of a week ago.
52696 2011-02-19  Jim Meyering  <meyering@redhat.com>
52698         git-version-gen: skip "-dirty" check when appropriate
52699         * build-aux/git-version-gen: Don't run any git commands when the
52700         version string comes from .tarball-version.  Prior to this, we
52701         would run git update-index --refresh even from a just-unpacked
52702         tarball directory, and that could affect a .git/ directory in a
52703         parent of the build directory.  Reported by Mike Frysinger.
52705 2011-02-19  Bruno Haible  <bruno@clisp.org>
52707         unictype/property-byname: Reduce the size of the 'data' segment.
52708         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
52710 2011-02-19  Bruno Haible  <bruno@clisp.org>
52712         unictype/scripts: Reduce the size of the 'data' segment.
52713         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
52714         '%pic'.
52715         * lib/unictype/scripts_byname.gperf: Regenerated.
52717 2011-02-19  Bruno Haible  <bruno@clisp.org>
52719         stdint: Update documentation.
52720         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
52722 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
52724         stdint: omit redundant check for wchar.h
52725         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
52726         always tests whether wchar.h exists, so remove the now-redundant test.
52728 2011-02-18  Bruno Haible  <bruno@clisp.org>
52730         stdint: Cut dependency to module 'wchar'.
52731         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
52732         include the necessary prerequisites.
52733         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
52734         * modules/stdint (Depends-on): Remove wchar.
52735         (Makefile.am): Substitute HAVE_WCHAR_H.
52736         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
52738 2011-02-18  Eric Blake  <eblake@redhat.com>
52740         longlong: skip, rather than fail, on cross-compilation
52741         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
52742         when cross-compiling; regression from 2011-02-16.
52744 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
52746         * NEWS: Mention 2011-02-08 change to stdlib.
52748 2011-02-17  Bruno Haible  <bruno@clisp.org>
52750         getloadavg: Add comments about platforms.
52751         * m4/getloadavg.m4: Add comment.
52752         * lib/getloadavg.c: Likewise.
52754 2011-02-17  Bruno Haible  <bruno@clisp.org>
52756         getloadavg: Fix link error on Solaris 2.6.
52757         * modules/getloadavg (Link): New section.
52758         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
52759         linking test-getloadavg.
52760         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
52761         getloadavg.
52763 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
52765         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
52766         It was 'int', but this doesn't match the IRIX 6.5 manual.
52767         Suggested by Bruno Haible in
52768         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
52770 2011-02-17  Bruno Haible  <bruno@clisp.org>
52772         havelib: Fix comments.
52773         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
52774         change.
52776 2011-02-17  Bruno Haible  <bruno@clisp.org>
52778         havelib: Update config.rpath.
52779         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
52781 2011-02-17  Bruno Haible  <bruno@clisp.org>
52783         getloadavg test: Add some plausibility checks.
52784         * tests/test-getloadavg.c (check_avg): Print a warning when the value
52785         is improbable.
52787 2011-02-16  Eric Blake  <eblake@redhat.com>
52789         maintainer-makefile: make syntax-check a no-op from tarballs
52790         * top/maint.mk (no-vc-detected): New rule.
52791         (local-checks-available): Use it to avoid hanging if someone tries
52792         'make syntax-check' from a tarball.  Also append to any non-syntax
52793         checks already defined in cfg.mk.
52795 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
52797         longlong: tune, particularly for common case of c99
52799         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
52800         or running anything if c99, or if unsigned long long int does not
52801         work.  In either case, we know the answer without further tests.
52802         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
52803         it at most once, and use its results for both long long int and
52804         unsigned long long int.  This is more likely to be efficient in
52805         the common case where the program wants to check for both long
52806         long int and unsigned long long int.
52807         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
52808         since the answer is already known.
52810 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
52812         getloadavg: set errno
52813         * lib/getloadavg.c: Set errno when returning -1.  If no other
52814         error number looks appropriate, set it to ENOSYS if the getloadavg
52815         looks like it can't possibly ever work, ENOTSUP otherwise.
52816         Suggested by Bruno Haible in
52817         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
52819         getloadavg: trim unused parts and speed up 'configure'
52820         * NEWS: Document this.
52821         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
52822         always compiled if getloadavg is absent.
52823         Move test code to ...
52824         * tests/test-getloadavg.c: New file, containing previous
52825         contents of test from lib/getloadavg.c.  It also contains
52826         suggestions by Bruno Haible in
52827         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
52828         * modules/getloadavg-tests: New file.
52829         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
52830         Do tests in the same order as they're needed for getloadavg.c.
52831         Omit setgid-related tests that generate symbols KMEM_GROUP,
52832         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
52833         Do only the tests that are needed to see whether the system has
52834         getloadavg, moving the other tests into ...
52835         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
52836         NLIST_NAME_UNION; nobody should be using it.  Do not define
52837         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
52838         relevant, as the user of this module shouldn't care how getloadavg
52839         is implemented.
52841         getloadavg: omit unused var
52842         * lib/getloadavg.c (getloadavg): Omit unused local variable.
52844 2011-02-15  Jim Meyering  <meyering@redhat.com>
52846         doc: update users.txt
52847         * users.txt: Update iwhd's URL.
52849 2011-02-13  Bruno Haible  <bruno@clisp.org>
52851         Consistent macro naming for macros that use GCC __attribute__.
52852         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
52853         _ATTRIBUTE_NONNULL_.
52854         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
52855         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
52856         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
52857         ATTRIBUTE_DEPRECATED.
52858         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
52859         ATTRIBUTE_NORETURN.
52860         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
52861         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
52862         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
52863         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
52864         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
52865         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
52866         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
52867         ATTRIBUTE_SENTINEL.
52868         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
52869         ATTRIBUTE_RETURN_CHECK.
52870         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
52871         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
52872         ATTRIBUTE_NORETURN.
52873         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
52874         Reported by Paul Eggert.
52876 2011-02-13  Bruno Haible  <bruno@clisp.org>
52878         Don't interfere with a program's definition of __attribute__.
52879         * lib/argp.h (__attribute__): Remove definition.
52880         (_GL_ATTRIBUTE_FORMAT): New macro.
52881         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
52882         * lib/argp-fmtstream.h (__attribute__): Remove definition.
52883         (_GL_ATTRIBUTE_FORMAT): New macro.
52884         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
52885         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
52886         GCC 3 or newer.
52887         * lib/error.h (__attribute__): Remove definition.
52888         (_GL_ATTRIBUTE_FORMAT): New macro.
52889         (error, error_at_line): Use it.
52890         * lib/hash.h (__attribute__): Remove definition.
52891         (ATTRIBUTE_WUR): Update definition. Define always.
52892         * lib/openat.h (__attribute__): Remove definition.
52893         (ATTRIBUTE_NORETURN): Update definition. Define always.
52894         * lib/sigpipe-die.h (__attribute__): Remove definition.
52895         (ATTRIBUTE_NORETURN): Update definition. Define always.
52896         * lib/vasnprintf.h (__attribute__): Remove definition.
52897         (_GL_ATTRIBUTE_FORMAT): New macro.
52898         (asnprintf, vasnprintf): Use it.
52899         * lib/xalloc.h (__attribute__): Remove definition.
52900         (ATTRIBUTE_NORETURN): Update definition. Define always.
52901         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
52902         * lib/xmemdup0.h (__attribute__): Remove definition.
52903         (ATTRIBUTE_NORETURN): Update definition. Define always.
52904         * lib/xprintf.h (__attribute__): Remove definition.
52905         (_GL_ATTRIBUTE_FORMAT): New macro.
52906         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
52907         * lib/xstrtol.h (__attribute__): Remove definition.
52908         (ATTRIBUTE_NORETURN): Update definition. Define always.
52909         * lib/xvasprintf.h (__attribute__): Remove definition.
52910         (_GL_ATTRIBUTE_FORMAT): New macro.
52911         (xasprintf, xvasprintf): Use it.
52912         * tests/test-argmatch.c (__attribute__): Remove definition.
52913         (ATTRIBUTE_NORETURN): Update definition. Define always.
52914         * tests/test-exclude.c (__attribute__): Remove definition.
52915         (ATTRIBUTE_NORETURN): Update definition. Define always.
52916         Reported by Paul Eggert.
52918 2011-02-13  Bruno Haible  <bruno@clisp.org>
52920         mbrtowc: Add more tests for native Windows platforms.
52921         * tests/test-mbrtowc-w32-1.sh: New file.
52922         * tests/test-mbrtowc-w32-2.sh: New file.
52923         * tests/test-mbrtowc-w32-3.sh: New file.
52924         * tests/test-mbrtowc-w32-4.sh: New file.
52925         * tests/test-mbrtowc-w32-5.sh: New file.
52926         * tests/test-mbrtowc-w32.c: New file.
52927         * modules/mbrtowc-tests (Files): Add them.
52928         (Makefile.am): Arrange to run these tests.
52929         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
52930         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
52932 2011-02-13  Bruno Haible  <bruno@clisp.org>
52934         mbrtowc: Work around native Windows bug.
52935         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
52936         guess when no suitable locale for testing was found.
52937         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
52939 2011-02-13  Bruno Haible  <bruno@clisp.org>
52941         mbsinit: Work around mingw bug.
52942         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
52943         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
52944         Windows.
52945         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
52947 2011-02-13  Bruno Haible  <bruno@clisp.org>
52949         mbsinit: Don't crash for a NULL argument.
52950         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
52951         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
52953 2011-02-13  Bruno Haible  <bruno@clisp.org>
52955         Don't interfere with a program's definition of __attribute__.
52956         * lib/stdio.in.h (__attribute__): Remove definition.
52957         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
52958         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
52959         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
52960         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
52961         * lib/string.in.h (__attribute__): Remove definition.
52962         Reported by Paul Eggert.
52964 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52966         stdlib: don't get in the way of non-GCC __attribute__
52967         See thread starting at
52968         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
52969         Revert previous stdlib change, installing the following instead:
52970         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
52971         to get in the way of a non-GCC compiler that supports __attribute__.
52972         (_GL_ATTRIBUTE_RETURN): New macro.
52973         (_Exit): Use it instead of __attribute__.
52975 2011-02-12  Bruno Haible  <bruno@clisp.org>
52977         quotearg test: Avoid test failure on mingw.
52978         * tests/test-quotearg.sh: Convert the locale identifier from native
52979         Windows syntax to Unix syntax.
52981 2011-02-12  Bruno Haible  <bruno@clisp.org>
52983         setlocale: Prefer gnulib's override over libintl's override.
52984         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
52985         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
52986         GNULIB_defined_setlocale is set.
52988 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52990         stdlib: support non-GCC __attribute__
52992         Fix a serious and tricky problem encountered when attempting to
52993         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
52994         5.5, but it crashed due to memory corruption on Solaris 10 with
52995         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
52996         bits that are otherwise zero.  This tagging is optional inside
52997         Emacs but is preferred and is used when __attribute__ ((__aligned
52998         (8))) works, as it does with both recent-enough GCC and with Sun C
52999         5.11.  However, Sun C 5.11 is not GCC and does not #define
53000         __GNUC__ and __GNUC_MINOR__.
53002         When I added the getloadavg module to Emacs, it brought in
53003         stdlib.in.h, which contained this fragment:
53005            #ifndef __attribute__
53006            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
53007            #  define __attribute__(Spec)   /* empty */
53008            # endif
53009            #endif
53011         When files that include <stdlib.h> were compiled with Sun C 5.11,
53012         the above code disabled __attribute__ ((__aligned (8))), which
53013         caused variables to not be properly aligned, which eventually led
53014         to the pointer corruption mentioned above.  (This was a bit hard
53015         to diagnose, unfortunately.)
53017         Several "#define __attribute__(X) /* empty */" code snippets need
53018         to be eradicated from Gnulib to work with non-GCC compilers that
53019         support __attribute__.  The Autoconf way to do this is to test for
53020         each kind of attribute that we want support for, and selectively
53021         enable that in source code.
53023         Fix this problem just for stdlib.h, by adding a test for the
53024         __noreturn__ attribute, and change stdlib.in.h to use that test
53025         when needed.  This technique can be easily generalized to the
53026         other *.in.h files and attributes, and a similar technique can be
53027         used for *.h and *.c files.  This patch is enough to solve the
53028         problem for Emacs + getloadavg, and I thought I'd publish it for
53029         feedback before undertaking further, similar fixes in other
53030         modules.
53032         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
53033         because it's not needed for stdlib.h.  It merely substitutes the
53034         value directly into stdlib.h.  We may well need to #define it, or
53035         similar symbols, for other modules, but it's nice to also have an
53036         option to not #define it for applications like Emacs that do not
53037         need it.
53039         * lib/stdlib.in.h (__attribute__): Do not #define.
53040         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
53041         be defined only if the _Exit module is also used.
53042         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
53043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
53044         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
53045         platforms.
53046         * modules/_Exit (Files): Add m4/attribute.m4.
53047         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
53048         * m4/attribute.m4: New file.
53050 2011-02-12  Bruno Haible  <bruno@clisp.org>
53052         wcsrtombs: Work around bug on native Windows.
53053         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
53054         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
53055         instead of len.
53056         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
53058 2011-02-12  Bruno Haible  <bruno@clisp.org>
53060         mbsrtowcs: Work around bug on native Windows.
53061         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
53062         against mingw bug.
53063         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
53065 2011-02-12  Bruno Haible  <bruno@clisp.org>
53067         Avoid setlocale bugs in tests.
53068         * modules/btowc (Dependencies): Add setlocale.
53069         * modules/c-strcase (Dependencies): Likewise.
53070         * modules/mbmemcasecmp (Dependencies): Likewise.
53071         * modules/mbmemcasecoll (Dependencies): Likewise.
53072         * modules/mbrtowc (Dependencies): Likewise.
53073         * modules/mbscasecmp (Dependencies): Likewise.
53074         * modules/mbscasestr (Dependencies): Likewise.
53075         * modules/mbschr (Dependencies): Likewise.
53076         * modules/mbscspn (Dependencies): Likewise.
53077         * modules/mbsinit (Dependencies): Likewise.
53078         * modules/mbsncasecmp (Dependencies): Likewise.
53079         * modules/mbsnrtowcs (Dependencies): Likewise.
53080         * modules/mbspbrk (Dependencies): Likewise.
53081         * modules/mbspcasecmp (Dependencies): Likewise.
53082         * modules/mbsrchr (Dependencies): Likewise.
53083         * modules/mbsrtowcs (Dependencies): Likewise.
53084         * modules/mbsspn (Dependencies): Likewise.
53085         * modules/mbsstr (Dependencies): Likewise.
53086         * modules/nl_langinfo (Dependencies): Likewise.
53087         * modules/quotearg (Dependencies): Likewise.
53088         * modules/unicase/locale-language (Dependencies): Likewise.
53089         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
53090         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
53091         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
53092         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
53093         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
53094         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
53095         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
53096         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
53097         * modules/vasnprintf-posix (Dependencies): Likewise.
53098         * modules/wcrtomb (Dependencies): Likewise.
53099         * modules/wcsnrtombs (Dependencies): Likewise.
53100         * modules/wcsrtombs (Dependencies): Likewise.
53102 2011-02-12  Bruno Haible  <bruno@clisp.org>
53104         setlocale: Workaround native Windows bug.
53105         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
53106         succeeds but sets LC_CTYPE to "C", report a failure.
53107         * tests/test-setlocale2.sh: New file.
53108         * tests/test-setlocale2.c: New file.
53109         * modules/setlocale-tests (Files): Add the new files.
53110         (Makefile.am): Enable test-setlocale2.sh test.
53111         * doc/posix-functions/setlocale.texi: Mention workaround.
53113 2011-02-11  Bruno Haible  <bruno@clisp.org>
53115         Tests for module 'setlocale'.
53116         * modules/setlocale-tests: New file.
53117         * tests/test-setlocale1.sh: New file.
53118         * tests/test-setlocale1.c: New file.
53120         New module 'setlocale'.
53121         * lib/locale.in.h (setlocale): New declaration.
53122         * lib/setlocale.c: New file, based on
53123         gettext/gettext-runtime/intl/setlocale.c.
53124         * m4/setlocale.m4: New file.
53125         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
53126         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
53127         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
53128         REPLACE_SETLOCALE.
53129         * modules/setlocale: New file.
53130         * tests/test-locale-c++.cc: Test the declaration of setlocale.
53131         * doc/posix-functions/setlocale.texi: Mention the new module.
53133 2011-02-11  Bruno Haible  <bruno@clisp.org>
53135         Prepare for locale dependent tests on mingw.
53136         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
53137         because it has the wrong locale encoding.
53138         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
53139         French_France.1252 instead of "fr".
53140         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
53141         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
53142         because it has the wrong locale encoding.
53143         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
53144         native Windows, try Turkish_Turkey.65001.
53145         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
53146         Chinese_China.54936.
53148         Prepare for locale dependent tests on mingw.
53149         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
53150         differently.
53151         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
53152         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
53153         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53154         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53156 2011-02-11  Eric Blake  <eblake@redhat.com>
53158         strptime: avoid compiler warnings
53159         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
53160         compiler warnings about dead code.
53161         Reported by Daniel P. Berrange.
53163 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
53165         doc: update users.txt
53166         * users.txt: Add rcs.
53168 2011-02-10  John W. Eaton  <jwe@gnu.org>
53170         doc: update users.txt
53171         * users.txt: Add octave.
53173 2011-02-10  Jim Meyering  <meyering@redhat.com>
53175         doc: update users.txt
53176         * users.txt: Add iwhd.
53178 2011-02-09  Bruno Haible  <bruno@clisp.org>
53180         gnulib-tool: Make copyright notice adjustment more robust.
53181         * gnulib-tool (func_import): In sed_transform_main_lib_file,
53182         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
53183         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
53184         License".
53185         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
53187 2011-02-06  Bruno Haible  <bruno@clisp.org>
53189         New module 'towctrans'.
53190         * modules/towctrans: New file.
53191         * lib/wctype.in.h (towctrans): New declaration.
53192         * lib/towctrans.c: New file.
53193         * lib/towctrans-impl.h: New file.
53194         * m4/towctrans.m4: New file.
53195         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
53196         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
53197         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
53198         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
53199         * doc/posix-functions/towctrans.texi: Mention the new module.
53201 2011-02-06  Bruno Haible  <bruno@clisp.org>
53203         New module 'wctrans'.
53204         * modules/wctrans: New file.
53205         * lib/wctype.in.h (wctrans): New declaration.
53206         * lib/wctrans.c: New file.
53207         * lib/wctrans-impl.h: New file.
53208         * m4/wctrans.m4: New file.
53209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
53210         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
53211         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
53212         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
53213         * doc/posix-functions/wctrans.texi: Mention the new module.
53215 2011-02-06  Bruno Haible  <bruno@clisp.org>
53217         New module 'iswctype'.
53218         * modules/iswctype: New file.
53219         * lib/wctype.in.h (iswctype): New declaration.
53220         * lib/iswctype.c: New file.
53221         * lib/iswctype-impl.h: New file.
53222         * m4/iswctype.m4: New file.
53223         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
53224         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
53225         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
53226         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
53227         * doc/posix-functions/iswctype.texi: Mention the new module and the
53228         HP-UX 11.00 problem.
53230 2011-02-06  Bruno Haible  <bruno@clisp.org>
53232         New module 'wctype'.
53233         * modules/wctype: Change to represent the wctype() substitute.
53234         * lib/wctype.in.h (wctype): New declaration.
53235         * lib/wctype.c: New file.
53236         * lib/wctype-impl.h: New file.
53237         * m4/wctype.m4: New file.
53238         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
53239         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
53240         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
53241         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
53242         * doc/posix-functions/wctype.texi: Mention the new module and the
53243         HP-UX 11.00 problem.
53245 2011-02-06  Bruno Haible  <bruno@clisp.org>
53247         wctype-h: Ensure wctype_t and wctrans_t are defined.
53248         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
53249         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
53250         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
53251         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
53252         HAVE_WCTRANS_T.
53253         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
53255 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
53257         flock: fix license typo
53259         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
53260         omitted.
53262 2011-02-08  Bruno Haible  <bruno@clisp.org>
53264         Split large sed scripts, for HP-UX sed.
53265         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
53266         to avoid HP-UX limit of 99 commands, in the near future.
53267         * modules/stdlib (Makefile.am): Likewise.
53268         * modules/unistd (Makefile.am): Likewise.
53269         * modules/wchar (Makefile.am): Likewise.
53270         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53271         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
53272         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
53274 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
53275             Bruno Haible  <bruno@clisp.org>
53277         stdlib: improve random_r modularization
53278         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
53279         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
53280         you also need the random_r module to get this material right.
53281         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
53282         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
53283         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
53285 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
53287         stdlib: don't depend on stdint
53288         * lib/stdlib.in.h: Don't include <stdint.h> merely because
53289         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
53290         be independent of whether stdint.h is needed.
53291         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
53292         here, instead of ...
53293         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
53294         struct random_data should be using the random_r module, not just
53295         the stdlib module (which wouldn't make sense: what package needs
53296         just struct random_data without also needing random_r?).
53297         * modules/stdlib (Depends-on): Remove stdint.
53299         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
53300         See the thread rooted at
53301         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
53302         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
53303         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
53304         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
53305         __VMS)); previously it was always included (via fcntl--.h).
53306         (getloadavg): Do not use c_strtod.  Instead, approximate it by
53307         hand; this is good enough for load averages.  Also, do not use
53308         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
53309         flags directly if available and don't bother otherwise.  (Packages
53310         that need the extra reliability should use the modules that define
53311         these flags on older platforms that lack them.)
53312         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
53313         fcntl-safer.
53315 2011-02-08  Jim Meyering  <meyering@redhat.com>
53317         di-set.h, ino-map.h: add multiple-inclusion guard
53318         Technically, the guard is required only for ino-map.h, due to its
53319         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
53320         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
53321         * lib/ino-map.h: Likewise.
53323 2011-02-06  Bruno Haible  <bruno@clisp.org>
53325         iswblank: Ensure declaration on glibc systems.
53326         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
53327         * modules/iswblank (Dependencies): Add 'extensions'.
53328         * doc/posix-functions/iswblank.texi: Document the glibc problem.
53330 2011-02-06  Bruno Haible  <bruno@clisp.org>
53332         New module 'iswblank'.
53333         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
53334         * modules/iswblank: New file.
53335         * modules/wctype-h (Files): Remove lib/iswblank.c.
53336         (Makefile.am): Substitute GNULIB_ISWBLANK.
53337         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
53338         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
53339         (gl_WCTYPE_H_DEFAULTS): New macro.
53340         (gl_WCTYPE_H): Require it. Remove iswblank related code.
53341         * modules/iswblank-tests: New file.
53342         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
53343         * tests/test-wctype-h.c (main): Remove iswblank tests.
53344         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
53345         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
53346         of 'wctype-h'.
53347         * NEWS: Mention the change.
53348         * modules/mbchar (Depends-on): Add iswblank.
53350 2011-02-08  Bruno Haible  <bruno@clisp.org>
53352         di-set tests: Refactor.
53353         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
53354         unnecessary includes.
53355         (ASSERT): Remove macro.
53356         (main): Make C90 compliant by avoiding variable declaration after
53357         statement.
53358         * modules/di-set-tests (Files): Add tests/macros.h.
53360 2011-02-08  Bruno Haible  <bruno@clisp.org>
53362         ino-map tests: Refactor.
53363         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
53364         unnecessary includes.
53365         (ASSERT): Remove macro.
53366         (main): Make C90 compliant by avoiding variable declaration after
53367         statement.
53368         * modules/ino-map-tests (Files): Add tests/macros.h.
53370 2011-02-08  Jim Meyering  <meyering@redhat.com>
53372         di-set: add "const" to a cast
53373         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
53374         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
53376 2011-02-06  Bruno Haible  <bruno@clisp.org>
53378         Rename module 'wctype' to 'wctype-h'.
53379         * modules/wctype-h: Renamed from modules/wctype.
53380         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
53381         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
53382         (Files, Depends-on, Makefile.am): Update.
53383         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
53384         (Files, Makefile.am): Update.
53385         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
53386         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
53387         * doc/posix-headers/wctype.texi: Update.
53388         * doc/posix-functions/iswalnum.texi: Update.
53389         * doc/posix-functions/iswalpha.texi: Update.
53390         * doc/posix-functions/iswblank.texi: Update.
53391         * doc/posix-functions/iswcntrl.texi: Update.
53392         * doc/posix-functions/iswdigit.texi: Update.
53393         * doc/posix-functions/iswgraph.texi: Update.
53394         * doc/posix-functions/iswlower.texi: Update.
53395         * doc/posix-functions/iswprint.texi: Update.
53396         * doc/posix-functions/iswpunct.texi: Update.
53397         * doc/posix-functions/iswspace.texi: Update.
53398         * doc/posix-functions/iswupper.texi: Update.
53399         * doc/posix-functions/iswxdigit.texi: Update.
53400         * doc/posix-functions/towlower.texi: Update.
53401         * doc/posix-functions/towupper.texi: Update.
53402         * NEWS: Mention the change.
53403         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
53404         * modules/mbchar (Dependencies): Likewise.
53405         * modules/mbswidth (Dependencies): Likewise.
53406         * modules/quotearg (Dependencies): Likewise.
53407         * modules/regex (Dependencies): Likewise.
53408         * modules/wcscasecmp (Dependencies): Likewise.
53409         * modules/wcsncasecmp (Dependencies): Likewise.
53410         * modules/wcwidth (Dependencies): Likewise.
53412 2011-02-06  Bruno Haible  <bruno@clisp.org>
53414         New module 'wcswidth'.
53415         * modules/wcswidth: New file.
53416         * lib/wchar.in.h (wcswidth): New declaration.
53417         * lib/wcswidth.c: New file.
53418         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
53419         * m4/wcswidth.m4: New file.
53420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
53421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
53422         REPLACE_WCSWIDTH.
53423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
53424         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
53425         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
53426         * doc/posix-functions/wcswidth.texi: Mention the new module.
53428 2011-02-06  Bruno Haible  <bruno@clisp.org>
53430         New module 'wcstok'.
53431         * modules/wcstok: New file.
53432         * lib/wchar.in.h (wcstok): New declaration.
53433         * lib/wcstok.c: New file.
53434         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
53435         * m4/wcstok.m4: New file.
53436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
53437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
53438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
53439         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
53440         * doc/posix-functions/wcstok.texi: Mention the new module.
53442 2011-02-06  Bruno Haible  <bruno@clisp.org>
53444         New module 'wcsstr'.
53445         * modules/wcsstr: New file.
53446         * lib/wchar.in.h (wcsstr): New declaration.
53447         * lib/wcsstr.c: New file.
53448         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
53449         * m4/wcsstr.m4: New file.
53450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
53451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
53452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
53453         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
53454         * doc/posix-functions/wcsstr.texi: Mention the new module.
53456 2011-02-06  Bruno Haible  <bruno@clisp.org>
53458         New module 'wcspbrk'.
53459         * modules/wcspbrk: New file.
53460         * lib/wchar.in.h (wcspbrk): New declaration.
53461         * lib/wcspbrk.c: New file.
53462         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
53463         * m4/wcspbrk.m4: New file.
53464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
53465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
53466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
53467         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
53468         * doc/posix-functions/wcspbrk.texi: Mention the new module.
53470 2011-02-06  Bruno Haible  <bruno@clisp.org>
53472         New module 'wcsspn'.
53473         * modules/wcsspn: New file.
53474         * lib/wchar.in.h (wcsspn): New declaration.
53475         * lib/wcsspn.c: New file.
53476         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
53477         * m4/wcsspn.m4: New file.
53478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
53479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
53480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
53481         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
53482         * doc/posix-functions/wcsspn.texi: Mention the new module.
53484 2011-02-06  Bruno Haible  <bruno@clisp.org>
53486         New module 'wcscspn'.
53487         * modules/wcscspn: New file.
53488         * lib/wchar.in.h (wcscspn): New declaration.
53489         * lib/wcscspn.c: New file.
53490         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
53491         * m4/wcscspn.m4: New file.
53492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
53493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
53494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
53495         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
53496         * doc/posix-functions/wcscspn.texi: Mention the new module.
53498 2011-02-06  Bruno Haible  <bruno@clisp.org>
53500         New module 'wcsrchr'.
53501         * modules/wcsrchr: New file.
53502         * lib/wchar.in.h (wcsrchr): New declaration.
53503         * lib/wcsrchr.c: New file.
53504         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
53505         * m4/wcsrchr.m4: New file.
53506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
53507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
53508         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
53509         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
53510         * doc/posix-functions/wcsrchr.texi: Mention the new module.
53512 2011-02-06  Bruno Haible  <bruno@clisp.org>
53514         New module 'wcschr'.
53515         * modules/wcschr: New file.
53516         * lib/wchar.in.h (wcschr): New declaration.
53517         * lib/wcschr.c: New file.
53518         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
53519         * m4/wcschr.m4: New file.
53520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
53521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
53522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
53523         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
53524         * doc/posix-functions/wcschr.texi: Mention the new module.
53526 2011-02-06  Bruno Haible  <bruno@clisp.org>
53528         New module 'wcsdup'.
53529         * modules/wcsdup: New file.
53530         * lib/wchar.in.h (wcsdup): New declaration.
53531         * lib/wcsdup.c: New file.
53532         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
53533         * m4/wcsdup.m4: New file.
53534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
53535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
53536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
53537         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
53538         * doc/posix-functions/wcsdup.texi: Mention the new module.
53540 2011-02-06  Bruno Haible  <bruno@clisp.org>
53542         New module 'wcsxfrm'.
53543         * modules/wcsxfrm: New file.
53544         * lib/wchar.in.h (wcsxfrm): New declaration.
53545         * lib/wcsxfrm.c: New file.
53546         * lib/wcsxfrm-impl.h: New file.
53547         * m4/wcsxfrm.m4: New file.
53548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
53549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
53550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
53551         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
53552         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
53554 2011-02-06  Bruno Haible  <bruno@clisp.org>
53556         New module 'wcscoll'.
53557         * modules/wcscoll: New file.
53558         * lib/wchar.in.h (wcscoll): New declaration.
53559         * lib/wcscoll.c: New file.
53560         * lib/wcscoll-impl.h: New file.
53561         * m4/wcscoll.m4: New file.
53562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
53563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
53564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
53565         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
53566         * doc/posix-functions/wcscoll.texi: Mention the new module.
53568 2011-02-06  Bruno Haible  <bruno@clisp.org>
53570         New module 'wcsncasecmp'.
53571         * modules/wcsncasecmp: New file.
53572         * lib/wchar.in.h (wcsncasecmp): New declaration.
53573         * lib/wcsncasecmp.c: New file.
53574         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
53575         * m4/wcsncasecmp.m4: New file.
53576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
53577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
53578         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
53579         HAVE_WCSNCASECMP.
53580         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
53581         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
53583 2011-02-06  Bruno Haible  <bruno@clisp.org>
53585         New module 'wcscasecmp'.
53586         * modules/wcscasecmp: New file.
53587         * lib/wchar.in.h (wcscasecmp): New declaration.
53588         * lib/wcscasecmp.c: New file.
53589         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
53590         * m4/wcscasecmp.m4: New file.
53591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
53592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
53593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
53594         HAVE_WCSCASECMP.
53595         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
53596         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
53598 2011-02-05  Bruno Haible  <bruno@clisp.org>
53600         New module 'wcsncmp'.
53601         * modules/wcsncmp: New file.
53602         * lib/wchar.in.h (wcsncmp): New declaration.
53603         * lib/wcsncmp.c: New file.
53604         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
53605         * m4/wcsncmp.m4: New file.
53606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
53607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
53608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
53609         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
53610         * doc/posix-functions/wcsncmp.texi: Mention the new module.
53612 2011-02-05  Bruno Haible  <bruno@clisp.org>
53614         New module 'wcscmp'.
53615         * modules/wcscmp: New file.
53616         * lib/wchar.in.h (wcscmp): New declaration.
53617         * lib/wcscmp.c: New file.
53618         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
53619         * m4/wcscmp.m4: New file.
53620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
53621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
53622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
53623         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
53624         * doc/posix-functions/wcscmp.texi: Mention the new module.
53626 2011-02-05  Bruno Haible  <bruno@clisp.org>
53628         New module 'wcsncat'.
53629         * modules/wcsncat: New file.
53630         * lib/wchar.in.h (wcsncat): New declaration.
53631         * lib/wcsncat.c: New file.
53632         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
53633         * m4/wcsncat.m4: New file.
53634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
53635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
53636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
53637         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
53638         * doc/posix-functions/wcsncat.texi: Mention the new module.
53640 2011-02-05  Bruno Haible  <bruno@clisp.org>
53642         New module 'wcscat'.
53643         * modules/wcscat: New file.
53644         * lib/wchar.in.h (wcscat): New declaration.
53645         * lib/wcscat.c: New file.
53646         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
53647         * m4/wcscat.m4: New file.
53648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
53649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
53650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
53651         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
53652         * doc/posix-functions/wcscat.texi: Mention the new module.
53654 2011-02-05  Bruno Haible  <bruno@clisp.org>
53656         New module 'wcpncpy'.
53657         * modules/wcpncpy: New file.
53658         * lib/wchar.in.h (wcpncpy): New declaration.
53659         * lib/wcpncpy.c: New file.
53660         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
53661         * m4/wcpncpy.m4: New file.
53662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
53663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
53664         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
53665         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
53666         * doc/posix-functions/wcpncpy.texi: Mention the new module.
53668 2011-02-05  Bruno Haible  <bruno@clisp.org>
53670         New module 'wcsncpy'.
53671         * modules/wcsncpy: New file.
53672         * lib/wchar.in.h (wcsncpy): New declaration.
53673         * lib/wcsncpy.c: New file.
53674         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
53675         * m4/wcsncpy.m4: New file.
53676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
53677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
53678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
53679         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
53680         * doc/posix-functions/wcsncpy.texi: Mention the new module.
53682 2011-02-05  Bruno Haible  <bruno@clisp.org>
53684         New module 'wcpcpy'.
53685         * modules/wcpcpy: New file.
53686         * lib/wchar.in.h (wcpcpy): New declaration.
53687         * lib/wcpcpy.c: New file.
53688         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
53689         * m4/wcpcpy.m4: New file.
53690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
53691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
53692         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
53693         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
53694         * doc/posix-functions/wcpcpy.texi: Mention the new module.
53696 2011-02-05  Bruno Haible  <bruno@clisp.org>
53698         New module 'wcscpy'.
53699         * modules/wcscpy: New file.
53700         * lib/wchar.in.h (wcscpy): New declaration.
53701         * lib/wcscpy.c: New file.
53702         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
53703         * m4/wcscpy.m4: New file.
53704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
53705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
53706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
53707         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
53708         * doc/posix-functions/wcscpy.texi: Mention the new module.
53710 2011-02-05  Bruno Haible  <bruno@clisp.org>
53712         New module 'wcsnlen'.
53713         * modules/wcsnlen: New file.
53714         * lib/wchar.in.h (wcsnlen): New declaration.
53715         * lib/wcsnlen.c: New file.
53716         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
53717         * m4/wcsnlen.m4: New file.
53718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
53719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
53720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
53721         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
53722         * doc/posix-functions/wcsnlen.texi: Mention the new module.
53724 2011-02-05  Bruno Haible  <bruno@clisp.org>
53726         New module 'wcslen'.
53727         * modules/wcslen: New file.
53728         * lib/wchar.in.h (wcslen): New declaration.
53729         * lib/wcslen.c: New file.
53730         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
53731         * m4/wcslen.m4: New file.
53732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
53733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
53734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
53735         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
53736         * doc/posix-functions/wcslen.texi: Mention the new module.
53738 2011-02-05  Bruno Haible  <bruno@clisp.org>
53740         New module 'wmemset'.
53741         * modules/wmemset: New file.
53742         * lib/wchar.in.h (wmemset): New declaration.
53743         * lib/wmemset.c: New file.
53744         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
53745         * m4/wmemset.m4: New file.
53746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
53747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
53748         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
53749         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
53750         * doc/posix-functions/wmemset.texi: Mention the new module.
53752 2011-02-05  Bruno Haible  <bruno@clisp.org>
53754         New module 'wmemmove'.
53755         * modules/wmemmove: New file.
53756         * lib/wchar.in.h (wmemmove): New declaration.
53757         * lib/wmemmove.c: New file.
53758         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
53759         * m4/wmemmove.m4: New file.
53760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
53761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
53762         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
53763         HAVE_WMEMMOVE.
53764         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
53765         * doc/posix-functions/wmemmove.texi: Mention the new module.
53767 2011-02-05  Bruno Haible  <bruno@clisp.org>
53769         New module 'wmemcpy'.
53770         * modules/wmemcpy: New file.
53771         * lib/wchar.in.h (wmemcpy): New declaration.
53772         * lib/wmemcpy.c: New file.
53773         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
53774         * m4/wmemcpy.m4: New file.
53775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
53776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
53777         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
53778         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
53779         * doc/posix-functions/wmemcpy.texi: Mention the new module.
53781 2011-02-05  Bruno Haible  <bruno@clisp.org>
53783         New module 'wmemcmp'.
53784         * modules/wmemcmp: New file.
53785         * lib/wchar.in.h (wmemcmp): New declaration.
53786         * lib/wmemcmp.c: New file.
53787         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
53788         * m4/wmemcmp.m4: New file.
53789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
53790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
53791         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
53792         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
53793         * doc/posix-functions/wmemcmp.texi: Mention the new module.
53795 2011-02-07  Jim Meyering  <meyering@redhat.com>
53797         di-set, ino-map: new modules, from coreutils
53798         * lib/di-set.c: New file.
53799         * lib/di-set.h: Likewise.
53800         * lib/ino-map.c: Likewise.
53801         * lib/ino-map.h: Likewise.
53802         * modules/di-set: Likewise.
53803         * modules/di-set-tests: Likewise.
53804         * modules/ino-map: Likewise.
53805         * modules/ino-map-tests: Likewise.
53806         * tests/test-di-set.c: Likewise.
53807         * tests/test-ino-map.c: Likewise.
53809 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
53811         getloadavg: merge minor changes from Emacs
53813         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
53814         (getloadavg): Use memset, not bzero.
53816         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
53817         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
53818         clash (bug#86).
53820 2010-11-14  Bruno Haible  <bruno@clisp.org>
53822         Allow multiple gnulib generated replacements to coexist.
53823         * lib/getopt.in.h (struct option): Avoid identical redefinition.
53824         * lib/inttypes.in.h (imaxdiv_t): Likewise.
53825         * lib/langinfo.in.h (nl_item): Likewise.
53826         * lib/math.in.h (_NaN, NAN): Likewise.
53827         * lib/netdb.in.h (struct addrinfo): Likewise.
53828         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
53829         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
53830         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
53831         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
53832         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
53833         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
53834         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
53835         pthread_mutexattr_init, pthread_mutexattr_settype,
53836         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
53837         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
53838         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
53839         pthread_spin_trylock, pthread_spin_unlock): Likewise.
53840         * lib/sched.in.h (struct sched_param): Likewise.
53841         * lib/se-selinux.in.h (security_class_t, security_context_t,
53842         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
53843         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
53844         lsetfilecon, fsetfilecon, security_check_context,
53845         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
53846         Likewise.
53847         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
53848         Likewise.
53849         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
53850         _gl_function_taking_int_returning_void_t, union sigval,
53851         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
53852         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
53853         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
53854         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
53855         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
53856         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
53857         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
53858         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
53859         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
53860         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
53861         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
53862         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
53863         socklen_t, rpl_fd_isset): Likewise.
53864         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
53865         * lib/sys_time.in.h (struct timeval): Likewise.
53866         * lib/sys_times.in.h (struct tms): Likewise.
53867         * lib/sys_utsname.in.h (struct utsname):
53868         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
53869         * lib/unistd.in.h (getpagesize): Likewise.
53870         * lib/wchar.in.h (mbstate_t): Likewise.
53871         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53872         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
53873         towlower, towupper): Likewise.
53874         Reported by Sam Steingold <sds@gnu.org>.
53876 2011-02-05  Eric Blake  <eblake@redhat.com>
53878         unsetenv: work around Haiku issues
53879         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
53880         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
53882 2010-12-30  Bruce Korb  <bkorb@gnu.org>
53884         libposix: avoid calling error() within libposix
53885         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
53886         is defined.
53888 2011-02-05  Eric Blake  <eblake@redhat.com>
53890         strerror_r-posix: port to cygwin
53891         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
53892         implementation.
53893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
53894         * tests/test-strerror_r.c (main): Fix test.
53895         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53896         issue.
53898 2011-02-05  Bruno Haible  <bruno@clisp.org>
53900         New module 'wmemchr'.
53901         * modules/wmemchr: New file.
53902         * lib/wchar.in.h (wmemchr): New declaration.
53903         * lib/wmemchr.c: New file.
53904         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
53905         * m4/wmemchr.m4: New file.
53906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
53907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
53908         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
53909         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
53910         * doc/posix-functions/wmemchr.texi: Mention the new module.
53912 2011-02-04  Eric Blake  <eblake@redhat.com>
53914         fdopendir: detect FreeBSD bug
53915         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
53916         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
53918 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53920         stdbool: do not define HAVE_STDBOOL_H
53921         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
53922         AC_HEADER_STDBOOL.  All uses changed.  Do not define
53923         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
53924         imported from the latest Autoconf git.  It was motivated by Emacs,
53925         which uses gnulib but does not need HAVE_STDBOOL_H.
53927 2011-02-04  Bruno Haible  <bruno@clisp.org>
53929         wcsnrtombs: Prepare for new module wwcsnrtombs.
53930         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
53931         * lib/wcsnrtombs.c: Include it.
53932         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
53934         wcsrtombs: Prepare for new module wwcsrtombs.
53935         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
53936         * lib/wcsrtombs.c: Include it.
53937         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
53939         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
53940         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
53941         * lib/mbsnrtowcs.c: Include it.
53942         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
53944         mbsrtowcs: Prepare for new module mbsrtowwcs.
53945         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
53946         * lib/mbsrtowcs.c: Include it.
53947         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
53949 2011-02-04  Bruno Haible  <bruno@clisp.org>
53951         vasnprintf: Reduce use of malloc for small format strings.
53952         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
53953         (arguments): Add room for the first 7 arguments.
53954         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
53955         (char_directives, u8_directives, u16_directives, u32_directives): Add
53956         room for the first 7 directives.
53957         * lib/printf-parse.c: Include <string.h>.
53958         (PRINTF_PARSE): Change memory handling code so that it uses the first
53959         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
53960         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
53961         Reported by Pádraig Brady <P@draigbrady.com>.
53963 2011-01-31  Eric Blake  <eblake@redhat.com>
53965         dup2: work around Haiku bug
53966         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
53967         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
53968         * doc/posix-functions/dup2.texi (dup2): Document the bug.
53969         * tests/test-dup2.c (main): Enhance test.
53971 2011-01-31  Simon Josefsson  <simon@josefsson.org>
53973         doc: off_t is not available in eglibc 2.11.2 stdio.h.
53974         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
53975         declared by eglibc 2.11.2.
53976         * lib/stdio.in.h: Likewise.
53978 2011-01-31  Eric Blake  <eblake@redhat.com>
53980         ignore-value: add missing test dependency
53981         * tests/test-ignore-value.c: Revert previous change; stdio.h
53982         provides off_t.
53983         * modules/ignore-value-tests (Depends-on): Add missing dependency.
53985 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
53987         mktime: clarify long_int width checking
53988         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
53989         the top level, to make it clearer that the assumption about
53990         long_int width is being checked.  See
53991         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
53993 2011-01-30  Simon Josefsson  <simon@josefsson.org>
53995         ignore-value: Fix self-test.
53996         * tests/test-ignore-value.c: Include sys/types.h for off_t.
53998 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54000         TYPE_MAXIMUM: avoid theoretically undefined behavior
54001         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
54002         negative number, which the C Standard says has undefined behavior.
54003         In practice this is not a problem, but might as well do it by the book.
54004         Reported by Rich Felker and Eric Blake; see
54005         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
54006         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
54007         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54009         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
54010         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54011         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
54013         mktime: #undef mktime before #defining it
54014         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
54016         mktime: systematically normalize tm_isdst comparisons
54017         * lib/mktime.c (isdst_differ): New function.
54018         (__mktime_internal): Use it systematically for all isdst comparisons.
54019         This completes the fix for libc BZ #6723, and removes the need for
54020         normalizing tm_isdst.  See
54021         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
54022         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
54024         mktime: fix some integer overflow issues and sidestep the rest
54026         This was prompted by a bug report by Benjamin Lindner for MinGW
54027         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
54028         His bug is due to signed integer overflow (0 - INT_MIN), and I
54029         I scanned through mktime.c looking for other integer overflow
54030         problems, fixing all the bugs I found.
54032         Although the C Standard says the resulting code is still not safe
54033         in the presence of integer overflow, in practice it should be good
54034         enough for all real-world two's-complement implementations, except
54035         for debugging environments that deliberately trap on integer
54036         overflow (e.g., gcc -ftrapv).
54038         * lib/mktime.c (WRAPV): New macro.
54039         (SHR): Also check that long_int and time_t shift right in the
54040         usual way, before using the fast-but-unportable method.
54041         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
54042         used.  The code already assumed two's complement, so there's
54043         no need to test for alternatives.  All uses removed.
54044         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
54045         the C standard.  Problem reported by Rich Felker in
54046         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
54047         (twos_complement_arithmetic): Also check long_int and time_t.
54048         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
54049         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
54050         (__mktime_internal): Avoid integer overflow with unary subtraction
54051         in two instances where -1 - X is an adequate replacement for -X,
54052         since the calculations are approximate.
54054 2011-01-29  Eric Blake  <eblake@redhat.com>
54056         mktime: avoid infinite loop
54057         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
54058         type; behavior is still undefined but portable to all known targets.
54059         Reported by Rich Felker.
54061 2011-01-29  Simon Josefsson  <simon@josefsson.org>
54063         rename, unlink, same-inode: Relicense.
54064         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
54065         * modules/unlink (License): Likewise.
54066         * modules/same-inode (License): Likewise.
54068 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54070         mktime: avoid problems on NetBSD 5 / i386
54071         * lib/mktime.c (long_int): New type.  This works around a problem
54072         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
54073         but time_t is 64 bits, and where I expect the existing code is
54074         wrong in some cases.
54075         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
54076         (ydhms_diff): Bring back the compile-time check for wide-enough
54077         year and yday.
54079         mktime: fix misspelling in comment
54080         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
54081         This merges all recent glibc changes of importance.
54083 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54085         move-if-change: cope with concurrent mv of identical file.
54086         * build-aux/move-if-change (CMPPROG): Accept environment
54087         variable as an override for `cmp'.
54088         (usage): Document CMPPROG.
54089         Adjust comparison to drop stdout.  Cope with failure of mv if
54090         the target file exists and is identical to the source, for
54091         parallel builds.
54092         Report from H.J. Lu against binutils in PR binutils/12283.
54094 2011-01-28  Bruce Korb  <bkorb@gnu.org>
54096         * users.txt: Mention sharutils.
54098 2011-01-28  Simon Josefsson  <simon@josefsson.org>
54100         * users.txt: Mention OATH Toolkit.
54102 2011-01-27  Bruno Haible  <bruno@clisp.org>
54104         Prepare for supporting FreeBSD 10.
54105         * build-aux/config.libpath: Remove handling of freebsd1*.
54107 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
54109         Prepare for supporting FreeBSD 10.
54110         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
54111         match FreeBSD 10.0.
54113 2011-01-27  Bruno Haible  <bruno@clisp.org>
54115         vma-iter, get-rusage-as: Add OpenBSD support.
54116         * modules/vma-iter (configure.ac): Test for mquery.
54117         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
54118         * lib/vma-iter.c: Include <sys/mman.h>.
54119         (vma_iterate): Add an implementation based on mquery().
54120         * lib/resource-ext.h (get_rusage_as): Update comments.
54121         * lib/get-rusage-as.c: Likewise.
54122         * lib/get-rusage-data.c: Likewise.
54124 2011-01-26  Karl Berry  <karl@gnu.org>
54126         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
54127         variables to make it easier to override the makeinfo program used.
54129 2011-01-26  Eric Blake  <eblake@redhat.com>
54131         fcntl: work around Haiku F_DUPFD bugs
54132         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
54133         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
54134         cloexec bit on duplication.
54135         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
54137 2011-01-26  Bruno Haible  <bruno@clisp.org>
54139         Enable memory leak tests on AIX.
54140         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
54141         * tests/test-fprintf-posix3.c (main): Likewise.
54143 2011-01-26  Bruno Haible  <bruno@clisp.org>
54145         Tests for module 'get-rusage-data'.
54146         * modules/get-rusage-data-tests: New file.
54147         * tests/test-get-rusage-data.c: New file.
54149         New module 'get-rusage-data'.
54150         * lib/resource-ext.h (get_rusage_data): New declaration.
54151         * lib/get-rusage-data.c: New file.
54152         * modules/get-rusage-data: New file.
54154 2011-01-25  Bruno Haible  <bruno@clisp.org>
54156         get-rusage-as: Allow for easier testing.
54157         * lib/resource-ext.h (get_rusage_as): Add comment.
54158         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
54159         (main): New function for interactive testing.
54161 2011-01-25  Bruno Haible  <bruno@clisp.org>
54163         vma-iter: Treat Haiku like BeOS.
54164         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
54165         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
54167 2011-01-25  Eric Blake  <eblake@redhat.com>
54169         c-stack: fix regression on cygwin when libsigsegv is present
54170         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
54172 2011-01-24  Bruno Haible  <bruno@clisp.org>
54174         vma-iter: Avoid empty intervals.
54175         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
54176         on an empty interval.
54178 2011-01-24  Jim Meyering  <meyering@redhat.com>
54180         u64: remove unnecessary #include
54181         * lib/u64.h: Don't include <stddef.h>.  It was not used.
54183 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54185         Allow the user to avoid the HAVE_RAW_DECL_* macros.
54186         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
54188 2011-01-23  Bruno Haible  <bruno@clisp.org>
54190         New module 'vma-iter'.
54191         * lib/vma-iter.h: New file.
54192         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
54193         * modules/vma-iter: New file.
54194         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
54195         for get_rusage_as_via_iterator.
54196         (vma_iterate_callback): New function.
54197         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
54198         * modules/get-rusage-as (Depends-on): Add vma-iter.
54200 2011-01-23  Bruno Haible  <bruno@clisp.org>
54202         uninorm: Tweak includes.
54203         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
54204         Reported by Jim Meyering.
54206 2011-01-23  Bruno Haible  <bruno@clisp.org>
54208         get-rusage-as: Improve on NetBSD.
54209         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
54210         /proc, like on FreeBSD.
54212 2011-01-23  Jim Meyering  <meyering@redhat.com>
54214         xreadlink.h: remove unnecessary #include
54215         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
54217         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
54218         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
54220 2011-01-23  Bruno Haible  <bruno@clisp.org>
54222         get-rusage-as: Fix bug.
54223         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
54224         original limit when aborting the first loop.
54226 2011-01-23  Bruno Haible  <bruno@clisp.org>
54228         wctype: Ensure valid C syntax.
54229         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
54230         unconditionally, instead of gl_NEXT_HEADERS conditionally.
54232 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54234         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
54235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
54236         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
54237         as they are needed only for configure's test case.
54238         This removes two unnecessary symbols from config.h.
54240         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
54241         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
54242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
54243         AC_CHECK_HEADERS_ONCE on a header that we also invoke
54244         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
54245         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
54246         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
54247         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
54248         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54249         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54250         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
54251         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54252         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54253         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54254         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
54255         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54256         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
54257         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
54259 2011-01-21  Eric Blake  <eblake@redhat.com>
54261         maintainer-makefile: work with older git for submodule check
54262         * top/maint.mk (public-submodule-commit): Rewrite to avoid
54263         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
54264         Reported by Matthias Bolte.
54266         bootstrap: minor portability fixes
54267         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
54268         (usage): Omit leading capital and trailing . on help phrases, per
54269         GNU Coding Standards.
54270         (check_versions, top level): Prefix messages with script name.
54272 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
54274         bootstrap: support --no-git option
54275         * build-aux/bootstrap: Add --no-git option, to be used when
54276         --gnulib-srcdir points to the exact desired checkout.
54278 2011-01-21  Eric Blake  <eblake@redhat.com>
54280         strerror_r-posix: work with glibc 2.13
54281         * lib/strerror_r.c (strerror_r): Fix return type.
54283 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54284             Bruno Haible  <bruno@clisp.org>
54286         uN_strstr: New unit tests.
54287         * modules/unistr/u8-strstr-tests: New file.
54288         * modules/unistr/u16-strstr-tests: New file.
54289         * modules/unistr/u32-strstr-tests: New file.
54290         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
54291         * tests/unistr/test-u8-strstr.c: New file.
54292         * tests/unistr/test-u16-strstr.c: New file.
54293         * tests/unistr/test-u32-strstr.c: New file.
54295 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54296             Bruno Haible  <bruno@clisp.org>
54298         Make uN_strstr functions O(n) worst-case.
54299         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
54300         16-bit and 32-bit unit cases, use the unibyte algorithm from
54301         lib/mbsstr.c.
54302         * lib/unistr/u8-strstr.c: Include <string.h>.
54303         (UNIT_IS_UINT8_T): New macro.
54304         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
54305         (U_STRLEN, U_STRNLEN): New macros.
54306         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
54307         (U_STRLEN, U_STRNLEN): New macros.
54308         * modules/unistr/u8-strstr (Depends-on): Add strstr.
54309         (configure.ac): Update required libunistring version.
54310         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
54311         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
54312         malloca.
54313         (configure.ac): Update required libunistring version.
54314         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
54315         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
54316         malloca.
54317         (configure.ac): Update required libunistring version.
54319 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54320             Bruno Haible  <bruno@clisp.org>
54322         Prepare for faster uN_strstr functions.
54323         * lib/str-kmp.h: Support definable UNITs.
54324         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
54325         needle_len argument.
54326         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
54327         * lib/mbscasestr.c (mbscasestr): Likewise.
54329 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54331         malloca-tests: make faster by unsetting MALLOC_PERTURB_
54332         * tests/test-malloca.c (main): Unset the environment variable
54333         to greatly speed up the test.
54334         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
54335         * modules/malloca-tests: Depend on unsetenv.
54337 2011-01-21  Pádraig Brady  <P@draigBrady.com>
54339         ignore-value: remove stdint dependency
54340         * lib/ignore-value.h: Remove <stdint.h>
54341         * modules/ignore-value: Remove stdint dependency.
54343 2011-01-21  Jim Meyering  <meyering@redhat.com>
54345         maint.mk: adjust variable name to be consistent with other gl_ vars
54346         * top/maint.mk (gl_public_submodule_commit): Rename the variable
54347         to be lower case.
54349 2011-01-20  Jim Meyering  <meyering@redhat.com>
54351         maint.mk: make "check" depend on public-submodule-commit by default
54352         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
54354 2011-01-20  Bruno Haible  <bruno@clisp.org>
54356         mbfile, mbiter: Complete change from 2008-12-21.
54357         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
54358         * m4/mbiter.m4 (gl_MBITER): Likewise.
54360 2011-01-20  Jim Meyering  <meyering@redhat.com>
54362         init.sh: insert space between each function name and "()"
54363         * tests/init.sh: Make it a little easier to see that a function's
54364         name is "warn_", and not "warn" when looking at the first part of
54365         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
54367 2011-01-20  Jim Meyering  <meyering@redhat.com>
54369         mountlist: clean up code formatting
54370         * lib/mountlist.c (read_file_system_list): Split a long line,
54371         correct bracing style, use NULL in place of "(struct statfs *)0",
54372         don't parenthesize return value, add spaces around "=" and after
54373         ";-in-for-stmt".
54375 2011-01-14  Markus Duft  <mduft@gentoo.org>
54377         mountlist: add support for Interix
54378         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
54379         Apply statvfs to all entries of /dev/fs.
54380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
54381         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
54383 2011-01-20  Jim Meyering  <meyering@redhat.com>
54385         maint.mk: improve the public-submodule-commit rule
54386         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
54387         to suppress printing of its commands... unless V=1.
54388         Add git submodule's --quiet option to suppress printing of e.g.,
54389         "Entering gnulib" output.
54390         "cd" into $(srcdir) before running git submodule.
54392 2011-01-20  Bruno Haible  <bruno@clisp.org>
54394         include_next: Fix bug introduced on 2011-01-18.
54395         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
54396         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
54397         ac_cv_header_... variable if the second argument is not 'check'.
54398         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
54399         gl_NEXT_HEADERS_INTERNAL.
54401 2011-01-20  Bruno Haible  <bruno@clisp.org>
54403         Allow the user to avoid the GNULIB_TEST_* macros.
54404         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
54405         Suggested by Paul Eggert.
54407 2011-01-14  Jim Meyering  <meyering@redhat.com>
54409         bootstrap: avoid failure when there is no .gitmodules file
54410         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
54411         has been assigned to, even when its value is the empty string.
54412         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
54413         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
54414         Reported by John W. Eaton <jwe@gnu.org>.
54416 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54418         assume <ctype.h>, ..., <time.h> exist
54419         For years gnulib has been assuming the existence of the headers
54420         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
54421         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
54422         them, since they don't appear to be needed.
54423         * README (Portability guidelines): Document this.
54424         * lib/flock.c: Assume <fcntl.h> exists.
54425         * lib/regex_internal.h: Assume <locale.h> exists.
54426         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
54427         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
54428         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
54429         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
54430         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
54431         * m4/regex.m4 (gl_REGEX): Likewise.
54432         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
54433         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
54434         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
54435         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
54436         * tests/test-argp.c: Likewise.
54437         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
54439         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
54440         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
54441         AA_APPLE_UNIVERSAL_BUILD.  See
54442         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
54443         * NEWS: Document this.
54445 2011-01-19  Eric Blake  <eblake@redhat.com>
54447         c-stack: assume stack overflow if SA_SIGINFO unsupported
54448         * lib/c-stack.c (SIGACTION_WORKS): Rename...
54449         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
54450         sigaction will work.
54451         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
54452         behavior match Linux.
54453         * tests/test-c-stack.c (main): Prefer NULL for pointers.
54455         stdbool-tests: accommodate Haiku
54456         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
54458         binary-io: fix O_TEXT on Haiku
54459         * modules/binary-io (Depends-on): Add fcntl-h.
54460         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
54461         than blindly undefining O_TEXT.
54462         Reported by Scott McCreary.
54464 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54466         include_next: do not check for standard headers like stddef.h
54468         I found this problem when modifying Emacs to use gnulib.
54469         I noticed that it added HAVE_STDDEF_H to config.h, even though
54470         gnulib always assumes <stddef.h> exists as per README and this
54471         symbol is unnecessary.
54472         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
54473         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
54474         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
54475         faster for headers like stddef.h that are known to exist.
54476         (gl_CHECK_NEXT_HEADERS): Use it.
54477         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
54478         rather than gl_CHECK_NEXT_HEADERS.
54479         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
54480         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
54482 2011-01-18  Eric Blake  <eblake@redhat.com>
54484         ansi-c++-opt: skip C++ dependency style if C++ is unused
54485         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
54486         tests when we know C++ compilation is not desired.
54487         Reported by Scott McCreary.
54489 2011-01-18  Bruno Haible  <bruno@clisp.org>
54491         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
54492         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
54493         (main): Perform test also when getrlimit and setrlimit don't exist or
54494         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
54495         limiting the address space size using setrlimit, compare the address
54496         space size before and after the test.
54497         * tests/test-dprintf-posix2.c: Likewise.
54498         * tests/test-fprintf-posix3.sh: Update skip messages.
54499         * tests/test-dprintf-posix2.sh: Likewise.
54500         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
54501         * modules/dprintf-posix-tests (Depends-on): Likewise.
54502         Reported by Bruce Korb <bkorb@gnu.org> and
54503         Gary V. Vaughan <gary@gnu.org>.
54505 2011-01-18  Bruno Haible  <bruno@clisp.org>
54507         get-rusage-as: Improvement for Cygwin.
54508         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
54509         areas that are merely reserved.
54511 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54513         strftime: remove dependencies on multibyte modules
54515         strftime depended on mbrlen, mbsinit, and wchar, but these modules
54516         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
54517         only if __osf__ is defined, and I suspect OSF doesn't need these
54518         other modules.  If my guess is wrong, we'll need to come up with a
54519         variant of strftime that doesn't need the multibyte modules.
54521         I discovered this problem when attempting modify Emacs to use the
54522         strftime module.  With the previous gnulib, this caused Emacs to
54523         need 31 new files, ranging from lib/config.charset to
54524         m4/wint_t.m4.  This was overkill and I expect would be offputting
54525         to the Emacs maintainers.  After this change, only 6 new files are
54526         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
54527         stdbool.m4, and tm_gmtoff.m4.
54529         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
54530         Suggested by Bruno Haible in
54531         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
54532         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
54533         and do not check for wchar.h.
54534         * modules/strftime (Files): Remove m4/mbstate_t.m4.
54535         (Depends-on): Remove mbrlen, mbsinit, wchar.
54537 2011-01-18  Bruno Haible  <bruno@clisp.org>
54539         Tests for module 'get-rusage-as'.
54540         * modules/get-rusage-as-tests: New file.
54541         * tests/test-get-rusage-as.c: New file.
54543         New module 'get-rusage-as'.
54544         * modules/get-rusage-as: New file.
54545         * lib/resource-ext.h: New file.
54546         * lib/get-rusage-as.c: New file.
54548 2011-01-17  Eric Blake  <eblake@redhat.com>
54550         sigaction: relax license from LGPLv3+ to LGPLv2+
54551         * modules/sigaction (License): Relax to LGPLv2+.
54553 2011-01-14  Bruno Haible  <bruno@clisp.org>
54555         filemode: Make function declarations usable in C++ mode.
54556         * lib/filemode.h: Enclose function declarations in extern "C" block.
54557         Reported by John W. Eaton <jwe@gnu.org>.
54559 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
54561         save-cwd: no longer include "xgetcwd.h"
54562         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
54563         This avoids a compilation failure in projects that use save-cwd
54564         without also using the xgetcwd module.
54566 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54568         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
54569         This is so that a program like Emacs, which needs only dtoastr,
54570         does not have to bother with distributing and compiling ftoastr
54571         and ldtoastr.
54572         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
54573         * modules/dtoastr, modules/ldtoastr: New files.
54574         * modules/ftoastr: Now works just for 'float'.
54575         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
54576         (Makefile.am): Remove ftoastr.h (not needed and no effect),
54577         dtoastr.c, ldtoastr.c.
54579 2011-01-11  Jim Meyering  <meyering@redhat.com>
54581         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
54582         There is no need to work around the lack of the fchdir function,
54583         since gnulib can now provide a replacement when required.
54584         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
54585         * modules/save-cwd (Depends-on): Add fchdir.
54587 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54589         openat, save-cwd: avoid xmalloc
54591         This removes a direct (but undocumented) dependency of openat on
54592         xalloc, along with an indirect dependency via save-cwd.  It also
54593         removes a dependency of save-cwd on xgetcwd, and thereby
54594         indirectly on xalloc.  This change causes the openat substitute
54595         to fall back on save_cwd when memory is tight, and for save_cwd to
54596         fail instead of dying when memory is tight, but that's good enough.
54597         Problem and initial idea for fix reported by Bastien Roucaries in
54598         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
54600         * lib/openat-proc.c: Include stdlib.h (for malloc), not
54601         xalloc.h (for xmalloc).
54602         (openat_proc_name): Use malloc, not xmalloc.
54603         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
54604         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
54606         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
54607         This avoids heap allocation for file names whose lengths are in
54608         the range 512..1023, with the upper bound increasing to at most
54609         4031 depending on the platform's PATH_MAX.  (We do not want
54610         pathmax.h here as it might supply a non-constant PATH_MAX.)
54611         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
54612         Perhaps they should be moved to malloca.h?
54613         (OPENAT_BUFFER_SIZE): Use them.
54615 2011-01-10  Bruno Haible  <bruno@clisp.org>
54617         doc: Update users.txt.
54618         * users.txt: Add recutils.
54620 2011-01-09  Karl Berry  <karl@gnu.org>
54622         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
54624         * doc/configmake.texi: New file.
54625         * doc/gnulib.texi: Include it.
54626         * modules/configmake: Move documentation from here.
54628 2011-01-09  Bruno Haible  <bruno@clisp.org>
54630         Update to Unicode 6.0.0.
54631         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
54632         (get_lbp): Update for Unicode 6.0.0.
54633         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
54634         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
54635         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
54636         U+11001, U+11038..U+11046. Remove U+06DE.
54637         (uc_width): Fix bounds of planes.
54638         * tests/uniwidth/test-uc_width2.sh: Same updates as in
54639         lib/uniwidth/width.c.
54640         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
54641         trailing whitespace removed.
54642         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
54643         without comments, but with the original copyright notice.
54644         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
54645         * lib/unicase/ignorable.h: Likewise.
54646         * lib/unicase/tocasefold.h: Likewise.
54647         * lib/unicase/tolower.h: Likewise.
54648         * lib/unicase/totitle.h: Likewise.
54649         * lib/unicase/toupper.h: Likewise.
54650         * lib/unictype/bidi_of.h: Likewise.
54651         * lib/unictype/blocks.h: Likewise.
54652         * lib/unictype/categ_C.h: Likewise.
54653         * lib/unictype/categ_Cn.h: Likewise.
54654         * lib/unictype/categ_L.h: Likewise.
54655         * lib/unictype/categ_Ll.h: Likewise.
54656         * lib/unictype/categ_Lm.h: Likewise.
54657         * lib/unictype/categ_Lo.h: Likewise.
54658         * lib/unictype/categ_Lu.h: Likewise.
54659         * lib/unictype/categ_M.h: Likewise.
54660         * lib/unictype/categ_Mc.h: Likewise.
54661         * lib/unictype/categ_Me.h: Likewise.
54662         * lib/unictype/categ_Mn.h: Likewise.
54663         * lib/unictype/categ_N.h: Likewise.
54664         * lib/unictype/categ_Nd.h: Likewise.
54665         * lib/unictype/categ_No.h: Likewise.
54666         * lib/unictype/categ_P.h: Likewise.
54667         * lib/unictype/categ_Po.h: Likewise.
54668         * lib/unictype/categ_S.h: Likewise.
54669         * lib/unictype/categ_Sc.h: Likewise.
54670         * lib/unictype/categ_Sk.h: Likewise.
54671         * lib/unictype/categ_Sm.h: Likewise.
54672         * lib/unictype/categ_So.h: Likewise.
54673         * lib/unictype/categ_of.h: Likewise.
54674         * lib/unictype/combining.h: Likewise.
54675         * lib/unictype/ctype_alnum.h: Likewise.
54676         * lib/unictype/ctype_alpha.h: Likewise.
54677         * lib/unictype/ctype_graph.h: Likewise.
54678         * lib/unictype/ctype_lower.h: Likewise.
54679         * lib/unictype/ctype_print.h: Likewise.
54680         * lib/unictype/ctype_punct.h: Likewise.
54681         * lib/unictype/ctype_upper.h: Likewise.
54682         * lib/unictype/decdigit.h: Likewise.
54683         * lib/unictype/digit.h: Likewise.
54684         * lib/unictype/numeric.h: Likewise.
54685         * lib/unictype/pr_alphabetic.h: Likewise.
54686         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54687         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54688         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54689         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54690         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54691         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54692         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54693         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54694         * lib/unictype/pr_case_ignorable.h: Likewise.
54695         * lib/unictype/pr_cased.h: Likewise.
54696         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
54697         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
54698         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
54699         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
54700         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
54701         * lib/unictype/pr_combining.h: Likewise.
54702         * lib/unictype/pr_composite.h: Likewise.
54703         * lib/unictype/pr_currency_symbol.h: Likewise.
54704         * lib/unictype/pr_decimal_digit.h: Likewise.
54705         * lib/unictype/pr_deprecated.h: Likewise.
54706         * lib/unictype/pr_format_control.h: Likewise.
54707         * lib/unictype/pr_grapheme_base.h: Likewise.
54708         * lib/unictype/pr_grapheme_extend.h: Likewise.
54709         * lib/unictype/pr_grapheme_link.h: Likewise.
54710         * lib/unictype/pr_id_continue.h: Likewise.
54711         * lib/unictype/pr_id_start.h: Likewise.
54712         * lib/unictype/pr_ideographic.h: Likewise.
54713         * lib/unictype/pr_lowercase.h: Likewise.
54714         * lib/unictype/pr_math.h: Likewise.
54715         * lib/unictype/pr_numeric.h: Likewise.
54716         * lib/unictype/pr_other_alphabetic.h: Likewise.
54717         * lib/unictype/pr_other_id_continue.h: Likewise.
54718         * lib/unictype/pr_other_math.h: Likewise.
54719         * lib/unictype/pr_punctuation.h: Likewise.
54720         * lib/unictype/pr_sentence_terminal.h: Likewise.
54721         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54722         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54723         * lib/unictype/pr_unified_ideograph.h: Likewise.
54724         * lib/unictype/pr_uppercase.h: Likewise.
54725         * lib/unictype/pr_xid_continue.h: Likewise.
54726         * lib/unictype/pr_xid_start.h: Likewise.
54727         * lib/unictype/scripts.h: Likewise.
54728         * lib/unictype/scripts_byname.gperf: Likewise.
54729         * lib/unictype/sy_java_ident.h: Likewise.
54730         * lib/unigbrk/gbrkprop.h: Likewise.
54731         * lib/unilbrk/lbrkprop1.h: Likewise.
54732         * lib/unilbrk/lbrkprop2.h: Likewise.
54733         * lib/uninorm/decomposition-table2.h: Likewise.
54734         * lib/uniwbrk/wbrkprop.h: Likewise.
54735         * tests/unicase/test-cased.c: Likewise.
54736         * tests/unicase/test-ignorable.c: Likewise.
54737         * tests/unicase/test-uc_tolower.c: Likewise.
54738         * tests/unicase/test-uc_totitle.c: Likewise.
54739         * tests/unicase/test-uc_toupper.c: Likewise.
54740         * tests/unictype/test-categ_C.c: Likewise.
54741         * tests/unictype/test-categ_Cn.c: Likewise.
54742         * tests/unictype/test-categ_L.c: Likewise.
54743         * tests/unictype/test-categ_Ll.c: Likewise.
54744         * tests/unictype/test-categ_Lm.c: Likewise.
54745         * tests/unictype/test-categ_Lo.c: Likewise.
54746         * tests/unictype/test-categ_Lu.c: Likewise.
54747         * tests/unictype/test-categ_M.c: Likewise.
54748         * tests/unictype/test-categ_Mc.c: Likewise.
54749         * tests/unictype/test-categ_Me.c: Likewise.
54750         * tests/unictype/test-categ_Mn.c: Likewise.
54751         * tests/unictype/test-categ_N.c: Likewise.
54752         * tests/unictype/test-categ_Nd.c: Likewise.
54753         * tests/unictype/test-categ_No.c: Likewise.
54754         * tests/unictype/test-categ_P.c: Likewise.
54755         * tests/unictype/test-categ_Po.c: Likewise.
54756         * tests/unictype/test-categ_S.c: Likewise.
54757         * tests/unictype/test-categ_Sc.c: Likewise.
54758         * tests/unictype/test-categ_Sk.c: Likewise.
54759         * tests/unictype/test-categ_Sm.c: Likewise.
54760         * tests/unictype/test-categ_So.c: Likewise.
54761         * tests/unictype/test-ctype_alnum.c: Likewise.
54762         * tests/unictype/test-ctype_alpha.c: Likewise.
54763         * tests/unictype/test-ctype_graph.c: Likewise.
54764         * tests/unictype/test-ctype_lower.c: Likewise.
54765         * tests/unictype/test-ctype_print.c: Likewise.
54766         * tests/unictype/test-ctype_punct.c: Likewise.
54767         * tests/unictype/test-ctype_upper.c: Likewise.
54768         * tests/unictype/test-decdigit.h: Likewise.
54769         * tests/unictype/test-digit.h: Likewise.
54770         * tests/unictype/test-numeric.h: Likewise.
54771         * tests/unictype/test-pr_alphabetic.c: Likewise.
54772         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54773         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54774         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54775         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54776         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54777         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54779         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54780         * tests/unictype/test-pr_case_ignorable.c: Likewise.
54781         * tests/unictype/test-pr_cased.c: Likewise.
54782         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
54783         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
54784         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
54785         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
54786         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
54787         * tests/unictype/test-pr_combining.c: Likewise.
54788         * tests/unictype/test-pr_composite.c: Likewise.
54789         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54790         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54791         * tests/unictype/test-pr_deprecated.c: Likewise.
54792         * tests/unictype/test-pr_format_control.c: Likewise.
54793         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54794         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54795         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54796         * tests/unictype/test-pr_id_continue.c: Likewise.
54797         * tests/unictype/test-pr_id_start.c: Likewise.
54798         * tests/unictype/test-pr_ideographic.c: Likewise.
54799         * tests/unictype/test-pr_lowercase.c: Likewise.
54800         * tests/unictype/test-pr_math.c: Likewise.
54801         * tests/unictype/test-pr_numeric.c: Likewise.
54802         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54803         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54804         * tests/unictype/test-pr_other_math.c: Likewise.
54805         * tests/unictype/test-pr_punctuation.c: Likewise.
54806         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54807         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54808         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54809         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54810         * tests/unictype/test-pr_uppercase.c: Likewise.
54811         * tests/unictype/test-pr_xid_continue.c: Likewise.
54812         * tests/unictype/test-pr_xid_start.c: Likewise.
54813         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
54814         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
54815         changes.
54816         * lib/unictype/categ_Cc.h: Likewise.
54817         * lib/unictype/categ_Cf.h: Likewise.
54818         * lib/unictype/categ_Co.h: Likewise.
54819         * lib/unictype/categ_Cs.h: Likewise.
54820         * lib/unictype/categ_Lt.h: Likewise.
54821         * lib/unictype/categ_Nl.h: Likewise.
54822         * lib/unictype/categ_Pc.h: Likewise.
54823         * lib/unictype/categ_Pd.h: Likewise.
54824         * lib/unictype/categ_Pe.h: Likewise.
54825         * lib/unictype/categ_Pf.h: Likewise.
54826         * lib/unictype/categ_Pi.h: Likewise.
54827         * lib/unictype/categ_Ps.h: Likewise.
54828         * lib/unictype/categ_Z.h: Likewise.
54829         * lib/unictype/categ_Zl.h: Likewise.
54830         * lib/unictype/categ_Zp.h: Likewise.
54831         * lib/unictype/categ_Zs.h: Likewise.
54832         * lib/unictype/ctype_blank.h: Likewise.
54833         * lib/unictype/ctype_cntrl.h: Likewise.
54834         * lib/unictype/ctype_digit.h: Likewise.
54835         * lib/unictype/ctype_space.h: Likewise.
54836         * lib/unictype/ctype_xdigit.h: Likewise.
54837         * lib/unictype/mirror.h: Likewise.
54838         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54839         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54840         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54841         * lib/unictype/pr_bidi_control.h: Likewise.
54842         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54843         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54844         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54845         * lib/unictype/pr_bidi_pdf.h: Likewise.
54846         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54847         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54848         * lib/unictype/pr_dash.h: Likewise.
54849         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54850         * lib/unictype/pr_diacritic.h: Likewise.
54851         * lib/unictype/pr_extender.h: Likewise.
54852         * lib/unictype/pr_hex_digit.h: Likewise.
54853         * lib/unictype/pr_hyphen.h: Likewise.
54854         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54855         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54856         * lib/unictype/pr_ignorable_control.h: Likewise.
54857         * lib/unictype/pr_iso_control.h: Likewise.
54858         * lib/unictype/pr_join_control.h: Likewise.
54859         * lib/unictype/pr_left_of_pair.h: Likewise.
54860         * lib/unictype/pr_line_separator.h: Likewise.
54861         * lib/unictype/pr_logical_order_exception.h: Likewise.
54862         * lib/unictype/pr_non_break.h: Likewise.
54863         * lib/unictype/pr_not_a_character.h: Likewise.
54864         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54865         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54866         * lib/unictype/pr_other_id_start.h: Likewise.
54867         * lib/unictype/pr_other_lowercase.h: Likewise.
54868         * lib/unictype/pr_other_uppercase.h: Likewise.
54869         * lib/unictype/pr_paired_punctuation.h: Likewise.
54870         * lib/unictype/pr_paragraph_separator.h: Likewise.
54871         * lib/unictype/pr_pattern_syntax.h: Likewise.
54872         * lib/unictype/pr_pattern_white_space.h: Likewise.
54873         * lib/unictype/pr_private_use.h: Likewise.
54874         * lib/unictype/pr_quotation_mark.h: Likewise.
54875         * lib/unictype/pr_radical.h: Likewise.
54876         * lib/unictype/pr_soft_dotted.h: Likewise.
54877         * lib/unictype/pr_space.h: Likewise.
54878         * lib/unictype/pr_titlecase.h: Likewise.
54879         * lib/unictype/pr_variation_selector.h: Likewise.
54880         * lib/unictype/pr_white_space.h: Likewise.
54881         * lib/unictype/pr_zero_width.h: Likewise.
54882         * lib/unictype/sy_c_ident.h: Likewise.
54883         * lib/unictype/sy_c_whitespace.h: Likewise.
54884         * lib/unictype/sy_java_whitespace.h: Likewise.
54885         * lib/uninorm/composition-table.gperf: Likewise.
54886         * lib/uninorm/decomposition-table1.h: Likewise.
54887         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
54888         LB8.
54889         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54890         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54891         * modules/unictype/*: Bump version number of expected libunistring
54892         version.
54894 2011-01-09  Bruno Haible  <bruno@clisp.org>
54896         Update to Unicode 5.2.0.
54897         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
54898         trailing whitespace removed.
54900 2011-01-09  Bruno Haible  <bruno@clisp.org>
54902         New Unicode character properties, from Unicode 5.2.0.
54903         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
54904         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
54905         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
54906         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
54907         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
54908         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
54909         uc_is_property_cased, uc_is_property_case_ignorable,
54910         uc_is_property_changes_when_lowercased,
54911         uc_is_property_changes_when_uppercased,
54912         uc_is_property_changes_when_titlecased,
54913         uc_is_property_changes_when_casefolded,
54914         uc_is_property_changes_when_casemapped): New declarations.
54915         * lib/unictype/pr_byname.gperf: Add the new properties.
54916         * modules/unictype/property-byname (Depends-on): Depend on the new
54917         properties modules.
54918         * modules/unictype/property-all (Depends-on): Likewise.
54919         * MODULES.html.sh (Unicode string functions): Add
54920         unictype/property-case-ignorable, unictype/property-cased,
54921         unictype/property-changes-when-casefolded,
54922         unictype/property-changes-when-casemapped,
54923         unictype/property-changes-when-lowercased,
54924         unictype/property-changes-when-titlecased,
54925         unictype/property-changes-when-uppercased.
54927         New module 'unictype/property-changes-when-casemapped'.
54928         * modules/unictype/property-changes-when-casemapped: New file.
54929         * lib/unictype/pr_changes_when_casemapped.c: New file.
54930         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
54931         generated by gen-uni-tables.
54932         * modules/unictype/property-changes-when-casemapped-tests: New file.
54933         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
54934         automatically generated by gen-uni-tables.
54936         New module 'unictype/property-changes-when-casefolded'.
54937         * modules/unictype/property-changes-when-casefolded: New file.
54938         * lib/unictype/pr_changes_when_casefolded.c: New file.
54939         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
54940         generated by gen-uni-tables.
54941         * modules/unictype/property-changes-when-casefolded-tests: New file.
54942         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
54943         automatically generated by gen-uni-tables.
54945         New module 'unictype/property-changes-when-titlecased'.
54946         * modules/unictype/property-changes-when-titlecased: New file.
54947         * lib/unictype/pr_changes_when_titlecased.c: New file.
54948         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
54949         generated by gen-uni-tables.
54950         * modules/unictype/property-changes-when-titlecased-tests: New file.
54951         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
54952         automatically generated by gen-uni-tables.
54954         New module 'unictype/property-changes-when-uppercased'.
54955         * modules/unictype/property-changes-when-uppercased: New file.
54956         * lib/unictype/pr_changes_when_uppercased.c: New file.
54957         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
54958         generated by gen-uni-tables.
54959         * modules/unictype/property-changes-when-uppercased-tests: New file.
54960         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
54961         automatically generated by gen-uni-tables.
54963         New module 'unictype/property-changes-when-lowercased'.
54964         * modules/unictype/property-changes-when-lowercased: New file.
54965         * lib/unictype/pr_changes_when_lowercased.c: New file.
54966         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
54967         generated by gen-uni-tables.
54968         * modules/unictype/property-changes-when-lowercased-tests: New file.
54969         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
54970         automatically generated by gen-uni-tables.
54972         New module 'unictype/property-case-ignorable'.
54973         * modules/unictype/property-case-ignorable: New file.
54974         * lib/unictype/pr_case_ignorable.c: New file.
54975         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
54976         by gen-uni-tables.
54977         * modules/unictype/property-case-ignorable-tests: New file.
54978         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
54979         generated by gen-uni-tables.
54981         New module 'unictype/property-cased'.
54982         * modules/unictype/property-cased: New file.
54983         * lib/unictype/pr_cased.c: New file.
54984         * lib/unictype/pr_cased.h: New file, automatically generated by
54985         gen-uni-tables.
54986         * modules/unictype/property-cased-tests: New file.
54987         * tests/unictype/test-pr_cased.c: New file, automatically generated by
54988         gen-uni-tables.
54990 2011-01-09  Bruno Haible  <bruno@clisp.org>
54992         Update to Unicode 5.2.0.
54993         * lib/gen-uni-tables.c (output_predicate, output_category,
54994         output_combclass, output_bidi_category, output_decimal_digit_test,
54995         output_decimal_digit, output_digit_test, output_digit,
54996         output_numeric_test, output_numeric, output_mirror, output_scripts,
54997         output_scripts_byname, output_blocks, output_ident_category): Fix
54998         comment header.
54999         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
55000         get_wbp.
55001         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
55002         items.
55003         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
55004         Changes_When_Lowercased, Changes_When_Uppercased,
55005         Changes_When_Titlecased, Changes_When_Casefolded,
55006         Changes_When_Casemapped.
55007         (is_property_alphabetic, is_property_default_ignorable_code_point):
55008         Update for Unicode 5.2.0.
55009         (is_property_cased, is_property_case_ignorable,
55010         is_property_changes_when_lowercased,
55011         is_property_changes_when_uppercased,
55012         is_property_changes_when_titlecased,
55013         is_property_changes_when_casefolded,
55014         is_property_changes_when_casemapped): New functions.
55015         (output_properties): Output also the properties cased, case_ignorable,
55016         changes_when_lowercased, changes_when_uppercased,
55017         changes_when_titlecased, changes_when_casefolded,
55018         changes_when_casemapped.
55019         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
55020         Unicode TR#11 revision 17 -> 19.
55021         (LBP_CP): New enumeration value.
55022         (LBP_*): Adjust values accordingly.
55023         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
55024         TR#14 revision 22 -> 24.
55025         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
55026         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
55027         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
55028         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
55029         is_WBP_MIDLETTER.
55030         (output_composition_tables): Allow for 24 bits instead of 16 bits in
55031         the code1 and code2 of each composition rule.
55032         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
55033         * lib/unicase/ignorable.h: Likewise.
55034         * lib/unicase/tocasefold.h: Likewise.
55035         * lib/unicase/tolower.h: Likewise.
55036         * lib/unicase/totitle.h: Likewise.
55037         * lib/unicase/toupper.h: Likewise.
55038         * lib/unictype/bidi_of.h: Likewise.
55039         * lib/unictype/blocks.h: Likewise.
55040         * lib/unictype/categ_C.h: Likewise.
55041         * lib/unictype/categ_Cf.h: Likewise.
55042         * lib/unictype/categ_Cn.h: Likewise.
55043         * lib/unictype/categ_L.h: Likewise.
55044         * lib/unictype/categ_Ll.h: Likewise.
55045         * lib/unictype/categ_Lm.h: Likewise.
55046         * lib/unictype/categ_Lo.h: Likewise.
55047         * lib/unictype/categ_Lu.h: Likewise.
55048         * lib/unictype/categ_M.h: Likewise.
55049         * lib/unictype/categ_Mc.h: Likewise.
55050         * lib/unictype/categ_Mn.h: Likewise.
55051         * lib/unictype/categ_N.h: Likewise.
55052         * lib/unictype/categ_Nd.h: Likewise.
55053         * lib/unictype/categ_Nl.h: Likewise.
55054         * lib/unictype/categ_No.h: Likewise.
55055         * lib/unictype/categ_P.h: Likewise.
55056         * lib/unictype/categ_Pd.h: Likewise.
55057         * lib/unictype/categ_Po.h: Likewise.
55058         * lib/unictype/categ_S.h: Likewise.
55059         * lib/unictype/categ_Sc.h: Likewise.
55060         * lib/unictype/categ_So.h: Likewise.
55061         * lib/unictype/categ_of.h: Likewise.
55062         * lib/unictype/combining.h: Likewise.
55063         * lib/unictype/ctype_alnum.h: Likewise.
55064         * lib/unictype/ctype_alpha.h: Likewise.
55065         * lib/unictype/ctype_graph.h: Likewise.
55066         * lib/unictype/ctype_lower.h: Likewise.
55067         * lib/unictype/ctype_print.h: Likewise.
55068         * lib/unictype/ctype_punct.h: Likewise.
55069         * lib/unictype/ctype_upper.h: Likewise.
55070         * lib/unictype/decdigit.h: Likewise.
55071         * lib/unictype/digit.h: Likewise.
55072         * lib/unictype/numeric.h: Likewise.
55073         * lib/unictype/pr_alphabetic.h: Likewise.
55074         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55075         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55076         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55077         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55078         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55079         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55080         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55081         * lib/unictype/pr_combining.h: Likewise.
55082         * lib/unictype/pr_composite.h: Likewise.
55083         * lib/unictype/pr_currency_symbol.h: Likewise.
55084         * lib/unictype/pr_dash.h: Likewise.
55085         * lib/unictype/pr_decimal_digit.h: Likewise.
55086         * lib/unictype/pr_deprecated.h: Likewise.
55087         * lib/unictype/pr_diacritic.h: Likewise.
55088         * lib/unictype/pr_extender.h: Likewise.
55089         * lib/unictype/pr_grapheme_base.h: Likewise.
55090         * lib/unictype/pr_grapheme_extend.h: Likewise.
55091         * lib/unictype/pr_grapheme_link.h: Likewise.
55092         * lib/unictype/pr_id_continue.h: Likewise.
55093         * lib/unictype/pr_id_start.h: Likewise.
55094         * lib/unictype/pr_ideographic.h: Likewise.
55095         * lib/unictype/pr_ignorable_control.h: Likewise.
55096         * lib/unictype/pr_logical_order_exception.h: Likewise.
55097         * lib/unictype/pr_lowercase.h: Likewise.
55098         * lib/unictype/pr_numeric.h: Likewise.
55099         * lib/unictype/pr_other_alphabetic.h: Likewise.
55100         * lib/unictype/pr_punctuation.h: Likewise.
55101         * lib/unictype/pr_sentence_terminal.h: Likewise.
55102         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55103         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55104         * lib/unictype/pr_unified_ideograph.h: Likewise.
55105         * lib/unictype/pr_uppercase.h: Likewise.
55106         * lib/unictype/pr_xid_continue.h: Likewise.
55107         * lib/unictype/pr_xid_start.h: Likewise.
55108         * lib/unictype/pr_zero_width.h: Likewise.
55109         * lib/unictype/scripts.h: Likewise.
55110         * lib/unictype/scripts_byname.gperf: Likewise.
55111         * lib/unictype/sy_java_ident.h: Likewise.
55112         * lib/unigbrk/gbrkprop.h: Likewise.
55113         * lib/unilbrk/lbrkprop1.h: Likewise.
55114         * lib/unilbrk/lbrkprop2.h: Likewise.
55115         * lib/unilbrk/lbrktables.h: Likewise.
55116         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
55117         LBP_CP. Implement rule LB30.
55118         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
55119         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
55120         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
55121         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
55122         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
55123         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
55124         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
55125         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
55126         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
55127         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
55128         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
55129         bits instead of 16 bits in the code1 and code2 of each composition
55130         rule.
55131         (uc_composition): Update for Unicode 5.2.0.
55132         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
55133         * lib/uninorm/decomposition-table2.h: Likewise.
55134         * lib/uniwbrk/wbrkprop.h: Likewise.
55135         * tests/unicase/test-cased.c: Likewise.
55136         * tests/unicase/test-ignorable.c: Likewise.
55137         * tests/unicase/test-uc_tolower.c: Likewise.
55138         * tests/unicase/test-uc_totitle.c: Likewise.
55139         * tests/unicase/test-uc_toupper.c: Likewise.
55140         * tests/unictype/test-categ_C.c: Likewise.
55141         * tests/unictype/test-categ_Cf.c: Likewise.
55142         * tests/unictype/test-categ_Cn.c: Likewise.
55143         * tests/unictype/test-categ_L.c: Likewise.
55144         * tests/unictype/test-categ_Ll.c: Likewise.
55145         * tests/unictype/test-categ_Lm.c: Likewise.
55146         * tests/unictype/test-categ_Lo.c: Likewise.
55147         * tests/unictype/test-categ_Lu.c: Likewise.
55148         * tests/unictype/test-categ_M.c: Likewise.
55149         * tests/unictype/test-categ_Mc.c: Likewise.
55150         * tests/unictype/test-categ_Mn.c: Likewise.
55151         * tests/unictype/test-categ_N.c: Likewise.
55152         * tests/unictype/test-categ_Nd.c: Likewise.
55153         * tests/unictype/test-categ_Nl.c: Likewise.
55154         * tests/unictype/test-categ_No.c: Likewise.
55155         * tests/unictype/test-categ_P.c: Likewise.
55156         * tests/unictype/test-categ_Pd.c: Likewise.
55157         * tests/unictype/test-categ_Po.c: Likewise.
55158         * tests/unictype/test-categ_S.c: Likewise.
55159         * tests/unictype/test-categ_Sc.c: Likewise.
55160         * tests/unictype/test-categ_So.c: Likewise.
55161         * tests/unictype/test-ctype_alnum.c: Likewise.
55162         * tests/unictype/test-ctype_alpha.c: Likewise.
55163         * tests/unictype/test-ctype_graph.c: Likewise.
55164         * tests/unictype/test-ctype_lower.c: Likewise.
55165         * tests/unictype/test-ctype_print.c: Likewise.
55166         * tests/unictype/test-ctype_punct.c: Likewise.
55167         * tests/unictype/test-ctype_upper.c: Likewise.
55168         * tests/unictype/test-decdigit.h: Likewise.
55169         * tests/unictype/test-digit.h: Likewise.
55170         * tests/unictype/test-numeric.h: Likewise.
55171         * tests/unictype/test-pr_alphabetic.c: Likewise.
55172         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55173         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55174         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55175         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55176         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55177         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55178         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55179         * tests/unictype/test-pr_combining.c: Likewise.
55180         * tests/unictype/test-pr_composite.c: Likewise.
55181         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55182         * tests/unictype/test-pr_dash.c: Likewise.
55183         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55184         * tests/unictype/test-pr_deprecated.c: Likewise.
55185         * tests/unictype/test-pr_diacritic.c: Likewise.
55186         * tests/unictype/test-pr_extender.c: Likewise.
55187         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55188         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55189         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55190         * tests/unictype/test-pr_id_continue.c: Likewise.
55191         * tests/unictype/test-pr_id_start.c: Likewise.
55192         * tests/unictype/test-pr_ideographic.c: Likewise.
55193         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55194         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55195         * tests/unictype/test-pr_lowercase.c: Likewise.
55196         * tests/unictype/test-pr_numeric.c: Likewise.
55197         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55198         * tests/unictype/test-pr_punctuation.c: Likewise.
55199         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55200         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55201         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55202         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55203         * tests/unictype/test-pr_uppercase.c: Likewise.
55204         * tests/unictype/test-pr_xid_continue.c: Likewise.
55205         * tests/unictype/test-pr_xid_start.c: Likewise.
55206         * tests/unictype/test-pr_zero_width.c: Likewise.
55207         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
55208         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
55209         changed behaviour: line breaking is now disallowed between a letter
55210         or '=' and '('.
55211         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55212         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55213         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55214         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
55215         * tests/uniwidth/test-uc_width2.sh: Same updates as in
55216         lib/uniwidth/width.c.
55217         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
55218         without comments, but with the original copyright notice.
55219         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
55220         changes.
55221         * lib/unictype/categ_Cc.h: Likewise.
55222         * lib/unictype/categ_Co.h: Likewise.
55223         * lib/unictype/categ_Cs.h: Likewise.
55224         * lib/unictype/categ_Lt.h: Likewise.
55225         * lib/unictype/categ_Me.h: Likewise.
55226         * lib/unictype/categ_Pc.h: Likewise.
55227         * lib/unictype/categ_Pe.h: Likewise.
55228         * lib/unictype/categ_Pf.h: Likewise.
55229         * lib/unictype/categ_Pi.h: Likewise.
55230         * lib/unictype/categ_Ps.h: Likewise.
55231         * lib/unictype/categ_Sk.h: Likewise.
55232         * lib/unictype/categ_Sm.h: Likewise.
55233         * lib/unictype/categ_Z.h: Likewise.
55234         * lib/unictype/categ_Zl.h: Likewise.
55235         * lib/unictype/categ_Zp.h: Likewise.
55236         * lib/unictype/categ_Zs.h: Likewise.
55237         * lib/unictype/ctype_blank.h: Likewise.
55238         * lib/unictype/ctype_cntrl.h: Likewise.
55239         * lib/unictype/ctype_digit.h: Likewise.
55240         * lib/unictype/ctype_space.h: Likewise.
55241         * lib/unictype/ctype_xdigit.h: Likewise.
55242         * lib/unictype/mirror.h: Likewise.
55243         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55244         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55245         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55246         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55247         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55248         * lib/unictype/pr_bidi_control.h: Likewise.
55249         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55250         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55251         * lib/unictype/pr_bidi_pdf.h: Likewise.
55252         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55253         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55254         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55255         * lib/unictype/pr_format_control.h: Likewise.
55256         * lib/unictype/pr_hex_digit.h: Likewise.
55257         * lib/unictype/pr_hyphen.h: Likewise.
55258         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55259         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55260         * lib/unictype/pr_iso_control.h: Likewise.
55261         * lib/unictype/pr_join_control.h: Likewise.
55262         * lib/unictype/pr_left_of_pair.h: Likewise.
55263         * lib/unictype/pr_line_separator.h: Likewise.
55264         * lib/unictype/pr_math.h: Likewise.
55265         * lib/unictype/pr_non_break.h: Likewise.
55266         * lib/unictype/pr_not_a_character.h: Likewise.
55267         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55268         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55269         * lib/unictype/pr_other_id_continue.h: Likewise.
55270         * lib/unictype/pr_other_id_start.h: Likewise.
55271         * lib/unictype/pr_other_lowercase.h: Likewise.
55272         * lib/unictype/pr_other_math.h: Likewise.
55273         * lib/unictype/pr_other_uppercase.h: Likewise.
55274         * lib/unictype/pr_paired_punctuation.h: Likewise.
55275         * lib/unictype/pr_paragraph_separator.h: Likewise.
55276         * lib/unictype/pr_pattern_syntax.h: Likewise.
55277         * lib/unictype/pr_pattern_white_space.h: Likewise.
55278         * lib/unictype/pr_private_use.h: Likewise.
55279         * lib/unictype/pr_quotation_mark.h: Likewise.
55280         * lib/unictype/pr_radical.h: Likewise.
55281         * lib/unictype/pr_soft_dotted.h: Likewise.
55282         * lib/unictype/pr_space.h: Likewise.
55283         * lib/unictype/pr_titlecase.h: Likewise.
55284         * lib/unictype/pr_variation_selector.h: Likewise.
55285         * lib/unictype/pr_white_space.h: Likewise.
55286         * lib/unictype/sy_c_ident.h: Likewise.
55287         * lib/unictype/sy_c_whitespace.h: Likewise.
55288         * lib/unictype/sy_java_whitespace.h: Likewise.
55289         * modules/uni*/*: Bump version number of expected libunistring version.
55290         Reported by Simon Josefsson.
55292 2011-01-09  Karl Heuer  <kwzh@gnu.org>
55294         useless-if-before-free: fix typo in --help and make the internal,
55295         automatic version date update process work once again.
55296         --help output contained a NUL character instead of the
55297         backslash-zero that was intended.  Also, the "must lie within
55298         the first 8 lines" line is on line 9, and hence not getting
55299         automatically updated.
55300         * build-aux/useless-if-before-free: Fix the former by adding a
55301         backslash, and the latter by condensing the three lines of what-it-does
55302         to a single line, leaving one line of slack for the future.
55304 2011-01-09  Bruno Haible  <bruno@clisp.org>
55306         uniwidth/width: Fix width of U+1D173..U+1D17A.
55307         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
55308         symbolic_width, output_width_property_test): New functions.
55309         (main): Invoke output_nonspacing_property, output_width_property_test.
55310         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
55311         U+1D173..U+1D17A.
55312         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
55313         1.
55314         * modules/uniwidth/*: Bump version number of expected libunistring
55315         version.
55316         * modules/unilbrk/*: Likewise.
55318 2011-01-08  Bruno Haible  <bruno@clisp.org>
55320         uninorm tests: Preserve copyright of Unicode data file.
55321         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
55322         Mention modifications.
55324 2011-01-08  Bruno Haible  <bruno@clisp.org>
55326         gen-uni-tables: Prepare for Unicode 5.2.0.
55327         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
55328         (debug_output_lbp, output_lbp): Update.
55330 2011-01-08  Bruno Haible  <bruno@clisp.org>
55332         unilbrk: Clarify gen-uni-tables.c code.
55333         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
55334         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
55335         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
55337 2011-01-07  Bruno Haible  <bruno@clisp.org>
55339         strtod: Restore errno when successfully parsing Infinity or NaN.
55340         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
55341         restore the original errno.
55343 2011-01-07  Bruno Haible  <bruno@clisp.org>
55345         remove test: Avoid failure on HP-UX 11.
55346         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
55348 2011-01-07  Bruno Haible  <bruno@clisp.org>
55350         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
55351         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
55352         error code.
55354 2011-01-07  Pádraig Brady  <P@draigBrady.com>
55356         ignore-value: fixup comments, and add Eric Blake
55357         as an author since he rewrote the macros.
55358         * lib/ignore-value.h (ignore_value):  State that
55359         we now support aggregates.  Also specify exactly
55360         when the GCC warn_unused_result feature was added.
55362 2011-01-06  Eric Blake  <eblake@redhat.com>
55364         ignore-value: support aggregate types
55365         * lib/ignore-value.h (ignore_value): Provide separate gcc
55366         definition.
55367         * modules/ignore-value-tests: New test module.
55368         * tests/test-ignore-value.c: New test.
55370         maint.mk: improve sc_prohibit_strcmp regex
55371         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
55372         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
55373         definition of STRNEQ.
55375         signal: work around Haiku issue with SIGBUS
55376         * lib/siglist.h: Add comment.
55377         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
55378         strsignal's favoring of SIGSEGV.
55379         * tests/test-signal.c (main): Avoid test failure.
55380         * doc/posix-headers/signal.texi (signal.h): Document the issue.
55381         Reported by Scott McCreary.
55383         maint.mk: add pre-release check to ensure submodule commits are public
55384         * top/maint.mk (public-submodule-commit): New rule.
55385         (submodule-checks): New variable.
55386         (alpha beta stable): Depend on the variable.
55388 2011-01-05  Pádraig Brady  <P@draigBrady.com>
55389         and Jim Meyering  <meyering@redhat.com>
55391         ignore-value: make ignore_value more generic; deprecate ignore_ptr
55392         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
55393         (ATTRIBUTE_DEPRECATED): Define.
55394         (_ignore_case): New function.
55395         (ignore_value): New macro, to replace the old function.
55396         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
55397         * modules/ignore-value (Depends-on): Add stdint.
55399 2011-01-04  Eric Blake  <eblake@redhat.com>
55401         doc: regenerate INSTALL
55402         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
55403         @firstparagraphindent support, now that autoconf dropped it.
55404         (INSTALL_PRELUDE): Reinstate old macro.
55405         * doc/install.texi: Resync from autoconf.
55406         * doc/INSTALL: Reflect recent autoconf update.
55407         * doc/INSTALL.ISO: Likewise.
55408         * doc/INSTALL.UTF-8: Likewise.
55409         Reported by Karl Berry.
55411 2011-01-04  Bruce Korb  <address@hidden>
55413         git-version-gen: avoid a sub-shell
55414         * build-aux/git-version-gen: Redirect stderr in `...` via
55415         "exec 2>...", rather than via an added sub-shell.
55417 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
55419         git-version-gen: use (...) rather than sh -c '...'
55420         * build-aux/git-version-gen: Rather than hard-coding a shell's name
55421         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
55423 2011-01-03  Jim Meyering  <meyering@redhat.com>
55425         git-version-gen: convert leading TABs to spaces
55426         * build-aux/git-version-gen: Expand leading TABs.
55428         git-version-gen: handle failed "git rev-list"
55429         * build-aux/git-version-gen: Rather than leaking a "fatal" error
55430         from git and proceeding as if it had succeeded but printed no SHA1
55431         checksums, suppress the diagnostic and handle the failure.
55432         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
55434         git-version-gen: include command name in one more diagnostic
55435         * build-aux/git-version-gen: When the required .tarball-version file
55436         was missing or unreadable, you might see the diagnostic from "cat",
55437         but no trace of the name of the invoking script.  Now, you still see
55438         the diagnostic from cat, but also get one from "git-version-gen: ".
55439         Inspired by a patch from Bruce Korb.
55441         update-copyright: adjust test to match changed code
55442         * tests/test-update-copyright.sh: Change test's expected output
55443         to match new actual output.
55445 2011-01-02  Bruno Haible  <bruno@clisp.org>
55447         getlogin_r: Avoid test failure on HP-UX 11.
55448         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
55449         ERANGE when the second argument is zero.
55450         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
55451         portability problem.
55453 2011-01-02  Bruce Korb  <bkorb@gnu.org>
55455         * build-aux/update-copyright: doc Simon's changes
55457 2011-01-02  Simon Josefsson  <simon@josefsson.org>
55459         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
55460         environment variable.
55462 2011-01-02  Bruno Haible  <bruno@clisp.org>
55464         unigbrk: Avoid gcc warnings.
55465         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
55466         unused variable.
55467         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
55468         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
55469         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
55470         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
55471         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
55472         Change type of first argument to 'const char *'.
55473         (main): Remove unused variable.
55474         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
55475         type of first argument to 'const char *'.
55476         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
55477         Likewise.
55478         (main): Change type of variable 's'.
55479         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
55480         to 'int'.
55482 2011-01-02  Bruno Haible  <bruno@clisp.org>
55484         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
55485         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
55486         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
55487         bug.
55488         * lib/pwrite.c: Undo 2010-12-31 patch.
55489         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
55491 2011-01-02  Bruno Haible  <bruno@clisp.org>
55493         pread: Fix test whether it works.
55494         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
55496 2011-01-02  Bruno Haible  <bruno@clisp.org>
55498         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
55499         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
55500         ends in "6". Don't require a specific month name. Try also the locale
55501         names found on HP-UX 11 and Solaris 7.
55503 2011-01-02  Bruno Haible  <bruno@clisp.org>
55505         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
55506         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
55507         C linkage.
55508         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
55510 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55512         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
55513         for consistency, since the "cluster" term is not used elsewhere.
55514         * lib/unigbrk.in.h: Update name.
55515         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
55516         * lib/unigbrk/u16-grapheme-next.c: Update name.
55517         * lib/unigbrk/u16-grapheme-prev.c: Update name.
55518         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
55519         * lib/unigbrk/u32-grapheme-next.c: Update name.
55520         * lib/unigbrk/u32-grapheme-prev.c: Update name.
55521         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
55522         * lib/unigbrk/u8-grapheme-next.c: Update name.
55523         * lib/unigbrk/u8-grapheme-prev.c: Update name.
55524         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
55525         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
55526         Suggested by Bruno Haible.
55528 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55530         Remove module 'u8-grapheme-len' as too redundant with
55531         'u8-grapheme-next'.
55532         * modules/unigbrk/u8-grapheme-len: Delete file.
55533         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
55534         * lib/unigbrk.in.h: Remove prototype for deleted function.
55535         * lib/unigbrk/u8-grapheme-len.c: Delete file.
55536         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
55538         Remove module 'u16-grapheme-len' as too redundant with
55539         'u16-grapheme-next'.
55540         * modules/unigbrk/u16-grapheme-len: Delete file.
55541         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
55542         * lib/unigbrk.in.h: Remove prototype for deleted function.
55543         * lib/unigbrk/u16-grapheme-len.c: Delete file.
55544         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
55546         Remove module 'u32-grapheme-len' as too redundant with
55547         'u32-grapheme-next'.
55548         * modules/unigbrk/u32-grapheme-len: Delete file.
55549         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
55550         * lib/unigbrk.in.h: Remove prototype for deleted function.
55551         * lib/unigbrk/u32-grapheme-len.c: Delete file.
55552         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
55554         Suggested by Bruno Haible.
55556 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55558         * unigbrk.in.h: Fix typo: "ben" => "been".
55559         Reported by Bruno Haible.
55561 2011-01-01  Jim Meyering  <meyering@redhat.com>
55563         maint: update almost all copyright ranges to include 2011
55564         Run the new "make update-copyright" rule.
55566 2011-01-01  Jim Meyering  <meyering@redhat.com>
55568         maint: update-copyright: exempt doc/INSTALL*
55569         * Makefile (update-copyright): Also exclude doc/INSTALL*,
55570         since they are generated.  Suggested by Bruno Haible.
55572 2011-01-01  Jim Meyering  <meyering@redhat.com>
55574         maint: refine the update-copyright rule
55575         * Makefile (update-copyright): Also exclude any file that includes
55576         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
55577         code that merely generates the comment.
55579 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
55581         New module 'u8-grapheme-len'.
55582         * modules/unigbrk/u8-grapheme-len: New file.
55583         * modules/unigbrk/u8-grapheme-len-tests: New file.
55584         * lib/unigbrk.in.h: Add prototype for new function.
55585         * lib/unigbrk/u8-grapheme-len.c: New file.
55586         * tests/unigbrk/test-u8-grapheme-len.c: New file.
55588         New module 'u16-grapheme-len'.
55589         * modules/unigbrk/u16-grapheme-len: New file.
55590         * modules/unigbrk/u16-grapheme-len-tests: New file.
55591         * lib/unigbrk.in.h: Add prototype for new function.
55592         * lib/unigbrk/u16-grapheme-len.c: New file.
55593         * tests/unigbrk/test-u16-grapheme-len.c: New file.
55595         New module 'u32-grapheme-len'.
55596         * modules/unigbrk/u32-grapheme-len: New file.
55597         * modules/unigbrk/u32-grapheme-len-tests: New file.
55598         * lib/unigbrk.in.h: Add prototype for new function.
55599         * lib/unigbrk/u32-grapheme-len.c: New file.
55600         * tests/unigbrk/test-u32-grapheme-len.c: New file.
55602         New module 'u8-grapheme-next'.
55603         * modules/unigbrk/u8-grapheme-next: New file.
55604         * modules/unigbrk/u8-grapheme-next-tests: New file.
55605         * lib/unigbrk.in.h: Add prototype for new function.
55606         * lib/unigbrk/u8-grapheme-next.c: New file.
55607         * tests/unigbrk/test-u8-grapheme-next.c: New file.
55609         New module 'u16-grapheme-next'.
55610         * modules/unigbrk/u16-grapheme-next: New file.
55611         * modules/unigbrk/u16-grapheme-next-tests: New file.
55612         * lib/unigbrk.in.h: Add prototype for new function.
55613         * lib/unigbrk/u16-grapheme-next.c: New file.
55614         * tests/unigbrk/test-u16-grapheme-next.c: New file.
55616         New module 'u32-grapheme-next'.
55617         * modules/unigbrk/u32-grapheme-next: New file.
55618         * modules/unigbrk/u32-grapheme-next-tests: New file.
55619         * lib/unigbrk.in.h: Add prototype for new function.
55620         * lib/unigbrk/u32-grapheme-next.c: New file.
55621         * tests/unigbrk/test-u32-grapheme-next.c: New file.
55623         New module 'u8-grapheme-prev'.
55624         * modules/unigbrk/u8-grapheme-prev: New file.
55625         * modules/unigbrk/u8-grapheme-prev-tests: New file.
55626         * lib/unigbrk.in.h: Add prototype for new function.
55627         * lib/unigbrk/u8-grapheme-prev.c: New file.
55628         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
55630         New module 'u16-grapheme-prev'.
55631         * modules/unigbrk/u16-grapheme-prev: New file.
55632         * modules/unigbrk/u16-grapheme-prev-tests: New file.
55633         * lib/unigbrk.in.h: Add prototype for new function.
55634         * lib/unigbrk/u16-grapheme-prev.c: New file.
55635         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
55637         New module 'u32-grapheme-prev'.
55638         * modules/unigbrk/u32-grapheme-prev: New file.
55639         * modules/unigbrk/u32-grapheme-prev-tests: New file.
55640         * lib/unigbrk.in.h: Add prototype for new function.
55641         * lib/unigbrk/u32-grapheme-prev.c: New file.
55642         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
55644         New module 'u8-grapheme-breaks'.
55645         * modules/unigbrk/u8-grapheme-breaks: New file.
55646         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
55647         * lib/unigbrk.in.h: Add prototype for new function.
55648         * lib/unigbrk/u8-grapheme-breaks.c: New file.
55649         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
55651         New module 'u16-grapheme-breaks'.
55652         * modules/unigbrk/u16-grapheme-breaks: New file.
55653         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
55654         * lib/unigbrk.in.h: Add prototype for new function.
55655         * lib/unigbrk/u16-grapheme-breaks.c: New file.
55656         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
55658         New module 'u32-grapheme-breaks'.
55659         * modules/unigbrk/u32-grapheme-breaks: New file.
55660         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
55661         * lib/unigbrk.in.h: Add prototype for new function.
55662         * lib/unigbrk/u32-grapheme-breaks.c: New file.
55663         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
55665         New module 'ulc-grapheme-breaks'.
55666         * modules/unigbrk/ulc-grapheme-breaks: New file.
55667         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
55668         * m4/locale-ar.m4: New file.
55669         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
55670         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
55671         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
55673 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
55675         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
55676         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
55677         modified how this file was generated before I initially submitted
55678         the module, but failed to regenerate it.  This meant that several
55679         of the level2 entries were wrong.
55680         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
55681         Remove the division-by-2 that is folded into the table now that
55682         gbrkprop.h has been regenerated properly.  Now -1 entries are
55683         handled correctly.
55685         New module 'unigbrk/uc-gbrk-prop-tests'.
55686         * modules/unigbrk/uc-gbrk-prop-tests: New file.
55687         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
55688         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
55689         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
55691 2011-01-01  Bruno Haible  <bruno@clisp.org>
55693         Avoid use of hexadecimal escapes.
55694         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
55695         instead of hexadecimal escapes.
55697 2011-01-01  Jim Meyering  <meyering@redhat.com>
55699         maint: new rule to update copyright year ranges
55700         * Makefile (update-copyright): New rule.
55702         maint: indent with TABs in Makefile
55703         * Makefile: Expand leading sequences of spaces to TABs
55705         version-etc: update the copyright year it reports
55706         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
55708 2010-12-31  Bruno Haible  <bruno@clisp.org>
55710         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
55711         * lib/isfinite.c (zerof, zerod, zerol): New variables.
55712         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
55713         zero.
55715 2010-12-31  Bruno Haible  <bruno@clisp.org>
55717         pwrite: Work around HP-UX 11.11 bug.
55718         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
55719         works and set REPLACE_PWRITE if not.
55720         * lib/pwrite.c (pwrite): Add an implementation that uses the system
55721         function.
55722         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
55724 2010-12-31  Bruno Haible  <bruno@clisp.org>
55726         pread: Work around HP-UX 11 bugs.
55727         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
55728         and set REPLACE_PREAD if not.
55729         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
55731 2010-12-31  Eric Blake  <eblake@redhat.com>
55733         nl_langinfo: fix YESEXPR on Irix 6.5
55734         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
55735         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
55736         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
55737         it.
55739 2010-12-31  Bruno Haible  <bruno@clisp.org>
55741         iconv: Document HP-UX 11 bug.
55742         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
55744 2010-12-31  Bruno Haible  <bruno@clisp.org>
55746         ldexpl: Fix link error on HP-UX 11.
55747         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
55748         LDEXPL_LIBM, using $ISNANL_LIBM.
55750 2010-12-31  Eric Blake  <eblake@redhat.com>
55752         ftello: avoid compilation failure with SunStudio c89
55753         * lib/ftello.c (ftello): Use lseek, not llseek.
55755         tests: avoid failing coreutils tests on cygwin
55756         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
55757         (create_exe_shims_): Return 0 when skipping.
55759 2010-12-31  Bruno Haible  <bruno@clisp.org>
55761         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
55762         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
55764 2010-12-31  Bruno Haible  <bruno@clisp.org>
55766         waitpid: Fix link error in C++ mode.
55767         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
55769 2010-12-31  Bruno Haible  <bruno@clisp.org>
55771         isnan: Use GCC built-ins when possible.
55772         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
55773         __builtin_isnan.
55774         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
55775         (isnan): Define using GCC built-ins for GCC >= 4.0.
55777 2010-12-31  Bruno Haible  <bruno@clisp.org>
55779         isnand: Fix mistake.
55780         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
55781         __builtin_isnand.
55783 2010-12-31  Bruno Haible  <bruno@clisp.org>
55785         open: Avoid C++ error on HP-UX 11.
55786         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
55788 2010-12-31  Bruno Haible  <bruno@clisp.org>
55790         time_r: Add missing declarations on HP-UX 11.
55791         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
55792         instead of HAVE_LOCALTIME_R.
55793         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
55794         HAVE_LOCALTIME_R always.
55795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
55796         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
55797         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
55798         HAVE_LOCALTIME_R.
55799         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
55800         * doc/posix-functions/localtime_r.texi: Likewise.
55802 2010-12-29  Eric Blake  <eblake@redhat.com>
55804         mountlist: tweak previous commit
55805         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
55806         Reported by Paul Eggert.
55808         mountlist: fix local drive detection on cygwin
55809         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
55810         that works for cygwin.
55812 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55814         ftoastr, snprintf: ftoastr + snprintf module
55815         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
55816         since the snprintf module now should be good enough here.
55817         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
55818         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
55819         and gl_MODULE_INDICATOR([snprintf]), but the former enables
55820         GNULIB_SNPRINTF only for the test directory, and the latter
55821         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
55822         seems to suffice by itself.
55824 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55826         alloca: one step towards thread-safety
55827         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
55828         need for a static variable.  All callers changed.  This does not
55829         make the alloca replacement thread-safe, but it's one step.
55831         tests: minor indenting change
55832         * tests/init.sh: Sync from coreutils housekeeping patch
55833         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
55834         to keep lines within 80 columns.
55836 2010-12-28  Jim Meyering  <meyering@redhat.com>
55838         regex: don't infloop on persistent failing calloc
55839         * lib/regexec.c (build_trtable): Return failure indication upon
55840         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
55841         In glibc, this was fixed for version 2.13:
55842         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
55844 2010-12-28  Bruno Haible  <bruno@clisp.org>
55845             Paul Eggert <eggert@cs.ucla.edu>
55847         linkat: Make implementation robust against system behaviour variations.
55848         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
55849         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
55850         way, and to -2 if it needs a generic runtime test.
55851         * lib/linkat.c (solaris_optimized_link_immediate,
55852         solaris_optimized_link_follow): New functions.
55853         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
55854         (check_same_link): Use it.
55856 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
55858         New module 'unigbrk/base'.
55859         * modules/unigbrk/base: New file.
55860         * lib/unigbrk.in.h: New file.
55862         New module 'unigbrk/uc-gbrk-prop'.
55863         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
55864         * modules/unigbrk/uc-gbrk-prop: New file.
55865         * lib/unigbrk/gbrkprop.h: New file.
55866         * lib/unigbrk/uc-gbrk-prop.c: New file.
55868         New module 'unigbrk/uc-is-grapheme-break'.
55869         * modules/unigbrk/uc-is-grapheme-break: New file.
55870         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
55871         * lib/unigbrk/uc-is-grapheme-break.c: New file.
55872         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
55873         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
55874         * tests/unigbrk/GraphemeBreakTest.txt: New file.
55876         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
55878 2010-12-27  Bruno Haible  <bruno@clisp.org>
55880         linkat test: Avoid failure on Solaris 11 2010-11.
55881         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
55883 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55885         utimens: work around glibc rounding bug on more platforms
55886         * lib/utimens.c (fdutimens): Work around rounding bug even if
55887         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
55888         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
55890 2010-12-27  Bruno Haible  <bruno@clisp.org>
55892         select tests: Improve comments.
55893         * tests/test-select.c (do_select): Add comments.
55895 2010-12-27  Bruno Haible  <bruno@clisp.org>
55897         select tests: Safer way of handling timeout.
55898         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
55899         at every invocation.
55901 2010-12-27  Bruno Haible  <bruno@clisp.org>
55903         select tests: Use 'bool' where appropriate.
55904         * tests/test-select.c (connect_to_socket): Change argument type to
55905         'bool'.
55907 2010-12-27  Bruno Haible  <bruno@clisp.org>
55909         select tests: Use existing modules.
55910         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
55911         (configure.ac): Don't test for unistd.h.
55912         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
55913         declared in <unistd.h>.
55915 2010-12-27  Bruno Haible  <bruno@clisp.org>
55917         mbrtowc: Work around a Solaris 7 bug.
55918         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
55919         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
55920         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
55921         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
55922         MBRTOWC_NULL_ARG1_BUG.
55923         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
55924         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
55925         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
55926         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
55928 2010-12-27  Jim Meyering  <meyering@redhat.com>
55930         read-file.c: tweak syntax
55931         * lib/read-file.c (fread_file): Remove space after "*" in function
55932         definitions.
55934 2010-12-27  Bruno Haible  <bruno@clisp.org>
55936         times test: Avoid gcc warnings on OSF/1.
55937         * tests/test-times.c (main): Cast printf arguments from clock_t to
55938         'long int'.
55940 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55942         utimens: work around glibc rounding bug on older Linux kernels
55943         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
55944         on Linux with a glibc whose utimes might not work, then work
55945         around a longstanding glibc bug involving rounding rather than
55946         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
55947         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
55949 2010-12-26  Bruno Haible  <bruno@clisp.org>
55951         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
55952         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
55953         _GL_CXXALIAS_SYS.
55954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
55956 2010-12-26  Bruno Haible  <bruno@clisp.org>
55958         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
55959         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
55960         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
55961         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
55962         looking for the declaration.
55963         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55964         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
55965         problem.
55966         * doc/posix-functions/inet_pton.texi: Likewise.
55968 2010-12-26  Bruno Haible  <bruno@clisp.org>
55970         arpa_inet: Use the common idioms with C++ support.
55971         * lib/arpa_inet.in.h: Include c++defs.h.
55972         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
55973         support.
55974         * modules/arpa_inet (Depends-on): Add c++defs.
55975         (Makefile.am): Substitute the contents of c++defs.h.
55976         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
55977         * modules/arpa_inet-c++-tests: New file.
55978         * tests/test-arpa_inet-c++.cc: New file.
55980 2010-12-25  Bruno Haible  <bruno@clisp.org>
55982         Fix more C++ link errors on Solaris 8.
55983         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
55984         $(LIB_EACCESS).
55985         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
55986         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
55987         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
55988         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
55989         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
55991 2010-12-25  Bruno Haible  <bruno@clisp.org>
55993         printf-posix: Fix link error when a non-GCC compiler is used.
55994         * lib/stdio.in.h (printf): When not using GCC, override printf
55995         correctly.
55996         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
55998 2010-12-25  Bruno Haible  <bruno@clisp.org>
56000         strerror_r-posix: Update doc.
56001         * doc/posix-functions/strerror_r.texi: Update doc about the return
56002         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
56004 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56006         utimens: simplify the logic of the previous change
56007         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
56008         This should not affect whether the test succeeds or fails.
56010         utimens: configure better on hosts with NFS clock skew
56011         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
56012         uses the clock of the local host.  It might use the clock of the
56013         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
56014         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
56016 2010-12-25  Bruno Haible  <bruno@clisp.org>
56018         ptsname test: Avoid failure on Solaris.
56019         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
56020         open a pseudo-terminal; don't use BSD-style ptys.
56021         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
56023 2010-12-25  Bruno Haible  <bruno@clisp.org>
56025         ptsname: Avoid ERANGE failure on some systems.
56026         * lib/ptsname.c (buffer): Increase size.
56028 2010-12-25  Bruno Haible  <bruno@clisp.org>
56030         rename, renameat: Avoid test failures at NFS mounted locations.
56031         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
56032         so that subsequent mkdir calls succeed.
56034 2010-12-25  Bruno Haible  <bruno@clisp.org>
56036         iswblank: Fix C++ link error on Solaris 8.
56037         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
56038         _GL_FUNCDECL_SYS.
56040 2010-12-25  Bruno Haible  <bruno@clisp.org>
56042         unistd: Fix C++ link error on Solaris 8.
56043         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
56045 2010-12-25  Bruno Haible  <bruno@clisp.org>
56047         readlink doc: Mention an old glibc bug.
56048         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
56050 2010-12-25  Bruno Haible  <bruno@clisp.org>
56052         fcntl-h: Fix for use of C++ on glibc systems.
56053         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
56054         also on glibc systems in C++ mode.
56055         Reported by Gary V. Vaughan <gary@gnu.org>.
56057 2010-12-25  Bruno Haible  <bruno@clisp.org>
56059         roundl-ieee: Make it work on OSF/1 5.1 with cc.
56060         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
56062 2010-12-25  Bruno Haible  <bruno@clisp.org>
56064         truncl-ieee: Make it work on OSF/1 5.1 with cc.
56065         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
56066         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
56067         test whether truncl works according to ISO C 99 with IEC 60559.
56068         * m4/truncl-ieee.m4: New file.
56069         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
56070         m4/signbit.m4.
56071         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
56073 2010-12-25  Bruno Haible  <bruno@clisp.org>
56075         ceill-ieee: Make it work on OSF/1 5.1 with cc.
56076         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
56077         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
56078         test whether ceill works according to ISO C 99 with IEC 60559.
56079         * m4/ceill-ieee.m4: New file.
56080         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
56081         m4/signbit.m4.
56082         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
56084 2010-12-25  Bruno Haible  <bruno@clisp.org>
56086         Ensure all prerequisites of <wchar.h> are included.
56087         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
56088         before <wchar.h>.
56089         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
56090         gl_MBRLEN_NUL_RETVAL): Likewise.
56091         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
56092         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
56093         AC_FUNC_MBRTOWC): Likewise.
56094         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
56095         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56096         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
56097         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
56098         Likewise.
56099         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
56100         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
56101         (gl_WCHAR_H): Improve comments.
56102         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56104 2010-12-25  Bruno Haible  <bruno@clisp.org>
56106         strtok_r: Fix C syntax error in autoconf macro.
56107         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
56108         characters in test program.
56110 2010-12-24  Bruno Haible  <bruno@clisp.org>
56112         ceil, trunc, round: Fix gcc warnings.
56113         * lib/ceil.c (MIN): Undefine before redefining.
56114         * lib/trunc.c (MIN): Likewise.
56115         * lib/round.c (MIN): Likewise.
56116         Include <math.h> first.
56118 2010-12-24  Bruno Haible  <bruno@clisp.org>
56120         select tests: Avoid failures on OSF/1 5.1.
56121         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
56122         failure of closing the last socket; it may fail with ECONNRESET.
56124 2010-12-24  Eric Blake  <eblake@redhat.com>
56126         stdint: avoid HP-UX 10.20 preprocessor bug
56127         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
56128         than #if.
56129         * tests/test-floor2.c (main): Likewise.
56130         Reported by Peter O'Gorman.
56132         pipe: make obsoletion transition easier
56133         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
56134         * modules/pipe (Files): Include revived file.
56135         (Include): Drop reference, to mirror getdate's behavior.
56137 2010-12-24  Bruno Haible  <bruno@clisp.org>
56139         sys_socket: Hide mismatch of declarations on NonStop Kernel.
56140         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
56141         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
56142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56144 2010-12-24  Bruno Haible  <bruno@clisp.org>
56146         gethostname: Ensure declaration on NonStop Kernel.
56147         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
56148         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56150 2010-12-24  Bruno Haible  <bruno@clisp.org>
56152         sys_select: Ensure all necessary types on NonStop Kernel.
56153         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
56154         include <sys/time.h>.
56155         * doc/posix-headers/sys_select.texi: Mention that it's missing on
56156         NonStop Kernel.
56157         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56159 2010-12-24  Bruno Haible  <bruno@clisp.org>
56161         sys_select: Remove unneeded include.
56162         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
56163         have <sys/select.h>.
56165 2010-12-24  Bruno Haible  <bruno@clisp.org>
56167         gethostname: Provide a fallback for HOST_NAME_MAX.
56168         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
56169         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
56170         instead.
56171         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56173 2010-12-24  Bruno Haible  <bruno@clisp.org>
56175         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
56176         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
56177         (SA_RESTART): Likewise.
56178         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56180 2010-12-24  Bruno Haible  <bruno@clisp.org>
56182         signal: Define NSIG.
56183         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
56184         * tests/test-signal.c (nsig): New variable.
56185         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56187 2010-12-24  Bruno Haible  <bruno@clisp.org>
56189         rename, renameat: Avoid test failures on OSF/1 5.1.
56190         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
56191         alternative error codes.
56192         * tests/test-renameat.c (main): Likewise.
56194 2010-12-24  Bruno Haible  <bruno@clisp.org>
56196         *printf: Detect large precisions bug on Solaris 10/SPARC.
56197         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
56198         by Paul Eggert.
56199         * tests/test-snprintf-posix.h (test_function): Add this test code here
56200         too.
56201         * tests/test-sprintf-posix.h (test_function): Likewise.
56202         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56203         * tests/test-vasprintf-posix.c (test_function): Likewise.
56204         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
56205         around by gnulib.
56206         * doc/posix-functions/printf.texi: Likewise.
56207         * doc/posix-functions/snprintf.texi: Likewise.
56208         * doc/posix-functions/sprintf.texi: Likewise.
56209         * doc/posix-functions/vfprintf.texi: Likewise.
56210         * doc/posix-functions/vprintf.texi: Likewise.
56211         * doc/posix-functions/vsnprintf.texi: Likewise.
56212         * doc/posix-functions/vsprintf.texi: Likewise.
56213         * doc/posix-functions/dprintf.texi: Undo last commit.
56214         * doc/posix-functions/vdprintf.texi: Likewise.
56216 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56218         tests: port test-fdutimensat.c to Solaris 8
56219         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
56220         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
56221         On Solaris 8, it fails with errno == ENOSYS, because there is no
56222         futimens (so it can't use the fd), and there is no lutimens (so it
56223         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
56225         vsnprintf: make more consistent with snprintf; doc fixes
56227         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
56228         the byte count return problem was promoted from the snprintf-posix
56229         to the snprintf module.
56230         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
56231         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
56232         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
56233         * tests/test-snprintf.c (main): Check the byte count returned.
56234         * tests/test-vsnprintf.c (main): Likewise.
56236 2010-12-23  Eric Blake  <eblake@redhat.com>
56238         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
56239         * modules/sigpipe (License): Relax license.
56241 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56243         doc: document Solaris printf bug with large float precisions
56244         * doc/posix-functions/dprintf.texi (dprintf):
56245         * doc/posix-functions/fprintf.texi (fprintf):
56246         * doc/posix-functions/printf.texi (printf):
56247         * doc/posix-functions/snprintf.texi (snprintf):
56248         * doc/posix-functions/sprintf.texi (sprintf):
56249         * doc/posix-functions/vdprintf.texi (vdprintf):
56250         * doc/posix-functions/vfprintf.texi (vfprintf):
56251         * doc/posix-functions/vprintf.texi (vprintf):
56252         * doc/posix-functions/vsnprintf.texi (vsnprintf):
56253         * doc/posix-functions/vsprintf.texi (vsprintf):
56254         Mention that these functions mishandle large floating point
56255         precisions on Solaris 10.  The same bug is also present in Solaris
56256         8, and I assume earlier.  This causes "cd gnulib-tests; make
56257         check" to fail on Solaris 8 (and I assume, later) when building
56258         the latest coreutils, in test-vasprintf-posix's call to
56259         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
56260         the wide flavors (e.g., wprintf) so this patch just updates the
56261         documentation for the narrow ones.
56263         test-posixtm.c: add two tests
56264         * tests/test-posixtm.c: Add two tests, to highlight the
56265         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
56266         around this bug; this is merely to document it.
56268 2010-12-22  Bruno Haible  <bruno@clisp.org>
56270         getlogin_r: Work around portability problem on OSF/1.
56271         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
56272         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
56273         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
56274         test for a truncated result.
56275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
56276         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
56277         * modules/getlogin_r (Depends-on): Add memchr.
56278         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
56280 2010-12-22  Bruno Haible  <bruno@clisp.org>
56282         ptsname: Avoid test failure on OSF/1 5.1.
56283         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
56284         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
56285         (same_slave): New function.
56286         (main): Use it to compare ptsname's result with the expected file name.
56288 2010-12-22  Bruno Haible  <bruno@clisp.org>
56290         Port extended stdio modules to HP NonStop Kernel.
56291         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
56292         macros.
56293         * lib/fbufmode.c: Update comments.
56294         * lib/fflush.c: Likewise.
56295         * lib/fpurge.c: Likewise.
56296         * lib/freadable.c: Likewise.
56297         * lib/freadahead.c: Likewise.
56298         * lib/freading.c: Likewise.
56299         * lib/freadptr.c: Likewise.
56300         * lib/freadseek.c: Likewise.
56301         * lib/fseeko.c: Likewise.
56302         * lib/fseterr.c: Likewise.
56303         * lib/fwritable.c: Likewise.
56304         * lib/fwriting.c: Likewise.
56305         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
56307 2010-12-22  Bruno Haible  <bruno@clisp.org>
56309         ttyname_r: Work around bug on OSF/1 5.1.
56310         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
56311         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
56312         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
56313         present.
56314         * lib/ttyname_r.c (ttyname_r): Update comments.
56316 2010-12-22  Bruno Haible  <bruno@clisp.org>
56318         round: Implement result sign according to IEEE 754.
56319         * lib/round.c (MIN, MINUS_ZERO): New macros.
56320         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
56321         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
56322         * tests/test-round-ieee.c (main): Likewise.
56323         * tests/test-roundl-ieee.c (main): Likewise.
56325         trunc: Implement result sign according to IEEE 754.
56326         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
56327         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
56328         * tests/test-trunc2.c: Include minus-zero.h.
56329         (MINUS_ZERO): New macro.
56330         (trunc_reference): Keep in sync with lib/trunc.c.
56331         * tests/test-truncf2.c: Include minus-zero.h.
56332         (MINUS_ZERO): New macro.
56333         (truncf_reference): Keep in sync with lib/trunc.c.
56334         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
56335         * tests/test-trunc-ieee.c (main): Likewise.
56336         * tests/test-truncl-ieee.c (main): Likewise.
56338         ceil: Implement result sign according to IEEE 754.
56339         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
56340         (FUNC): Return -0.0 for -1 < x < 0.
56341         * tests/test-ceil2.c: Include minus-zero.h.
56342         (MINUS_ZERO): New macro.
56343         (ceil_reference): Keep in sync with lib/ceil.c.
56344         * tests/test-ceilf2.c: Include minus-zero.h.
56345         (MINUS_ZERO): New macro.
56346         (ceilf_reference): Keep in sync with lib/ceil.c.
56347         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
56348         * tests/test-ceil-ieee.c (main): Likewise.
56349         * tests/test-ceill-ieee.c (main): Likewise.
56351         floor: Implement result sign according to IEEE 754.
56352         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
56353         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
56354         * tests/test-floorf2.c (floorf_reference): Likewise.
56355         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
56356         * tests/test-floor-ieee.c (main): Likewise.
56357         * tests/test-floorl-ieee.c (main): Likewise.
56359 2010-12-22  Bruno Haible  <bruno@clisp.org>
56361         getaddrinfo: Update doc.
56362         * doc/posix-functions/gai_strerror.texi: Return type is also different
56363         on AIX and HP-UX.
56365 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56367         getaddrinfo, inet_ntop: Update doc for Solaris.
56368         * doc/posix-functions/gai_strerror.texi: Return type is also an
56369         issue on Solaris 9 and earlier.
56370         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
56371         on Solaris 10 and earlier.
56373 2010-12-21  Bruno Haible  <bruno@clisp.org>
56375         New module 'roundl-ieee'.
56376         * modules/roundl-ieee: New file.
56377         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
56378         test whether roundl works according to ISO C 99 with IEC 60559.
56379         * m4/roundl-ieee.m4: New file.
56380         * modules/roundl-ieee-tests: New file.
56381         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
56382         * tests/test-roundl.c (main): Remove signbit tests.
56383         * modules/roundl-tests (Depends-on): Remove signbit.
56384         * doc/posix-functions/roundl.texi: Mention the new module.
56386 2010-12-21  Bruno Haible  <bruno@clisp.org>
56388         New module 'truncl-ieee'.
56389         * modules/truncl-ieee: New file.
56390         * modules/truncl-ieee-tests: New file.
56391         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
56392         * tests/test-truncl.c (main): Remove signbit tests.
56393         * modules/truncl-tests (Depends-on): Remove signbit.
56394         * doc/posix-functions/truncl.texi: Mention the new module.
56396 2010-12-21  Bruno Haible  <bruno@clisp.org>
56398         New module 'ceill-ieee'.
56399         * modules/ceill-ieee: New file.
56400         * modules/ceill-ieee-tests: New file.
56401         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
56402         * tests/test-ceill.c (main): Remove signbit tests.
56403         * modules/ceill-tests (Depends-on): Remove signbit.
56404         * doc/posix-functions/ceill.texi: Mention the new module.
56406 2010-12-21  Bruno Haible  <bruno@clisp.org>
56408         New module 'floorl-ieee'.
56409         * modules/floorl-ieee: New file.
56410         * modules/floorl-ieee-tests: New file.
56411         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
56412         * tests/test-floorl.c (main): Remove signbit tests.
56413         * modules/floorl-tests (Depends-on): Remove signbit.
56414         * doc/posix-functions/floorl.texi: Mention the new module.
56416 2010-12-21  Bruno Haible  <bruno@clisp.org>
56418         New module 'round-ieee'.
56419         * modules/round-ieee: New file.
56420         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
56421         whether round works according to ISO C 99 with IEC 60559.
56422         * m4/round-ieee.m4: New file.
56423         * modules/round-ieee-tests: New file.
56424         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
56425         * tests/test-round1.c (main): Remove signbit tests.
56426         * modules/round-tests (Depends-on): Remove 'signbit'.
56427         * doc/posix-functions/round.texi: Mention the new module.
56429 2010-12-21  Bruno Haible  <bruno@clisp.org>
56431         New module 'trunc-ieee'.
56432         * modules/trunc-ieee: New file.
56433         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
56434         whether trunc works according to ISO C 99 with IEC 60559.
56435         * m4/trunc-ieee.m4: New file.
56436         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
56437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
56438         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
56439         * modules/trunc-ieee-tests: New file.
56440         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
56441         * tests/test-trunc1.c (main): Remove signbit tests.
56442         * modules/trunc-tests (Depends-on): Remove 'signbit'.
56443         * doc/posix-functions/trunc.texi: Mention the new module.
56445 2010-12-21  Bruno Haible  <bruno@clisp.org>
56447         New module 'ceil-ieee'.
56448         * modules/ceil-ieee: New file.
56449         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
56450         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
56451         ISO C 99 with IEC 60559.
56452         * m4/ceil-ieee.m4: New file.
56453         * modules/ceil (Files): Add lib/ceil.c.
56454         (Depends-on): Add 'float'.
56455         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56456         * lib/math.in.h (ceil): New declaration.
56457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
56458         REPLACE_CEIL.
56459         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
56460         * modules/ceil-ieee-tests: New file.
56461         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
56462         * tests/test-math-c++.cc: Check the signature of 'ceil'.
56463         * doc/posix-functions/ceil.texi: Mention the new module.
56465 2010-12-21  Bruno Haible  <bruno@clisp.org>
56467         New module 'floor-ieee'.
56468         * modules/floor-ieee: New file.
56469         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
56470         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
56471         ISO C 99 with IEC 60559.
56472         * m4/floor-ieee.m4: New file.
56473         * modules/floor (Files): Add lib/floor.c.
56474         (Depends-on): Add 'float'.
56475         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56476         * lib/math.in.h (floor): New declaration.
56477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
56478         REPLACE_FLOOR.
56479         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
56480         * modules/floor-ieee-tests: New file.
56481         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
56482         * tests/test-math-c++.cc: Check the signature of 'floor'.
56483         * doc/posix-functions/floor.texi: Mention the new module.
56485 2010-12-21  Bruno Haible  <bruno@clisp.org>
56487         New module 'roundf-ieee'.
56488         * modules/roundf-ieee: New file.
56489         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
56490         test whether roundf works according to ISO C 99 with IEC 60559.
56491         * m4/roundf-ieee.m4: New file.
56492         * modules/roundf-ieee-tests: New file.
56493         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
56494         * tests/test-roundf1.c (main): Remove signbit tests.
56495         * modules/roundf-tests (Depends-on): Remove 'signbit'.
56496         * doc/posix-functions/roundf.texi: Mention the new module.
56498 2010-12-21  Bruno Haible  <bruno@clisp.org>
56500         New module 'truncf-ieee'.
56501         * modules/truncf-ieee: New file.
56502         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
56503         test whether truncf works according to ISO C 99 with IEC 60559.
56504         * m4/truncf-ieee.m4: New file.
56505         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
56506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
56507         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
56508         * modules/truncf-ieee-tests: New file.
56509         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
56510         * tests/test-truncf1.c (main): Remove signbit tests.
56511         * modules/truncf-tests (Depends-on): Remove 'signbit'.
56512         * doc/posix-functions/truncf.texi: Mention the new module.
56514 2010-12-21  Bruno Haible  <bruno@clisp.org>
56516         New module 'ceilf-ieee'.
56517         * modules/ceilf-ieee: New file.
56518         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
56519         test whether ceilf works according to ISO C 99 with IEC 60559.
56520         * m4/ceilf-ieee.m4: New file.
56521         * modules/ceilf-ieee-tests: New file.
56522         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
56523         * tests/test-ceilf1.c (main): Remove signbit tests.
56524         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
56525         * doc/posix-functions/ceilf.texi: Mention the new module.
56527 2010-12-21  Bruno Haible  <bruno@clisp.org>
56529         New module 'floorf-ieee'.
56530         * modules/floorf-ieee: New file.
56531         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
56532         test whether floorf works according to ISO C 99 with IEC 60559.
56533         * m4/floorf-ieee.m4: New file.
56534         * modules/floorf-ieee-tests: New file.
56535         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
56536         * tests/test-floorf1.c (main): Remove signbit tests.
56537         * modules/floorf-tests (Depends-on): Remove 'signbit'.
56538         * doc/posix-functions/floorf.texi: Mention the new module.
56540 2010-12-21  Bruno Haible  <bruno@clisp.org>
56542         Support for minus zero in autoconf macros.
56543         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
56544         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
56545         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
56546         * tests/minus-zero.h: Update comments.
56548 2010-12-21  Bruno Haible  <bruno@clisp.org>
56550         Tests for module 'ceil'.
56551         * modules/ceil-tests: New file.
56552         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
56553         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
56555 2010-12-21  Bruno Haible  <bruno@clisp.org>
56557         Tests for module 'floor'.
56558         * modules/floor-tests: New file.
56559         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
56560         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
56562 2010-12-21  Bruno Haible  <bruno@clisp.org>
56564         math: Fix indentation.
56565         * lib/math.in.h (floorf): Fix indentation.
56567 2010-12-21  Bruno Haible  <bruno@clisp.org>
56569         Fix cross-compilation guesses on Solaris.
56570         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
56571         not match "solaris2.10".
56572         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
56573         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
56574         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
56576 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56578         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
56579         This fixes a problem observed with the latest coreutils snapshot
56580         that caused a test to fail on Solaris 8.  src/csplit.c's call
56581         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
56582         earlier, instead of returning the number of bytes that would have
56583         been generated; this causes csplit to incorrectly report memory
56584         exhaustion.
56585         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
56586         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
56587         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
56588         comments to match.
56589         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
56590         Fix typo in matching older versions of Solaris: "solaris2.10"
56591         is matched by the shell pattern "solaris2.[0-9]*".  This matters
56592         only for guessing while cross-compiling.
56593         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
56595 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
56597         ftoastr: fix comment again
56598         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
56599         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
56600         Also, simplify example a bit by using flags = 0.
56602 2010-12-20  Bruno Haible  <bruno@clisp.org>
56604         round*, trunc*: Update documentation regarding glibc.
56605         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
56606         * doc/posix-functions/round.texi: Likewise.
56607         * doc/posix-functions/roundl.texi: Likewise.
56608         * doc/posix-functions/truncf.texi: Likewise.
56609         * doc/posix-functions/trunc.texi: Likewise.
56610         * doc/posix-functions/truncl.texi: Likewise.
56612 2010-12-20  Bruno Haible  <bruno@clisp.org>
56614         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
56615         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
56616         * doc/posix-functions/round.texi: Likewise.
56617         * doc/posix-functions/roundl.texi: Likewise.
56619 2010-12-20  Bruno Haible  <bruno@clisp.org>
56621         ttyname_r: Add missing declaration on HP-UX 11.
56622         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
56623         HAVE_TTYNAME_R.
56624         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
56625         declared. Set HAVE_TTYNAME_R always.
56626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56627         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
56628         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
56629         HAVE_TTYNAME_R.
56630         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
56632 2010-12-20  Bruno Haible  <bruno@clisp.org>
56634         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
56635         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
56636         * doc/posix-functions/getlogin_r.texi: Likewise.
56637         * tests/test-getlogin.c: Include <errno.h>.
56638         (main): Avoid test failure on HP-UX 11.11.
56639         * tests/test-getlogin_r.c (main): Likewise.
56641 2010-12-20  Bruno Haible  <bruno@clisp.org>
56643         getlogin_r: Add missing declaration on HP-UX 11.
56644         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
56645         declared also when it exists as a function.
56646         * doc/posix-functions/getlogin_r.texi: Document this workaround.
56648 2010-12-20  Bruno Haible  <bruno@clisp.org>
56650         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
56651         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
56652         through wcrtomb.
56654 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56656         ftoastr: fix comment
56657         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
56658         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
56660 2010-12-19  Bruno Haible  <bruno@clisp.org>
56662         isnan: Ensure it is a macro.
56663         * lib/math.in.h (isnan): Define as a macro if not already a macro.
56664         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
56665         Solaris.
56667 2010-12-19  Bruno Haible  <bruno@clisp.org>
56669         ldexpl test: Fix link error on OSF/1 5.1.
56670         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
56672 2010-12-19  Bruno Haible  <bruno@clisp.org>
56674         wctype: Make it work in C++ mode on OSF/1 5.1.
56675         * lib/wctype.in.h (iswblank): Declare but not define here.
56676         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
56677         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
56678         * modules/wctype (Files): Add lib/iswblank.c.
56680 2010-12-19  Bruno Haible  <bruno@clisp.org>
56682         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
56683         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
56684         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
56686 2010-12-19  Bruno Haible  <bruno@clisp.org>
56688         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
56689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
56690         _POSIX_PII_SOCKET.
56691         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
56692         * doc/posix-functions/recvfrom.texi: Likewise.
56693         * doc/posix-functions/send.texi: Likewise.
56694         * doc/posix-functions/sendto.texi: Likewise.
56696 2010-12-19  Bruno Haible  <bruno@clisp.org>
56698         tcgetsid: Add missing declaration on OSF/1 5.1.
56699         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
56700         HAVE_TCGETSID.
56701         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
56702         Don't set HAVE_TCGETSID.
56703         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
56704         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
56705         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
56706         HAVE_TCGETSID.
56707         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
56709 2010-12-19  Bruno Haible  <bruno@clisp.org>
56711         stdio: Fix problem with popen() declaration on OSF/1 5.1.
56712         * lib/stdio.in.h: During the include_next statement, let recursive
56713         includes of this file include only the system header file.
56715 2010-12-19  Bruno Haible  <bruno@clisp.org>
56717         iconv_open: Fix regression from 2010-12-04.
56718         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
56719         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
56721 2010-12-19  Bruno Haible  <bruno@clisp.org>
56723         stdbool test: Avoid a gcc warning.
56724         * tests/test-stdbool.c (main): Fail if e1 is false.
56725         Reported by Jim Meyering.
56727 2010-12-19  Jim Meyering  <meyering@redhat.com>
56729         setenv: restore to working order
56730         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
56731         mistakenly removed.
56732         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
56733         HAVE_SETENV.
56734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
56735         HAVE_SETENV.
56737 2010-12-19  Bruno Haible  <bruno@clisp.org>
56739         Document some different function declarations on OSF/1 5.1.
56740         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
56741         * doc/posix-functions/inet_ntop.texi: Likewise.
56742         * doc/posix-functions/gethostname.texi: Likewise.
56743         * lib/unistd.in.h (gethostname): Update comment.
56745 2010-12-19  Bruno Haible  <bruno@clisp.org>
56747         doc: Mention vasprintf-posix module.
56748         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
56749         the 'vasprintf-posix' module.
56750         * doc/glibc-functions/vasprintf.texi: Likewise.
56752 2010-12-19  Bruno Haible  <bruno@clisp.org>
56754         unsetenv: Add missing declaration on OSF/1 5.1.
56755         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
56756         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
56757         Don't set HAVE_UNSETENV. In the test program, set _BSD.
56758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
56759         not HAVE_UNSETENV.
56760         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
56761         HAVE_UNSETENV.
56762         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
56764 2010-12-19  Bruno Haible  <bruno@clisp.org>
56766         setenv: Add missing declaration on OSF/1 5.1.
56767         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
56768         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
56769         declared. Don't set HAVE_SETENV.
56770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
56771         not HAVE_SETENV.
56772         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
56773         HAVE_SETENV.
56774         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
56776 2010-12-19  Bruno Haible  <bruno@clisp.org>
56778         nl_langinfo tests: Avoid gcc warning.
56779         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
56781 2010-12-19  Bruno Haible  <bruno@clisp.org>
56783         mknod: Avoid error in C++ mode on OSF/1 with GCC.
56784         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
56785         _GL_CXXALIAS_SYS.
56787 2010-12-19  Bruno Haible  <bruno@clisp.org>
56789         stdbool: Relax test.
56790         * tests/test-stdbool.c (e): Don't require that casts from a variable's
56791         address to 'bool' work in static initializer, for compilers other than
56792         GCC.
56794 2010-12-19  Bruno Haible  <bruno@clisp.org>
56796         ftello: Add missing declaration on OSF/1 5.1.
56797         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
56798         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
56799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
56800         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
56801         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
56803 2010-12-19  Bruno Haible  <bruno@clisp.org>
56805         fseeko: Add missing declaration on OSF/1 5.1.
56806         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
56807         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
56808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
56809         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
56810         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
56812 2010-12-19  Bruno Haible  <bruno@clisp.org>
56814         fchdir: Add missing declaration on OSF/1 5.1.
56815         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
56816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
56817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
56818         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
56819         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
56821 2010-12-19  Bruno Haible  <bruno@clisp.org>
56823         relocatable-prog-wrapper: Separate from relocatable-prog.
56824         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
56825         uninstall-relocwrapper rule here.
56826         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
56827         Reported by Ian Beckwith <ianb@erislabs.net>.
56829 2010-12-19  Bruno Haible  <bruno@clisp.org>
56831         unistr/u8-mbsnlen: Add missing dependency.
56832         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
56833         Reported by Ian Beckwith <ianb@erislabs.net>.
56835 2010-12-19  Bruno Haible  <bruno@clisp.org>
56837         iconv: Make it possible again to use this module without 'iconv-h'.
56838         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
56839         if it is not defined.
56840         Reported by Ian Beckwith <ianb@erislabs.net>.
56842 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56844         acl: port to Solaris 8 when copying from tmpfs to ufs
56845         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
56846         error number.  Problem observed on Solaris 8 with latest
56847         coreutils, with "mv A B", where A is on a tmpfs file system and B
56848         is on a ufs file system.  This caused coreutils' mv/part-symlink
56849         test to fail.
56851         tests: set fail=0 at start
56852         * tests/init.sh (setup_): Move fail=0 initialization here ...
56853         (mktempd_): ... from here, so that tests can rely on fail being
56854         set to 0 initially.  This fixes a problem in coreutils; see:
56855         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
56857 2010-12-18  Bruno Haible  <bruno@clisp.org>
56859         memmem-simple: Stylistic changes.
56860         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
56861         Fix preprocessor directive indentation.
56863 2010-12-15  Pádraig Brady  <P@draigBrady.com>
56865         memmem, memmem-simple: reorganize and expand empty needle check
56866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
56867         functional checks to memmem-simple so that one has a fully functional
56868         memmem by using just this module.
56869         Restrict the performance only check to the memmem module.
56870         Also expand the empty needle check to ensure the correct
56871         pointer is returned, not just a non NULL pointer.
56872         * doc/glibc-functions/memmem.texi: Rearrange the portability
56873         documentation to correlate with the rearranged checks.
56874         Clarify exactly how the memmem and memmem-simple modules
56875         relate to each other.
56877 2010-12-15  Pádraig Brady  <P@draigBrady.com>
56878             Bruno Haible  <bruno@clisp.org>
56880         Improve cross-compilation guesses for uClibc.
56881         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
56882         that uClibc does not have the glibc bug.
56883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
56884         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
56886 2010-12-14  Eric Blake  <eblake@redhat.com>
56888         configmake: provide fallbacks for oldest supported autotools
56889         * m4/configmake.m4: New file.
56890         * modules/configmake (Files): Ship it.
56891         (configure.ac): Use it to guarantee fallbacks.
56893 2010-12-13  Pádraig Brady  <P@draigBrady.com>
56895         read-file: Improve handling of large files
56896         * lib/read-file.c (fread_file): Minimize realloc()s
56897         for regular files, and better manage sizes around SIZE_MAX.
56899 2010-12-13  Eric Blake  <eblake@redhat.com>
56901         cloexec, fcntl: relax license
56902         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
56903         consent from all contributors.
56904         * modules/fcntl (License): Likewise.
56906 2010-12-10  Bruno Haible  <bruno@clisp.org>
56908         Tests for module 'pipe-posix'.
56909         * modules/pipe-posix-tests: New file.
56910         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
56912 2010-12-10  Bruno Haible  <bruno@clisp.org>
56914         pipe-posix: Make it work in C++ mode.
56915         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
56916         (pipe): Use common idiom, not a macro definition.
56917         * lib/pipe.c: New file.
56918         * m4/pipe.m4: New file.
56919         * modules/pipe-posix (Description): Enhance.
56920         (Files): Add lib/pipe.c, m4/pipe.m4.
56921         (configure.ac): Invoke gl_FUNC_PIPE.
56922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
56923         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
56924         * tests/test-unistd-c++.cc: Check the signature of pipe.
56926 2010-12-10  Bruno Haible  <bruno@clisp.org>
56928         Rename module 'pipe' to 'spawn-pipe'.
56929         * modules/spawn-pipe: New file, renamed from modules/pipe.
56930         (Files, configure.ac, Makefile.am): Update.
56931         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
56932         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
56933         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
56934         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
56935         "spawn-pipe.h" instead of "pipe.h".
56936         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
56937         to gl_SPAWN_PIPE.
56938         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
56939         (Files, Makefile.am): Update.
56940         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
56941         Update.
56942         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
56943         Include "spawn-pipe.h" instead of "pipe.h".
56944         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
56945         * lib/javacomp.c: Likewise.
56946         * lib/javaversion.c: Likewise.
56947         * lib/pipe-filter-gi.c: Likewise.
56948         * lib/pipe-filter-ii.c: Likewise.
56949         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
56950         * modules/javacomp (Depends-on): Likewise.
56951         * modules/javaversion (Depends-on): Likewise.
56952         * modules/pipe-filter-gi (Depends-on): Likewise.
56953         * modules/pipe-filter-ii (Depends-on): Likewise.
56954         * MODULES.html.sh (Executing programs): Update.
56955         * NEWS: Mention the change.
56957 2010-12-10  Eric Blake  <eblake@redhat.com>
56959         pipe-posix: new module
56960         * modules/pipe-posix: New file.
56961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
56962         (gl_UNISTD_H): Check for declaration.
56963         * modules/unistd (Makefile.am): Substitute it.
56964         * lib/unistd.in.h (pipe): Provide it for mingw.
56965         * doc/posix-functions/pipe.texi (pipe): Update documentation.
56966         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
56968 2010-12-07  Bruno Haible  <bruno@clisp.org>
56970         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
56971         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
56972         u8_strcmp_gnu.
56973         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
56975 2010-12-06  Bruno Haible  <bruno@clisp.org>
56977         Update internal documentation.
56978         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
56980 2010-12-04  Bruno Haible  <bruno@clisp.org>
56982         Put more information about failed tests into the test return codes.
56983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
56984         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
56985         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56987         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
56988         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56989         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56990         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
56991         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
56992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
56994         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56995         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
56996         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56997         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
56998         returns a bit mask.
56999         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
57000         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
57001         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
57002         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
57003         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
57004         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
57005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57007         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
57008         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
57009         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
57010         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
57011         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
57012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
57013         * m4/link.m4 (gl_FUNC_LINK): Likewise.
57014         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
57015         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
57016         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
57017         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57018         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
57019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57020         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
57021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
57022         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57023         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
57024         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
57025         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
57026         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
57027         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
57028         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
57029         gl_PRINTF_PRECISION): Likewise.
57030         * m4/regex.m4 (gl_REGEX): Likewise.
57031         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
57032         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57033         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
57034         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
57038         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
57039         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57040         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
57042         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
57043         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
57044         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57045         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57047         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
57048         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57050         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
57051         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
57052         enumerated value.
57053         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
57055 2010-12-04  Bruno Haible  <bruno@clisp.org>
57057         Update for Solaris 11 2010-11.
57058         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
57059         Express, released in November 2010.
57061 2010-12-04  Bruno Haible  <bruno@clisp.org>
57063         nproc: Relax license.
57064         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
57065         and Paul Eggert.
57066         Requested by Ludovic Courtès <ludo@gnu.org>.
57068 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
57070         utimecmp: fine-grained src to nearby coarse-grained dest
57072         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
57073         and the source is on a file system with higher-resolution time
57074         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
57075         not work, and the time stamps are close together, the algorithm to
57076         determine the exact resolution from the read-back mtime was buggy:
57077         it had a "!=" where it should have had an "==".  This bug has been
57078         in the code ever since it was introduced to gnulib.
57079         Problem reported by Dan Jacobson in
57080         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
57082 2010-11-30  Bruno Haible  <bruno@clisp.org>
57084         strerror_r-posix: Fix autoconf test.
57085         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
57087 2010-11-28  Bruno Haible  <bruno@clisp.org>
57088             Paul Eggert  <eggert@cs.ucla.edu>
57090         Tests for module 'getdomainname'.
57091         * modules/getdomainname-tests: New file.
57092         * tests/test-getdomainname.c: New file, based on
57093         tests/test-gethostname.c.
57095 2010-11-28  Bruno Haible  <bruno@clisp.org>
57096             Paul Eggert  <eggert@cs.ucla.edu>
57098         getdomainname: Use the system function when possible.
57099         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
57100         (getdomainname): Replace if needed. Provide the declaration if it is
57101         missing. Don't use _GL_CXXALIAS_SYS_CAST.
57102         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
57103         (getdomainname): When the system has getdomainname, call the system
57104         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
57105         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
57106         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
57107         found in libnsl. Look for the declaration also in <netdb.h>. Replace
57108         the function if its second argument is of type 'int' or if it is found
57109         in libnsl.
57110         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
57111         <sys/systeminfo.h> and sysinfo().
57112         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
57113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57114         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
57115         HAVE_GETDOMAINNAME.
57116         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
57117         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
57118         * doc/glibc-functions/getdomainname.texi: Document the problems with
57119         the getdomainname declaration.
57121 2010-11-28  Bruno Haible  <bruno@clisp.org>
57123         sys_socket: Ensure ss_family field on AIX.
57124         * lib/sys_socket.in.h (ss_family): New macro definition.
57125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
57126         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
57127         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
57128         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
57129         * modules/sys_socket (Makefile.am): Substitute
57130         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
57131         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
57133 2010-11-27  Bruno Haible  <bruno@clisp.org>
57135         readline: Improve configure output.
57136         * m4/readline.m4 (gl_FUNC_READLINE): Make the
57137         "checking for readline..." result understandable.
57139 2010-11-27  Bruno Haible  <bruno@clisp.org>
57141         *printf-posix: Detect a bug on Solaris 10/x86.
57142         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
57143         for floating-point output.
57144         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
57145         directive.
57146         * tests/test-snprintf-posix.h (test_function): Likewise.
57147         * tests/test-sprintf-posix.h (test_function): Likewise.
57148         * tests/test-vasprintf-posix.c (test_function): Likewise.
57149         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
57150         * doc/posix-functions/printf.texi: Likewise.
57151         * doc/posix-functions/snprintf.texi: Likewise.
57152         * doc/posix-functions/sprintf.texi: Likewise.
57153         * doc/posix-functions/vfprintf.texi: Likewise.
57154         * doc/posix-functions/vprintf.texi: Likewise.
57155         * doc/posix-functions/vsnprintf.texi: Likewise.
57156         * doc/posix-functions/vsprintf.texi: Likewise.
57157         * doc/glibc-functions/obstack_printf.texi: Likewise.
57158         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
57160 2010-11-27  Bruno Haible  <bruno@clisp.org>
57162         Fix link error when module libunistring-optional is in use.
57163         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
57164         * modules/striconveha-tests (Makefile.am): Likewise.
57166 2010-11-27  Bruno Haible  <bruno@clisp.org>
57168         regex: Mention link dependencies.
57169         * modules/regex (Link): New section.
57170         * modules/rpmatch (Link): Likewise.
57171         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
57173 2010-11-27  Bruno Haible  <bruno@clisp.org>
57175         ftoastr: Fix compilation error on Solaris.
57176         * lib/ftoastr.c: Include <config.h>.
57178 2010-11-27  Bruno Haible  <bruno@clisp.org>
57180         getloadavg: Update documentation.
57181         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
57183 2010-11-27  Bruno Haible  <bruno@clisp.org>
57185         sys_socket: Fix test whether the functions are declared.
57186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
57187         not <sys/select.h>.
57189 2010-11-27  Bruno Haible  <bruno@clisp.org>
57191         getpass: Make sure to get system declaration on some platforms.
57192         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
57193         gl_USE_SYSTEM_EXTENSIONS.
57194         * modules/getpass (Depends-on): Add extensions.
57196 2010-11-26  Bruno Haible  <bruno@clisp.org>
57198         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
57199         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
57200         'iconv' module is present.
57201         (ICONV_CONST): New macro.
57202         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
57203         ICONV_CONST.
57204         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
57205         set ICONV_CONST.
57206         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
57207         here.
57208         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
57209         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
57210         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
57211         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
57212         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
57213         present.
57215 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57217         ftoastr: comment fix
57218         * lib/ftoastr.c: "little" -> "little or no" in comment
57220 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
57222         stdint: port to GCC 4.3 + OSX + Octave
57223         On this platform, stdint.h is buggy and defines int64_t to long
57224         long int.  The replacement defined it to long int, causing
57225         problems with C++ style name mangling.  Instead, trust the system
57226         definition if INT64_MAX is defined, and likewise for the unsigned
57227         variant.   Problem reported by Jarno Rajahalme in
57228         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
57229         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
57230         and don't mess with int64_t and INT64_MAX in this case.
57231         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
57233 2010-11-24  Bruno Haible  <bruno@clisp.org>
57235         doc: Corrections regarding MacOS X 10.4 and 10.5.
57236         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
57237         MacOS X.
57238         Reported by Simon Josefsson.
57240 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
57242         Uninstall ".bin" files installed by relocwrapper.
57243         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
57244         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
57245         unless it is already there.
57247 2010-11-21  Bruno Haible  <bruno@clisp.org>
57249         Update for NetBSD 5.0.
57250         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
57251         NetBSD; the test fails on NetBSD 5.0.
57252         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
57253         about NetBSD.
57255 2010-11-21  Bruno Haible  <bruno@clisp.org>
57257         Update for HP-UX 11.23 and HP-UX 11.31.
57258         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
57259         HP-UX.
57261 2010-11-21  Bruno Haible  <bruno@clisp.org>
57263         Update for MacOS X 10.5.
57264         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
57265         MacOS X; the test fails on MacOS X 10.5.8.
57266         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
57267         about MacOS X.
57269 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
57271         bootstrap: add bootstrap_sync option.
57272         See discussion at
57273         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
57274         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
57275         * build-aux/bootstrap: Accept --bootstrap-sync to update
57276         bootstrap if it is not identical to the local gnulib's
57277         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
57278         enable this by default.  Accept --no-bootstrap-sync to disable
57279         it.
57281 2010-11-20  Bruno Haible  <bruno@clisp.org>
57283         Ensure that <features.h> is included before __GLIBC__ is tested.
57284         * lib/printf-parse.h: Include <features.h>.
57285         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
57286         Reported by Mike Frysinger <vapier@gentoo.org>.
57288         Ensure that <features.h> is included before __GLIBC__ is tested.
57289         * lib/wchar.in.h: Include <features.h>.
57290         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
57291         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
57292         Reported by Mike Frysinger <vapier@gentoo.org>.
57294         Ensure that <features.h> is included before __GLIBC__ is tested.
57295         * lib/arpa_inet.in.h: Include <features.h>.
57296         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
57297         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
57298         Reported by Mike Frysinger <vapier@gentoo.org>.
57300         Ensure that <features.h> is included before __GLIBC__ is tested.
57301         * build-aux/link-warning.h: Include <features.h>.
57302         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
57303         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
57304         Reported by Mike Frysinger <vapier@gentoo.org>.
57306         Ensure that <features.h> is included before __GLIBC__ is tested.
57307         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
57308         Reported by Mike Frysinger <vapier@gentoo.org>.
57310 2010-11-20  Bruno Haible  <bruno@clisp.org>
57312         memmem: Fix autoconf test.
57313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
57315 2010-11-20  Bruno Haible  <bruno@clisp.org>
57317         Port to uClibc.
57318         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
57319         * lib/fcntl.in.h: Likewise.
57320         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
57321         * lib/mbrtowc.c (mbrtowc): Likewise.
57322         * lib/relocatable.c (find_shared_library_fullname): Likewise.
57323         * lib/strerror_r.c: Likewise.
57324         * lib/unistr/u8-strnlen.c: Likewise.
57325         * lib/vasnprintf.c (decimal_point_char): Likewise.
57326         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57327         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
57328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
57329         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
57330         * tests/test-sigaction.c (handler, main): Likewise.
57331         * lib/freading.h: Treat uClibc like a non-glibc platform.
57332         * lib/freading.c: Likewise.
57333         * lib/gettext.h: Likewise.
57334         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
57335         Likewise.
57336         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
57337         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57338         * lib/propername.c (proper_name_utf8): Likewise.
57339         * lib/spawn.in.h: Likewise.
57340         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
57341         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
57342         mem_cd_iconveh_internal): Likewise.
57343         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
57344         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
57345         strstr, strcasestr): Likewise.
57346         * lib/unicodeio.c (unicode_to_mb): Likewise.
57347         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
57348         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
57349         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
57350         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
57351         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
57352         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
57353         * lib/unistr/u8-stpncpy.c: Likewise.
57354         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57355         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
57356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57358         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
57359         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
57360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
57361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
57362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
57363         Likewise.
57364         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
57365         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
57366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
57367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57369         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57370         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57371         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57372         * tests/test-getopt.h (OPTIND_MIN): Likewise.
57373         * tests/test-striconveha.c (main): Likewise.
57374         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57375         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
57376         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
57377         * doc/posix-functions/getline.texi: Likewise.
57378         Reported by Mike Frysinger <vapier@gentoo.org>.
57380 2010-11-20  Bruno Haible  <bruno@clisp.org>
57382         nproc: Fix condition.
57383         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
57384         HAVE_PTHREAD_AFFINITY_NP.
57386 2010-11-20  Bruno Haible  <bruno@clisp.org>
57388         Fix a comment.
57389         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
57391 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
57393         ftoastr: don't assume snprintf
57394         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
57395         Implement a subset of snprintf here, by using sprintf safely.
57396         * modules/ftoastr (Depends-on): Remove snprintf.
57398 2010-11-19  Jim Meyering  <meyering@redhat.com>
57400         test-rename.h: fix compilation failure
57401         * tests/test-rename.h (test_rename): Add omitted "}".
57403 2010-11-17  Jim Meyering  <meyering@redhat.com>
57405         maint.mk: add a URL discussing the no-@acronym policy
57406         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
57408 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
57410         ftoastr: depend on snprintf, improve comments
57411         * lib/ftoastr.c: Also mention Loitsch's draft.
57412         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
57413         needed in the current implementation, but it might simplify
57414         speeding up the code later.
57415         * modules/ftoastr: Depend on snprintf; this improves portability.
57416         Suggested by Bruno Haible in the same email.
57418         ftoastr: port to hosts lacking strtof and strtold
57419         Problem reported by Bruno Haible in
57420         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
57421         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
57422         environment and strtold (and presumably strtof) are not available.
57423         * modules/ftoastr (Files): Add m4/c-strtod.m4.
57424         (configure.ac): Require gl_C99_STRTOLD.
57426 2010-11-18  Bruno Haible  <bruno@clisp.org>
57428         c-strtold: Avoid link error on AIX 7.
57429         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
57430         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
57431         (gl_C_STRTOLD): Test whether strtold_l exists.
57432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57434 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57436         intprops: new macro INT_BITS_STRLEN_BOUND
57437         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
57438         ftoastr.h.  This exposes an internal of intprops.h that was formerly
57439         not exposed.  Also, it uses a slightly tighter bound than before;
57440         though this makes no practical difference, we might as well be as
57441         tight as we easily can.
57443         ftoastr: new module, for lossless conversion of floats to short strings
57444         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
57445         * modules/ftoastr: New files.
57447 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57449         bootstrap: port to Solaris sed
57450         * build-aux/bootstrap (get_version): Port to Solaris sed.
57451         See Ralf Wildenhues's note in
57452         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
57454 2010-11-14  Jim Meyering  <meyering@redhat.com>
57456         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
57457         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
57458         and move definition closer to sole use.
57460 2010-11-13  Jim Meyering  <meyering@redhat.com>
57462         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
57463         Now we require at least autoconf-2.59, which means the work-around
57464         is no longer needed.
57465         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
57466         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
57467         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57468         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57469         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57471 2010-11-13  Bruno Haible  <bruno@clisp.org>
57473         rename, renameat: Avoid test failures at NFS mounted locations.
57474         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
57475         functions.
57476         (test_rename): Use assert_nonexistent.
57477         * tests/test-rename.c: Include <dirent.h>.
57478         * tests/test-renameat.c: Likewise.
57479         Reported by Gary V. Vaughan <gary@gnu.org>.
57481         rename, renameat: Document Linux bug with NFS
57482         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
57483         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
57484         * doc/posix-functions/renameat.texi: Likewise.
57485         Suggested by Eric Blake.
57487 2010-11-13  Bruno Haible  <bruno@clisp.org>
57489         rename test: Add comments.
57490         * tests/test-rename.h (test_rename): Add structure and comments.
57492 2010-11-13  Eric Blake  <eblake@redhat.com>
57494         maintainer-makefile: cover a few more files
57495         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
57496         scripts generated within C files, for libvirt.
57498 2010-11-13  Bruno Haible  <bruno@clisp.org>
57500         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
57501         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
57502         character, return the number of bytes that belong together, not always
57503         1.
57504         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
57505         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
57506         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
57507         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
57508         number of bytes of an invalid character.
57509         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
57510         (main): Invoke it.
57511         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
57512         results.
57513         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
57514         malformed byte sequences.
57515         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
57516         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
57517         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
57518         Reported by Ben Pfaff and Paolo Bonzini.
57520 2010-11-13  Bruno Haible  <bruno@clisp.org>
57522         openat: Work around glibc bug with fchownat() and empty file names.
57523         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
57524         (gl_FUNC_FCHOWNAT): Invoke it.
57525         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
57526         * doc/posix-functions/fchownat.texi: Document the glibc bug.
57527         Reported by Gary V. Vaughan <gary@gnu.org>.
57529 2010-11-13  Bruno Haible  <bruno@clisp.org>
57531         openat: Ensure autoconf macro ordering.
57532         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
57533         gl_USE_SYSTEM_EXTENSIONS.
57534         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
57536 2010-11-13  Bruno Haible  <bruno@clisp.org>
57538         Update comments.
57539         * lib/unistr/u8-check.c: Update file name in comments.
57540         * lib/unistr/u8-mblen.c: Likewise.
57541         * lib/unistr/u8-prev.c: Likewise.
57542         * lib/unistr/u8-strmblen.c: Likewise.
57543         * lib/unistr/u8-strmbtouc.c: Likewise.
57545 2010-11-13  Jim Meyering  <meyering@redhat.com>
57547         tests: avoid test failure on Solaris 10 due to lack of PATH export
57548         * tests/test-update-copyright.sh: Don't forget to export PATH.
57550         init.sh: ensure that IFS is defined, just in case...
57551         * tests/init.sh (setup_): Ensure that IFS is defined,
57552         so that saving and restoring it works as expected.  This
57553         appears to be useful at least for an old version of dash
57554         from a long time ago (RH 6).  See here for details:
57555         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
57557         maint.mk: tighten "test a == b" check
57558         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
57559         test to files that contain something like #!/bin/sh.
57560         Without this, coreutils would get two false positives in
57561         the comments of C source files.
57563 2010-11-12  Eric Blake  <eblake@redhat.com>
57565         bootstrap: fix typo in previous attempt
57566         * build-aux/bootstrap (buildreq): Correct the grouping.
57567         Reported by Paul Eggert.
57569         maintainer-makefile: prohibit test x == x
57570         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
57571         Based on a report by Matthias Bolte.
57573         bootstrap: allow FreeBSD gzip
57574         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
57575         which has no '.' and goes to stderr.
57576         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
57577         Reported by Matthias Bolte.
57579         maintainer-makefile: check for i18n setup
57580         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
57581         will likely work.
57583 2010-11-12  Bruno Haible  <bruno@clisp.org>
57585         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
57586         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
57587         * lib/nanosleep.c (nanosleep): Likewise.
57589 2010-11-11  Bruno Haible  <bruno@clisp.org>
57591         fcntl-h: Fix for use of C++ on glibc systems.
57592         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57593         also on glibc systems in C++ mode.
57594         Reported by Gary V. Vaughan <gary@gnu.org>.
57596 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
57598         mknod: avoid false failure with dash
57599         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
57601 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57603         unlink: Fix "is it should" typo in diagnostic.
57604         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
57605         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
57607 2010-11-11  Bruno Haible  <bruno@clisp.org>
57609         Tests for module 'strerror_r-posix'.
57610         * modules/strerror_r-posix-tests: New file.
57611         * tests/test-strerror_r.c: New file.
57612         * tests/test-string-c++.cc: Check the signature of strerror_r.
57614         New module 'strerror_r-posix'.
57615         * lib/string.in.h (strerror_r): New declaration.
57616         * lib/strerror_r.c: New file.
57617         * m4/strerror_r.m4: New file.
57618         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
57619         of strerror_r.
57620         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
57621         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
57622         * modules/strerror_r-posix: New file.
57623         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
57624         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
57625         * doc/posix-functions/strerror_r.texi: Mention the new module and the
57626         portability problems.
57628 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
57630         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
57631         line is also considered for output. Quoted function name in shell
57632         command, so temporary files for functions like MyClass::operator()
57633         are removed correctly without errors.
57635 2010-11-09  Bruno Haible  <bruno@clisp.org>
57637         * doc/posix-functions/strerror.texi: List more failing platforms.
57639         * doc/posix-functions/strerror.texi: Add a comment.
57641 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57643         fdopendir: fix bug on MacOS X when low on file descriptors
57645         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
57646         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
57647         All callers changed.
57648         (fdopendir): Invoke save_cwd at the top level, not after using
57649         multiple dup() calls to use up file descriptors.  Then retry
57650         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
57651         less than the maximum number of open file descriptors, because
57652         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
57653         on Mac OS X 10.6.4 for tar 1.24
57654         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
57655         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
57656         and for tar 1.25
57657         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
57659 2010-11-07  Bruno Haible  <bruno@clisp.org>
57661         vasnprintf: Support I flag on glibc systems.
57662         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
57663         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
57664         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
57665         snprintf function.
57666         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
57667         glibc systems.
57668         * tests/test-vasnprintf-posix3.c: New file.
57669         * modules/vasnprintf-posix-tests (Files): Add it.
57670         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
57672 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57674         [html] Fix copy/paste bug: Use unique name for compiler warnings.
57675         * MODULES.html.sh: For compiler warnings, use name
57676         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
57678 2010-11-05  Eric Blake  <eblake@redhat.com>
57680         ceil, floor: avoid spurious failure with icc
57681         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
57682         [denormals-as-zero] when optimizing without -mieee-fp option.
57683         * tests/test-floorf2.c (floorf_reference): Likewise.
57684         * tests/test-ceilf1.c (dummy): New function.
57685         (main): Use it to outsmart icc's optimization.
57686         * tests/test-floorf1.c (dummy, main): Likewise.
57688         tests: require working signbit
57689         * modules/ceilf-tests (Depends-on): Add signbit.
57690         * modules/ceill-tests (Depends-on): Likewise.
57691         * modules/floorf-tests (Depends-on): Likewise.
57692         * modules/floorl-tests (Depends-on): Likewise.
57693         * modules/round-tests (Depends-on): Likewise.
57694         * modules/roundf-tests (Depends-on): Likewise.
57695         * modules/roundl-tests (Depends-on): Likewise.
57696         * modules/trunc-tests (Depends-on): Likewise.
57697         * modules/truncf-tests (Depends-on): Likewise.
57698         * modules/truncl-tests (Depends-on): Likewise.
57700         strtod: work around icc bug
57701         * lib/strtod.c (minus_zero): Define to working value.
57702         (strtod): Use it to avoid icc bug.
57704         copysign: enhance tests
57705         * modules/copysign-tests (Files): Add minus-zero.h.
57706         * tests/test-copysign.c (main): Also test zeros.
57708 2010-11-04  Eric Blake  <eblake@redhat.com>
57710         ceil, floor, round, trunc: enhance tests of -0
57711         * tests/test-ceilf1.c (main): Ensure correct sign of result.
57712         * tests/test-ceill.c (main): Likewise.
57713         * tests/test-floorf1.c (main): Likewise.
57714         * tests/test-floorl.c (main): Likewise.
57715         * tests/test-round1.c (main): Likewise.
57716         * tests/test-roundf1.c (main): Likewise.
57717         * tests/test-roundl.c (main): Likewise.
57718         * tests/test-trunc1.c (main): Likewise.
57719         * tests/test-truncf1.c (main): Likewise.
57720         * tests/test-truncl.c (main): Likewise.
57722 2010-11-04  Eric Blake  <eblake@redhat.com>
57724         frexp, tests: work around ICC bug with -zero
57725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
57726         works with more compilers.
57727         * tests/minus-zero.h: New file.
57728         * modules/ceilf-tests (Files): Include it.
57729         * modules/ceill-tests (Files): Likewise.
57730         * modules/floorf-tests (Files): Likewise.
57731         * modules/floorl-tests (Files): Likewise.
57732         * modules/frexp-nolibm-tests (Files): Likewise.
57733         * modules/frexp-tests (Files): Likewise.
57734         * modules/frexpl-nolibm-tests (Files): Likewise.
57735         * modules/frexpl-tests (Files): Likewise.
57736         * modules/isnan-tests (Files): Likewise.
57737         * modules/isnand-nolibm-tests (Files): Likewise.
57738         * modules/isnand-tests (Files): Likewise.
57739         * modules/isnanf-nolibm-tests (Files): Likewise.
57740         * modules/isnanf-tests (Files): Likewise.
57741         * modules/isnanl-nolibm-tests (Files): Likewise.
57742         * modules/isnanl-tests (Files): Likewise.
57743         * modules/round-tests (Files): Likewise.
57744         * modules/roundf-tests (Files): Likewise.
57745         * modules/roundl-tests (Files): Likewise.
57746         * modules/ldexpl-tests (Files): Likewise.
57747         * modules/signbit-tests (Files): Likewise.
57748         * modules/snprintf-posix-tests (Files): Likewise.
57749         * modules/sprintf-posix-tests (Files): Likewise.
57750         * modules/strtod-tests (Files): Likewise.
57751         * modules/trunc-tests (Files): Likewise.
57752         * modules/truncf-tests (Files): Likewise.
57753         * modules/truncl-tests (Files): Likewise.
57754         * modules/vsnprintf-posix-tests (Files): Likewise.
57755         * modules/vsprintf-posix-tests (Files): Likewise.
57756         * modules/vasnprintf-posix-tests (Files): Likewise.
57757         * modules/vasprintf-posix-tests (Files): Likewise.
57758         * tests/test-ceilf1.c (main): Use it.
57759         * tests/test-ceill.c (main): Likewise.
57760         * tests/test-floorf1.c (main): Likewise.
57761         * tests/test-floorl.c (main): Likewise.
57762         * tests/test-frexp.c (main): Likewise.
57763         * tests/test-frexpl.c (main): Likewise.
57764         * tests/test-isnan.c (main): Likewise.
57765         * tests/test-isnand.h (main): Likewise.
57766         * tests/test-isnanf.h (main): Likewise.
57767         * tests/test-isnanl.h (main): Likewise.
57768         * tests/test-ldexpl.c (main): Likewise.
57769         * tests/test-round.c (main): Likewise.
57770         * tests/test-roundf.c (main): Likewise.
57771         * tests/test-roundl.c (main): Likewise.
57772         * tests/test-signbit.c (test_signbitf, test_signbitd)
57773         (test_signbitl): Likewise.
57774         * tests/test-snprintf-posix.h (test_function): Likewise.
57775         * tests/test-sprintf-posix.h (test_function): Likewise.
57776         * tests/test-strtod.c (main): Likewise.
57777         * tests/test-trunc1.c (main): Likewise.
57778         * tests/test-truncf1.c (main): Likewise.
57779         * tests/test-truncl.c (main): Likewise.
57781         isnanl: work around icc bug
57782         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
57784 2010-11-03  Eric Blake  <eblake@redhat.com>
57786         tests: fix compiler warnings
57787         * tests/test-getopt.h (test_getopt): Fix condition.
57788         * tests/test-getopt_long.h (test_getopt_long): Likewise.
57789         * tests/test-pipe2.c (main): Likewise.
57790         * tests/test-quotearg-simple.c (main): Avoid icc warning.
57792         utimens: fix broken m4 test
57793         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
57795 2010-10-28  Bruno Haible  <bruno@clisp.org>
57797         posix_spawn*, getdtablesize: Relax license.
57798         * modules/posix_spawn (License): Change to LGPLv2+.
57799         * modules/posix_spawnp (License): Likewise.
57800         * modules/posix_spawn-internal (License): Likewise.
57801         * modules/posix_spawnattr_init (License): Likewise.
57802         * modules/posix_spawnattr_getflags (License): Likewise.
57803         * modules/posix_spawnattr_setflags (License): Likewise.
57804         * modules/posix_spawnattr_getpgroup (License): Likewise.
57805         * modules/posix_spawnattr_setpgroup (License): Likewise.
57806         * modules/posix_spawnattr_getschedparam (License): Likewise.
57807         * modules/posix_spawnattr_setschedparam (License): Likewise.
57808         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
57809         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
57810         * modules/posix_spawnattr_getsigdefault (License): Likewise.
57811         * modules/posix_spawnattr_setsigdefault (License): Likewise.
57812         * modules/posix_spawnattr_getsigmask (License): Likewise.
57813         * modules/posix_spawnattr_setsigmask (License): Likewise.
57814         * modules/posix_spawnattr_destroy (License): Likewise.
57815         * modules/posix_spawn_file_actions_init (License): Likewise.
57816         * modules/posix_spawn_file_actions_addclose (License): Likewise.
57817         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
57818         * modules/posix_spawn_file_actions_addopen (License): Likewise.
57819         * modules/posix_spawn_file_actions_destroy (License): Likewise.
57820         * modules/getdtablesize (License): Likewise.
57821         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
57823 2010-10-26  Bruno Haible  <bruno@clisp.org>
57825         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
57826         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
57827         Cygwin and mingw.
57828         Suggested by Eric Blake.
57830 2010-10-26  Bruno Haible  <bruno@clisp.org>
57832         stdio: Work around compilation error due to renameat() on Solaris 10.
57833         * lib/stdio.in.h: Include <unistd.h> on Solaris.
57834         * lib/renameat.c: Don't include <unistd.h> here.
57835         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
57836         Reported by Paul Eggert and Eric Blake.
57838 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57840         renameat: port to Solaris 10, which declares renameat in unistd.h
57842         * lib/renameat.c: Include unistd.h before stdio.h, because
57843         Solaris 10 declares renameat in unistd.h.  Problem encountered
57844         when building GNU tar 1.24 on Solaris 10.
57846 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
57848         fdopendir: fix C89 compilation
57849         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
57850         compilers.
57852 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
57854         inttostr: simplify by removing unnecessary redundancy
57855         * lib/anytostr.c: Don't include verify.h.
57856         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
57857         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
57858         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
57859         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
57860         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
57861         Likewise.
57862         * modules/inttostr (Depends-on): Remove 'verify'.
57864 2010-10-23  Bruno Haible  <bruno@clisp.org>
57866         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
57867         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
57868         Reported by Eric Blake.
57870 2010-10-23  Bruno Haible  <bruno@clisp.org>
57872         Tests: Fix LOCALE_JA on MirBSD 10.
57873         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
57874         to an UTF-8 locale.
57875         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
57876         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57877         Reported by Eric Blake.
57879 2010-10-21  Bruno Haible  <bruno@clisp.org>
57881         nl_langinfo test: Avoid test failure on NetBSD 5.
57882         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
57883         Reported by Eric Blake.
57885 2010-10-21  Eric Blake  <eblake@redhat.com>
57887         c-stack: work around libsigsegv 2.8 bug
57888         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
57889         overflow on at least PowerPC64.
57891 2010-10-17  Bruno Haible  <bruno@clisp.org>
57893         userspec: Drop redundant file.
57894         * modules/userspec (Files): Remove lib/inttostr.h.
57896 2010-10-17  Bruno Haible  <bruno@clisp.org>
57898         nl_langinfo tests: Silence some warnings.
57899         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
57900         Reported by Jim Meyering.
57902 2010-10-17  Bruno Haible  <bruno@clisp.org>
57904         Make use of GCC's attribute __alloc_size__.
57905         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
57906         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
57907         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
57908         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
57909         __alloc_size__.
57910         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57911         Suggested by Jim Meyering.
57913 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
57915         bootstrap: anchor .gitignore entries.
57916         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
57917         with...
57918         (insert_vc_ignore): ... this new function, which prepends `/' to
57919         all .gitignore entries before passing them to
57920         insert_sorted_if_absent.
57922 2010-10-16  Bruno Haible  <bruno@clisp.org>
57924         nextafter: Fix configure check.
57925         * modules/nextafter (configure.ac): Correct expected prototype.
57927 2010-10-16  Bruno Haible  <bruno@clisp.org>
57929         termios: Update documentation.
57930         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
57932 2010-10-16  Bruno Haible  <bruno@clisp.org>
57934         tests: Make them compile with TinyCC.
57935         * tests/test-strstr.c (main): Remove parentheses around array
57936         initializer.
57938 2010-10-15  Eric Blake  <eblake@redhat.com>
57940         ignore-value: make header idempotent
57941         * lib/ignore-value.h: Add double-inclusion guards.
57942         Reported by Stefan Berger.
57944 2010-10-15  Jim Meyering  <meyering@redhat.com>
57946         GNUmakefile: handle "stable" target, not "major"
57947         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
57948         lists in maint.mk and announce-gen.  Without this, "make stable"
57949         would fail to ensure that $(VERSION) is up to date.
57951 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
57953         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
57954         & co.
57956 2010-10-14  Bruno Haible  <bruno@clisp.org>
57958         vasnprintf: Don't set errno to 0.
57959         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
57960         block that sets it to 0.
57961         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
57963 2010-10-14  Bruno Haible  <bruno@clisp.org>
57965         socketlib: Fix.
57966         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
57967         gl_PREREQ_SYS_H_WINSOCK2.
57968         Reported by Ian Beckwith <ianb@erislabs.net>.
57970 2010-10-13  Jim Meyering  <meyering@redhat.com>
57972         test-select-stdin.c: avoid warn_unused_result warnings
57973         * tests/test-select-stdin.c: Include "macros.h".
57974         ASSERT that read and fflush succeed.
57976 2010-10-13  Jim Meyering  <meyering@redhat.com>
57978         git-version-gen: do require git-VC'd files in cwd
57979         * build-aux/git-version-gen: Reject a git version string
57980         if there are no commits associated with the current directory.
57981         This avoids an unlikely false-positive (unrelated dir whose parent
57982         repository also contains a tag matching v*), as pointed out
57983         by Giuseppe Scrivano in
57984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
57986 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57988         argv-iter: omit nonconforming declaration
57989         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
57990         enum arg_iter_err declaration, which doesn't conform to C99.
57991         Solaris 10 cc warns about this.
57993 2010-10-13  Eric Blake  <eblake@redhat.com>
57995         termios: fix compilation on mingw
57996         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
57997         (gl_TERMIOS_H): Adjust it on mingw.
57998         * modules/termios (Makefile.am): Substitute new key.
57999         * lib/termios.in.h (includes): Make include_next conditional.
58000         * doc/posix-headers/termios.texi (termios.h): Update
58001         documentation.
58002         Reported by Daniel P. Berrange.
58004 2010-10-13  Jim Meyering  <meyering@redhat.com>
58006         git-version-gen: don't require that .git/ be in the current dir
58007         * build-aux/git-version-gen: Adjust this script so that it works
58008         when run from any working directory beneath the top-level .git/-
58009         containing directory.  Inspired by a patch from Giuseppe Scrivano,
58010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
58012         test-select: avoid warn_unused_result warnings
58013         * tests/test-select.c: Include "macros.h".
58014         ASSERT that each call to read, write, and pipe succeeds.
58015         While not technically required, also check each "close".
58016         * modules/select-tests (Files): Add tests/macros.h.
58018         test-symlinkat: remove declaration of unused local
58019         * tests/test-symlinkat.c (main): Remove unused local, "buf".
58021         test-inttostr: avoid shadowing warnings
58022         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
58023         and use malloc rather than the stack for the same reason as
58024         mentioned in the comment justifying the other allocation.
58026 2010-10-11  Bruno Haible  <bruno@clisp.org>
58028         stdlib: Allow multiple gnulib generated replacements to coexist.
58029         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
58030         Reported by Sam Steingold <sds@gnu.org>.
58032 2010-10-11  Jim Meyering  <meyering@redhat.com>
58034         fix a documentation typo
58035         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
58037 2010-10-11  Eric Blake  <eblake@redhat.com>
58039         futimens: work around Solaris 11 bug
58040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
58041         * tests/test-futimens.h (test_futimens): Enhance, rather than
58042         weaken test.
58043         * doc/posix-functions/futimens.texi (futimens): Document the bug.
58045 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58047         Indentation.
58048         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
58049         higher-level operators more to the left.
58051 2010-10-11  Jim Meyering  <meyering@redhat.com>
58053         test-futimens: avoid unwarranted test failure on Solaris 5.11
58054         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
58055         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
58056         because it tries to dereference the NULL name argument.
58058 2010-10-11  Bruno Haible  <bruno@clisp.org>
58060         Indentation.
58061         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
58062         indentation.
58064 2010-10-11  Jim Meyering  <meyering@redhat.com>
58066         spawn.in.h: make indentation consistent with parentheses
58067         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
58068         Make indentation consistent with parentheses.
58070 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
58072         Fix mismatched parens in previous commit
58073         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
58074         parens.
58076 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58078         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
58080         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
58081         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
58082         * lib/malloca.c: Include "verify.h".
58083         (verify1): Remove, replacing with a verify call.
58084         * lib/relocwrapper.c (verify1): Likewise.
58085         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
58086         Likewise.
58087         * modules/malloca (Depends-on): Add 'verify'.
58088         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
58089         * modules/vasnprintf (Depends-on): Add 'verify'.
58090         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58091         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58092         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58093         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58096         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58098         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
58100         Formerly the style was sometimes 2*X - 1, because the C standard
58101         was wrongly thought to disallow ?: in integral constant expressions.
58102         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
58103         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
58104         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58105         * lib/stdint.in.h (_verify_intmax_size): Likewise.
58106         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
58107         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
58108         verify that time_t cannot be floating.
58110 2010-10-08  Eric Blake  <eblake@redhat.com>
58112         time: enforce recent POSIX ruling that time_t is integral
58113         * lib/time.in.h (__time_t_must_be_integral): Detect any
58114         problematic systems, allowing the rest of gnulib to assume POSIX.
58116 2010-10-08  Jim Meyering  <meyering@redhat.com>
58118         fdopendir: fix a bug on systems lacking openat and /proc support
58119         OpenBSD 4.7 is one such system.  The most noticeable effect was
58120         failure of any application making nontrivial use of fts: rm, du,
58121         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
58122           ./rm: traversal failed: `a': Bad file descriptor
58123         Debugging that, you see that even though FD 6 was closed just
58124         prior to the opendir call in fd_clone_opendir, its resulting
58125         dir->dd_fd was 8, rather than the expected value of 6:
58127         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
58128         93                close (fd);
58129         (gdb) n
58130         94                dir = fd_clone_opendir (dupfd);
58131         (gdb) n
58132         95                saved_errno = errno;
58133         (gdb) p dir->dd_fd
58134         $11 = 8
58136         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
58137         The problem is that on OpenBSD, fd_clone_opendir has to resort
58138         to using the old-style save/restore CWD mechanism, due to its
58139         lack of openat/proc support, and *that* would steal the FD (6)
58140         that opendir was supposed to use.
58142         The fix is to squirrel away the desired FD so that save_cwd uses a
58143         different one, and then free the dest FD right before calling opendir.
58144         That guarantees opendir will use the required file descriptor.
58146         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
58148 2010-10-08  Bruno Haible  <bruno@clisp.org>
58150         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
58151         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
58153 2010-10-08  Bruno Haible  <bruno@clisp.org>
58155         nanosleep: Make replacement POSIX compliant.
58156         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
58157         is out of range.
58158         Reported by Jim Meyering.
58160 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58162         bootstrap: add hook for altering gnulib.mk, for Bison
58163         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
58164         the Bison bootstrapping process can rewrite file names and variables
58165         in this file before later parts of 'bootstrap' use the file.
58166         Bison wants to include lib/gnulib.mk from the top-level makefile,
58167         so it needs the file names in this file to be relative to the top
58168         level, not relative to lib; plus it needs variable names to be
58169         rewritten.
58170         (slurp): Use the new function.
58172         bootstrap: reformat for readability
58173         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
58175 2010-10-08  Eric Blake  <eblake@redhat.com>
58177         docs: update cygwin progress
58178         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
58179         1.7.7.
58180         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
58181         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
58182         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
58183         * doc/posix-functions/carg.texi (carg): Likewise.
58184         * doc/posix-functions/cargf.texi (cargf): Likewise.
58185         * doc/posix-functions/casin.texi (casin): Likewise.
58186         * doc/posix-functions/casinf.texi (casinf): Likewise.
58187         * doc/posix-functions/casinh.texi (casinh): Likewise.
58188         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
58189         * doc/posix-functions/catan.texi (catan): Likewise.
58190         * doc/posix-functions/catanf.texi (catanf): Likewise.
58191         * doc/posix-functions/catanh.texi (catanh): Likewise.
58192         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
58193         * doc/posix-functions/ccos.texi (ccos): Likewise.
58194         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
58195         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
58196         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
58197         * doc/posix-functions/cexp.texi (cexp): Likewise.
58198         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
58199         * doc/posix-functions/cimag.texi (cimag): Likewise.
58200         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
58201         * doc/posix-functions/clog.texi (clog): Likewise.
58202         * doc/posix-functions/clogf.texi (clogf): Likewise.
58203         * doc/posix-functions/conj.texi (conj): Likewise.
58204         * doc/posix-functions/conjf.texi (conjf): Likewise.
58205         * doc/posix-functions/cpow.texi (cpow): Likewise.
58206         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
58207         * doc/posix-functions/cproj.texi (cproj): Likewise.
58208         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
58209         * doc/posix-functions/creal.texi (creal): Likewise.
58210         * doc/posix-functions/crealf.texi (crealf): Likewise.
58211         * doc/posix-functions/csin.texi (csin): Likewise.
58212         * doc/posix-functions/csinf.texi (csinf): Likewise.
58213         * doc/posix-functions/csinh.texi (csinh): Likewise.
58214         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
58215         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
58216         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
58217         * doc/posix-functions/ctan.texi (ctan): Likewise.
58218         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
58219         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
58220         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
58221         * doc/posix-headers/complex.texi (complex.h): Likewise.
58223 2010-10-07  Jim Meyering  <meyering@redhat.com>
58225         parse-datetime: avoid compilation failure on OpenBSD 4.7
58226         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
58227         This works around a compilation failure on OpenBSD 4.7:
58228         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
58230 2010-10-07  Eric Blake  <eblake@redhat.com>
58232         docs: update cygwin progress
58233         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
58234         1.7.6.
58235         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
58236         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
58237         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
58238         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
58239         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
58240         Likewise.
58241         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
58242         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
58243         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
58244         Likewise.
58245         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
58246         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
58247         Likewise.
58248         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
58249         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
58250         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
58251         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
58252         Likewise.
58253         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
58254         Likewise.
58255         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
58257         docs: update parse-datetime history
58258         * doc/parse-datetime.texi (Authors of parse_datetime): Better
58259         documentation of this function's history and alternatives.
58261         cygwin: use more robust version check
58262         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
58263         exclude an eventual cygwin 1.9.1.
58264         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
58266         (gl_FUNC_STRCASESTR): Likewise.
58267         Reported by Bruno Haible.
58269 2010-10-06  Bruno Haible  <bruno@clisp.org>
58271         string, sys_select: Avoid #including large headers unless necessary.
58272         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
58273         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
58274         OSF/1, BeOS, Haiku.
58275         Reported by Jim Meyering.
58277 2010-10-05  Eric Blake  <eblake@redhat.com>
58279         memmem, strstr, strcasestr: fix bug with long periodic needle
58280         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
58281         periodic needle having false positive.
58282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
58283         and cygwin 1.7.7.
58284         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
58285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
58286         (gl_FUNC_STRCASESTR): Likewise.
58287         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
58288         * tests/test-memmem.c (main): Expose the bug.
58289         * tests/test-strcasestr.c (main): Likewise.
58290         * tests/test-strstr.c (main): Likewise.
58291         * tests/test-c-strcasestr.c (main): Likewise.
58292         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
58293         * doc/posix-functions/strstr.texi (strstr): Likewise.
58294         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58295         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
58297 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58299         parse-datetime: do some more renaming
58300         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
58301         parse_datetime, not get_date.  Mention the renaming.
58302         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
58303         in comments.
58304         * m4/bison.m4: Likewise.
58306 2010-10-05  Eric Blake  <eblake@redhat.com>
58308         parse-datetime: better name than get_date
58309         * NEWS: Reword the deprecation notice.
58310         * modules/get_date: Rename to modules/parse-datetime.
58311         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
58312         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
58313         * lib/get_date.y: Rename to lib/parse-datetime.y.
58314         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
58315         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
58316         * doc/getdate.texi: Provide fallback wrapper.
58317         * lib/getdate.h: Move guts, and wrap...
58318         * lib/parse-datetime.h: ...new file.
58319         * lib/parse-datetime.y (get_date): Rename...
58320         (parse_datetime): ...to this.
58321         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
58322         (gl_PARSE_DATETIME): ...to this.
58323         * doc/posix-functions/getdate.texi (get_date): Provide fallback
58324         documentation.
58325         * modules/getdate (Files): Provide fallback docs and header.
58326         (Notice, Depends-on): Update references.
58327         * tests/test-parse-datetime.c: Likewise.
58328         * DEPENDENCIES: Likewise.
58329         * MODULES.html.sh (Date and time <time.h>): Likewise.
58330         * doc/parse-datetime.texi (Date input formats)
58331         (Authors of parse_datetime): Likewise.
58332         * modules/parse-datetime (Files, configure.ac, Makefile.am)
58333         (Include): Likewise.
58334         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
58335         * gnulib-tool: Likewise.
58336         * m4/bison.m4 (gl_BISON): Likewise.
58337         Suggested by Bruno Haible.
58339 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58341         more ports to Solaris tr, which needs [] around ranges
58342         * gnulib-tool: Solaris tr needs [] around ranges.
58343         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58344         * tests/test-pipe-filter-gi1.c (main): Likewise.
58345         * tests/test-pipe-filter-ii1.c (main): Likewise.
58347 2010-10-05  Eric Blake  <eblake@redhat.com>
58349         bootstrap: fix Solaris regression
58350         * build-aux/bootstrap (check_versions): Solaris tr still needs []
58351         around ranges.
58352         Reported by Pádraig Brady.
58354         bootstrap: work with pkg-config
58355         * build-aux/bootstrap (check_versions): Also transliterate - in
58356         prerequisite name.
58357         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
58358         prerequisites that were already found, to avoid confusion.
58359         Reported by Justin Clift.
58361         faccessat: remove unused wrappers
58362         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
58363         presence of these wrappers dragged in -lgen on Solaris.
58364         Reported by Clemens Brogi; fix suggested by Paul Eggert.
58366 2010-10-05  Jim Meyering  <meyering@redhat.com>
58368         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
58369         * Makefile (sc_pragma_columns): New syntax-check rule.
58371 2010-10-04  Bruno Haible  <bruno@clisp.org>
58373         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
58374         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
58375         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
58376         Reported by Bruce Korb and Eric Blake.
58378 2010-10-04  Bruno Haible  <bruno@clisp.org>
58380         threadlib: Make option --with-libpth-prefix work.
58381         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
58382         use $LIBPTH, not just -lpth.
58384 2010-10-04  Bruno Haible  <bruno@clisp.org>
58386         Avoid line length limitation from HP NonStop system header files.
58387         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
58388         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
58389         * lib/ctype.in.h: Likewise.
58390         * lib/dirent.in.h: Likewise.
58391         * lib/errno.in.h: Likewise.
58392         * lib/fcntl.in.h: Likewise.
58393         * lib/float.in.h: Likewise.
58394         * lib/getopt.in.h: Likewise.
58395         * lib/iconv.in.h: Likewise.
58396         * lib/inttypes.in.h: Likewise.
58397         * lib/langinfo.in.h: Likewise.
58398         * lib/locale.in.h: Likewise.
58399         * lib/math.in.h: Likewise.
58400         * lib/netdb.in.h: Likewise.
58401         * lib/netinet_in.in.h: Likewise.
58402         * lib/poll.in.h: Likewise.
58403         * lib/pthread.in.h: Likewise.
58404         * lib/pty.in.h: Likewise.
58405         * lib/sched.in.h: Likewise.
58406         * lib/se-selinux.in.h: Likewise.
58407         * lib/search.in.h: Likewise.
58408         * lib/signal.in.h: Likewise.
58409         * lib/spawn.in.h: Likewise.
58410         * lib/stdarg.in.h: Likewise.
58411         * lib/stddef.in.h: Likewise.
58412         * lib/stdint.in.h: Likewise.
58413         * lib/stdio.in.h: Likewise.
58414         * lib/stdlib.in.h: Likewise.
58415         * lib/string.in.h: Likewise.
58416         * lib/strings.in.h: Likewise.
58417         * lib/sys_file.in.h: Likewise.
58418         * lib/sys_ioctl.in.h: Likewise.
58419         * lib/sys_select.in.h: Likewise.
58420         * lib/sys_socket.in.h: Likewise.
58421         * lib/sys_stat.in.h: Likewise.
58422         * lib/sys_time.in.h: Likewise.
58423         * lib/sys_times.in.h: Likewise.
58424         * lib/sys_utsname.in.h: Likewise.
58425         * lib/sys_wait.in.h: Likewise.
58426         * lib/sysexits.in.h: Likewise.
58427         * lib/termios.in.h: Likewise.
58428         * lib/time.in.h: Likewise.
58429         * lib/unistd.in.h: Likewise.
58430         * lib/wchar.in.h: Likewise.
58431         * lib/wctype.in.h: Likewise.
58432         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
58433         * modules/ctype (Makefile.am): Likewise.
58434         * modules/dirent (Makefile.am): Likewise.
58435         * modules/errno (Makefile.am): Likewise.
58436         * modules/fcntl-h (Makefile.am): Likewise.
58437         * modules/float (Makefile.am): Likewise.
58438         * modules/getopt-posix (Makefile.am): Likewise.
58439         * modules/iconv-h (Makefile.am): Likewise.
58440         * modules/inttypes (Makefile.am): Likewise.
58441         * modules/langinfo (Makefile.am): Likewise.
58442         * modules/locale (Makefile.am): Likewise.
58443         * modules/math (Makefile.am): Likewise.
58444         * modules/netdb (Makefile.am): Likewise.
58445         * modules/netinet_in (Makefile.am): Likewise.
58446         * modules/poll-h (Makefile.am): Likewise.
58447         * modules/pthread (Makefile.am): Likewise.
58448         * modules/pty (Makefile.am): Likewise.
58449         * modules/sched (Makefile.am): Likewise.
58450         * modules/search (Makefile.am): Likewise.
58451         * modules/selinux-h (Makefile.am): Likewise.
58452         * modules/signal (Makefile.am): Likewise.
58453         * modules/spawn (Makefile.am): Likewise.
58454         * modules/stdarg (Makefile.am): Likewise.
58455         * modules/stddef (Makefile.am): Likewise.
58456         * modules/stdint (Makefile.am): Likewise.
58457         * modules/stdio (Makefile.am): Likewise.
58458         * modules/stdlib (Makefile.am): Likewise.
58459         * modules/string (Makefile.am): Likewise.
58460         * modules/strings (Makefile.am): Likewise.
58461         * modules/sys_file (Makefile.am): Likewise.
58462         * modules/sys_ioctl (Makefile.am): Likewise.
58463         * modules/sys_select (Makefile.am): Likewise.
58464         * modules/sys_socket (Makefile.am): Likewise.
58465         * modules/sys_stat (Makefile.am): Likewise.
58466         * modules/sys_time (Makefile.am): Likewise.
58467         * modules/sys_times (Makefile.am): Likewise.
58468         * modules/sys_utsname (Makefile.am): Likewise.
58469         * modules/sys_wait (Makefile.am): Likewise.
58470         * modules/sysexits (Makefile.am): Likewise.
58471         * modules/termios (Makefile.am): Likewise.
58472         * modules/time (Makefile.am): Likewise.
58473         * modules/unistd (Makefile.am): Likewise.
58474         * modules/wchar (Makefile.am): Likewise.
58475         * modules/wctype (Makefile.am): Likewise.
58477 2010-10-04  Bruno Haible  <bruno@clisp.org>
58479         read-file tests: Avoid a test failure on NonStop Kernel.
58480         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
58481         a regular file.
58482         Reported by Joachim Schmitz <schmitz@hp.com>.
58484 2010-10-03  Bruno Haible  <bruno@clisp.org>
58486         gnulib-tool: Fixes for --create-testdir with --libtool.
58487         * gnulib-tool (func_get_automake_snippet): Don't augment
58488         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
58489         an executable.
58490         (func_create_testdir): Handle module 'alloca' like func_import.
58491         Reported by Bruce Korb <bruce.korb@gmail.com>.
58493 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58495         Avoid some lines longer than 80 characters.
58496         * lib/stdint.in.h: Break long comment lines.
58497         * lib/math.in.h: Likewise.
58498         (_GL_NUM_UINT_WORDS): New macro, for readability.
58499         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
58500         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
58501         * lib/stdlib.in.h: Likewise.
58502         * lib/spawn.in.h: Likewise.
58503         * lib/sys_socket.in.h: Update an URL.
58504         * lib/sys_stat.in.h: Break long line.
58506 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
58508         Improve pmccabe2html.
58509         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
58510         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
58511         when the sources change. Remove the line in the HTML about "Used
58512         ranges" (which implied that there might be other unused ranges),
58513         rename "Resume" to "Summary" (easier to understand for more users).
58514         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
58515         styles, and some unnecessary blank lines.
58517 2010-10-03  Bruno Haible  <bruno@clisp.org>
58518             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
58520         acl: Add support for ACLs on NonStop Kernel.
58521         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
58522         Check whether the function aclsort() exists.
58523         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
58524         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
58525         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58526         (acl_nontrivial [HAVE_ACLSORT]: New function.
58527         (file_has_acl): Implement for NonStop Kernel.
58528         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58529         (qset_acl): Implement for NonStop Kernel.
58530         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
58531         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
58532         (main): Implement for NonStop Kernel.
58533         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
58534         Kernel. Handle this flavor.
58535         * tests/test-set-mode-acl.sh: Likewise.
58536         * tests/test-copy-acl.sh: Likewise.
58537         * tests/test-copy-file.sh: Likewise.
58539 2010-10-03  Bruno Haible  <bruno@clisp.org>
58541         Info about ACLs on NonStop Kernel.
58542         * doc/acl-resources.txt: Add info about NonStop Kernel.
58543         References by Joachim Schmitz <schmitz@hp.com>.
58545 2010-10-02  Bruno Haible  <bruno@clisp.org>
58547         Define missing EDQUOT on NonStop Kernel.
58548         * lib/errno.in.h (EDQUOT): Assign a value if missing.
58549         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
58550         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
58551         missing.
58552         * doc/posix-headers/errno.texi: Mention the NSK bug.
58553         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
58554         Reported by Joachim Schmitz <schmitz@hp.com>.
58556 2010-10-02  Bruno Haible  <bruno@clisp.org>
58558         Update doc for POSIX:2008.
58559         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
58560         Update URL of POSIX specification.
58562 2010-10-02  Bruno Haible  <bruno@clisp.org>
58564         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
58565         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
58566         from gnulib, not from Automake.
58568 2010-10-02  Bruno Haible  <bruno@clisp.org>
58570         New module 'system-posix'.
58571         * modules/system-posix: New file.
58572         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
58573         module is present.
58574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58575         GNULIB_SYSTEM_POSIX.
58576         * modules/stdlib (Depends-on): Remove sys_wait.
58577         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
58578         * doc/posix-functions/system.texi: Mention the new module.
58579         * doc/posix-headers/stdlib.texi: Likewise.
58580         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
58581         define test_sys_wait_macros to a no-op.
58582         Reported by Sam Steingold <sds@gnu.org>.
58584 2010-09-30  Bruno Haible  <bruno@clisp.org>
58586         More renaming from 'getdate' to 'get_date'.
58587         * doc/get_date.texi: Renamed from doc/getdate.texi.
58588         * modules/get_date (Files): Update.
58589         * MODULES.html.sh (Date and time <time.h>): Update.
58590         * DEPENDENCIES: Update.
58591         * gnulib-tool: Update comment.
58592         * m4/bison.m4 (gl_BISON): Likewise.
58593         * m4/get_date.m4 (gl_GET_DATE): Likewise.
58595 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
58597         bootstrap: support ACLOCAL_FLAGS during aclocal
58598         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
58599         can add additional -I dir for third-party .m4 files.
58601 2010-09-30  Eric Blake  <eblake@redhat.com>
58603         bootstrap: use glibtoolize on MacOS
58604         * build-aux/bootstrap (check_versions): Convert libtool into
58605         libtoolize.
58606         (tool search): Move libtool check earlier, and look for
58607         glibtoolize for MacOS.
58608         (gnulib_tool_options): Auto-add --libtool when appropriate.
58609         Reported by Justin Clift.
58611         poll: fix typo that broke test on MacOS
58612         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
58613         Reported by Justin Clift.
58615         getdate: rename to get_date
58616         Note: getdate.h is not renamed, to minimize client impact.
58617         * modules/getdate: Mark obsolete.  Move old contents...
58618         * modules/get_date: ...to new module name.
58619         * modules/getdate-tests: Move...
58620         * modules/get_date-tests: ...here.
58621         * m4/getdate.m4: Move...
58622         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
58623         * lib/getdate.y: Move...
58624         * lib/get_date.y: ...here.
58625         * tests/test-getdate.c: Move...
58626         * tests/test-get_date.c: ...here.
58627         * doc/posix-functions/getdate.texi (getdate): Update name.
58628         * NEWS: Mention the change.
58630 2010-09-29  Bruno Haible  <bruno@clisp.org>
58632         Separate the module 'waitpid' from the module 'sys_wait'.
58633         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
58634         present.
58635         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
58636         gl_MODULE_INDICATOR_FOR_TESTS.
58637         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
58638         * modules/sys_wait (Depends-on): Remove waitpid.
58639         (Makefile.am): Substitute GNULIB_WAITPID.
58640         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
58641         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
58642         signature only if the 'waitpid' module is present.
58643         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
58644         * NEWS: Mention the change.
58645         * modules/grantpt (Depends-on): Add waitpid.
58646         * modules/wait-process (Depends-on): Likewise.
58648 2010-09-29  Bruno Haible  <bruno@clisp.org>
58650         More tests for module 'sys_wait'.
58651         * modules/sys_wait-c++-tests: New file.
58652         * tests/test-sys_wait-c++.cc: New file.
58653         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
58654         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
58656 2010-09-29  Bruno Haible  <bruno@clisp.org>
58658         New module 'waitpid'.
58659         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
58660         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
58661         Don't include <process.h>.
58662         (waitpid): Declare only, using modern idiom.
58663         * m4/waitpid.m4: New file.
58664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
58665         * modules/waitpid: New file.
58666         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
58667         (Makefile.am): Update.
58668         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
58670 2010-09-28  Bruno Haible  <bruno@clisp.org>
58672         poll: Assume ANSI C.
58673         * lib/poll.c (poll): Use an ANSI C declaration.
58675 2010-09-28  Bruno Haible  <bruno@clisp.org>
58677         poll-h: Create poll.h on all platforms.
58678         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
58679         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
58680         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
58681         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
58682         (gl_REPLACE_POLL_H): Don't set POLL_H.
58683         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
58684         * modules/poll-h (Depends-on): Add include_next.
58685         (Makefile.am): Create poll.h unconditionally. Substitute also
58686         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
58688 2010-09-28  Bruno Haible  <bruno@clisp.org>
58690         Tests for module 'poll-h'.
58691         * modules/poll-h-c++-tests: New file.
58692         * tests/test-poll-h-c++.cc: New file.
58694         Tests for module 'poll-h'.
58695         * modules/poll-h-tests: New file.
58696         * tests/test-poll-h.c: New file.
58698 2010-09-28  Bruno Haible  <bruno@clisp.org>
58700         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
58701         * modules/poll-h (Depends-on): Add 'extensions'.
58703 2010-09-28  Bruno Haible  <bruno@clisp.org>
58705         New module 'poll-h'.
58706         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
58707         (poll): Use modern idiom.
58708         * modules/poll-h: New file.
58709         * modules/poll (Files): Remove lib/poll.in.h.
58710         (Depends-on): Add poll-h.
58711         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
58712         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
58713         * m4/poll_h.m4: New file.
58714         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
58715         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
58716         and invoke gl_REPLACE_POLL_H.
58717         * lib/poll.c: Use common idiom.
58718         * tests/test-poll.c: Likewise.
58719         * doc/posix-headers/poll.texi: Mention the poll-h module.
58720         Suggested by Eric Blake.
58722 2010-09-26  Bruno Haible  <bruno@clisp.org>
58724         sys_wait: Implement WSTOPSIG.
58725         * lib/sys_wait.in.h (WSTOPSIG): New macro.
58726         Reported by Simon Josefsson.
58728 2010-09-26  Simon Josefsson  <simon@josefsson.org>
58730         stdlib, sys_wait: Avoid compilation error on mingw.
58731         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
58733 2010-09-26  Bruno Haible  <bruno@clisp.org>
58735         stdlib tests: Avoid code duplication.
58736         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
58737         * modules/sys_wait-tests (Files): Likewise.
58738         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
58739         * tests/test-stdlib.c: Include test-sys_wait.h.
58740         (main): Invoke test_sys_wait_macros.
58741         * tests/test-sys_wait.c: Include test-sys_wait.h.
58742         (main): Invoke test_sys_wait_macros.
58744 2010-09-25  Simon Josefsson  <simon@josefsson.org>
58746         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
58747         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
58748         sure Windows sockets are working before calling getaddrinfo.
58749         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
58750         * doc/gnulib.texi (Windows sockets): Fix typo.
58752 2010-09-25  Bruno Haible  <bruno@clisp.org>
58754         Tests for module 'regex-quote'.
58755         * modules/regex-quote-tests: New file.
58756         * tests/test-regex-quote.c: New file.
58758         New module 'regex-quote'.
58759         * lib/regex-quote.h: New file.
58760         * lib/regex-quote.c: New file.
58761         * modules/regex-quote: New file.
58762         Suggested by Reuben Thomas <rrt@sc3d.org>.
58764 2010-09-24  Bruno Haible  <bruno@clisp.org>
58766         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
58767         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
58769 2010-09-23  Bruno Haible  <bruno@clisp.org>
58771         setenv: Relax license.
58772         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
58773         Blake.
58774         Requested by Eric Blake.
58776 2010-09-22  Bruno Haible  <bruno@clisp.org>
58778         termios: Relax license.
58779         * modules/termios (License): Change to LGPLv2+.
58780         Requested by Eric Blake.
58782 2010-09-22  Bruno Haible  <bruno@clisp.org>
58784         threadlib: Allow the package to change the default to 'no'.
58785         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
58786         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
58787         Reported by Paul Eggert.
58789 2010-09-22  Pádraig Brady  <P@draigbrady.com>
58790             Bruno Haible  <bruno@clisp.org>
58792         Fix endless loop in mbmemcasecoll.
58793         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
58794         byte.
58795         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
58797 2010-09-22  Bruno Haible  <bruno@clisp.org>
58799         Tests for module 'memcoll'.
58800         * modules/memcoll-tests: New file.
58801         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
58803         memcoll, xmemcoll: Clarify size vs. length.
58804         * modules/memcoll.c (memcoll0): Clarify specification.
58805         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
58806         passed to collate_error.
58808 2010-09-22  Bruno Haible  <bruno@clisp.org>
58810         Tests for module 'memcasecmp'.
58811         * modules/memcasecmp-tests: New file.
58812         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
58814 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58816         * lib/pthread.in.h: Add split double-inclusion guard, and include
58817         system <pthread.h> if there is one.  Use @@-style as in other
58818         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
58819         pthread.h doesn't.
58820         (pthread_mutexattr_destroy, pthread_mutexattr_init):
58821         (pthread_mutexattr_settype, pthread_mutex_trylock):
58822         New static inline functions, if there's no system <pthread.h>.
58823         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
58824         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
58825         Approximate with mutexes if the system lacks spinlocks, as in
58826         MacOS.
58827         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
58828         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
58829         @@-style.  Check for spinlocks separately.
58830         (gl_PTHREAD_DEFAULTS): New macro.
58831         * modules/pthread: Redo to use a more typical style for in.h files.
58833 2010-09-21  Eric Blake  <eblake@redhat.com>
58835         net_if: enhance tests
58836         * tests/test-net_if.c (main): Move signature checks earlier.
58837         Print failures to stderr.
58838         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
58839         Document the bug that we do not yet fix.
58841 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
58843         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
58844         about gnulib, not GSS.
58846 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
58848         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
58849         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
58850         for Emacs.
58851         * build-aux/pmccabe2html: Make Makefile.am example code more
58852         cut-and-paste friendly.
58854 2010-09-21  Simon Josefsson  <simon@josefsson.org>
58856         * tests/test-net_if.c: New file.
58857         * modules/net_if-tests: New file.
58859 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58861         pthread: add pthread_spin_destroy
58862         * lib/pthread.in.h (pthread_spin_destroy): New function.
58864 2010-09-19  Bruno Haible  <bruno@clisp.org>
58866         gnulib-tool: Fix --help output.
58867         * gnulib-tool (func_usage): Fix help message.
58868         Reported by Reuben Thomas <rrt@sc3d.org>.
58870 2010-09-18  Jim Meyering  <meyering@redhat.com>
58872         maint.mk: avoid unexpanded \n in two diagnostics
58873         * top/maint.mk (sc_prohibit_always_true_header_tests):
58874         Don't use a literal \n in a halt=... assignment.  It would not be
58875         expanded, and the two \n bytes would appear in the diagnostic output
58876         rather than the desired newline.  Use halt=$$(printf ... instead.
58877         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
58879 2010-09-18  Bruno Haible  <bruno@clisp.org>
58881         netinet_in: Doc tweak.
58882         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
58883         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
58885 2010-09-18  Jim Meyering  <meyering@redhat.com>
58887         init.sh: correct an outdated comment
58888         * tests/init.sh (create_exe_shims_):  s/function/alias/
58890         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
58891         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
58892         a file named "*.exe" is removed between the glob expansion and the
58893         processing of that oddly named file.
58895 2010-09-17  Eric Blake  <eblake@redhat.com>
58897         mirbsd: add some more support
58898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
58899         in BSD family.
58900         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
58901         devices as OpenBSD.
58902         * m4/host-os.m4 (mirbsd): Add MirBSD.
58904         tests: fix unportable assumption on sys/wait.h
58905         * tests/test-sys_wait.c (main): Relax test.
58906         * tests/test-stdlib.c (main): Likewise.
58908         init.sh: accommodate directory with no .exes
58909         * tests/init.sh: Accomodate directory containing only scripts.
58911         tests: avoid compiler warning
58912         * tests/test-stdlib.c (main): Use the variable.
58914         fdutimens, fdutimensat: update signature, again
58915         * lib/utimens.h (gl_futimens): Delete, and move signature...
58916         (fdutimens): ...here.
58917         (fdutimensat): Rearrange signature.
58918         (lutimensat): Rename variable for clarity.
58919         * lib/fdutimensat.c (fdutimensat): Update signature.
58920         * lib/utimens.c (fdutimens): Likewise.
58921         (gl_futimens): Delete.
58922         (utimens, lutimens): Update callers.
58923         * lib/futimens.c (futimens): Likewise.
58924         * tests/test-fdutimensat.c: Likewise.
58925         * tests/test-utimens.c: Likewise.
58926         * tests/test-futimens.h: Update comment.
58927         * NEWS: Mention this.
58928         Suggested by Paul Eggert.
58930 2010-09-17  Bruno Haible  <bruno@clisp.org>
58932         Take over the maintenance of some older macros from Autoconf.
58933         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
58934         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
58935         GNU Autoconf.
58936         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
58937         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
58939 2010-09-17  Eric Blake  <eblake@redhat.com>
58941         fdutimensat: drop atflag validation
58942         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
58943         with valid fd, to close a race scenario where futimens is
58944         unsupported and FILE was replaced by a symlink.
58945         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
58946         accordingly.
58947         Suggested by Paul Eggert.
58949 2010-09-16  Bruno Haible  <bruno@clisp.org>
58951         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
58952         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
58954 2010-09-16  Bruno Haible  <bruno@clisp.org>
58956         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
58957         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
58958         login_tty exists.
58959         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
58961 2010-09-16  Bruno Haible  <bruno@clisp.org>
58963         login_tty: Make the replacement code work on BSD systems.
58964         * lib/login_tty.c: Include <sys/ioctl.h>.
58965         (login_tty): Use ioctl TIOCSCTTY when available.
58966         * modules/login_tty (Depends-on): Add sys_ioctl.
58967         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
58969 2010-09-16  Bruno Haible  <bruno@clisp.org>
58971         login_tty: Stricter unit test.
58972         * modules/login_tty-tests (Depends-on): Add tcgetsid.
58973         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
58974         and tcgetsid() after login_tty.
58975         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
58977 2010-09-16  Bruno Haible  <bruno@clisp.org>
58979         New module 'tcgetsid'.
58980         * lib/tcgetsid.c: New file.
58981         * m4/tcgetsid.m4: New file.
58982         * modules/tcgetsid: New file.
58983         * modules/termios (Depends-on): Add c++defs, warn-on-use.
58984         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
58985         GNULIB_TCGETSID, HAVE_TCGETSID.
58986         * lib/termios.in.h: Include <sys/types.h>.
58987         (tcgetsid): New declaration.
58988         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
58989         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
58990         * doc/posix-functions/tcgetsid.texi: Mention the new module.
58991         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
58993 2010-09-16  Bruno Haible  <bruno@clisp.org>
58995         Tests for module 'termios'.
58996         * modules/termios-c++-tests: New file.
58997         * modules/termios-tests: New file.
58998         * tests/test-termios-c++.cc: New file.
58999         * tests/test-termios.c: New file.
59001         New module 'termios'.
59002         * modules/termios: New file.
59003         * lib/termios.in.h: New file.
59004         * m4/termios_h.m4: New file.
59005         * doc/posix-headers/termios.texi: Mention the new module.
59007 2010-09-16  Eric Blake  <eblake@redhat.com>
59009         fdutimensat: add an atflag parameter
59010         * lib/fdutimensat.c (fdutimensat): Add new parameter.
59011         * lib/utimens.h (fdutimensat): Update prototype.
59012         * tests/test-fdutimensat.c: Adjust test to match.
59013         * NEWS: Document the change.
59014         Suggested by Paul Eggert.
59016 2010-09-16  Bruno Haible  <bruno@clisp.org>
59018         Fix typos in comments.
59019         * lib/striconveh.h: Fix typo in comment.
59020         * lib/login_tty.c (login_tty): Likewise.
59022 2010-09-15  Bruno Haible  <bruno@clisp.org>
59024         stdlib: clarify MirBSD WEXITSTATUS bug
59025         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
59026         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59028 2010-09-15  Eric Blake  <eblake@redhat.com>
59030         stdlib: work around MirBSD WEXITSTATUS bug
59031         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
59032         * modules/stdlib (Depends-on): Add sys_wait.
59033         * tests/test-sys_wait.c (main): Enhance test.
59034         * tests/test-stdlib.c (main): Likewise.
59035         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
59037         docs: mention MacOS issue with WEXITSTATUS(constant)
59038         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
59039         issue.
59040         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
59042         strnlen: add tests
59043         * modules/strnlen-tests: New file.
59044         * tests/test-strnlen.c: Likewise.
59046 2010-09-14  Bruno Haible  <bruno@clisp.org>
59048         unistr/base: Avoid link errors when module 'libunistring' is also used.
59049         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
59050         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
59051         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
59052         Declare also when HAVE_LIBUNISTRING is set.
59053         Reported by Pádraig Brady <P@draigbrady.com>.
59055 2010-09-14  Eric Blake  <eblake@redhat.com>
59057         test-rawmemchr: make more robust
59058         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
59059         (Depends-on, configure.ac): Add needed prerequisites to use it.
59060         * modules/memchr-tests (Files, Depends-on, configure.ac):
59061         Likewise, to avoid implicit reliance on memchr module prereqs.
59062         * tests/test-memchr.c (main): Ensure proper masking.
59063         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
59064         reads.
59066         memchr: detect glibc Alpha bug
59067         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
59068         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
59069         Alpha.
59070         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
59071         * tests/test-memchr.c (main): Enhance test.
59072         Reported by Nelson H. F. Beebe.
59074 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59076         fts, getcwd, glob: audit for dirfd returning -1
59077         * lib/fts.c (opendir): Remove #define; no longer used.
59078         (opendirat): New arg PDIR_FD.  All callers changed.
59079         (fts_build, _opendir2): Use new opendirat to avoid the need for
59080         dirfd, or for checking whether dirfd returns a negative value.
59081         Don't use opendir; always use openat followed by fdopendir.
59082         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
59083         it.
59084         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
59085         returns -1 here.
59086         * modules/fts (Depends-on): Remove dirfd.
59087         * modules/getcwd (Depends-on): Likewise.
59089 2010-09-13  Eric Blake  <eblake@redhat.com>
59091         float: fix broken MirBSD header
59092         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
59093         * doc/posix-headers/float.texi (float.h): Document it.
59095 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59097         fts: use O_NOFOLLOW to avoid race condition when opening a directory
59098         * lib/fts.c (opendirat): New arg extra_flags.
59099         (__opendir2): Use it to avoid following symlinks when opening
59100         a directory, if symlinks are not supposed to be followed.  See
59101         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
59103         fdopendir: preserve argument fd before returning
59104         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
59105         (fdopendir_with_dup, fd_clone_opendir): New static functions.
59106         (fdopendir): Use them, arranging for FD to be open to the same
59107         directory that it was when it started.  (It might be temporarily
59108         closed while fdopendir is running, so this not thread- or
59109         signal-safe.)  Be careful to do the right thing even when file
59110         descriptors are scarce and dup fails with errno == EMFILE.  See
59111         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
59113 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
59115         regex: Pass the system regex if its only problem is 32-bit regoff_t.
59116         * NEWS: Document change.
59117         * m4/regex.m4: Disable test for regoff_t size.
59119 2010-09-13  Jim Meyering  <meyering@redhat.com>
59121         fts: don't operate on an invalid file descriptor after failed dup
59122         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
59123         negative file descriptor.
59125 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59127         savedir: add streamsavedir, deprecate fdsavedir
59128         * NEWS: Mention deprecation of fdsavedir.
59129         * lib/savedir.c (streamsavedir): New extern function, whose name
59130         ends in "savedir" to be consistent with the others.  This differs
59131         from savedirstream in that it doesn't close its argument.  The
59132         next version of GNU tar will use this instead of fdsavedir, to
59133         avoid some race conditions and conserve file descriptors.
59134         (savedirstream): Reimplement as a wrapper around streamsavedir.
59135         (fdsavedir): Add a comment deprecating this function.  As far as
59136         I know, only GNU tar used it, and GNU tar doesn't need it any more.
59137         * lib/savedir.h (streamsavedir): New decl.
59138         (fdsavedir): Add a comment deprecating this.
59140 2010-09-10  Bruno Haible  <bruno@clisp.org>
59142         langinfo: Fix last commit.
59143         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
59144         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
59145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59147 2010-09-10  Bruno Haible  <bruno@clisp.org>
59149         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
59150         * lib/progreloc.c (O_EXEC): Define fallback.
59152 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
59154         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
59155         * NEWS: Document recent changes to fcntl-h.
59156         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
59157         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
59158         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
59159         Similarly for O_SEARCH; this last was already true, but not documented.
59160         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
59161         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
59162         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
59163         Likewise.
59164         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
59165         is zero, not whether it is defined.
59166         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
59167         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
59168         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
59170 2010-09-10  Bruno Haible  <bruno@clisp.org>
59172         langinfo, nl_langinfo: Fix for IRIX 5.3.
59173         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
59174         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
59175         HAVE_LANGINFO_YESEXPR.
59176         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
59177         HAVE_LANGINFO_YESEXPR.
59178         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
59179         HAVE_LANGINFO_T_FMT_AMPM is 0.
59180         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
59181         HAVE_LANGINFO_YESEXPR is 0.
59182         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
59183         NOEXPR.
59184         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
59185         * doc/posix-functions/nl_langinfo.texi: Likewise.
59186         Reported by Eric Blake.
59188 2010-09-10  Bruno Haible  <bruno@clisp.org>
59190         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
59191         * doc/glibc-functions/login_tty.texi: Mention the include file problem
59192         on FreeBSD 8.0 and OpenBSD 4.6.
59193         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
59194         * m4/pty_h.m4 (gl_PTY_H): Likewise.
59195         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
59196         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
59197         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
59198         ac_includes_default.
59199         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
59201 2010-09-09  Eric Blake  <eblake@redhat.com>
59203         strsignal: work around NetBSD bug
59204         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
59205         * lib/string.in.h (includes): Likewise.
59206         * doc/posix-functions/strsignal.texi (strsignal): Document the
59207         bug.
59208         Reported by Nelson H. F. Beebe.
59210         gnulib-tool: work with NetBSD /bin/sh
59211         * gnulib-tool (func_cache_var, func_cache_lookup_module)
59212         (func_get_description, func_get_comment, func_get_status)
59213         (func_get_notice, func_get_applicability, func_get_filelist)
59214         (func_get_dependencies, func_get_autoconf_early_snippet)
59215         (func_get_autoconf_snippet, func_get_automake_snippet)
59216         (func_get_include_directive, func_get_link_directive)
59217         (func_get_license, func_get_maintainer, func_import): Avoid
59218         shell syntax errors from parsing syntax extensions.
59220 2010-09-09  Bruno Haible  <bruno@clisp.org>
59222         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
59223         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
59224         a reliable way to determine whether the 'alias' command works.
59226 2010-09-08  Jim Meyering  <meyering@redhat.com>
59228         init.sh: penalize a set-x-impaired shell; don't disqualify it
59229         * tests/init.sh: Too many shells corrupt application stderr when
59230         you set -x, so we can't afford to disqualify them, since at least
59231         on Irix-6.5, that would disqualify all bourne shells.
59232         Instead, use a two-pass approach.
59233         On the first pass, try to find a shell that meets the stricter
59234         condition that set -x does not corrupt stderr.
59235         If no shell meets the stricter condition, retest each candidate
59236         shell, but without that extra condition.  Finally, when
59237         VERBOSE=yes is requested and set -x might cause trouble, simply
59238         issue a warning and refrain from enabling debug output.
59240 2010-09-08  Eric Blake  <eblake@redhat.com>
59242         unsetenv: fix OpenBSD bug
59243         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
59244         * doc/posix-functions/unsetenv.texi (unsetenv): Update
59245         documentation.
59246         Reported by Jim Meyering.
59248         strtod: work around IRIX 6.5 bug
59249         * lib/strtod.c (strtod): Reparse number on shorter string if
59250         exponent parse was invalid.
59251         * tests/test-strtod.c (main): Add check for "0x1p 2".
59252         Reported by Tom G. Christensen.
59254         getopt: optimize previous patch
59255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
59256         empty variable.  Speed up awk script.
59257         Reported by Paolo Bonzini.
59259 2010-09-08  Jim Meyering  <meyering@redhat.com>
59261         test.sh: disqualify shells for which set -x corrupts stderr
59262         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
59263         and OpenBSD 4.7.  They make it so with "set -x", environment settings
59264         appear in stderr output.  For example, this command:
59265             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
59266         prints "P=1" on those two systems:
59268 2010-09-08  Bruno Haible  <bruno@clisp.org>
59270         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
59271         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
59272         commands, because some shells ignore redirections when there is an
59273         error in the command lookup.
59274         Reported by Eric Blake.
59276 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
59278         * lib/regex.h: Fix a mention of `regex_compile' (should be
59279         `re_compile_pattern').
59280         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
59281         (re_set_registers): Correct name of parameter in comment.
59283         * doc/regex.texi: Add documentation for missing syntax flags.
59284         Remove commented-out documentation of defunct syntax option
59285         RE_NO_EMPTY_ALTS.
59286         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
59287         Add documentation of re_set_registers.
59288         Document trick to re-use a pattern buffer by setting fastmap manually.
59289         Update documentation of struct re_pattern_buffer per public members.
59290         Uncomment documentation of equivalence class operators and
59291         collating symbol operators, since they are now implemented,
59292         Explain leftmost-longest matching in relation to alternatives.
59293         Tidy documentation of substring matching.
59294         Remove POSIX documentation, which is done better in
59295         glibc, and refer the reader there. Keep BSD API documentation, as
59296         that is not readily available elsewhere.
59298 2010-09-07  Eric Blake  <eblake@redhat.com>
59300         getopt: handle POSIXLY_CORRECT set but not exported
59301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
59302         export state of POSIXLY_CORRECT, due to bash set -o posix.
59303         Reported by Dustin J. Mitchell.
59305 2010-09-05  Bruno Haible  <bruno@clisp.org>
59307         gnulib-tool: Highlight the changed options.
59308         * gnulib-tool (func_usage): Display the --import, --add-import,
59309         --remove-import explanations in bold font.
59311 2010-09-06  Karl Berry  <karl@gnu.org>
59313         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
59315 2010-09-05  Bruno Haible  <bruno@clisp.org>
59317         uniwidth/width: Update comment.
59318         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
59319         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
59321 2010-09-05  Bruno Haible  <bruno@clisp.org>
59323         isinf, isnan: Relax license.
59324         * modules/isinf (License): Change from GPL to LGPL, with consent from
59325         Ben Pfaff.
59326         * modules/isnan (License): Likewise.
59327         Requested by Ludovic Courtès.
59329 2010-09-04  Bruno Haible  <bruno@clisp.org>
59331         gnulib-tool: Help migration from --import to --add-import or --update.
59332         * gnulib-tool: Emit a verbose error message when --import is used
59333         without any module name.
59335 2010-09-04  Bruno Haible  <bruno@clisp.org>
59337         Update doc about gnulib-tool.
59338         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
59339         'gnulib-tool --update' in more detail.
59340         Reported by Eric Blake.
59342 2010-09-04  Bruno Haible  <bruno@clisp.org>
59344         gnulib-tool: Change --import. New options --add/remove-import.
59345         * gnulib-tool: New options --add-import, --remove-import.
59346         (func_usage): Document them.
59347         (have_associative): Define always.
59348         (func_import): In import mode, don't merge the specified settings with
59349         the cached settings. Implement remove-import mode.
59350         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
59351         Explain when to use them versus --import.
59352         (Simple update): Use --add-import instead of --import.
59353         * NEWS: Mention the change.
59355 2010-09-04  Bruno Haible  <bruno@clisp.org>
59357         * doc/gnulib-tool.texi (Initial import): Update paragraph about
59358         separate gnulib.mk.
59360 2010-09-04  Bruno Haible  <bruno@clisp.org>
59362         gnulib-tool: Don't talk about CVS any more.
59363         * gnulib-tool (func_usage, func_import): Write "version control"
59364         instead of CVS.
59366 2010-09-04  Jim Meyering  <meyering@redhat.com>
59368         maint.mk: avoid obscure sc_copyright_check failure in coreutils
59369         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
59370         false positives (whose names may be ill-chosen) when searching
59371         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
59372         would cause a false-positive.
59374         avoid coreutils "make distcheck" failure
59375         Coreutils tests with an absolute build directory name that contains
59376         a space.  Not quoting this directory name caused a failure.
59377         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
59378         * tests/test-vc-list-files-cvs.sh: Likewise.
59380 2010-09-04  Bruno Haible  <bruno@clisp.org>
59382         gnulib-tool: Avoid error when run in a package without Makefile.am.
59383         * gnulib-tool: When collecting the m4dirs in a package that does not
59384         have a Makefile.am, eliminate those directories that contain no
59385         gnulib-cache.m4. Fix expression that counts these directories.
59387 2010-09-04  Bruno Haible  <bruno@clisp.org>
59389         update-copyright test: Improve output when perl is missing or too old.
59390         * tests/test-update-copyright.sh: Move test of Perl version down after
59391         the test whether Perl exists. Provide an explanation relating Perl's
59392         error message to Automake's SKIP: message.
59394 2010-09-04  Bruno Haible  <bruno@clisp.org>
59396         Don't augment PATH in TESTS_ENVIRONMENT.
59397         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
59398         set abs_aux_dir instead of augmenting PATH.
59399         * modules/vc-list-files-tests (Makefile.am): Likewise.
59400         * tests/test-update-copyright.sh: Augment PATH here.
59401         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
59402         path_prepend_.
59403         * tests/test-vc-list-files-git.sh: Likewise.
59405 2010-09-04  Jim Meyering  <meyering@redhat.com>
59407         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
59408         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
59410 2010-09-04  Bruno Haible  <bruno@clisp.org>
59412         strdup: Fix compilation error in C++ mode.
59413         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
59414         the macro.
59416 2010-09-04  Bruno Haible  <bruno@clisp.org>
59418         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
59419         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
59420         macro into a function.
59421         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59423 2010-09-04  Bruno Haible  <bruno@clisp.org>
59425         Set PATH_SEPARATOR the same way autoconf does.
59426         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
59427         the value of PATH_SEPARATOR the same way autoconf-generated configure
59428         scripts do.
59429         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
59430         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59432 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59434         Set PATH_SEPARATOR the same way autoconf does.
59435         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
59436         the same way autoconf-generated configure scripts do.
59437         * posix-modules: Likewise.
59439 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59441         hash: fix safe_hasher const typo
59442         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
59443         const; otherwise, there is a type error later.
59445 2010-09-02  Jim Meyering  <meyering@redhat.com>
59447         test-update-copyright.sh: require perl 5.8.0
59448         * tests/test-update-copyright.sh: Require 5.8.0,
59449         which Tom G. Christensen has confirmed is adequate,
59450         while 5.6.1 is not.
59452 2010-09-02  Eric Blake  <eblake@redhat.com>
59454         tests: init.sh improvements for re-exec'ing with zsh
59455         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
59456         -vx through shell re-exec.
59457         Reported by Tom G. Christensen.
59459         wctype: fix typo in previous commit
59460         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
59461         Reported by Ludovic Courtès.
59463 2010-09-02  Jim Meyering  <meyering@redhat.com>
59465         test-update-copyright.sh: skip test if Perl is too old
59466         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
59467         Reported by Tom G. Christensen.
59469 2010-09-02  Bruno Haible  <bruno@clisp.org>
59471         wctype: Avoid compilation error on IRIX 6.5.30.
59472         * lib/wctype.in.h (iswblank): Declare with a replacement if
59473         REPLACE_ISWBLANK is set.
59474         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
59475         declared. Set REPLACE_ISWBLANK.
59476         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
59477         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
59478         * doc/posix-headers/wctype.texi: Likewise.
59479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59481 2010-09-01  Bruno Haible  <bruno@clisp.org>
59483         New module 'socketlib'.
59484         * modules/socketlib: New file.
59485         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
59486         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
59487         * modules/sockets (Depends-on): Add socketlib.
59488         Suggested by Sam Steingold <sds@gnu.org>.
59490 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59492         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
59494         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
59495         when one needs search access to a directory but not read access.
59496         On systems where it is available, it works in some cases where
59497         O_RDONLY does not, namely on directories that are searchable but
59498         not readable, and which need only to be searchable.  If O_SEARCH
59499         is not available, fall back to the traditional method of using
59500         O_RDONLY.
59502         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
59503         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
59504         when opening a directory that needs only to be searchable.
59505         * lib/chdir-safer.c (chdir_no_follow): Likewise.
59506         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
59507         * lib/openat-proc.c (openat_proc_name): Likewise.
59508         * lib/openat.c (openat_needs_fchdir): Likewise.
59509         * lib/save-cwd.c (save_cwd): Likewise.
59510         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
59512 2010-08-28  Bruno Haible  <bruno@clisp.org>
59514         New module 'host-cpu-c-abi'.
59515         * modules/host-cpu-c-abi: New file.
59516         * m4/host-cpu-c-abi.m4: New file, based on part of
59517         clisp/src/m4/general.m4.
59518         Requested by Sam Steingold <sds@gnu.org>.
59520 2010-08-31  Eric Blake  <eblake@redhat.com>
59521         and Jim Meyering  <meyering@redhat.com>
59523         hash: factor, and guard against misbehaving hasher function
59524         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
59525         of table->hasher's return value.  Also protect against a hash value
59526         so large that adding it to table->bucket results in a NULL pointer.
59527         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
59528         Use it in place of open-coded check-and-abort.
59530 2010-08-30  Bruno Haible  <bruno@clisp.org>
59532         hash: silence spurious clang warning
59533         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
59534         Reported by Eric Blake.
59536 2010-08-30  Eric Blake  <eblake@redhat.com>
59538         strstr, memmem, strcasestr: avoid leaked shell message
59539         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
59540         FreeBSD.
59541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59544         tests: silence clang warning
59545         * tests/test-malloca.c (do_allocation): Avoid dead store.
59547 2010-08-29  Bruno Haible  <bruno@clisp.org>
59549         gettext: Fix recent mistake.
59550         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
59552 2010-08-29  Bruno Haible  <bruno@clisp.org>
59554         selinux-h: Offer a --without-selinux option.
59555         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
59556         --without-selinux was specified, skip all tests and define
59557         HAVE_SELINUX_SELINUX_H to 0.
59558         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
59559         set LIB_SELINUX to empty.
59560         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
59561         gl_LIBSELINUX. If --without-selinux was specified, replace
59562         selinux/context.h.
59563         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
59565 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59566             Bruno Haible  <bruno@clisp.org>
59568         Make the module 'realloc-gnu' work again on AIX and OSF/1.
59569         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
59570         of HAVE_REALLOC.
59571         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
59572         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
59573         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
59574         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
59576 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59577             Bruno Haible  <bruno@clisp.org>
59579         Make the module 'calloc-gnu' work again on AIX and OSF/1.
59580         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
59581         HAVE_CALLOC.
59582         * lib/xmalloc.c: Update accordingly.
59583         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
59584         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
59585         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
59587 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59588             Bruno Haible  <bruno@clisp.org>
59590         Make the module 'malloc-gnu' work again on AIX and OSF/1.
59591         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
59592         HAVE_MALLOC.
59593         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
59594         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
59595         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
59597 2010-08-29  Bruno Haible  <bruno@clisp.org>
59599         Update modules list.
59600         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
59601         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
59602         (String handling <string.h>): Add astrxfrm.
59603         (File system functions): Add readlinkat.
59605 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59607         Tests for module 'realloc-gnu'.
59608         * modules/realloc-gnu-tests: New file.
59609         * tests/test-realloc-gnu.c: New file.
59611         Tests for module 'calloc-gnu'.
59612         * modules/calloc-gnu-tests: New file.
59613         * tests/test-calloc-gnu.c: New file.
59615         Tests for module 'malloc-gnu'.
59616         * modules/malloc-gnu-tests: New file.
59617         * tests/test-malloc-gnu.c: New file.
59619 2010-08-28  Bruno Haible  <bruno@clisp.org>
59621         Rename module 'realloc' -> 'realloc-gnu'.
59622         * modules/realloc-gnu: New file, copied from modules/realloc.
59623         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
59624         obsolete.
59625         * modules/mgetgroups (Depends-on): Update.
59626         * doc/posix-functions/realloc.texi: Update.
59627         * NEWS: Mention the change.
59629         Rename module 'calloc' -> 'calloc-gnu'.
59630         * modules/calloc-gnu: New file, copied from modules/calloc.
59631         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
59632         obsolete.
59633         * doc/posix-functions/calloc.texi: Update.
59634         * NEWS: Mention the change.
59636         Rename module 'malloc' -> 'malloc-gnu'.
59637         * modules/malloc-gnu: New file, copied from modules/malloc.
59638         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
59639         obsolete.
59640         * modules/argp (Depends-on): Update.
59641         * modules/regex (Depends-on): Update.
59642         * doc/posix-functions/malloc.texi: Update.
59643         * NEWS: Mention the change.
59645 2010-08-28  Eric Blake  <eblake@redhat.com>
59647         pread, pwrite: add missing dependency
59648         * modules/pread (Depends-on): Add extensions.
59649         * modules/pwrite (Depends-on): Likewise.
59651 2010-08-28  Bruno Haible  <bruno@clisp.org>
59653         unistr/u*-strchr: Fix tests dependencies.
59654         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
59655         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
59656         Reported by Ian Beckwith <ianb@erislabs.net>.
59658 2010-08-28  Bruno Haible  <bruno@clisp.org>
59660         read-file: Don't occupy too much unused memory.
59661         * lib/read-file.c (fread_file): Shrink the buffer at the end.
59663 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
59664             Eric Blake  <eblake@redhat.com>
59665             Bruno Haible  <bruno@clisp.org>
59667         read-file: Avoid memory reallocations with regular files.
59668         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
59669         (fread_file): With regular files, use the remaining length as the
59670         initial buffer size.  Check against overflow.
59671         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
59672         sys_stat.
59674 2010-08-28  Bruno Haible  <bruno@clisp.org>
59676         ftello: Relax license.
59677         * modules/ftello (License): Relax to LGPLv2+.
59678         Reported by Eric Blake.
59680 2010-08-28  Bruno Haible  <bruno@clisp.org>
59682         Avoid relocwrapper link errors due to gnulib replacement functions.
59683         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
59684         function.
59685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59687 2010-08-28  Bruno Haible  <bruno@clisp.org>
59689         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
59690         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
59691         defined.
59692         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
59693         Suggested by Eric Blake.
59695 2010-08-28  Bruno Haible  <bruno@clisp.org>
59697         sys_socket, netdb: Ensure socklen_t gets defined.
59698         * modules/sys_socket (Depends-on): Add socklen.
59699         * modules/netdb (Depends-on): Likewise.
59700         * modules/getaddrinfo (Depends-on): Remove socklen.
59701         * modules/getsockopt (Depends-on): Likewise.
59702         * modules/setsockopt (Depends-on): Likewise.
59703         * tests/test-sys_socket.c: Check that socklen_t is defined.
59704         * tests/test-netdb.c: Likewise.
59705         * m4/socklen.m4: Update comments.
59706         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59708 2010-08-27  Eric Blake  <eblake@redhat.com>
59710         login_tty: add missing dependency
59711         * modules/login_tty (Depends-on): Add pty.
59713 2010-08-26  Eric Blake  <eblake@redhat.com>
59715         lib-symbol-versions: fix m4 quoting
59716         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
59717         format for AC_LINK_IFELSE.
59719         glob: fix compile test
59720         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
59722         btowc: fix missing file
59723         * modules/btowc (Files): Also ship locale-fr.m4.
59725         lseek: fix link test
59726         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
59727         AC_LINK_IFELSE.
59729         include_next: silence autoconf 2.68 warning
59730         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
59731         AC_COMPILE_IFELSE as special.
59732         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
59733         autoconf < 2.68.
59735         acl: fix compilation test
59736         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
59737         AC_COMPILE_IFELSE.
59739 2010-08-26  Bruno Haible  <bruno@clisp.org>
59741         Modernize AC_TRY_RUN invocations.
59742         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
59743         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59744         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
59745         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
59746         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
59747         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
59748         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59749         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59750         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
59751         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59753         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59754         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59755         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59757         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
59758         gl_MBRLEN_NUL_RETVAL): Likewise.
59759         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59760         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
59761         Likewise.
59762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59763         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59764         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59765         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59766         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
59767         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
59768         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
59769         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
59770         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
59771         Likewise.
59772         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
59773         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
59774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59775         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
59776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
59777         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59779         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
59780         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59783 2010-08-26  Bruno Haible  <bruno@clisp.org>
59785         Modernize AC_TRY_LINK invocations.
59786         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
59787         AC_TRY_LINK.
59788         * m4/argp.m4 (gl_ARGP): Likewise.
59789         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
59790         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
59791         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59792         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59793         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59794         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
59795         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
59796         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
59797         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59798         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
59799         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59800         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
59801         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
59802         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
59803         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
59804         * m4/hostent.m4 (gl_HOSTENT): Likewise.
59805         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59806         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
59807         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
59808         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
59809         Likewise.
59810         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
59811         Likewise.
59812         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
59813         Likewise.
59814         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
59815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
59816         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
59817         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
59818         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
59819         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
59820         * m4/servent.m4 (gl_SERVENT): Likewise.
59821         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
59822         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
59823         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
59824         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
59825         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
59826         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
59827         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
59828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
59829         * modules/tsearch-tests (configure.ac): Likewise.
59831 2010-08-26  Bruno Haible  <bruno@clisp.org>
59833         Modernize AC_TRY_COMPILE invocations.
59834         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
59835         AC_TRY_COMPILE.
59836         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
59837         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
59838         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
59839         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59840         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
59841         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59842         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59843         * m4/lock.m4 (gl_LOCK): Likewise.
59844         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
59845         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59846         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
59847         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
59848         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
59849         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
59850         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
59851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
59852         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
59853         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
59854         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
59855         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59856         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
59857         extraneous semicolon.
59859 2010-08-26  Jim Meyering  <meyering@redhat.com>
59861         stat-time: relax license LGPL
59862         * modules/stat-time (License): Change from GPL to LGPL,
59863         with consent from all contributors, for use in libguile.
59864         Requested by Ludovic Courtès.
59866 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
59868         poll: return immediately on POLLHUP.
59869         * lib/poll.c (poll): Always set timeout before wait_timeout is
59870         computed.
59872 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59874         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
59875         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
59876         rmdir ("dir/.//"), unlinkat.
59878 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59880         stdbool: avoid spurious failure with modern xlc
59881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
59883 2010-08-24  Bruno Haible  <bruno@clisp.org>
59885         getloadavg: simplify code
59886         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
59887         gl_have_func. Update comments.
59889 2010-08-24  Eric Blake  <eblake@redhat.com>
59891         getloadavg: don't define SVR4 on cygwin
59892         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
59893         only define SVR4 when -lkvm is required.
59894         Reported by Yaakov Selkowitz.
59896 2010-08-24  Bruno Haible  <bruno@clisp.org>
59898         priv-set: fix comment
59899         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
59901 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59903         priv-set: fix comments
59904         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
59905         to match code, as suggested by David Bartley in:
59906         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
59908 2010-08-23  Eric Blake  <eblake@redhat.com>
59910         stdbool: avoid rejecting clang
59911         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
59912         * tests/test-stdbool.c: Enable more tests if using the system
59913         <stdbool.h> instead of the gnulib replacement.
59914         (main): Move xlc bug test to a runtime test for all compilers.
59915         Reported by Anders Kaseorg.
59917         argz: fix shell quoting issue
59918         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
59919         Reported by Charles Wilson.
59921 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
59922             Erik Faye-Lund <kusmabite@gmail.com>
59924         poll, select: handle ERROR_BROKEN_PIPE.
59925         * lib/poll.c (win32_compute_revents): Return POLLHUP when
59926         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
59927         * lib/select.c (win32_compute_revents): Do not mark a pipe
59928         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
59930 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
59932         fts: allow compilation with C++
59933         * lib/fts_.h: Specify extern "C" linkage with C++.
59935 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59937         Fix gnulib-tool sed script de-commentation for AIX sed.
59938         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
59939         sed.
59941 2010-08-17  Eric Blake  <eblake@redhat.com>
59943         test-stddef: test for (some) offsetof bugs
59944         * tests/test-stddef.c: Enhance test to ensure correct type of
59945         offsetof.
59946         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
59947         that we are not fixing at this time.
59949 2010-08-15  Bruno Haible  <bruno@clisp.org>
59951         stpncpy: Allow stpncpy to be defined as a macro.
59952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
59953         if it's already correctly declared.
59954         * lib/string.in.h (stpncpy): Undefine before redefining.
59955         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
59957 2010-08-14  Bruno Haible  <bruno@clisp.org>
59959         Rename module 'memxfrm' to 'amemxfrm'.
59960         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
59961         (amemxfrm): Renamed from memxfrm.
59962         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
59963         (amemxfrm): Renamed from memxfrm.
59964         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
59965         * NEWS: Mention the change.
59966         * MODULES.html.sh (String handling <string.h>): Update.
59967         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
59968         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
59969         * lib/unicase/u16-casexfrm.c: Likewise.
59970         * lib/unicase/u32-casexfrm.c: Likewise.
59971         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
59972         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
59973         * lib/uninorm/u16-normxfrm.c: Likewise.
59974         * lib/uninorm/u32-normxfrm.c: Likewise.
59975         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
59976         memxfrm.
59977         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
59978         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
59979         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
59980         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
59981         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
59982         Suggested by Paul Eggert.
59984 2010-08-14  Bruno Haible  <bruno@clisp.org>
59986         Tests for module 'astrxfrm'.
59987         * modules/astrxfrm-tests: New file.
59988         * tests/test-astrxfrm.c: New file.
59990         New module 'astrxfrm'.
59991         * lib/astrxfrm.h: New file.
59992         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
59993         * modules/astrxfrm: New file.
59995 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
59997         regex: Tweak doc.
59998         * doc/regex.texi (Overview): Don't mention regex.c.
59999         (GNU Regular Expression Compiling): Likewise.
60000         (Match-end-of-line Operator): Mention 'not_eol'.
60002 2010-08-14  Brian Gough  <bjg@gnu.org>
60003             Bruno Haible  <bruno@clisp.org>
60005         git-merge-changelog: add doc relating to use with bzr and hg.
60006         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
60008 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
60010         pthread: fix pthread.h creation for srcdir != builddir
60011         * modules/pthread (Makefile.am): Fix the rule to work also in a
60012         non-srcdir build.
60014 2010-08-13  Karl Berry  <karl@gnu.org>
60016         * doc/regex.texi (Predefined Syntaxes): @smallexample.
60017         * doc/posix-*/*: force line break before @url of POSIX
60018         specifications.
60019         Suggested by Werner Lemberg.
60021 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60023         strtod: fix const diagnostic
60024         * lib/strtod.c (strtod): Don't assign const char * to char *,
60025         as this elicits a warning from GCC when warnings are enabled.
60027 2010-08-10  Pádraig Brady  <P@draigbrady.com>
60028         and Eric Blake  <eblake@redhat.com>
60030         copy-acl: ignore ENOTSUP on HP-UX
60031         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
60032         so that it is available for HP-UX.
60033         * lib/copy-acl.c (qcopy_acl): Use it.
60034         Reported by Patrick M. Callahan.
60036 2010-08-10  Eric Blake  <eblake@redhat.com>
60038         open, chown: relax license
60039         * modules/open (License): Change to LGPLv2+, with consent by all
60040         authors, for use in augeas.
60041         * modules/chown (License): Likewise.
60042         * modules/lchown (Likewise): Likewise.
60043         Requested by Adam Stokes.
60045 2010-08-09  Karl Berry  <karl@gnu.org>
60047         * build-aux/ar-lib: new file, import from Automake.
60048         * config/srclist.txt: autocheck for updates.
60050 2010-08-09  Eric Blake  <eblake@redhat.com>
60052         readlinkat: adjust client modules
60053         * modules/areadlinkat (Depends-on): Use readlinkat, not
60054         symlinkat.
60055         * modules/areadlinkat-with-size (Depends-on): Likewise.
60057         mknod: be more vocal about danger of running tests as root
60058         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
60059         root, since that is just asking for problems.
60060         Suggested by Bruno Haible, based on a report by Rainer Tammer.
60062         readlinkat: split into its own module
60063         * modules/symlinkat: Split readlinkat...
60064         * modules/readlinkat: ...into separate module.
60065         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
60066         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
60067         * lib/symlinkat.c (readlinkat): Move...
60068         * lib/readlinkat.c: ...into new file.
60069         * modules/symlinkat-tests: Split readlinkat test...
60070         * modules/readlinkat-tests: ...into separate module.
60071         * tests/test-symlinkat.c: Split...
60072         * tests/test-readlinkat.c: ...into new file.
60073         * NEWS: Document the split.
60074         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60075         * lib/unistd.in.h (readlinkat): Likewise.
60076         Suggested by Bruno Haible.
60078 2010-08-08  Bruno Haible  <bruno@clisp.org>
60080         memxfrm: Speed up.
60081         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
60082         that usually only one call to strxfrm is necessary for each string
60083         part.
60084         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60086 2010-08-07  Karl Berry  <karl@gnu.org>
60088         * doc/posix-headers/limits.texi,
60089         * doc/posix-functions/malloc.texi,
60090         * doc/posix-functions/strsignal.texi: missing @item.
60091         * doc/ld-version-script.texi: spurious leading i.
60092         * doc/regex.texi (Interval Operators): no commas inside @var.
60094 2010-08-01  Bruno Haible  <bruno@clisp.org>
60096         Integrate the regex documentation.
60097         * doc/gnulib.texi: Define 'cn' index.
60098         (Regular expressions): New a chapter that includes regex.texi and
60099         regexprops-generic.texi.
60100         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
60101         syntax.
60103         Whitespace cleanup.
60104         * doc/regex.texi: Remove trailing spaces.
60106         Add regex documentation.
60107         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
60108         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
60109         Written by Kathy A. Hargreaves and Karl Berry.
60111 2010-08-01  Bruno Haible  <bruno@clisp.org>
60113         link: Update documentation.
60114         * doc/posix-functions/link.texi: Update regarding Solaris.
60116 2010-07-31  Bruno Haible  <bruno@clisp.org>
60118         Update modules list.
60119         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
60120         (String handling <string.h>): Add memcmp2, memxfrm.
60121         (Container data structures): Add xlist, xsublist, xoset.
60122         (Core language properties): Add alignof, unused-parameter.
60123         (Process control, Numeric conversion functions <stdlib.h>): Renamed
60124         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
60125         (Unibyte characters <ctype.h>): New section.
60126         (String handling <string.h>): New section.
60127         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
60128         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
60129         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
60130         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
60131         tan, tanh, tanl, y0, y1, yn.
60132         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
60133         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
60134         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
60135         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
60136         unlockpt, vdprintf, vdprintf-posix.
60137         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
60138         (File system functions): Add concat-filename, sys_file, sys_ioctl,
60139         xconcat-filename.
60140         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
60141         getdtablesize, pipe2, pipe2-safer.
60142         (Security): New section.
60143         (Networking functions): Add accept4.
60144         (Signal handling): Add sigpipe.
60145         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
60146         mbmemcasecoll.
60147         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
60148         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
60149         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
60150         pipe-filter-ii.
60151         (Misc): Add argp-version-etc, login_tty, parse-duration.
60153 2010-07-31  Bruno Haible  <bruno@clisp.org>
60155         Improve doc in MODULES.html.
60156         * modules/linkat (Description): Add the word "function".
60157         * modules/mkfifo (Description): Likewise.
60158         * modules/mknod (Description): Likewise.
60159         * modules/remove (Description): Likewise.
60160         * modules/renameat (Description): Likewise.
60161         * modules/stat (Description): Likewise.
60162         * modules/symlink (Description): Likewise.
60163         * modules/unlink (Description): Likewise.
60165 2010-07-31  Bruno Haible  <bruno@clisp.org>
60167         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
60168         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
60169         option --enable/disable-c++ instead of --enable/disable-cxx.
60170         * NEWS: Mention the change.
60172 2010-07-31  Bruno Haible  <bruno@clisp.org>
60174         readlink, areadlink: Relax test a bit.
60175         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
60176         alternative to ENOTDIR.
60177         * tests/test-areadlink.h (test_areadlink): Likewise.
60178         Reported by Rainer Tammer.
60180 2010-07-31  Bruno Haible  <bruno@clisp.org>
60182         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
60183         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
60184         character, perform the search using U_STRCHR.
60185         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
60186         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
60187         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
60188         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
60189         Suggested by Paolo Bonzini.
60191 2010-07-31  Bruno Haible  <bruno@clisp.org>
60193         unistr/u*-strstr: Fix dependencies.
60194         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
60195         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
60196         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
60198 2010-07-31  Bruno Haible  <bruno@clisp.org>
60200         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
60201         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
60202         the beginning of the loop.
60203         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
60204         cases in 'switch' statement.
60206         unistr/u8-strchr: Fix several bugs.
60207         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
60208         the string. When not found, return NULL, not a pointer near the end.
60210         More tests for unistr/u8-strchr.
60211         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
60212         that the function does not read past the first occurrence of the byte
60213         being searched.
60214         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
60215         * tests/unistr/test-u16-strchr.c (main): New function.
60216         * tests/unistr/test-u32-strchr.c (main): New function.
60218 2010-07-31  Bruno Haible  <bruno@clisp.org>
60220         posix-modules: Ignore backup files of documentation files.
60221         * posix-modules: grep only through files named *.texi.
60223 2010-07-31  Bruno Haible  <bruno@clisp.org>
60225         symlinkat: Fix documentation.
60226         * doc/posix-functions/readlinkat.texi: Fix module name.
60228 2010-07-31  Bruno Haible  <bruno@clisp.org>
60230         fchownat: Replace also when chown has the trailing slash bug.
60231         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
60232         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
60233         introduced on 2010-04-10.
60234         Reported by Rainer Tammer.
60236 2010-07-31  Bruno Haible  <bruno@clisp.org>
60238         linkat: Work around AIX 7.1 bug.
60239         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
60240         whether linkat handles trailing slash correctly. If not, replace linkat
60241         and define LINKAT_TRAILING_SLASH_BUG.
60242         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
60243         check whether (fd1,file1) points to a directory if file1 or file2 ends
60244         in a slash. Code taken from lib/link.c.
60245         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
60246         Reported by Rainer Tammer.
60248 2010-07-31  Bruno Haible  <bruno@clisp.org>
60250         Correctly determine whether pow is available in libc on AIX 7 with xlc.
60251         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
60252         This disables an xlc optimization that was causing wrong test results.
60253         Reported by Rainer Tammer.
60255 2010-07-31  Bruno Haible  <bruno@clisp.org>
60257         iconv: Work around AIX 6.1..7.1 bug.
60258         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
60259         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
60260         cross-compiling, guess no on all versions of AIX.
60261         Reported by Rainer Tammer.
60263 2010-07-31  Bruno Haible  <bruno@clisp.org>
60265         readlink: Relax test a bit.
60266         * tests/test-readlink.h (test_readlink): Allow different errno value
60267         when readlink is called with a file name that ends in / and refers to
60268         a file.
60269         Suggested by Eric Blake.
60270         Reported by Rainer Tammer.
60272 2010-07-31  Bruno Haible  <bruno@clisp.org>
60274         copysign: Does not require -lm on glibc systems.
60275         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
60276         gl_COMMON_DOUBLE_MATHFUNC.
60277         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
60279 2010-07-31  Bruno Haible  <bruno@clisp.org>
60281         duplocale: Work around AIX 7.1 bug.
60282         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
60283         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
60284         * lib/duplocale.c (rpl_duplocale): Update comment.
60285         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
60286         Reported by Rainer Tammer.
60288 2010-07-30  Bruno Haible  <bruno@clisp.org>
60290         dirfd: Avoid link error on AIX 7.1.
60291         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
60292         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
60293         exist, set REPLACE_DIRFD.
60294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
60295         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
60296         * doc/posix-functions/dirfd.texi: Update.
60297         Reported by Rainer Tammer.
60299 2010-07-30  Eric Blake  <eblake@redhat.com>
60301         strtod: next round of AIX fixes
60302         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
60303         exponent.
60304         * tests/test-strtod.c (main): Enhance tests.
60305         * doc/posix-functions/strtod.texi (strtod): Document next bug.
60306         Reported by Rainer Tammer.
60308         futimens: fix configure check
60309         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
60310         Reported by Bruno Haible.
60312 2010-07-30  Bruno Haible  <bruno@clisp.org>
60314         getline: Update regarding AIX.
60315         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
60316         Reported by Rainer Tammer.
60318 2010-07-30  Bruno Haible  <bruno@clisp.org>
60320         wcwidth: Drop replacement on AIX 7.
60321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
60322         AIX 7.
60323         Reported by Rainer Tammer.
60325 2010-07-30  Bruno Haible  <bruno@clisp.org>
60327         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
60328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
60329         a 'char *'.
60330         Reported by Rainer Tammer.
60332 2010-07-30  Bruno Haible  <bruno@clisp.org>
60334         unlink: Update regarding AIX.
60335         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
60336         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
60337         Reported by Rainer Tammer.
60339 2010-07-30  Bruno Haible  <bruno@clisp.org>
60341         symlink: Update regarding AIX.
60342         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
60343         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
60344         Reported by Rainer Tammer.
60346 2010-07-30  Bruno Haible  <bruno@clisp.org>
60348         strndup: Update regarding AIX.
60349         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
60350         AIX 7.
60351         Reported by Rainer Tammer.
60353 2010-07-30  Bruno Haible  <bruno@clisp.org>
60355         stat: Update regarding AIX.
60356         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
60357         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
60358         Reported by Rainer Tammer.
60360 2010-07-30  Bruno Haible  <bruno@clisp.org>
60362         truncl: Fix autoconf test.
60363         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
60364         whether truncl works.
60365         Reported by Rainer Tammer.
60367 2010-07-30  Bruno Haible  <bruno@clisp.org>
60369         round: Update regarding AIX.
60370         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
60371         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
60372         Reported by Rainer Tammer.
60374 2010-07-30  Bruno Haible  <bruno@clisp.org>
60376         rename: Update regarding AIX.
60377         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
60378         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
60379         Reported by Rainer Tammer.
60381 2010-07-30  Bruno Haible  <bruno@clisp.org>
60383         printf.m4: Update regarding AIX.
60384         * m4/printf.m4: Update comments regarding AIX.
60385         Reported by Rainer Tammer.
60387 2010-07-30  Bruno Haible  <bruno@clisp.org>
60389         iconv: Update regarding AIX.
60390         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
60391         AIX 7.
60392         Reported by Rainer Tammer.
60394 2010-07-30  Bruno Haible  <bruno@clisp.org>
60396         getopt: Update regarding AIX.
60397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
60398         no on AIX.
60399         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
60400         Reported by Rainer Tammer.
60402 2010-07-30  Bruno Haible  <bruno@clisp.org>
60404         ldexpl; Update regarding AIX.
60405         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
60406         on AIX 7.
60407         Reported by Rainer Tammer.
60409 2010-07-30  Bruno Haible  <bruno@clisp.org>
60411         frexpl: Update regarding AIX.
60412         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
60413         on AIX 7.
60414         Reported by Rainer Tammer.
60416 2010-07-30  Bruno Haible  <bruno@clisp.org>
60418         open, fopen: Update regarding AIX.
60419         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
60420         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
60421         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
60422         * doc/posix-functions/fopen.texi: Likewise.
60423         Reported by Rainer Tammer.
60425 2010-07-30  Bruno Haible  <bruno@clisp.org>
60427         chown: Update doc regarding AIX.
60428         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
60429         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
60430         Reported by Rainer Tammer.
60432 2010-07-30  Eric Blake  <eblake@redhat.com>
60434         strtod: fix bug in replacement function on AIX
60435         * lib/strtod.c (strtod): Special case broken "0x" parse in
60436         underlying strtod.
60437         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
60438         * doc/posix-functions/strtod.texi (strtod): Likewise.
60439         Reported by Rainer Tammer.
60441 2010-07-30  Bruno Haible  <bruno@clisp.org>
60443         mbrlen: Fix cross-compilation guess for AIX.
60444         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
60445         guess. Leftover from 2008-12-22.
60447 2010-07-30  Bruno Haible  <bruno@clisp.org>
60449         mbrtowc: Fix cross-compilation guess for AIX.
60450         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
60451         guess. Leftover from 2008-12-21.
60453 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
60455         init.sh: work around trap limitation of some shells
60456         * tests/init.sh (setup_): Move exit trap outside of shell function.
60458 2010-07-29  Eric Blake  <eblake@redhat.com>
60460         strtod: aid debugging
60461         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
60462         understanding why strtod is rejected.
60464 2010-07-28  Bruno Haible  <bruno@clisp.org>
60466         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
60467         * lib/unistr/u8-chr.c: Include <string.h>.
60468         * tests/unistr/test-u8-chr.c: Likewise.
60469         * tests/unistr/test-u16-chr.c: Likewise.
60470         * tests/unistr/test-u32-chr.c: Likewise.
60471         * tests/unistr/test-u8-strchr.c: Likewise.
60472         * tests/unistr/test-u16-strchr.c: Likewise.
60473         * tests/unistr/test-u32-strchr.c: Likewise.
60474         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
60475         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
60476         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
60477         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
60479 2010-07-28  Bruno Haible  <bruno@clisp.org>
60481         Use spaces for indentation, not tabs.
60482         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60484 2010-07-27  Bruno Haible  <bruno@clisp.org>
60486         mbspcasecmp: Fix function specification.
60487         * lib/string.in.h (mbspcasecmp): Fix specification comment.
60488         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
60489         Reported by Eric Blake <eblake@redhat.com>.
60491 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
60493         timespec: use cast and not conditional, as truncation isn't possible
60494         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
60495         instead of a conditional.  Comment about the situation in more detail.
60496         This undoes most of the 2009-10-29 patch.
60498 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
60500         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
60501         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
60502         * lib/unistr/u8-strchr.c: Likewise.
60503         * modules/unistr/u8-chr: Depend on memchr.
60505         unistr/u*-strchr: add tests
60506         * modules/unistr/u8-strchr-tests: New file.
60507         * modules/unistr/u16-strchr-tests: New file.
60508         * modules/unistr/u32-strchr-tests: New file.
60509         * tests/unistr/test-strchr.h: New file.
60510         * tests/unistr/test-u8-strchr.c: New file.
60511         * tests/unistr/test-u16-strchr.c: New file.
60512         * tests/unistr/test-u32-strchr.c: New file.
60514         unistr/u*-chr: test multibyte sequences more
60515         * tests/unistr/test-chr.h: Do complete testing of the characters in the
60516         test vector.
60517         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
60518         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
60519         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
60521         unistr/u*-chr: test multibyte sequences
60522         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
60524         unistr/u*-chr: prepare for multibyte tests
60525         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
60526         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
60527         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
60528         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
60529         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
60530         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
60532 2010-07-18  Bruno Haible  <bruno@clisp.org>
60534         unistr/u8-strchr: Optimize non-ASCII argument case.
60535         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
60536         because the first byte often matches anyway.
60537         Reported by Pádraig Brady <P@draigbrady.com>.
60539 2010-07-15  Karl Berry  <karl@gnu.org>
60541         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
60543 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
60545         getcwd: on Solaris, work better if ancestors are inaccessible
60546         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
60547         buffer and size, try again with a large buffer.  This works better
60548         on Solaris, since its getcwd succeeds even if the path to the root
60549         is inaccessible, and this is helpful in common cases such as .zfs
60550         hidden directories.  Problem reported by J Chapman Flack in
60551         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
60552         Use system getcwd if it's declared, not merely if it's partly
60553         working; use the partly-working test only to avoid needless effort
60554         if the system getcwd fails.
60555         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
60556         comment that was already obsolete and is now even more obsolete.
60557         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
60558         now might call strdup.
60560 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
60562         pthread: Add enough so that coreutils/src/sort.c compiles.
60563         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
60564         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
60565         gnulib. Include <sched.h> and <time.h>, as per POSIX.
60566         Include <sys/types.h>, in case it defines pthread_t.
60567         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
60568         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
60569         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
60570         (pthread_rwlockattr_t, pthread_spinlock_t):
60571         New typedefs, if HAVE_PTHREAD_T is not defined.
60572         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
60573         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
60574         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
60575         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
60576         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
60577         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
60578         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
60579         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
60580         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
60581         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
60582         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
60583         New macros.
60584         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
60585         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
60586         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
60587         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
60588         (pthread_spin_unlock): New dummy functions.
60589         (pthread_create): Return EAGAIN; don't set errno.
60590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
60591         require AC_C_INLINE.
60592         * modules/pthread (Depends-on): Add sched, time.
60593         (pthread.h): Use AM_V_GEN.
60595 2010-07-13  Bruno Haible  <bruno@clisp.org>
60597         striconveh: Don't malloc memory if the result buffer is sufficient.
60598         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
60599         buffer if its size is sufficient.
60600         Reported by Ludovic Courtès <ludo@gnu.org>.
60602 2010-07-13  Bruno Haible  <bruno@clisp.org>
60604         strtod: Add safety check.
60605         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
60607 2010-07-12  Bruno Haible  <bruno@clisp.org>
60609         Unify tests that set gl_cv_func_ldexpl_no_libm.
60610         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
60611         gl_FUNC_LDEXPL.
60612         (gl_FUNC_LDEXPL): Invoke it.
60613         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60615 2010-07-12  Bruno Haible  <bruno@clisp.org>
60617         Unify tests that set gl_cv_func_ldexp_no_libm.
60618         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
60619         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
60620         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
60621         (configure.ac): Simply invoke gl_FUNC_LDEXP.
60622         * modules/strtod (Files): Add m4/ldexp.m4.
60624 2010-07-12  Bruno Haible  <bruno@clisp.org>
60626         Unify tests that set gl_cv_func_frexpl_no_libm.
60627         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
60628         gl_FUNC_FREXPL_NO_LIBM.
60629         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
60630         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60632 2010-07-12  Bruno Haible  <bruno@clisp.org>
60634         Unify tests that set gl_cv_func_frexp_no_libm.
60635         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
60636         gl_FUNC_FREXP_NO_LIBM.
60637         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
60638         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
60640 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
60642         memcoll: clarify sizes versus lengths, document better, and tweak perf
60643         * lib/memcoll.c (strcoll_loop, memcoll0):
60644         Improve quality of descriptive comments.  Name variables
60645         consistently as to whether they are lengths (which do not include
60646         terminating null) versus sizes (which do).
60647         * lib/xmemcoll.c (xmemcoll0): Likewise.
60648         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
60649         returned when s1size == 0; this is easier to compile and saves
60650         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
60652 2010-07-12  Bruno Haible  <bruno@clisp.org>
60654         Tests for module '_Exit'.
60655         * modules/_Exit-tests: New file.
60656         * tests/test-_Exit.sh: New file.
60657         * tests/test-_Exit.c: New file.
60659         New module '_Exit'.
60660         * lib/stdlib.in.h (__attribute__): New macro.
60661         (_Exit): New declaration.
60662         * lib/_Exit.c: New file.
60663         * m4/_Exit.m4: New file.
60664         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
60665         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
60666         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
60667         * modules/_Exit: New file.
60668         * tests/test-stdlib-c++.cc (_Exit): Check signature.
60669         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
60671 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
60673         strtod: make it more-accurate typically, and don't require libm
60674         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
60675         Include limits.h.  Don't include string.h.
60676         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
60677         (locale_isspace): New function, so that no casts are needed to
60678         check whether *s is a space.
60679         (ldexp): Provide an unused dummy if not available.
60680         (scale_radix_exp, parse_number, underlying_strtod): New functions.
60681         (strtod): Use them.  This implementation prefers to use the
60682         underlying strtod if available, falling back on our own code
60683         only to fix known bugs.  This is more likely to produce an
60684         accurate result.  Also, it avoids the use of libm functions.
60685         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
60686         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
60687         was absent, but it caused a test failure with coreutils.
60688         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
60689         with libm.
60690         * modules/strtod (Makefile.am, Link): libm is no longer needed.
60691         * modules/strtod-tests (Makefile.am): Likewise.
60693 2010-07-11  Pádraig Brady  <P@draigBrady.com>
60694             Bruno Haible  <bruno@clisp.org>
60696         unistr/u8-strchr: Optimize ASCII argument case.
60697         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
60699 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60701         (x)memcoll: minor tweaks
60702         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
60703         is after the type that it qualifies.
60704         (memcoll0): Likewise.
60705         * lib/memcoll.h (memcoll0): Likewise.
60706         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
60707         * lib/xmemcoll.h (xmemcoll0): Likewise.
60708         * lib/memcoll.c (memcoll0): Correct the comment.  This function
60709         differs from memcoll in that the NUL byte is part of the argument.
60710         Omit the abort-checks, as performance is a real issue here.  Plus,
60711         the checks were wrong anyway (an off-by-one error).  Omit local
60712         variable 'diff', as it's a bit clearer that way.
60713         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
60714         no longer needed.
60716 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
60718         (x)memcoll: speedup when input is known to be NUL delimited
60719         * lib/memcoll.c: Include stdlib.
60720         (memcoll0): New function.
60721         (strcoll_loop): New function, refactored for use in both memcoll
60722         and memcoll0.
60723         * lib/memcoll.h (memcoll0): Add prototype.
60724         * lib/xmemcoll.c (xmemcoll0): New function.
60725         (collate_error): New function, refactored for use in both xmemcoll
60726         and xmemcoll0.
60727         * lib/xmemcoll.h (xmemcoll0): Add prototype.
60728         * m4/memcoll.m4: add inline invocation.
60730 2010-07-06  Pádraig Brady  <P@draigBrady.com>
60732         * build-aux/bootstrap: Remove any local translations
60733         from the translation project synchronization directory,
60734         so that local only translations are not distributed.
60736 2010-07-04  Bruno Haible  <bruno@clisp.org>
60738         fsusage: Clarify which code applies to which platforms.
60739         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
60740         platform.
60741         * lib/fsusage.c (get_fs_usage): Likewise.
60743 2010-07-04  Bruno Haible  <bruno@clisp.org>
60745         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
60746         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
60747         Reported by Martin Lambers <marlam@marlam.de>.
60749 2010-07-04  Jim Meyering  <meyering@redhat.com>
60751         hash: once again explicitly disallow insertion of NULL
60752         * lib/hash.c (hash_insert0): Reinstate just-removed test:
60753         inserting a NULL pointer cannot work with these functions.
60754         Add a comment with details.
60755         This reverts part of the 2010-07-01 commit, 5bef1a35
60756         "hash: extend module to deal with non-pointer keys".
60758 2010-07-01  Bruno Haible  <bruno@clisp.org>
60760         stdbool: Update doc.
60761         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
60762         Info from Christian Weisgerber <naddy@mips.inka.de>.
60764 2010-07-01  Jim Meyering  <meyering@redhat.com>
60766         hash: extend module to deal with non-pointer keys
60767         * lib/hash.c (hash_insert0): New interface, much like hash_insert
60768         but that allows insertion of non-pointer entries.
60769         Do not disallow an ENTRY value of NULL.
60770         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
60771         * lib/hash.h (hash_insert0): Declare.
60773 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60775         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
60776         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
60777         not present (i.e. with autoconf 2.59 and when using gettextize, not
60778         gnulib), require AC_GNU_SOURCE instead.
60780 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
60782         idpriv-drop: Fix tests.
60783         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
60784         not to the test-idpriv-droptemp program.
60786 2010-06-29  Bruno Haible  <bruno@clisp.org>
60788         string: Fix syntax error with g++ 2.96.
60789         * lib/string.in.h (__pure__): Remove definition.
60790         (_GL_ATTRIBUTE_PURE): New macro.
60791         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
60792         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
60793         Reported by Christian Weisgerber <naddy@mips.inka.de>.
60795 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
60797         unitypes: Fix bug introduced on 2010-05-18.
60798         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
60800 2010-06-22  Eric Blake  <eblake@redhat.com>
60802         memmem: slight optimization
60803         * lib/str-two-way.h (critical_factorization): Update comments.
60804         Reduce work during factorization phase.
60805         Reported by Carlos Bueno <carlos@bueno.org>.
60807 2010-06-21  Bruno Haible  <bruno@clisp.org>
60809         Fix HAVE_CALLOC_POSIX misnomer.
60810         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
60811         !HAVE_CALLOC_POSIX.
60812         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
60813         HAVE_CALLOC_POSIX.
60814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
60815         instead of HAVE_CALLOC_POSIX.
60816         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
60817         HAVE_CALLOC_POSIX.
60819         Use modern idiom for calloc() replacement.
60820         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
60821         AC_FUNC_CALLOC.
60822         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
60823         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
60824         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
60825         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
60826         (gl_REPLACE_CALLOC): New macro.
60828 2010-06-21  Bruno Haible  <bruno@clisp.org>
60830         Fix HAVE_REALLOC_POSIX misnomer.
60831         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
60832         !HAVE_REALLOC_POSIX.
60833         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
60834         HAVE_REALLOC_POSIX.
60835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
60836         instead of HAVE_REALLOC_POSIX.
60837         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
60838         HAVE_REALLOC_POSIX.
60840         Use modern idiom for realloc() replacement.
60841         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
60842         AC_FUNC_REALLOC.
60843         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
60844         Autoconf's AC_FUNC_REALLOC.
60845         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
60846         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
60847         (gl_REPLACE_REALLOC): New macro.
60848         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
60850 2010-06-21  Bruno Haible  <bruno@clisp.org>
60852         Fix HAVE_MALLOC_POSIX misnomer.
60853         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
60854         !HAVE_MALLOC_POSIX.
60855         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
60856         HAVE_MALLOC_POSIX.
60857         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
60858         instead of HAVE_MALLOC_POSIX.
60859         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
60860         HAVE_MALLOC_POSIX.
60862         Use modern idiom for malloc() replacement.
60863         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
60864         AC_FUNC_MALLOC.
60865         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
60866         Autoconf's AC_FUNC_MALLOC.
60867         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
60868         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
60869         (gl_REPLACE_MALLOC): New macro.
60870         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
60872 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
60874         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
60875         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
60876         This macro takes 3 arguments, not 4.
60878 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
60880         ipv6: fix detection under mingw
60881         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
60882         in6_addr.
60884 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
60886         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
60887         that strtod() works when cross-compiling to a glibc version known
60888         to work.
60890 2010-06-15  Bruno Haible  <bruno@clisp.org>
60892         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
60894 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
60896         select: Correct timeout.
60897         * lib/select.c (rpl_select): Compute wait_timeout correctly.
60899 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60901         git-version-gen: init shell var to avoid env var influence
60902         * build-aux/git-version-gen (v): Init shell var to empty.
60904 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
60906         priv-set: Don't assume that priv.h exists merely because getppriv does.
60907         See Jan Andersen's bug report about AIX 5L in
60908         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
60909         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
60910         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
60911         * lib/priv-set.h: Likewise.
60912         * tests/test-priv-set.c: Likewise.
60914 2010-06-13  Bruno Haible  <bruno@clisp.org>
60916         relocatable: Make it easier to test whether to install wrappers.
60917         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
60918         RELOCATABLE_VIA_WRAPPER.
60920 2010-06-13  Bruno Haible  <bruno@clisp.org>
60922         gnulib-tool: Display specified modules and dependencies differently.
60923         * gnulib-tool (func_show_module_list): New function.
60924         (func_import, func_create_testdir): Invoke it.
60925         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60927 2010-06-13  Bruno Haible  <bruno@clisp.org>
60929         gnulib-tool: Align code of func_import and func_create_testdir.
60930         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
60931         specified_modules.
60933 2010-06-12  Jim Meyering  <meyering@redhat.com>
60935         test-inttostr: avoid spurious failure on Solaris 9
60936         * tests/test-inttostr.c (main): Skip the test when snprintf fails
60937         to accept "%ju".  Reported by Bruno Haible.
60939 2010-06-11  Jim Meyering  <meyering@redhat.com>
60941         test-sys_socket: mark variables as used more readably
60942         * tests/test-sys_socket.c (main): Mark otherwise unused variables
60943         as "used" explicitly via (void) statement casts.  This is more
60944         readable than using them in an artificial return expression.
60945         Suggestion from Bruno Haible.
60947 2010-06-11  Bruno Haible  <bruno@clisp.org>
60949         Avoid some more warnings from "gcc -Wwrite-strings".
60950         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
60951         to 'const char *'.
60952         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
60953         * tests/test-c-strcasestr.c (main): Likewise.
60954         * tests/test-mbscasestr1.c (main): Likewise.
60955         * tests/test-mbscasestr2.c (main): Likewise.
60956         * tests/test-memmem.c (main): Likewise.
60957         * tests/test-strstr.c (main): Likewise.
60958         * tests/test-strcasestr.c (main): Likewise.
60960 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60962         init.sh: change framework_failure_ to fail with status 99, not 1
60963         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
60964         automake's parallel-tests rule that this is an unexpected failure,
60965         even if the test is listed in XFAIL_TESTS.
60967 2010-06-11  Jim Meyering  <meyering@redhat.com>
60969         test-inttostr: avoid warnings about 4-6KB literal strings
60970         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
60971         Include "macros.h", for its definition of ASSERT.
60972         (CK): s/assert/ASSERT/
60973         * modules/inttostr-tests (Files): Add macros.h.
60975         init.sh: don't use $ME_ or skip_ before they are defined
60976         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
60977         their first uses.  Also hoist their companions: warn_, fail_,
60978         framework_failure_, $stderr_fileno.  Prompted by a patch from
60979         Stefano Lattarini.
60981         test-sys_socket: avoid set-but-not-used warnings from gcc
60982         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
60983         avoid warning about set-but-not-used variables.
60985         test-xvasprintf: avoid 'const' discard warnings
60986         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
60987         "const" when assigning from literal strings.
60988         (test_xasprintf): Add "void" in function argument list to placate
60989         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
60991         tests: avoid compilation warnings in argmatch and exclude tests...
60992         in packages that define ARGMATCH_DIE_DECL, like coreutils.
60993         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
60994         Since it always exits, declare with the "noreturn" attribute.
60995         * tests/test-argmatch.c: Likewise.
60997         tests: avoid 'const' discard warnings in mbsstr tests
60998         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
60999         * tests/test-mbsstr2.c (main): Likewise.
61001         test-verify: avoid warning from gcc's -Wmissing-declarations
61002         * tests/test-verify.c (function): Declare to be static.
61004         test-inttostr.c: include <string.h> for use of strcmp
61005         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
61007         test-linkat: avoid failed assertion on "other" architectures
61008         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
61009         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
61010         sparc: https://bugs.launchpad.net/bugs/591968
61012 2010-06-11  Jim Meyering  <meyering@redhat.com>
61014         printf.m4: avoid autoconf's "Expanded Before Required" warning
61015         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
61016         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
61017         autoconf warning.
61019 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
61021         Replacement header templates are now named with ".in", not "_".
61022         * doc/gnulib-intro.texi: Correct.
61024 2010-06-10  Jim Meyering  <meyering@redhat.com>
61026         inttostr-tests: depend on snprintf, not snprintf-posix
61027         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
61028         snprintf-posix, to avoid this aclocal failure:
61029           missing file gnulib-tests/vasnprintf.c
61030           configure.ac:45: error: expected source file, required through \
61031           AC_LIBSOURCES, not found
61033 2010-06-10  Jim Meyering  <meyering@redhat.com>
61035         inttostr: add a new function, inttostr, and tests
61036         The namesake function was not available.  The existence of the
61037         template file, inttostr.c makes its addition nontrivial.
61038         * lib/anytostr.c: Rename from inttostr.c.
61039         (anytostr): Rename from inttostr.
61040         * lib/inttostr.c: New file.
61041         * modules/inttostr (Files): Add anytostr.c.
61042         (Makefile.am): Set lib_SOURCES instead of ...
61043         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
61044         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
61045         * lib/offtostr.c: Likewise.
61046         * lib/uinttostr.c: Likewise.
61047         * lib/umaxtostr.c: Likewise.
61048         * modules/inttostr-tests: New file.
61049         * tests/test-inttostr.c: New file.  Test these functions.
61051 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
61052             Bruno Haible  <bruno@clisp.org>
61054         Add "Extending Gnulib" chapter to manual.
61055         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
61056         chapter.
61057         (Extending Gnulib): New chapter.
61058         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
61059         chapter.
61061 2010-06-09  Bruno Haible  <bruno@clisp.org>
61063         Avoid relocwrapper link errors due to gnulib replacement functions.
61064         * lib/areadlink.c: Use the system's malloc, realloc functions.
61065         (areadlink): Set errno to ENOMEM explicitly.
61066         * modules/areadlink (Depends-on): Remove malloc-posix.
61067         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61069 2010-06-09  Bruno Haible  <bruno@clisp.org>
61071         Avoid relocwrapper link errors due to gnulib replacement functions.
61072         * lib/canonicalize-lgpl.c: Use the system's malloc function.
61073         * lib/malloca.c: Likewise.
61074         * lib/relocatable.c: Likewise.
61075         * lib/progreloc.c: Use the system's malloc, sprintf functions.
61076         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
61077         * lib/setenv.c: Use the system's malloc, realloc functions.
61078         * lib/strerror.c: Use the system's sprintf function.
61079         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61081 2010-06-04  Bruno Haible  <bruno@clisp.org>
61083         Prefer documented low-level autoconf macro names.
61084         * m4/lib-link.m4: Use m4_translit instead of translit.
61085         * m4/environ.m4: Likewise.
61086         * m4/mathfunc.m4: Likewise.
61087         * m4/onceonly.m4: Likewise.
61088         * m4/stdint.m4: Likewise.
61089         Suggested by Eric Blake.
61091 2010-06-04  Martin Lambers  <marlam@marlam.de>
61092             Bruno Haible  <bruno@clisp.org>
61094         havelib: Allow library names with '+' characters.
61095         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61096         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
61098 2010-06-09  Bruno Haible  <bruno@clisp.org>
61100         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
61101         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
61102         realloc failed.
61104 2010-06-08  Peter Simons  <simons@cryp.to>
61106         maint.mk: make the news-check rule more configurable
61107         * top/maint.mk (news-check-lines-spec): New variable.
61108         (news-check): Use "sed -n 1,10p" in place of "head".
61110 2010-06-07  Jim Meyering  <meyering@redhat.com>
61112         do-release-commit-and-tag: fix typo in --help
61113         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
61115         regex: avoid new dead-code warning with gcc-4.6.0
61116         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
61117         if-block containing a while-loop.  It's been unused for at least
61118         5 years.
61120 2010-06-05  Bruno Haible  <bruno@clisp.org>
61122         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
61123         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
61125 2010-06-04  Bruno Haible  <bruno@clisp.org>
61127         Update to GNU gettext 0.18.1.
61128         * modules/gettext (configure.ac): Require gettext infrastructure from
61129         version 0.18.1.
61131 2010-06-03  Bruno Haible  <bruno@clisp.org>
61133         Don't use AC_LIBOBJ with file names in subdirectories.
61134         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
61135         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
61136         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
61137         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
61138         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
61139         gl_LIBUNISTRING_LIBSOURCE.
61140         (Makefile.am): Augment lib_SOURCES here, conditionally.
61141         * NEWS: Drop requirement for Automake option 'subdir-objects'.
61143 2010-06-03  Bruno Haible  <bruno@clisp.org>
61145         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
61146         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
61147         expansion does not end with a newline.
61148         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
61149         unnecessary newline.
61151 2010-06-03  Bruno Haible  <bruno@clisp.org>
61153         Reduce dependencies.
61154         * tests/test-quotearg.h: New file, extracted from
61155         tests/test-quotearg.c.
61156         * tests/test-quotearg-simple.c: New file, extracted from
61157         tests/test-quotearg.c.
61158         * tests/test-quotearg.c: Don't include <ctype.h>.
61159         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
61160         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
61161         use_quote_double_quotes, use_quotearg_colon): Moved to
61162         tests/test-quotearg.h.
61163         (results_g, flag_results, custom_quotes, custom_results): Moved
61164         to tests/test-quotearg-simple.c.
61165         (main): Moved the part that does not depend on gettext to
61166         tests/test-quotearg-simple.c. Return 77 if the test cannot be
61167         performed.
61168         * modules/quotearg-simple: New file.
61169         * modules/quotearg-simple-tests: New file.
61170         * modules/quotearg (Depends-on): Add quotearg-simple.
61171         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
61172         (Files): Add tests/test-quotearg.h.
61173         Reported by Paolo Bonzini.
61175 2010-06-03  Bruno Haible  <bruno@clisp.org>
61177         Reduce dependencies.
61178         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
61180 2010-06-03  Bruno Haible  <bruno@clisp.org>
61182         time: Undefine more broken macros.
61183         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
61184         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
61185         Reported by Eric Blake.
61187 2010-06-03  Bruno Haible  <bruno@clisp.org>
61189         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
61190         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
61191         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
61192         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
61193         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
61194         Reported by Ludovic Courtès <ludo@gnu.org>.
61196 2010-06-02  Eric Blake  <eblake@redhat.com>
61198         time: work with mingw + pthreads-win32 library
61199         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
61200         if timespec is defined only in pthread.h.
61201         * modules/time (Makefile.am): Substitute it.
61202         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
61203         <pthread.h>, when needed.
61204         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
61205         from the library.
61207 2010-05-31  Bruno Haible  <bruno@clisp.org>
61209         Avoid expanding two macros in the wrong order.
61210         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
61211         gl_LIBUNISTRING if it is defined.
61212         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
61213         autoconf >= 2.64.
61214         Reported by Ludovic Courtès <ludo@gnu.org>.
61216 2010-05-27  Jim Meyering  <meyering@redhat.com>
61218         maint.mk: also prohibit "#undef" of always-defined symbols
61219         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
61220         Allow more than one space before the symbol name.
61221         (sc_prohibit_always-defined_macros): Use grep's -E, now that
61222         the regexp uses alternation.
61224 2010-05-26  Eric Blake  <eblake@redhat.com>
61226         maint.mk: avoid echo -e
61227         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
61228         Convert all uses of echo -* to printf.
61229         Reported by Matthias Bolte.
61231 2010-05-25  Bruno Haible  <bruno@clisp.org>
61233         Update to GNU gettext 0.18, part 2.
61234         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
61235         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
61237 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61239         Add missing include in test-pwrite.c.
61240         * tests/test-pwrite.c: Include string.h, for strcmp.
61242 2010-05-24  Bruno Haible  <bruno@clisp.org>
61244         * NEWS: Mention requirement for Automake option 'subdir-objects'.
61246 2010-05-24  Bruno Haible  <bruno@clisp.org>
61248         Don't use conversion with transliteration in u{8,16,32}_strcoll.
61249         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
61250         iconveh_error argument.
61251         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
61252         U_STRCONV_TO_LOCALE.
61253         * lib/unistr/u16-strcoll.c: Likewise.
61254         * lib/unistr/u32-strcoll.c: Likewise.
61255         * modules/unistr/u8-strcoll (Depends-on): Add
61256         uniconv/u8-strconv-to-enc, localcharset. Remove
61257         uniconv/u8-strconv-to-locale.
61258         (configure.ac): Bump version number.
61259         * modules/unistr/u16-strcoll (Depends-on): Add
61260         uniconv/u16-strconv-to-enc, localcharset. Remove
61261         uniconv/u16-strconv-to-locale.
61262         (configure.ac): Bump version number.
61263         * modules/unistr/u32-strcoll (Depends-on): Add
61264         uniconv/u32-strconv-to-enc, localcharset. Remove
61265         uniconv/u32-strconv-to-locale.
61266         (configure.ac): Bump version number.
61268 2010-05-24  Bruno Haible  <bruno@clisp.org>
61270         Avoid a test failure on NetBSD 5.0.
61271         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
61272         an iconv() bug.
61274 2010-05-24  Bruno Haible  <bruno@clisp.org>
61276         Adjust #include directive style.
61277         * modules/regex (Includes): Recommend to write <regex.h>.
61279 2010-05-24  Bruno Haible  <bruno@clisp.org>
61281         regex: Don't require alloca.
61282         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
61283         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
61284         only inside if (0).
61286 2010-05-23  Jim Meyering  <meyering@redhat.com>
61288         test-renameat.c: include <sys/stat.h>
61289         * tests/test-renameat.c: Include <sys/stat.h>; required for
61290         definition of S_IS* macros.
61292 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
61294         Update maintainer documentation for 'relocatable-prog' module.
61295         * doc/relocatable-maint.texi: Update.
61296         Comments by Bruno Haible.
61298 2010-05-23  Bruno Haible  <bruno@clisp.org>
61300         git-merge-changelog: Enable --split-merged-entry by default.
61301         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
61302         (usage): Don't mention this option any more.
61303         Reported by Ralf Wildenhues.
61305 2010-05-23  Jim Meyering  <meyering@redhat.com>
61307         test-pwrite: do not leave behind a test file named "out"
61308         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
61309         The trivial-looking use of init.sh is really necessary.
61310         It ensures that the temporary file, "out", is created in
61311         a temporary directory, and removed upon termination.
61312         * tests/test-pwrite.sh: Re-add file.
61313         * modules/pwrite-tests: Reference it.
61315 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61317         Fix output redirection buglet in init.sh.
61318         * tests/init.sh: Fix redirection of stderr.
61320 2010-05-20  Simon Josefsson  <simon@josefsson.org>
61322         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
61324 2010-05-17  Simon Josefsson  <simon@josefsson.org>
61326         * modules/valgrind-tests: New file.
61327         * m4/valgrind-tests.m4: New file.
61328         * doc/valgrind-tests.texi: New file.
61329         * doc/gnulib.texi (Running self-tests under valgrind): New
61330         section.
61332 2010-05-19  Bruno Haible  <bruno@clisp.org>
61334         Clean up dead code in recent commit.
61335         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
61336         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
61337         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
61338         Suggested by Paolo Bonzini.
61340 2010-05-19  Bruno Haible  <bruno@clisp.org>
61342         Avoid valgrind error reports from libunistring.
61343         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
61344         * modules/libunistring (Files): Add it.
61345         * modules/libunistring-optional (Files): Likewise.
61347 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
61348             Bruno Haible  <bruno@clisp.org>
61350         New module 'libunistring-optional'.
61351         * modules/libunistring-optional: New file.
61352         * m4/libunistring-base.m4: New file.
61353         * m4/libunistring-optional.m4: New file.
61354         * lib/unicase.in.h: Renamed from lib/unicase.h.
61355         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
61356         * lib/unictype.in.h: Renamed from lib/unictype.h.
61357         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
61358         * lib/uniname.in.h: Renamed from lib/uniname.h.
61359         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
61360         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
61361         * lib/unistr.in.h: Renamed from lib/unistr.h.
61362         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
61363         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
61364         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
61365         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
61366         gl_LIBUNISTRING. If the library was found, determine the installed
61367         version and set LIBUNISTRING_VERSION.
61368         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
61369         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
61370         handle a configuration option --with-included-libunistring.
61371         * modules/libunistring (Files): Add m4/absolute-header.m4.
61372         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
61373         Add m4/libunistring-base.m4.
61374         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61375         (Makefile.am): Build unicase.h from unicase.in.h.
61376         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
61377         Add m4/libunistring-base.m4.
61378         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61379         (Makefile.am): Build uniconv.h from uniconv.in.h.
61380         * modules/unictype/base (Files): Use unictype.in.h instead of
61381         unictype.h. Add m4/libunistring-base.m4.
61382         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61383         (Makefile.am): Build unictype.h from unictype.in.h.
61384         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
61385         Add m4/libunistring-base.m4.
61386         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61387         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
61388         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
61389         Add m4/libunistring-base.m4.
61390         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61391         (Makefile.am): Build uniname.h from uniname.in.h.
61392         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
61393         Add m4/libunistring-base.m4.
61394         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61395         (Makefile.am): Build uninorm.h from uninorm.in.h.
61396         * modules/unistdio/base (Files): Use unistdio.in.h instead of
61397         unistdio.h. Add m4/libunistring-base.m4.
61398         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61399         (Makefile.am): Build unistdio.h from unistdio.in.h.
61400         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
61401         Add m4/libunistring-base.m4.
61402         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61403         (Makefile.am): Build unistr.h from unistr.in.h.
61404         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
61405         Add m4/libunistring-base.m4.
61406         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61407         (Makefile.am): Build unitypes.h from unitypes.in.h.
61408         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
61409         Add m4/libunistring-base.m4.
61410         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61411         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
61412         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
61413         uniwidth.h. Add m4/libunistring-base.m4.
61414         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
61415         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
61416         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
61417         instead of augmenting lib_SOURCES.
61418         * modules/unicase/empty-suffix-context: Likewise.
61419         * modules/unicase/locale-language: Likewise.
61420         * modules/unicase/tolower: Likewise.
61421         * modules/unicase/totitle: Likewise.
61422         * modules/unicase/toupper: Likewise.
61423         * modules/unicase/u8-casecmp: Likewise.
61424         * modules/unicase/u8-casecoll: Likewise.
61425         * modules/unicase/u8-casefold: Likewise.
61426         * modules/unicase/u8-casexfrm: Likewise.
61427         * modules/unicase/u8-ct-casefold: Likewise.
61428         * modules/unicase/u8-ct-tolower: Likewise.
61429         * modules/unicase/u8-ct-totitle: Likewise.
61430         * modules/unicase/u8-ct-toupper: Likewise.
61431         * modules/unicase/u8-is-cased: Likewise.
61432         * modules/unicase/u8-is-casefolded: Likewise.
61433         * modules/unicase/u8-is-lowercase: Likewise.
61434         * modules/unicase/u8-is-titlecase: Likewise.
61435         * modules/unicase/u8-is-uppercase: Likewise.
61436         * modules/unicase/u8-prefix-context: Likewise.
61437         * modules/unicase/u8-suffix-context: Likewise.
61438         * modules/unicase/u8-tolower: Likewise.
61439         * modules/unicase/u8-totitle: Likewise.
61440         * modules/unicase/u8-toupper: Likewise.
61441         * modules/unicase/u16-casecmp: Likewise.
61442         * modules/unicase/u16-casecoll: Likewise.
61443         * modules/unicase/u16-casefold: Likewise.
61444         * modules/unicase/u16-casexfrm: Likewise.
61445         * modules/unicase/u16-ct-casefold: Likewise.
61446         * modules/unicase/u16-ct-tolower: Likewise.
61447         * modules/unicase/u16-ct-totitle: Likewise.
61448         * modules/unicase/u16-ct-toupper: Likewise.
61449         * modules/unicase/u16-is-cased: Likewise.
61450         * modules/unicase/u16-is-casefolded: Likewise.
61451         * modules/unicase/u16-is-lowercase: Likewise.
61452         * modules/unicase/u16-is-titlecase: Likewise.
61453         * modules/unicase/u16-is-uppercase: Likewise.
61454         * modules/unicase/u16-prefix-context: Likewise.
61455         * modules/unicase/u16-suffix-context: Likewise.
61456         * modules/unicase/u16-tolower: Likewise.
61457         * modules/unicase/u16-totitle: Likewise.
61458         * modules/unicase/u16-toupper: Likewise.
61459         * modules/unicase/u32-casecmp: Likewise.
61460         * modules/unicase/u32-casecoll: Likewise.
61461         * modules/unicase/u32-casefold: Likewise.
61462         * modules/unicase/u32-casexfrm: Likewise.
61463         * modules/unicase/u32-ct-casefold: Likewise.
61464         * modules/unicase/u32-ct-tolower: Likewise.
61465         * modules/unicase/u32-ct-totitle: Likewise.
61466         * modules/unicase/u32-ct-toupper: Likewise.
61467         * modules/unicase/u32-is-cased: Likewise.
61468         * modules/unicase/u32-is-casefolded: Likewise.
61469         * modules/unicase/u32-is-lowercase: Likewise.
61470         * modules/unicase/u32-is-titlecase: Likewise.
61471         * modules/unicase/u32-is-uppercase: Likewise.
61472         * modules/unicase/u32-prefix-context: Likewise.
61473         * modules/unicase/u32-suffix-context: Likewise.
61474         * modules/unicase/u32-tolower: Likewise.
61475         * modules/unicase/u32-totitle: Likewise.
61476         * modules/unicase/u32-toupper: Likewise.
61477         * modules/unicase/ulc-casecmp: Likewise.
61478         * modules/unicase/ulc-casecoll: Likewise.
61479         * modules/unicase/ulc-casexfrm: Likewise.
61480         * modules/uniconv/u8-conv-from-enc: Likewise.
61481         * modules/uniconv/u8-conv-to-enc: Likewise.
61482         * modules/uniconv/u8-strconv-from-enc: Likewise.
61483         * modules/uniconv/u8-strconv-from-locale: Likewise.
61484         * modules/uniconv/u8-strconv-to-enc: Likewise.
61485         * modules/uniconv/u8-strconv-to-locale: Likewise.
61486         * modules/uniconv/u16-conv-from-enc: Likewise.
61487         * modules/uniconv/u16-conv-to-enc: Likewise.
61488         * modules/uniconv/u16-strconv-from-enc: Likewise.
61489         * modules/uniconv/u16-strconv-from-locale: Likewise.
61490         * modules/uniconv/u16-strconv-to-enc: Likewise.
61491         * modules/uniconv/u16-strconv-to-locale: Likewise.
61492         * modules/uniconv/u32-conv-from-enc: Likewise.
61493         * modules/uniconv/u32-conv-to-enc: Likewise.
61494         * modules/uniconv/u32-strconv-from-enc: Likewise.
61495         * modules/uniconv/u32-strconv-from-locale: Likewise.
61496         * modules/uniconv/u32-strconv-to-enc: Likewise.
61497         * modules/uniconv/u32-strconv-to-locale: Likewise.
61498         * modules/unictype/bidicategory-byname: Likewise.
61499         * modules/unictype/bidicategory-name: Likewise.
61500         * modules/unictype/bidicategory-of: Likewise.
61501         * modules/unictype/bidicategory-test: Likewise.
61502         * modules/unictype/block-list: Likewise.
61503         * modules/unictype/block-test: Likewise.
61504         * modules/unictype/category-C: Likewise.
61505         * modules/unictype/category-Cc: Likewise.
61506         * modules/unictype/category-Cf: Likewise.
61507         * modules/unictype/category-Cn: Likewise.
61508         * modules/unictype/category-Co: Likewise.
61509         * modules/unictype/category-Cs: Likewise.
61510         * modules/unictype/category-L: Likewise.
61511         * modules/unictype/category-Ll: Likewise.
61512         * modules/unictype/category-Lm: Likewise.
61513         * modules/unictype/category-Lo: Likewise.
61514         * modules/unictype/category-Lt: Likewise.
61515         * modules/unictype/category-Lu: Likewise.
61516         * modules/unictype/category-M: Likewise.
61517         * modules/unictype/category-Mc: Likewise.
61518         * modules/unictype/category-Me: Likewise.
61519         * modules/unictype/category-Mn: Likewise.
61520         * modules/unictype/category-N: Likewise.
61521         * modules/unictype/category-Nd: Likewise.
61522         * modules/unictype/category-Nl: Likewise.
61523         * modules/unictype/category-No: Likewise.
61524         * modules/unictype/category-P: Likewise.
61525         * modules/unictype/category-Pc: Likewise.
61526         * modules/unictype/category-Pd: Likewise.
61527         * modules/unictype/category-Pe: Likewise.
61528         * modules/unictype/category-Pf: Likewise.
61529         * modules/unictype/category-Pi: Likewise.
61530         * modules/unictype/category-Po: Likewise.
61531         * modules/unictype/category-Ps: Likewise.
61532         * modules/unictype/category-S: Likewise.
61533         * modules/unictype/category-Sc: Likewise.
61534         * modules/unictype/category-Sk: Likewise.
61535         * modules/unictype/category-Sm: Likewise.
61536         * modules/unictype/category-So: Likewise.
61537         * modules/unictype/category-Z: Likewise.
61538         * modules/unictype/category-Zl: Likewise.
61539         * modules/unictype/category-Zp: Likewise.
61540         * modules/unictype/category-Zs: Likewise.
61541         * modules/unictype/category-and: Likewise.
61542         * modules/unictype/category-and-not: Likewise.
61543         * modules/unictype/category-byname: Likewise.
61544         * modules/unictype/category-name: Likewise.
61545         * modules/unictype/category-none: Likewise.
61546         * modules/unictype/category-of: Likewise.
61547         * modules/unictype/category-or: Likewise.
61548         * modules/unictype/category-test: Likewise.
61549         * modules/unictype/combining-class: Likewise.
61550         * modules/unictype/ctype-alnum: Likewise.
61551         * modules/unictype/ctype-alpha: Likewise.
61552         * modules/unictype/ctype-blank: Likewise.
61553         * modules/unictype/ctype-cntrl: Likewise.
61554         * modules/unictype/ctype-digit: Likewise.
61555         * modules/unictype/ctype-graph: Likewise.
61556         * modules/unictype/ctype-lower: Likewise.
61557         * modules/unictype/ctype-print: Likewise.
61558         * modules/unictype/ctype-punct: Likewise.
61559         * modules/unictype/ctype-space: Likewise.
61560         * modules/unictype/ctype-upper: Likewise.
61561         * modules/unictype/ctype-xdigit: Likewise.
61562         * modules/unictype/decimal-digit: Likewise.
61563         * modules/unictype/digit: Likewise.
61564         * modules/unictype/mirror: Likewise.
61565         * modules/unictype/numeric: Likewise.
61566         * modules/unictype/property-alphabetic: Likewise.
61567         * modules/unictype/property-ascii-hex-digit: Likewise.
61568         * modules/unictype/property-bidi-arabic-digit: Likewise.
61569         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
61570         * modules/unictype/property-bidi-block-separator: Likewise.
61571         * modules/unictype/property-bidi-boundary-neutral: Likewise.
61572         * modules/unictype/property-bidi-common-separator: Likewise.
61573         * modules/unictype/property-bidi-control: Likewise.
61574         * modules/unictype/property-bidi-embedding-or-override: Likewise.
61575         * modules/unictype/property-bidi-eur-num-separator: Likewise.
61576         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
61577         * modules/unictype/property-bidi-european-digit: Likewise.
61578         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
61579         * modules/unictype/property-bidi-left-to-right: Likewise.
61580         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
61581         * modules/unictype/property-bidi-other-neutral: Likewise.
61582         * modules/unictype/property-bidi-pdf: Likewise.
61583         * modules/unictype/property-bidi-segment-separator: Likewise.
61584         * modules/unictype/property-bidi-whitespace: Likewise.
61585         * modules/unictype/property-byname: Likewise.
61586         * modules/unictype/property-combining: Likewise.
61587         * modules/unictype/property-composite: Likewise.
61588         * modules/unictype/property-currency-symbol: Likewise.
61589         * modules/unictype/property-dash: Likewise.
61590         * modules/unictype/property-decimal-digit: Likewise.
61591         * modules/unictype/property-default-ignorable-code-point: Likewise.
61592         * modules/unictype/property-deprecated: Likewise.
61593         * modules/unictype/property-diacritic: Likewise.
61594         * modules/unictype/property-extender: Likewise.
61595         * modules/unictype/property-format-control: Likewise.
61596         * modules/unictype/property-grapheme-base: Likewise.
61597         * modules/unictype/property-grapheme-extend: Likewise.
61598         * modules/unictype/property-grapheme-link: Likewise.
61599         * modules/unictype/property-hex-digit: Likewise.
61600         * modules/unictype/property-hyphen: Likewise.
61601         * modules/unictype/property-id-continue: Likewise.
61602         * modules/unictype/property-id-start: Likewise.
61603         * modules/unictype/property-ideographic: Likewise.
61604         * modules/unictype/property-ids-binary-operator: Likewise.
61605         * modules/unictype/property-ids-trinary-operator: Likewise.
61606         * modules/unictype/property-ignorable-control: Likewise.
61607         * modules/unictype/property-iso-control: Likewise.
61608         * modules/unictype/property-join-control: Likewise.
61609         * modules/unictype/property-left-of-pair: Likewise.
61610         * modules/unictype/property-line-separator: Likewise.
61611         * modules/unictype/property-logical-order-exception: Likewise.
61612         * modules/unictype/property-lowercase: Likewise.
61613         * modules/unictype/property-math: Likewise.
61614         * modules/unictype/property-non-break: Likewise.
61615         * modules/unictype/property-not-a-character: Likewise.
61616         * modules/unictype/property-numeric: Likewise.
61617         * modules/unictype/property-other-alphabetic: Likewise.
61618         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
61619         * modules/unictype/property-other-grapheme-extend: Likewise.
61620         * modules/unictype/property-other-id-continue: Likewise.
61621         * modules/unictype/property-other-id-start: Likewise.
61622         * modules/unictype/property-other-lowercase: Likewise.
61623         * modules/unictype/property-other-math: Likewise.
61624         * modules/unictype/property-other-uppercase: Likewise.
61625         * modules/unictype/property-paired-punctuation: Likewise.
61626         * modules/unictype/property-paragraph-separator: Likewise.
61627         * modules/unictype/property-pattern-syntax: Likewise.
61628         * modules/unictype/property-pattern-white-space: Likewise.
61629         * modules/unictype/property-private-use: Likewise.
61630         * modules/unictype/property-punctuation: Likewise.
61631         * modules/unictype/property-quotation-mark: Likewise.
61632         * modules/unictype/property-radical: Likewise.
61633         * modules/unictype/property-sentence-terminal: Likewise.
61634         * modules/unictype/property-soft-dotted: Likewise.
61635         * modules/unictype/property-space: Likewise.
61636         * modules/unictype/property-terminal-punctuation: Likewise.
61637         * modules/unictype/property-test: Likewise.
61638         * modules/unictype/property-titlecase: Likewise.
61639         * modules/unictype/property-unassigned-code-value: Likewise.
61640         * modules/unictype/property-unified-ideograph: Likewise.
61641         * modules/unictype/property-uppercase: Likewise.
61642         * modules/unictype/property-variation-selector: Likewise.
61643         * modules/unictype/property-white-space: Likewise.
61644         * modules/unictype/property-xid-continue: Likewise.
61645         * modules/unictype/property-xid-start: Likewise.
61646         * modules/unictype/property-zero-width: Likewise.
61647         * modules/unictype/scripts: Likewise.
61648         * modules/unictype/syntax-c-ident: Likewise.
61649         * modules/unictype/syntax-c-whitespace: Likewise.
61650         * modules/unictype/syntax-java-ident: Likewise.
61651         * modules/unictype/syntax-java-whitespace: Likewise.
61652         * modules/unilbrk/u8-possible-linebreaks: Likewise.
61653         * modules/unilbrk/u8-width-linebreaks: Likewise.
61654         * modules/unilbrk/u16-possible-linebreaks: Likewise.
61655         * modules/unilbrk/u16-width-linebreaks: Likewise.
61656         * modules/unilbrk/u32-possible-linebreaks: Likewise.
61657         * modules/unilbrk/u32-width-linebreaks: Likewise.
61658         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
61659         * modules/unilbrk/ulc-width-linebreaks: Likewise.
61660         * modules/uniname/uniname: Likewise.
61661         * modules/uninorm/canonical-decomposition: Likewise.
61662         * modules/uninorm/composition: Likewise.
61663         * modules/uninorm/decomposing-form: Likewise.
61664         * modules/uninorm/decomposition: Likewise.
61665         * modules/uninorm/filter: Likewise.
61666         * modules/uninorm/nfc: Likewise.
61667         * modules/uninorm/nfd: Likewise.
61668         * modules/uninorm/nfkc: Likewise.
61669         * modules/uninorm/nfkd: Likewise.
61670         * modules/uninorm/u8-normalize: Likewise.
61671         * modules/uninorm/u8-normcmp: Likewise.
61672         * modules/uninorm/u8-normcoll: Likewise.
61673         * modules/uninorm/u8-normxfrm: Likewise.
61674         * modules/uninorm/u16-normalize: Likewise.
61675         * modules/uninorm/u16-normcmp: Likewise.
61676         * modules/uninorm/u16-normcoll: Likewise.
61677         * modules/uninorm/u16-normxfrm: Likewise.
61678         * modules/uninorm/u32-normalize: Likewise.
61679         * modules/uninorm/u32-normcmp: Likewise.
61680         * modules/uninorm/u32-normcoll: Likewise.
61681         * modules/uninorm/u32-normxfrm: Likewise.
61682         * modules/unistdio/u8-asnprintf: Likewise.
61683         * modules/unistdio/u8-asprintf: Likewise.
61684         * modules/unistdio/u8-snprintf: Likewise.
61685         * modules/unistdio/u8-sprintf: Likewise.
61686         * modules/unistdio/u8-u8-asnprintf: Likewise.
61687         * modules/unistdio/u8-u8-asprintf: Likewise.
61688         * modules/unistdio/u8-u8-snprintf: Likewise.
61689         * modules/unistdio/u8-u8-sprintf: Likewise.
61690         * modules/unistdio/u8-u8-vasnprintf: Likewise.
61691         * modules/unistdio/u8-u8-vasprintf: Likewise.
61692         * modules/unistdio/u8-u8-vsnprintf: Likewise.
61693         * modules/unistdio/u8-u8-vsprintf: Likewise.
61694         * modules/unistdio/u8-vasnprintf: Likewise.
61695         * modules/unistdio/u8-vasprintf: Likewise.
61696         * modules/unistdio/u8-vsnprintf: Likewise.
61697         * modules/unistdio/u8-vsprintf: Likewise.
61698         * modules/unistdio/u16-asnprintf: Likewise.
61699         * modules/unistdio/u16-asprintf: Likewise.
61700         * modules/unistdio/u16-snprintf: Likewise.
61701         * modules/unistdio/u16-sprintf: Likewise.
61702         * modules/unistdio/u16-u16-asnprintf: Likewise.
61703         * modules/unistdio/u16-u16-asprintf: Likewise.
61704         * modules/unistdio/u16-u16-snprintf: Likewise.
61705         * modules/unistdio/u16-u16-sprintf: Likewise.
61706         * modules/unistdio/u16-u16-vasnprintf: Likewise.
61707         * modules/unistdio/u16-u16-vasprintf: Likewise.
61708         * modules/unistdio/u16-u16-vsnprintf: Likewise.
61709         * modules/unistdio/u16-u16-vsprintf: Likewise.
61710         * modules/unistdio/u16-vasnprintf: Likewise.
61711         * modules/unistdio/u16-vasprintf: Likewise.
61712         * modules/unistdio/u16-vsnprintf: Likewise.
61713         * modules/unistdio/u16-vsprintf: Likewise.
61714         * modules/unistdio/u32-asnprintf: Likewise.
61715         * modules/unistdio/u32-asprintf: Likewise.
61716         * modules/unistdio/u32-snprintf: Likewise.
61717         * modules/unistdio/u32-sprintf: Likewise.
61718         * modules/unistdio/u32-u32-asnprintf: Likewise.
61719         * modules/unistdio/u32-u32-asprintf: Likewise.
61720         * modules/unistdio/u32-u32-snprintf: Likewise.
61721         * modules/unistdio/u32-u32-sprintf: Likewise.
61722         * modules/unistdio/u32-u32-vasnprintf: Likewise.
61723         * modules/unistdio/u32-u32-vasprintf: Likewise.
61724         * modules/unistdio/u32-u32-vsnprintf: Likewise.
61725         * modules/unistdio/u32-u32-vsprintf: Likewise.
61726         * modules/unistdio/u32-vasnprintf: Likewise.
61727         * modules/unistdio/u32-vasprintf: Likewise.
61728         * modules/unistdio/u32-vsnprintf: Likewise.
61729         * modules/unistdio/u32-vsprintf: Likewise.
61730         * modules/unistdio/ulc-asnprintf: Likewise.
61731         * modules/unistdio/ulc-asprintf: Likewise.
61732         * modules/unistdio/ulc-fprintf: Likewise.
61733         * modules/unistdio/ulc-snprintf: Likewise.
61734         * modules/unistdio/ulc-sprintf: Likewise.
61735         * modules/unistdio/ulc-vasnprintf: Likewise.
61736         * modules/unistdio/ulc-vasprintf: Likewise.
61737         * modules/unistdio/ulc-vfprintf: Likewise.
61738         * modules/unistdio/ulc-vsnprintf: Likewise.
61739         * modules/unistdio/ulc-vsprintf: Likewise.
61740         * modules/unistr/u8-check: Likewise.
61741         * modules/unistr/u8-chr: Likewise.
61742         * modules/unistr/u8-cmp: Likewise.
61743         * modules/unistr/u8-cmp2: Likewise.
61744         * modules/unistr/u8-cpy: Likewise.
61745         * modules/unistr/u8-cpy-alloc: Likewise.
61746         * modules/unistr/u8-endswith: Likewise.
61747         * modules/unistr/u8-mblen: Likewise.
61748         * modules/unistr/u8-mbsnlen: Likewise.
61749         * modules/unistr/u8-mbtouc: Likewise.
61750         * modules/unistr/u8-mbtouc-unsafe: Likewise.
61751         * modules/unistr/u8-mbtoucr: Likewise.
61752         * modules/unistr/u8-move: Likewise.
61753         * modules/unistr/u8-next: Likewise.
61754         * modules/unistr/u8-prev: Likewise.
61755         * modules/unistr/u8-set: Likewise.
61756         * modules/unistr/u8-startswith: Likewise.
61757         * modules/unistr/u8-stpcpy: Likewise.
61758         * modules/unistr/u8-stpncpy: Likewise.
61759         * modules/unistr/u8-strcat: Likewise.
61760         * modules/unistr/u8-strchr: Likewise.
61761         * modules/unistr/u8-strcmp: Likewise.
61762         * modules/unistr/u8-strcoll: Likewise.
61763         * modules/unistr/u8-strcpy: Likewise.
61764         * modules/unistr/u8-strcspn: Likewise.
61765         * modules/unistr/u8-strdup: Likewise.
61766         * modules/unistr/u8-strlen: Likewise.
61767         * modules/unistr/u8-strmblen: Likewise.
61768         * modules/unistr/u8-strmbtouc: Likewise.
61769         * modules/unistr/u8-strncat: Likewise.
61770         * modules/unistr/u8-strncmp: Likewise.
61771         * modules/unistr/u8-strncpy: Likewise.
61772         * modules/unistr/u8-strnlen: Likewise.
61773         * modules/unistr/u8-strpbrk: Likewise.
61774         * modules/unistr/u8-strrchr: Likewise.
61775         * modules/unistr/u8-strspn: Likewise.
61776         * modules/unistr/u8-strstr: Likewise.
61777         * modules/unistr/u8-strtok: Likewise.
61778         * modules/unistr/u8-to-u16: Likewise.
61779         * modules/unistr/u8-to-u32: Likewise.
61780         * modules/unistr/u8-uctomb: Likewise.
61781         * modules/unistr/u16-check: Likewise.
61782         * modules/unistr/u16-chr: Likewise.
61783         * modules/unistr/u16-cmp: Likewise.
61784         * modules/unistr/u16-cmp2: Likewise.
61785         * modules/unistr/u16-cpy: Likewise.
61786         * modules/unistr/u16-cpy-alloc: Likewise.
61787         * modules/unistr/u16-endswith: Likewise.
61788         * modules/unistr/u16-mblen: Likewise.
61789         * modules/unistr/u16-mbsnlen: Likewise.
61790         * modules/unistr/u16-mbtouc: Likewise.
61791         * modules/unistr/u16-mbtouc-unsafe: Likewise.
61792         * modules/unistr/u16-mbtoucr: Likewise.
61793         * modules/unistr/u16-move: Likewise.
61794         * modules/unistr/u16-next: Likewise.
61795         * modules/unistr/u16-prev: Likewise.
61796         * modules/unistr/u16-set: Likewise.
61797         * modules/unistr/u16-startswith: Likewise.
61798         * modules/unistr/u16-stpcpy: Likewise.
61799         * modules/unistr/u16-stpncpy: Likewise.
61800         * modules/unistr/u16-strcat: Likewise.
61801         * modules/unistr/u16-strchr: Likewise.
61802         * modules/unistr/u16-strcmp: Likewise.
61803         * modules/unistr/u16-strcoll: Likewise.
61804         * modules/unistr/u16-strcpy: Likewise.
61805         * modules/unistr/u16-strcspn: Likewise.
61806         * modules/unistr/u16-strdup: Likewise.
61807         * modules/unistr/u16-strlen: Likewise.
61808         * modules/unistr/u16-strmblen: Likewise.
61809         * modules/unistr/u16-strmbtouc: Likewise.
61810         * modules/unistr/u16-strncat: Likewise.
61811         * modules/unistr/u16-strncmp: Likewise.
61812         * modules/unistr/u16-strncpy: Likewise.
61813         * modules/unistr/u16-strnlen: Likewise.
61814         * modules/unistr/u16-strpbrk: Likewise.
61815         * modules/unistr/u16-strrchr: Likewise.
61816         * modules/unistr/u16-strspn: Likewise.
61817         * modules/unistr/u16-strstr: Likewise.
61818         * modules/unistr/u16-strtok: Likewise.
61819         * modules/unistr/u16-to-u32: Likewise.
61820         * modules/unistr/u16-to-u8: Likewise.
61821         * modules/unistr/u16-uctomb: Likewise.
61822         * modules/unistr/u32-check: Likewise.
61823         * modules/unistr/u32-chr: Likewise.
61824         * modules/unistr/u32-cmp: Likewise.
61825         * modules/unistr/u32-cmp2: Likewise.
61826         * modules/unistr/u32-cpy: Likewise.
61827         * modules/unistr/u32-cpy-alloc: Likewise.
61828         * modules/unistr/u32-endswith: Likewise.
61829         * modules/unistr/u32-mblen: Likewise.
61830         * modules/unistr/u32-mbsnlen: Likewise.
61831         * modules/unistr/u32-mbtouc: Likewise.
61832         * modules/unistr/u32-mbtouc-unsafe: Likewise.
61833         * modules/unistr/u32-mbtoucr: Likewise.
61834         * modules/unistr/u32-move: Likewise.
61835         * modules/unistr/u32-next: Likewise.
61836         * modules/unistr/u32-prev: Likewise.
61837         * modules/unistr/u32-set: Likewise.
61838         * modules/unistr/u32-startswith: Likewise.
61839         * modules/unistr/u32-stpcpy: Likewise.
61840         * modules/unistr/u32-stpncpy: Likewise.
61841         * modules/unistr/u32-strcat: Likewise.
61842         * modules/unistr/u32-strchr: Likewise.
61843         * modules/unistr/u32-strcmp: Likewise.
61844         * modules/unistr/u32-strcoll: Likewise.
61845         * modules/unistr/u32-strcpy: Likewise.
61846         * modules/unistr/u32-strcspn: Likewise.
61847         * modules/unistr/u32-strdup: Likewise.
61848         * modules/unistr/u32-strlen: Likewise.
61849         * modules/unistr/u32-strmblen: Likewise.
61850         * modules/unistr/u32-strmbtouc: Likewise.
61851         * modules/unistr/u32-strncat: Likewise.
61852         * modules/unistr/u32-strncmp: Likewise.
61853         * modules/unistr/u32-strncpy: Likewise.
61854         * modules/unistr/u32-strnlen: Likewise.
61855         * modules/unistr/u32-strpbrk: Likewise.
61856         * modules/unistr/u32-strrchr: Likewise.
61857         * modules/unistr/u32-strspn: Likewise.
61858         * modules/unistr/u32-strstr: Likewise.
61859         * modules/unistr/u32-strtok: Likewise.
61860         * modules/unistr/u32-to-u16: Likewise.
61861         * modules/unistr/u32-to-u8: Likewise.
61862         * modules/unistr/u32-uctomb: Likewise.
61863         * modules/uniwbrk/u8-wordbreaks: Likewise.
61864         * modules/uniwbrk/u16-wordbreaks: Likewise.
61865         * modules/uniwbrk/u32-wordbreaks: Likewise.
61866         * modules/uniwbrk/ulc-wordbreaks: Likewise.
61867         * modules/uniwbrk/wordbreak-property: Likewise.
61868         * modules/uniwidth/u8-strwidth: Likewise.
61869         * modules/uniwidth/u8-width: Likewise.
61870         * modules/uniwidth/u16-strwidth: Likewise.
61871         * modules/uniwidth/u16-width: Likewise.
61872         * modules/uniwidth/u32-strwidth: Likewise.
61873         * modules/uniwidth/u32-width: Likewise.
61874         * modules/uniwidth/width: Likewise.
61875         * modules/unicase/cased-tests (Makefile.am): Link all test programs
61876         with $(LIBUNISTRING).
61877         * modules/unicase/ignorable-tests: Likewise.
61878         * modules/unicase/locale-language-tests: Likewise.
61879         * modules/unicase/tolower-tests: Likewise.
61880         * modules/unicase/totitle-tests: Likewise.
61881         * modules/unicase/toupper-tests: Likewise.
61882         * modules/unicase/u8-casecmp-tests: Likewise.
61883         * modules/unicase/u8-casecoll-tests: Likewise.
61884         * modules/unicase/u8-casefold-tests: Likewise.
61885         * modules/unicase/u8-is-cased-tests: Likewise.
61886         * modules/unicase/u8-is-casefolded-tests: Likewise.
61887         * modules/unicase/u8-is-lowercase-tests: Likewise.
61888         * modules/unicase/u8-is-titlecase-tests: Likewise.
61889         * modules/unicase/u8-is-uppercase-tests: Likewise.
61890         * modules/unicase/u8-tolower-tests: Likewise.
61891         * modules/unicase/u8-totitle-tests: Likewise.
61892         * modules/unicase/u8-toupper-tests: Likewise.
61893         * modules/unicase/u16-casecmp-tests: Likewise.
61894         * modules/unicase/u16-casecoll-tests: Likewise.
61895         * modules/unicase/u16-casefold-tests: Likewise.
61896         * modules/unicase/u16-is-cased-tests: Likewise.
61897         * modules/unicase/u16-is-casefolded-tests: Likewise.
61898         * modules/unicase/u16-is-lowercase-tests: Likewise.
61899         * modules/unicase/u16-is-titlecase-tests: Likewise.
61900         * modules/unicase/u16-is-uppercase-tests: Likewise.
61901         * modules/unicase/u16-tolower-tests: Likewise.
61902         * modules/unicase/u16-totitle-tests: Likewise.
61903         * modules/unicase/u16-toupper-tests: Likewise.
61904         * modules/unicase/u32-casecmp-tests: Likewise.
61905         * modules/unicase/u32-casecoll-tests: Likewise.
61906         * modules/unicase/u32-casefold-tests: Likewise.
61907         * modules/unicase/u32-is-cased-tests: Likewise.
61908         * modules/unicase/u32-is-casefolded-tests: Likewise.
61909         * modules/unicase/u32-is-lowercase-tests: Likewise.
61910         * modules/unicase/u32-is-titlecase-tests: Likewise.
61911         * modules/unicase/u32-is-uppercase-tests: Likewise.
61912         * modules/unicase/u32-tolower-tests: Likewise.
61913         * modules/unicase/u32-totitle-tests: Likewise.
61914         * modules/unicase/u32-toupper-tests: Likewise.
61915         * modules/unicase/ulc-casecmp-tests: Likewise.
61916         * modules/unicase/ulc-casecoll-tests: Likewise.
61917         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
61918         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
61919         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
61920         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
61921         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
61922         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
61923         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
61924         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
61925         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
61926         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
61927         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
61928         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
61929         * modules/unictype/bidicategory-byname-tests: Likewise.
61930         * modules/unictype/bidicategory-name-tests: Likewise.
61931         * modules/unictype/bidicategory-of-tests: Likewise.
61932         * modules/unictype/bidicategory-test-tests: Likewise.
61933         * modules/unictype/block-list-tests: Likewise.
61934         * modules/unictype/block-of-tests: Likewise.
61935         * modules/unictype/block-test-tests: Likewise.
61936         * modules/unictype/category-C-tests: Likewise.
61937         * modules/unictype/category-Cc-tests: Likewise.
61938         * modules/unictype/category-Cf-tests: Likewise.
61939         * modules/unictype/category-Cn-tests: Likewise.
61940         * modules/unictype/category-Co-tests: Likewise.
61941         * modules/unictype/category-Cs-tests: Likewise.
61942         * modules/unictype/category-L-tests: Likewise.
61943         * modules/unictype/category-Ll-tests: Likewise.
61944         * modules/unictype/category-Lm-tests: Likewise.
61945         * modules/unictype/category-Lo-tests: Likewise.
61946         * modules/unictype/category-Lt-tests: Likewise.
61947         * modules/unictype/category-Lu-tests: Likewise.
61948         * modules/unictype/category-M-tests: Likewise.
61949         * modules/unictype/category-Mc-tests: Likewise.
61950         * modules/unictype/category-Me-tests: Likewise.
61951         * modules/unictype/category-Mn-tests: Likewise.
61952         * modules/unictype/category-N-tests: Likewise.
61953         * modules/unictype/category-Nd-tests: Likewise.
61954         * modules/unictype/category-Nl-tests: Likewise.
61955         * modules/unictype/category-No-tests: Likewise.
61956         * modules/unictype/category-P-tests: Likewise.
61957         * modules/unictype/category-Pc-tests: Likewise.
61958         * modules/unictype/category-Pd-tests: Likewise.
61959         * modules/unictype/category-Pe-tests: Likewise.
61960         * modules/unictype/category-Pf-tests: Likewise.
61961         * modules/unictype/category-Pi-tests: Likewise.
61962         * modules/unictype/category-Po-tests: Likewise.
61963         * modules/unictype/category-Ps-tests: Likewise.
61964         * modules/unictype/category-S-tests: Likewise.
61965         * modules/unictype/category-Sc-tests: Likewise.
61966         * modules/unictype/category-Sk-tests: Likewise.
61967         * modules/unictype/category-Sm-tests: Likewise.
61968         * modules/unictype/category-So-tests: Likewise.
61969         * modules/unictype/category-Z-tests: Likewise.
61970         * modules/unictype/category-Zl-tests: Likewise.
61971         * modules/unictype/category-Zp-tests: Likewise.
61972         * modules/unictype/category-Zs-tests: Likewise.
61973         * modules/unictype/category-and-not-tests: Likewise.
61974         * modules/unictype/category-and-tests: Likewise.
61975         * modules/unictype/category-byname-tests: Likewise.
61976         * modules/unictype/category-name-tests: Likewise.
61977         * modules/unictype/category-none-tests: Likewise.
61978         * modules/unictype/category-of-tests: Likewise.
61979         * modules/unictype/category-or-tests: Likewise.
61980         * modules/unictype/category-test-withtable-tests: Likewise.
61981         * modules/unictype/combining-class-tests: Likewise.
61982         * modules/unictype/ctype-alnum-tests: Likewise.
61983         * modules/unictype/ctype-alpha-tests: Likewise.
61984         * modules/unictype/ctype-blank-tests: Likewise.
61985         * modules/unictype/ctype-cntrl-tests: Likewise.
61986         * modules/unictype/ctype-digit-tests: Likewise.
61987         * modules/unictype/ctype-graph-tests: Likewise.
61988         * modules/unictype/ctype-lower-tests: Likewise.
61989         * modules/unictype/ctype-print-tests: Likewise.
61990         * modules/unictype/ctype-punct-tests: Likewise.
61991         * modules/unictype/ctype-space-tests: Likewise.
61992         * modules/unictype/ctype-upper-tests: Likewise.
61993         * modules/unictype/ctype-xdigit-tests: Likewise.
61994         * modules/unictype/decimal-digit-tests: Likewise.
61995         * modules/unictype/digit-tests: Likewise.
61996         * modules/unictype/mirror-tests: Likewise.
61997         * modules/unictype/numeric-tests: Likewise.
61998         * modules/unictype/property-alphabetic-tests: Likewise.
61999         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
62000         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
62001         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
62002         * modules/unictype/property-bidi-block-separator-tests: Likewise.
62003         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
62004         * modules/unictype/property-bidi-common-separator-tests: Likewise.
62005         * modules/unictype/property-bidi-control-tests: Likewise.
62006         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
62007         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
62008         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
62009         * modules/unictype/property-bidi-european-digit-tests: Likewise.
62010         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
62011         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
62012         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
62013         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
62014         * modules/unictype/property-bidi-pdf-tests: Likewise.
62015         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
62016         * modules/unictype/property-bidi-whitespace-tests: Likewise.
62017         * modules/unictype/property-byname-tests: Likewise.
62018         * modules/unictype/property-combining-tests: Likewise.
62019         * modules/unictype/property-composite-tests: Likewise.
62020         * modules/unictype/property-currency-symbol-tests: Likewise.
62021         * modules/unictype/property-dash-tests: Likewise.
62022         * modules/unictype/property-decimal-digit-tests: Likewise.
62023         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
62024         * modules/unictype/property-deprecated-tests: Likewise.
62025         * modules/unictype/property-diacritic-tests: Likewise.
62026         * modules/unictype/property-extender-tests: Likewise.
62027         * modules/unictype/property-format-control-tests: Likewise.
62028         * modules/unictype/property-grapheme-base-tests: Likewise.
62029         * modules/unictype/property-grapheme-extend-tests: Likewise.
62030         * modules/unictype/property-grapheme-link-tests: Likewise.
62031         * modules/unictype/property-hex-digit-tests: Likewise.
62032         * modules/unictype/property-hyphen-tests: Likewise.
62033         * modules/unictype/property-id-continue-tests: Likewise.
62034         * modules/unictype/property-id-start-tests: Likewise.
62035         * modules/unictype/property-ideographic-tests: Likewise.
62036         * modules/unictype/property-ids-binary-operator-tests: Likewise.
62037         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
62038         * modules/unictype/property-ignorable-control-tests: Likewise.
62039         * modules/unictype/property-iso-control-tests: Likewise.
62040         * modules/unictype/property-join-control-tests: Likewise.
62041         * modules/unictype/property-left-of-pair-tests: Likewise.
62042         * modules/unictype/property-line-separator-tests: Likewise.
62043         * modules/unictype/property-logical-order-exception-tests: Likewise.
62044         * modules/unictype/property-lowercase-tests: Likewise.
62045         * modules/unictype/property-math-tests: Likewise.
62046         * modules/unictype/property-non-break-tests: Likewise.
62047         * modules/unictype/property-not-a-character-tests: Likewise.
62048         * modules/unictype/property-numeric-tests: Likewise.
62049         * modules/unictype/property-other-alphabetic-tests: Likewise.
62050         * modules/unictype/property-other-default-ignorable-code-point-tests:
62051         Likewise.
62052         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
62053         * modules/unictype/property-other-id-continue-tests: Likewise.
62054         * modules/unictype/property-other-id-start-tests: Likewise.
62055         * modules/unictype/property-other-lowercase-tests: Likewise.
62056         * modules/unictype/property-other-math-tests: Likewise.
62057         * modules/unictype/property-other-uppercase-tests: Likewise.
62058         * modules/unictype/property-paired-punctuation-tests: Likewise.
62059         * modules/unictype/property-paragraph-separator-tests: Likewise.
62060         * modules/unictype/property-pattern-syntax-tests: Likewise.
62061         * modules/unictype/property-pattern-white-space-tests: Likewise.
62062         * modules/unictype/property-private-use-tests: Likewise.
62063         * modules/unictype/property-punctuation-tests: Likewise.
62064         * modules/unictype/property-quotation-mark-tests: Likewise.
62065         * modules/unictype/property-radical-tests: Likewise.
62066         * modules/unictype/property-sentence-terminal-tests: Likewise.
62067         * modules/unictype/property-soft-dotted-tests: Likewise.
62068         * modules/unictype/property-space-tests: Likewise.
62069         * modules/unictype/property-terminal-punctuation-tests: Likewise.
62070         * modules/unictype/property-test-tests: Likewise.
62071         * modules/unictype/property-titlecase-tests: Likewise.
62072         * modules/unictype/property-unassigned-code-value-tests: Likewise.
62073         * modules/unictype/property-unified-ideograph-tests: Likewise.
62074         * modules/unictype/property-uppercase-tests: Likewise.
62075         * modules/unictype/property-variation-selector-tests: Likewise.
62076         * modules/unictype/property-white-space-tests: Likewise.
62077         * modules/unictype/property-xid-continue-tests: Likewise.
62078         * modules/unictype/property-xid-start-tests: Likewise.
62079         * modules/unictype/property-zero-width-tests: Likewise.
62080         * modules/unictype/scripts-tests: Likewise.
62081         * modules/unictype/syntax-c-ident-tests: Likewise.
62082         * modules/unictype/syntax-c-whitespace-tests: Likewise.
62083         * modules/unictype/syntax-java-ident-tests: Likewise.
62084         * modules/unictype/syntax-java-whitespace-tests: Likewise.
62085         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
62086         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
62087         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
62088         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
62089         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
62090         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
62091         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
62092         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
62093         * modules/uniname/uniname-tests: Likewise.
62094         * modules/uninorm/canonical-decomposition-tests: Likewise.
62095         * modules/uninorm/compat-decomposition-tests: Likewise.
62096         * modules/uninorm/composition-tests: Likewise.
62097         * modules/uninorm/decomposing-form-tests: Likewise.
62098         * modules/uninorm/decomposition-tests: Likewise.
62099         * modules/uninorm/filter-tests: Likewise.
62100         * modules/uninorm/nfc-tests: Likewise.
62101         * modules/uninorm/nfd-tests: Likewise.
62102         * modules/uninorm/nfkc-tests: Likewise.
62103         * modules/uninorm/nfkd-tests: Likewise.
62104         * modules/uninorm/u8-normcmp-tests: Likewise.
62105         * modules/uninorm/u8-normcoll-tests: Likewise.
62106         * modules/uninorm/u16-normcmp-tests: Likewise.
62107         * modules/uninorm/u16-normcoll-tests: Likewise.
62108         * modules/uninorm/u32-normcmp-tests: Likewise.
62109         * modules/uninorm/u32-normcoll-tests: Likewise.
62110         * modules/unistdio/u8-asnprintf-tests: Likewise.
62111         * modules/unistdio/u8-vasnprintf-tests: Likewise.
62112         * modules/unistdio/u8-vasprintf-tests: Likewise.
62113         * modules/unistdio/u8-vsnprintf-tests: Likewise.
62114         * modules/unistdio/u8-vsprintf-tests: Likewise.
62115         * modules/unistdio/u16-asnprintf-tests: Likewise.
62116         * modules/unistdio/u16-vasnprintf-tests: Likewise.
62117         * modules/unistdio/u16-vasprintf-tests: Likewise.
62118         * modules/unistdio/u16-vsnprintf-tests: Likewise.
62119         * modules/unistdio/u16-vsprintf-tests: Likewise.
62120         * modules/unistdio/u32-asnprintf-tests: Likewise.
62121         * modules/unistdio/u32-vasnprintf-tests: Likewise.
62122         * modules/unistdio/u32-vasprintf-tests: Likewise.
62123         * modules/unistdio/u32-vsnprintf-tests: Likewise.
62124         * modules/unistdio/u32-vsprintf-tests: Likewise.
62125         * modules/unistdio/ulc-asnprintf-tests: Likewise.
62126         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
62127         * modules/unistdio/ulc-vasprintf-tests: Likewise.
62128         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
62129         * modules/unistdio/ulc-vsprintf-tests: Likewise.
62130         * modules/unistr/u8-check-tests: Likewise.
62131         * modules/unistr/u8-chr-tests: Likewise.
62132         * modules/unistr/u8-cmp-tests: Likewise.
62133         * modules/unistr/u8-cmp2-tests: Likewise.
62134         * modules/unistr/u8-cpy-alloc-tests: Likewise.
62135         * modules/unistr/u8-cpy-tests: Likewise.
62136         * modules/unistr/u8-mblen-tests: Likewise.
62137         * modules/unistr/u8-mbsnlen-tests: Likewise.
62138         * modules/unistr/u8-mbtouc-tests: Likewise.
62139         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
62140         * modules/unistr/u8-mbtoucr-tests: Likewise.
62141         * modules/unistr/u8-move-tests: Likewise.
62142         * modules/unistr/u8-next-tests: Likewise.
62143         * modules/unistr/u8-prev-tests: Likewise.
62144         * modules/unistr/u8-set-tests: Likewise.
62145         * modules/unistr/u8-stpcpy-tests: Likewise.
62146         * modules/unistr/u8-stpncpy-tests: Likewise.
62147         * modules/unistr/u8-strcat-tests: Likewise.
62148         * modules/unistr/u8-strcmp-tests: Likewise.
62149         * modules/unistr/u8-strcoll-tests: Likewise.
62150         * modules/unistr/u8-strcpy-tests: Likewise.
62151         * modules/unistr/u8-strdup-tests: Likewise.
62152         * modules/unistr/u8-strlen-tests: Likewise.
62153         * modules/unistr/u8-strmblen-tests: Likewise.
62154         * modules/unistr/u8-strmbtouc-tests: Likewise.
62155         * modules/unistr/u8-strncat-tests: Likewise.
62156         * modules/unistr/u8-strncmp-tests: Likewise.
62157         * modules/unistr/u8-strncpy-tests: Likewise.
62158         * modules/unistr/u8-strnlen-tests: Likewise.
62159         * modules/unistr/u8-to-u16-tests: Likewise.
62160         * modules/unistr/u8-to-u32-tests: Likewise.
62161         * modules/unistr/u8-uctomb-tests: Likewise.
62162         * modules/unistr/u16-check-tests: Likewise.
62163         * modules/unistr/u16-chr-tests: Likewise.
62164         * modules/unistr/u16-cmp-tests: Likewise.
62165         * modules/unistr/u16-cmp2-tests: Likewise.
62166         * modules/unistr/u16-cpy-alloc-tests: Likewise.
62167         * modules/unistr/u16-cpy-tests: Likewise.
62168         * modules/unistr/u16-mblen-tests: Likewise.
62169         * modules/unistr/u16-mbsnlen-tests: Likewise.
62170         * modules/unistr/u16-mbtouc-tests: Likewise.
62171         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
62172         * modules/unistr/u16-mbtoucr-tests: Likewise.
62173         * modules/unistr/u16-move-tests: Likewise.
62174         * modules/unistr/u16-next-tests: Likewise.
62175         * modules/unistr/u16-prev-tests: Likewise.
62176         * modules/unistr/u16-set-tests: Likewise.
62177         * modules/unistr/u16-stpcpy-tests: Likewise.
62178         * modules/unistr/u16-stpncpy-tests: Likewise.
62179         * modules/unistr/u16-strcat-tests: Likewise.
62180         * modules/unistr/u16-strcmp-tests: Likewise.
62181         * modules/unistr/u16-strcoll-tests: Likewise.
62182         * modules/unistr/u16-strcpy-tests: Likewise.
62183         * modules/unistr/u16-strdup-tests: Likewise.
62184         * modules/unistr/u16-strlen-tests: Likewise.
62185         * modules/unistr/u16-strmblen-tests: Likewise.
62186         * modules/unistr/u16-strmbtouc-tests: Likewise.
62187         * modules/unistr/u16-strncat-tests: Likewise.
62188         * modules/unistr/u16-strncmp-tests: Likewise.
62189         * modules/unistr/u16-strncpy-tests: Likewise.
62190         * modules/unistr/u16-strnlen-tests: Likewise.
62191         * modules/unistr/u16-to-u32-tests: Likewise.
62192         * modules/unistr/u16-to-u8-tests: Likewise.
62193         * modules/unistr/u16-uctomb-tests: Likewise.
62194         * modules/unistr/u32-check-tests: Likewise.
62195         * modules/unistr/u32-chr-tests: Likewise.
62196         * modules/unistr/u32-cmp-tests: Likewise.
62197         * modules/unistr/u32-cmp2-tests: Likewise.
62198         * modules/unistr/u32-cpy-alloc-tests: Likewise.
62199         * modules/unistr/u32-cpy-tests: Likewise.
62200         * modules/unistr/u32-mblen-tests: Likewise.
62201         * modules/unistr/u32-mbsnlen-tests: Likewise.
62202         * modules/unistr/u32-mbtouc-tests: Likewise.
62203         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
62204         * modules/unistr/u32-mbtoucr-tests: Likewise.
62205         * modules/unistr/u32-move-tests: Likewise.
62206         * modules/unistr/u32-next-tests: Likewise.
62207         * modules/unistr/u32-prev-tests: Likewise.
62208         * modules/unistr/u32-set-tests: Likewise.
62209         * modules/unistr/u32-stpcpy-tests: Likewise.
62210         * modules/unistr/u32-stpncpy-tests: Likewise.
62211         * modules/unistr/u32-strcat-tests: Likewise.
62212         * modules/unistr/u32-strcmp-tests: Likewise.
62213         * modules/unistr/u32-strcoll-tests: Likewise.
62214         * modules/unistr/u32-strcpy-tests: Likewise.
62215         * modules/unistr/u32-strdup-tests: Likewise.
62216         * modules/unistr/u32-strlen-tests: Likewise.
62217         * modules/unistr/u32-strmblen-tests: Likewise.
62218         * modules/unistr/u32-strmbtouc-tests: Likewise.
62219         * modules/unistr/u32-strncat-tests: Likewise.
62220         * modules/unistr/u32-strncmp-tests: Likewise.
62221         * modules/unistr/u32-strncpy-tests: Likewise.
62222         * modules/unistr/u32-strnlen-tests: Likewise.
62223         * modules/unistr/u32-to-u16-tests: Likewise.
62224         * modules/unistr/u32-to-u8-tests: Likewise.
62225         * modules/unistr/u32-uctomb-tests: Likewise.
62226         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
62227         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
62228         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
62229         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
62230         * modules/uniwidth/u8-strwidth-tests: Likewise.
62231         * modules/uniwidth/u8-width-tests: Likewise.
62232         * modules/uniwidth/u16-strwidth-tests: Likewise.
62233         * modules/uniwidth/u16-width-tests: Likewise.
62234         * modules/uniwidth/u32-strwidth-tests: Likewise.
62235         * modules/uniwidth/u32-width-tests: Likewise.
62236         * modules/uniwidth/width-tests: Likewise.
62238 2010-05-18  Richard Jones  <rjones@redhat.com>
62240         doc: users.txt: list hivex
62241         * users.txt: Add hivex.
62243 2010-05-18  Richard Jones  <rjones@redhat.com>
62245         doc: users.txt: list febootstrap
62246         * users.txt: Add febootstrap.
62248 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
62250         bootstrap: fix an error when gnulib is not used as a git submodule
62251         * build-aux/bootstrap (gnulib_path): If its length is zero then
62252         assign "gnulib" to it.
62253         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
62255 2010-05-16  Bruno Haible  <bruno@clisp.org>
62257         Avoid autoconf warnings about AM_ICONV.
62258         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
62259         2.64.
62261 2010-05-16  Bruno Haible  <bruno@clisp.org>
62263         absolute-header: Make the macro usable in more situations.
62264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
62265         from gl_ABSOLUTE_HEADER.
62266         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
62268 2010-05-16  James Youngman  <jay@gnu.org>
62270         doc: update users.txt
62271         * users.txt: Add CSSC.
62273 2010-05-16  Jim Meyering  <meyering@redhat.com>
62275         init.sh: fix an error in the previous change; add more comments
62276         * tests/init.sh: Compare exit code in loop against 9, not 2.
62277         Patch by Bruno Haible.
62278         Make the two tests more similar by adding an empty "then" clause.
62279         Add comments.
62281         init.sh: avoid unnecessary shell re-exec
62282         * tests/init.sh: Improve the re-exec-required check to first test the
62283         current shell.  If it passes the test, do not search for a shell that
62284         does pass, and do not re-exec.  This test is particularly contorted to
62285         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
62286         of $(...) evokes a syntax error and causes immediate shell exit with
62287         status 2.  Bruno Haible reported that the re-exec made it impossible
62288         to single-step through any init.sh-using script.
62290 2010-05-16  Bruno Haible  <bruno@clisp.org>
62292         Fix collision between gnulib's and libintl's printf replacements.
62293         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
62294         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
62295         (printf): When using GNU C, map the __printf__ function to rpl_printf
62296         via __asm__. When not using GNU C, define rpl_printf instead of
62297         __printf__.
62298         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
62299         commit.
62300         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
62301         commit.
62302         * m4/asm-underscore.m4: New file.
62303         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
62304         * modules/stdio (Files): Add m4/asm-underscore.m4.
62305         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
62306         Reported by Ben Pfaff.
62308 2010-05-16  Bruno Haible  <bruno@clisp.org>
62310         verify: Avoid skipping the test on openSUSE 11.0.
62311         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
62313 2010-05-13  Bruno Haible  <bruno@clisp.org>
62315         Avoid useless warnings from G++.
62316         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
62317         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
62318         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62320 2010-05-11  Jim Meyering  <meyering@redhat.com>
62322         maint.mk: tweak preceding change
62323         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
62324         regexps tighter by anchoring at EOL, and make the new group "shy"
62325         for slightly decreased overhead.
62327 2010-05-11  Eric Blake  <eblake@redhat.com>
62329         maint.mk: gnulib doesn't guarantee NSIG
62330         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
62332 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
62334         test-pwrite.c: Remove unused variable declaration.
62335         * tests/test-pwrite.c (main): Remove read_buf declaration.
62337         Remove useless test-pwrite.sh file.
62338         * tests/test-pwrite.sh: Delete file.
62339         * modules/pwrite-tests: Remove references.
62340         Reported by Bruno Haible.
62342 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
62344         init.sh: fix a typo
62345         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
62347 2010-05-10  Jim Meyering  <meyering@redhat.com>
62349         maint.mk: avoid using a temporary file in the always-defined-macros check
62350         * top/maint.mk (.re-defmac): Remove rule.
62351         (gl_trap_): Remove definition.
62352         (sc_prohibit_always-defined_macros): Rewrite not to create and
62353         depend on a temporary file.  Instead, depend on GNU grep's ability
62354         to read a list of regular expressions from stdin when given "-f -".
62356 2010-05-09  Bruno Haible  <bruno@clisp.org>
62358         Update to GNU gettext 0.18, part 1.
62359         * m4/gettext.m4: Update to GNU gettext 0.18.
62360         * m4/intl.m4: Likewise.
62361         * m4/po.m4: Likewise.
62362         * modules/gettext (Files): Add m4/fcntl-o.m4.
62363         (configure.ac): Require gettext infrastructure from version 0.18.
62365 2010-05-09  Jim Meyering  <meyering@redhat.com>
62367         init.sh: enable MALLOC_PERTURB_
62368         * tests/init.sh: Enable glibc's malloc-perturbing option.
62370         maint.mk: improve sc_cross_check_PATH_usage_in_tests
62371         With my recent change in init.sh from the two-line form:
62372             -#   : ${srcdir=.}
62373             -#   . "$srcdir/init.sh"; path_prepend_ .
62374             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
62375         I noticed that using the one-line form would cause this test
62376         to fail with a false-positive, or to stop working altogether,
62377         depending on whether help-version changed or all the tests did.
62378         * top/maint.mk (_hv_regex): Remove this definition.
62379         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
62380         (_hv_regex_strong): Use a stronger regex to check for conformance.
62381         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
62382         Give a separate diagnostic for lack of conforming use.
62384         maint.mk: prohibit definition of symbols defined by gnulib
62385         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
62386         definition of symbols defined by gnulib.
62388 2010-05-09  Bruno Haible  <bruno@clisp.org>
62390         acl: Avoid test failure on Cygwin-hosted mingw.
62391         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
62393 2010-05-09  Bruno Haible  <bruno@clisp.org>
62395         error: Use system's fcntl function.
62396         * lib/error.c (fcntl): Undefine.
62398 2010-05-09  Jim Meyering  <meyering@redhat.com>
62400         verify: adjust formatting to be more consistent
62401         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
62402         argument-list '('s, and after one comma.
62404 2010-05-09  Bruno Haible  <bruno@clisp.org>
62406         error: More reliable output on mingw.
62407         * lib/error.c: Include <windows.h>.
62408         (is_open): New function.
62409         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
62410         defined.
62412 2010-05-09  Bruno Haible  <bruno@clisp.org>
62414         vasnprintf: Fix syntax errors in libintl build on mingw.
62415         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
62416         pad_ourselves and prec_ourselves after use.
62418 2010-05-08  Bruno Haible  <bruno@clisp.org>
62420         * lib/config.charset: Update comments for Cygwin 1.7.
62421         * lib/localcharset.c: Likewise.
62423 2010-05-07  Jim Meyering  <meyering@redhat.com>
62425         init.sh: improve comments
62426         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
62427         . "${srcdir=.}/init.sh"; path_prepend_ .
62428         Add a note about path_prepend_ and the alternative of using
62429         TESTS_ENVIRONMENT.
62431 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62433         exclude: Unescape hashed patterns in wildcard mode.
62434         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
62435         to the hash list.
62436         * tests/test-exclude8.sh: New test case.
62437         * modules/exclude-tests: Add new test.
62439 2010-05-05  Eric Blake  <eblake@redhat.com>
62441         verify: automate tests
62442         * modules/verify-tests: New module.
62443         * tests/test-verify.sh: New file.
62444         * tests/test-verify.c: Guard each negative test with a unique id.
62445         Also avoid warning about unused left hand of comma expressions.
62447 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
62449         Further improvements to verify.h, suggested by Eric Blake.
62450         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
62451         the GL_* versions, to avoid collision with OpenGL.
62452         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
62453         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
62454         than testing merely whether it's defined.
62456         Modify verify.h to pacify gcc -Wredundant_decls.
62457         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
62458         These use the prefix "GL_" since they're likely to be useful elsewhere.
62459         We may need to break them out into a different .h file.
62460         (__COUNTER__): Define to 0 if the compiler doesn't support it.
62461         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
62462         of verify_function__.
62464 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
62466         Tests for module pwrite.
62467         * modules/pwrite-tests: New file.
62468         * tests/test-pwrite.sh: New file.
62469         * tests/test-pwrite.c: New file.
62471         New module pwrite.
62472         * lib/unistd.in.h (pwrite): New declaration.
62473         * lib/pwrite.c: New file, from glibc with modifications.
62474         * m4/pwrite.m4: New file.
62475         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
62476         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
62477         REPLACE_PWRITE.
62478         * modules/pwrite: New file.
62479         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
62480         REPLACE_PWRITE.
62481         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
62482         * doc/posix-functions/pwrite.texi: Mention the new module.
62484 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
62486         pread: Update documentation.
62487         * doc/posix-functions/pread.texi: Mention the 'pread' module.
62489 2010-05-04  Eric Blake  <eblake@redhat.com>
62491         docs: update cygwin progress
62492         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
62493         this bug.
62494         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
62495         Added in cygwin 1.7.2.
62496         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
62497         Likewise.
62498         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
62499         Likewise.
62500         * doc/glibc-functions/dup3.texi (dup3): Likewise.
62501         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
62502         * doc/glibc-functions/accept4.texi (accept4): Likewise.
62503         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
62504         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
62505         Mention nproc module.
62506         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
62507         bug in cygwin 1.7.5 addition.
62508         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
62509         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
62510         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
62511         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
62512         1.7.5.
62513         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
62514         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
62515         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
62516         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
62517         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
62518         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
62519         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
62520         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
62521         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
62522         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
62523         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
62524         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
62525         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
62526         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
62527         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
62528         Likewise.
62529         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
62530         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
62531         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
62532         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
62533         Likewise.
62534         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
62535         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
62536         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
62537         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
62538         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
62539         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
62540         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
62541         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
62542         Likewise.
62543         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
62544         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
62545         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
62546         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
62547         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
62548         Likewise.
62549         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
62550         Likewise.
62551         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
62552         Likewise.
62553         * doc/glibc-functions/xdrrec_endofrecord.texi
62554         (xdrrec_endofrecord): Likewise.
62555         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
62556         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
62557         Likewise.
62558         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
62559         Likewise.
62561 2010-05-04  Jim Meyering  <meyering@redhat.com>
62563         gendocs.sh: make its "-s FILE" option more useful
62564         * build-aux/gendocs.sh: When honoring the -s FILE option, update
62565         $PACKAGE to reflect the probably-different basename of "FILE".
62567 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
62569         bootstrap: don't ignore download_po_files failure
62570         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
62571         failure.
62573 2010-05-03  Jim Meyering  <meyering@redhat.com>
62575         maint.mk: allow to pass options to gendocs.sh
62576         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
62577         (gendocs_options_): New overridable variable.
62579         gnu-web-doc-update: don't ignore configure or build failure
62580         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
62582         announce-gen: backslash-escape '@'s in --help output
62583         * build-aux/announce-gen: Fix syntax errors.
62585         maint.mk, announce-gen: allow project-specific announcement mail headers
62586         * top/maint.mk (translation_project_): Define default.
62587         (announcement_Cc_, announcement_mail_headers_): Likewise.
62588         (announcement): Invoke announce-gen with new --mail-headers option.
62589         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
62591         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
62592         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
62593         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
62594         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
62595         line in the "err2" output file when running "make check" in verbose
62596         mode (i.e., with set -x enabled).
62598 2010-05-03  Bruno Haible  <bruno@clisp.org>
62600         wctob: Fix for weird platforms.
62601         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
62602         argument value.
62604 2010-05-03  Jim Meyering  <meyering@redhat.com>
62606         maint.mk: prohibit unwarranted use of <strings.h>
62607         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
62608         strings.h in a file that does not also use strcasecmp, strncasecmp,
62609         ffs or ffsll.
62611         maint.mk: remove obsolete comments
62612         * top/maint.mk: Remove stale, commented-out rules.
62614 2010-05-02  Bruno Haible  <bruno@clisp.org>
62616         wcwidth: Declare also when it's aliased.
62617         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
62618         macro.
62620 2010-05-02  Bruno Haible  <bruno@clisp.org>
62622         Fix regression from 2010-04-25.
62623         * gnulib-tool (func_modules_transitive_closure): Check the status of
62624         all modules, not only of the tests that are of the form foo-tests where
62625         foo is a module.
62627 2010-05-02  Bruno Haible  <bruno@clisp.org>
62629         wctob: Work around nasty Cygwin 1.7.2 bug.
62630         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
62631         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
62633 2010-05-01  Bruno Haible  <bruno@clisp.org>
62635         fpurge: Sharper test.
62636         * tests/test-fpurge.c (main): Add one more ftell check.
62637         * modules/fpurge-tests (Depends-on): Add ftell.
62638         Suggested by Eric Blake.
62640 2010-05-01  Bruno Haible  <bruno@clisp.org>
62642         ftello: Another test.
62643         * tests/test-ftello3.c: New file.
62644         * modules/ftello-tests (Files): Add it.
62645         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
62646         MOSTLYCLEANFILES.
62648         ftell: Another test.
62649         * tests/test-ftell3.c: New file.
62650         * modules/ftell-tests (Files): Add it.
62651         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
62652         MOSTLYCLEANFILES.
62654 2010-05-01  Bruno Haible  <bruno@clisp.org>
62656         ftell, ftello: Work around Solaris bug.
62657         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
62658         * lib/ftello.c: Include stdio-impl.h.
62659         (ftello): On Solaris, when _IOWRT is set, compute the result without
62660         looking at _IOREAD.
62661         * modules/ftello (Files): Add lib/stdio-impl.h.
62662         * doc/posix-functions/ftell.texi: Mention Solaris bug.
62663         * doc/posix-functions/ftello.texi: Likewise.
62664         Reported by Eric Blake.
62666 2010-05-01  Bruno Haible  <bruno@clisp.org>
62668         freading: Adapt to special meaning of _IOREAD flag on Solaris.
62669         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
62670         the _IOWRT flag is also set.
62672 2010-05-01  Bruno Haible  <bruno@clisp.org>
62674         Fix doc about a HP-UX stdio bug.
62675         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
62676         * doc/posix-functions/ftello.texi: Likewise.
62678 2010-05-01  Bruno Haible  <bruno@clisp.org>
62680         lseek test: Fix failure on Solaris.
62681         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
62682         output.
62684 2010-04-30  Jim Meyering  <meyering@redhat.com>
62686         bootstrap: don't ignore failure to generate po*/Makevars
62687         * build-aux/bootstrap (with_gettext): Don't ignore failure
62688         to create po/Makevars or runtime-po/Makevars.
62690 2010-04-29  Eric Blake  <eblake@redhat.com>
62692         headers: relax license to LGPLv2+
62693         * modules/fcntl-h (License): Relax license.
62694         * modules/getopt-posix (License): Likewise.
62695         * modules/locale (License): Likewise.
62696         * modules/math (License): Likewise.
62697         * modules/pty (License): Likewise.
62698         * modules/sched (License): Likewise.
62699         * modules/search (License): Likewise.
62700         * modules/spawn (License): Likewise.
62701         * modules/stdarg (License): Likewise.
62702         * modules/sysexits (License): Likewise.
62704 2010-04-29  Jim Meyering  <meyering@redhat.com>
62706         inttypes: relax license to LGPLv2+
62707         * modules/inttypes (License): Relax license.
62709 2010-04-29  Simon Josefsson  <simon@josefsson.org>
62711         * top/maint.mk (indent): Run twice to produce idempotent results.
62713 2010-04-28  Bruno Haible  <bruno@clisp.org>
62715         getdate: Generate getdate.c in the source directory.
62716         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
62717         MOSTLYCLEANFILES.
62718         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
62720 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
62722         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
62723         is not declared as a const *; avoid warnings in that case.
62725 2010-04-28  Eric Blake  <eblake@redhat.com>
62727         canonicalize-lgpl: avoid compiler warning
62728         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
62729         declaration' / 'extraneous semicolon' warning with some compilers.
62730         Reported by Andreas Gruenbacher.
62732 2010-04-28  Jim Meyering  <meyering@redhat.com>
62734         init.sh: ensure a more reliable exit status when exiting via trap
62735         * tests/init.sh (setup_): Don't rely on $? in signal handler.
62736         Inspired by patches from Dmitry V. Levin.
62737         Also trap on signal 3 (SIGQUIT).
62739 2010-04-27  Bruno Haible  <bruno@clisp.org>
62741         Update doc about utimes().
62742         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
62743         'utimens' module.
62744         Reported by Andreas Gruenbacher <agruen@suse.de>.
62746 2010-04-27  Eric Blake  <eblake@redhat.com>
62748         full-read, full-write: relax license
62749         * modules/full-read (License): Drop to LGPLv2+.
62750         * modules/full-write (License): Likewise.
62751         * modules/safe-read (License): Likewise.
62752         * modules/safe-write (License): Likewise.
62754         pthread: mention library for linking
62755         * modules/pthread (Link): Mention $(LIB_PTHREAD).
62757 2010-04-27  Jim Meyering  <meyering@redhat.com>
62759         maint.mk: fix a bug introduced in last change
62760         * top/maint.mk (gl_assured_headers_): Now that all names are on
62761         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
62762         is not anchored to end of word, it should be adequate.
62764         maint.mk: avoid side-effect in latest syntax-check
62765         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
62766         to run commands via $(shell...), and hence to incur cost only when
62767         the new rule is actually run.
62769         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
62770         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
62771         and use that to create a regexp used to detect all #if HAVE_..._H uses.
62772         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
62773         (gl_assured_headers_, az_, AZ_): Define.
62774         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
62776 2010-04-26  Jim Meyering  <jim@meyering.net>
62777             Bruno Haible  <bruno@clisp.org>
62779         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
62780         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
62781         Prompted by an exchange with Gilles Espinasse.
62783 2010-04-26  Jim Meyering  <meyering@redhat.com>
62785         git-version-gen: aesthetic tweak
62786         * build-aux/git-version-gen: Use "$nl" rather than a literal,
62787         so that the command remains on a single line.
62789 2010-04-26  Eric Blake  <eblake@redhat.com>
62791         git-version-gen: allow use on EBCDIC hosts
62792         * build-aux/git-version-gen (dirty): Use literal rather than tying
62793         ourselves to ascii.
62794         Reported by Steve Goetze.
62796 2010-04-25  Bruno Haible  <bruno@clisp.org>
62798         netdb: Add support for GNULIB_POSIXCHECK.
62799         * lib/netdb.in.h: Include warn-on-use.h.
62800         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
62801         functions are used when GNULIB_POSIXCHECK is defined and the
62802         getaddrinfo module is not in use.
62803         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
62804         freeaddrinfo, gai_strerror, getnameinfo are declared.
62805         * modules/netdb (Depends-on): Add warn-on-use.
62806         (Makefile.am): Include warn-on-use.h in netdb.h.
62808 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
62810         build: avoid "make check" failure without .git/ directory
62811         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
62812         there is no .git/ directory.
62814 2010-04-25  Bruno Haible  <bruno@clisp.org>
62816         ptsname: Fix misuse of ttyname_r.
62817         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
62818         of errno.
62820 2010-04-25  Bruno Haible  <bruno@clisp.org>
62822         ttyname_r: Make it work on Solaris 10.
62823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
62824         if the system function has the POSIX declaration. Test whether the
62825         function fails if the buffer is less than 128 bytes large.
62826         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
62827         system's ttyname_r function. Provide a reasonably large buffer.
62828         * modules/ttyname_r (Depends-on): Add extensions.
62829         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
62831 2010-04-25  Bruno Haible  <bruno@clisp.org>
62833         Use the 'extensions' module for some more functions on Solaris.
62834         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
62835         module.
62836         * doc/posix-functions/ctime_r.texi: Likewise.
62837         * doc/posix-functions/getgrgid_r.texi: Likewise.
62838         * doc/posix-functions/getgrnam_r.texi: Likewise.
62839         * doc/posix-functions/getpwnam_r.texi: Likewise.
62840         * doc/posix-functions/getpwuid_r.texi: Likewise.
62841         * doc/posix-functions/readdir_r.texi: Likewise.
62842         * doc/posix-functions/sigwait.texi: Likewise.
62843         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
62844         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
62846 2010-04-25  Bruno Haible  <bruno@clisp.org>
62848         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
62849         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
62850         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
62851         * lib/ttyname_r.c: Include <limits.h>.
62852         (ttyname_r): Define using the system's ttyname_r function, if it exists
62853         and not on Solaris.
62854         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
62855         set.
62856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
62857         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
62858         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
62859         Reported by Simon Josefsson.
62861 2010-04-25  Bruno Haible  <bruno@clisp.org>
62863         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
62864         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
62865         * doc/posix-functions/ctime_r.texi: Likewise.
62866         * doc/posix-functions/getgrgid_r.texi: Likewise.
62867         * doc/posix-functions/getgrnam_r.texi: Likewise.
62868         * doc/posix-functions/getlogin_r.texi: Likewise.
62869         * doc/posix-functions/getpwnam_r.texi: Likewise.
62870         * doc/posix-functions/getpwuid_r.texi: Likewise.
62871         * doc/posix-functions/readdir_r.texi: Likewise.
62872         * doc/posix-functions/sigwait.texi: Likewise.
62873         * doc/posix-functions/ttyname_r.texi: Likewise.
62874         Reported by Simon Josefsson.
62876 2010-04-25  Bruno Haible  <bruno@clisp.org>
62878         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
62879         * gnulib-tool (func_usage): Document that --with-*-tests options apply
62880         also to --create-testdir.
62881         (func_acceptable): Don't consider the status of *-tests modules here.
62882         (func_modules_transitive_closure): Consider it here, before including a
62883         test module.
62884         (func_import, func_create_testdir): Set inc_all_direct_tests,
62885         inc_all_indirect_tests.
62886         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
62887         --create-testdir and --create-megatestdir.
62889 2010-04-25  Bruno Haible  <bruno@clisp.org>
62891         gnulib-tool: Add --without-*-tests options.
62892         * gnulib-tool (func_usage): Document the --without-*-tests options.
62893         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
62894         excl_unportable_tests): New variables.
62895         Fail if they are specified with --import or --update.
62896         (func_acceptable): Respect the excl_*_tests variables.
62897         (func_import): Set the excl_*_tests variables to empty.
62899 2010-04-25  Simon Josefsson  <simon@josefsson.org>
62900             Bruno Haible  <bruno@clisp.org>
62902         Work around a MacOS X 10.4 bug with openpty.
62903         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
62904         * tests/test-openpty.c (main): Close the master side explicitly.
62906 2010-04-25  Bruno Haible  <bruno@clisp.org>
62908         strnlen: Fix a C++ test error on MacOS X and Solaris.
62909         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
62910         the function is not declared.
62911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
62912         Simon Josefsson.
62914 2010-04-24  Bruno Haible  <bruno@clisp.org>
62916         Avoid a gcc warning.
62917         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
62918         of correct type for %08lx directive.
62919         Reported by Eric Blake.
62921 2010-04-24  Bruno Haible  <bruno@clisp.org>
62923         vasnprintf: Correct errno value in case of out-of-memory.
62924         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
62925         or sprintf. Use the errno value from SNPRINTF or sprintf.
62926         Reported by Ian Beckwith <ianb@erislabs.net>.
62928 2010-04-24  Bruno Haible  <bruno@clisp.org>
62930         ansi-c++-opt: Find correct compiler when cross-compiling.
62931         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
62932         AC_CHECK_PROGS.
62933         Reported by Simon Josefsson.
62935 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
62937         vc-list-files: Add support for subversion
62938         * build-aux/vc-list-files: Use "svn list" to generate the list of
62939         files controlled by subversion.
62941 2010-04-23  Jim Meyering  <meyering@redhat.com>
62943         vc-list-files tests: convert to use init.sh
62944         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
62945         path_prepend_.
62946         Use Exit, not exit.
62947         Use skip_ rather than open coding it.
62948         Remove trap set-up and compare definitions.
62949         * tests/test-vc-list-files-git.sh: Likewise.
62950         * modules/vc-list-files-tests (Files): Add tests/init.sh.
62952 2010-04-22  Simon Josefsson  <simon@josefsson.org>
62954         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
62955         backup files.
62957 2010-04-21  Simon Josefsson  <simon@josefsson.org>
62959         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
62961 2010-04-20  Eric Blake  <eblake@redhat.com>
62963         tests: be robust to ignored SIGPIPE
62964         * tests/test-select-in.sh: Consume all output.
62965         * tests/test-lseek.sh: Check correct exit status, while avoiding
62966         EPIPE.
62968 2010-04-20  Simon Josefsson  <simon@josefsson.org>
62969             Bruno Haible  <bruno@clisp.org>
62971         visibility: Don't use -fvisibility if it leads to a warning.
62972         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
62973         yes, don't pretend that visibility works if it leads to a warning.
62974         Reported by Mike Gran <spk121@yahoo.com>.
62976 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
62978         * build-aux/bootstrap: Use "git -h" for testing for supported options
62979         instead of "git --help".  The short-form option only shows a summary,
62980         and doesn't layout the full man page.  Grep for the full option name
62981         in the summary, too.
62983 2010-04-19  Bruno Haible  <bruno@clisp.org>
62985         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
62986         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
62987         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
62988         mention of RELOCATABLE_STRIP.
62989         Reported by Sylvain Beucler <beuc@beuc.net>.
62991 2010-04-19  Bruno Haible  <bruno@clisp.org>
62993         * lib/diffseq.h: Fix typo in comment.
62994         Reported by Eric Blake.
62996 2010-04-19  Bruno Haible  <bruno@clisp.org>
62998         ioctl: Move autoconf macro to a .m4 file.
62999         * m4/ioctl.m4: New file, extracted from modules/ioctl.
63000         * modules/ioctl (Files): Add it.
63001         (configure.ac): Simply invoke gl_FUNC_IOCTL.
63002         Reported by Ian Beckwith <ianb@erislabs.net>.
63004 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
63005             Bruno Haible  <bruno@clisp.org>
63007         diffseq: Accommodate use-case with abstract arrays.
63008         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
63009         is not defined.
63010         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
63011         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
63013 2010-04-18  Bruno Haible  <bruno@clisp.org>
63015         * doc/posix-headers/stdbool.texi: More precise wording.
63017 2010-04-17  Jim Meyering  <meyering@redhat.com>
63019         maint.mk: use gnu-style indentation in an embedded perl script
63020         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
63021         Rename variable: s/two/last_two_bytes/
63023 2010-04-16  Eric Blake  <eblake@redhat.com>
63025         test-stdbool: skip test that fails with Solaris CC
63026         * tests/test-stdbool.c (f): Skip test that causes compilation
63027         error under buggy C++ compiler.
63028         * lib/stdbool.in.h: Document the limitation.
63029         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
63031         setenv: allow compilation with C++
63032         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
63033         register keyword.
63035         stdint: allow test to pass with C++
63036         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
63038         getopt: allow compilation with C++
63039         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
63040         struct.
63041         * lib/getopt.c (_getopt_internal_r): Use correct type.
63042         Reported by Dagobert Michelson, via Joel E. Denny.
63044 2010-04-16  Bruno Haible  <bruno@clisp.org>
63046         Override netdb.h always.
63047         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
63048         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
63049         Reported by Ludovic Courtès <ludo@gnu.org>.
63051 2010-04-15  Bruno Haible  <bruno@clisp.org>
63053         openpty: Fix mistake from 2010-03-21.
63054         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
63055         Reported by Simon Josefsson.
63057 2010-04-15  Eric Blake  <eblake@redhat.com>
63059         test-forkpty: fix expected signature
63060         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
63061         Reported by Simon Josefsson.
63063 2010-04-15  Jim Meyering  <meyering@redhat.com>
63065         maint.mk: texinfo_suffix_re_: correct the default regexp
63066         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
63068         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
63069         make it configurable via texinfo_suffix_re_.
63071 2010-04-14  Eric Blake  <eblake@redhat.com>
63073         strtok_r: relax license to LGPLv2+
63074         * modules/strtok_r (License): Relax license.
63075         Reported by Matthias Bolte.
63077 2010-04-14  Simon Josefsson  <simon@josefsson.org>
63079         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
63080         version 1.4.4 by default instead of requiring the libgcrypt
63081         version used during build.  This makes it possible to use the
63082         application with older but still binary compatible libgcrypt
63083         versions.
63085 2010-04-13  Eric Blake  <eblake@redhat.com>
63087         getopt-gnu: match recent glibc fixes and posix ruling
63088         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
63089         '+' handling, when requesting extensions.
63090         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
63091         'W;' handling.
63092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
63093         * doc/posix-functions/getopt.texi (getopt): Document this.
63094         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
63095         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
63096         Likewise.
63098         getopt: merge bug fixes from glibc
63099         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
63100         diagnostics.  Honor '+:' correctly.  Reject ';'.
63102         getopt-posix: detect MacOS bug
63103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
63104         optind when missing a required argument.
63105         * doc/posix-functions/getopt.texi (getopt): Document the bug.
63106         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
63107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
63108         Likewise.
63110         getopt-posix: avoid spurious failure on Solaris
63111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
63112         an indicator that setting optind=1 is sufficient for reset.
63114         getopt-posix: avoid spurious failure on FreeBSD
63115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
63116         in POSIX mode, since the m4 test uses it.
63118         gnulib-tool: silence warning on BSD sh
63119         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
63121 2010-04-13  Jim Meyering  <meyering@redhat.com>
63123         doc: users.txt: GNU patch now uses gnulib
63124         * users.txt: Add patch.
63126 2010-04-12  Jim Meyering  <meyering@redhat.com>
63128         maint.mk: generate more concise timing data for syntax-check rules
63129         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
63130         " done" from each line that reports a syntax-check test duration.
63132 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
63134         git-version-gen: use "git update-index..." rather than "git status"
63135         * build-aux/git-version-gen: Use git update-index --refresh, not
63136         "git status".  With some versions of git, "git status" would fail
63137         to update the index and result in an unwarranted "-dirty" suffix.
63139 2010-04-11  Jim Meyering  <meyering@redhat.com>
63141         openat: correct formatting (no semantic change)
63142         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
63143         Suggested by Bruno Haible.
63145 2010-04-11  Bruno Haible  <bruno@clisp.org>
63147         Stricter declaration checking in testdirs.
63148         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63149         If for_tests is true, augment AM_CPPFLAGS to define
63150         GNULIB_STRICT_CHECKING.
63151         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
63152         GNULIB_STRICT_CHECKING is defined, verify that the function is
63153         declared.
63155 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
63156             Bruno Haible  <bruno@clisp.org>
63158         libunistring: Improve configure output.
63159         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
63160         Don't say "consider installing GNU libunistring" when checking again
63161         with libiconv.
63163 2010-04-11  Bruno Haible  <bruno@clisp.org>
63165         libunistring: Correct value of $LTLIBUNISTRING.
63166         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
63167         correct the value of $LTLIBUNISTRING.
63169 2010-04-11  Bruno Haible  <bruno@clisp.org>
63171         havelib: Add static libraries to LIBS in the right order.
63172         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
63173         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
63175 2010-04-11  Bruno Haible  <bruno@clisp.org>
63177         libunistring: Detect libunistring also when it depends on libiconv.
63178         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
63179         the second AC_LIB_HAVE_LINKFLAGS invocation.
63181 2010-04-11  James Youngman  <jay@gnu.org>
63183         close-stream: declare local scalars to be "const"
63184         * lib/close-stream.c (close_stream): Make boolean variables const
63185         to document the fact that we set but do not change them.
63187 2010-04-11  Bruno Haible  <bruno@clisp.org>
63189         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
63191 2010-04-11  Jim Meyering  <meyering@redhat.com>
63193         maint.mk: don't include dist-check.mk
63194         * top/maint.mk: Remove bogus include directive.
63196         maint.mk: improve empty-line-at-EOF check
63197         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
63198         solution, rather than tail+Perl-based one.  The latter would read
63199         a few kilobytes from the end of each file, and did not handle empty
63200         files properly.
63202         maint.mk: print the elapsed time for each syntax-check rule
63203         * top/maint.mk (sc_m_rules_): Save start time in a file.
63204         (sc_z_rules_): New rules: remove temp file and print elapsed time.
63205         (local-check): Interpose the .z rules
63207 2010-04-11  Jim Meyering  <meyering@redhat.com>
63209         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
63210         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
63211         empty file with one that ends in an empty line.
63213 2010-04-10  Bruno Haible  <bruno@clisp.org>
63215         mkdir: Make it work on mingw64.
63216         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
63217         * lib/mkdir.c: Update comment.
63218         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
63220 2010-04-10  Bruno Haible  <bruno@clisp.org>
63222         Don't override improved macro from newer autoconf.
63223         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
63224         autoconf >= 2.62.
63225         Reported by Joel E. Denny <jdenny@clemson.edu>.
63227 2010-04-10  Jim Meyering  <meyering@redhat.com>
63229         maint.mk: new syntax-check rule: prohibit empty lines at end of file
63230         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
63232         maint.mk: correct a diagnostic
63233         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
63234         in diagnostic; now use $prohibit.
63236 2010-04-10  Bruno Haible  <address@hidden>
63238         fchownat: Fix a C++ test error on Solaris 8.
63239         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
63240         the function does not exist.
63242 2010-04-10  Bruno Haible  <bruno@clisp.org>
63244         vasnprintf: Add more tests.
63245         * tests/test-vasnprintf-posix.c: Include <errno.h>.
63246         (test_function): Test converting an invalid wide string.
63248         vasnprintf: Correct handling of unconvertible wide string arguments.
63249         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
63250         VASNPRINTF.
63251         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
63252         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
63253         smaller than the expected maximum need for the directive. Set errno to
63254         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
63255         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
63256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
63257         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
63258         * modules/vasnprintf (Files): Add m4/printf.m4.
63259         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63261 2010-04-10  Bruno Haible  <bruno@clisp.org>
63263         vasnprintf: Fix crash in %ls directive.
63264         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
63265         string is passed as argument to %ls, with no precision and no width.
63266         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63268 2010-04-10  Bruno Haible  <bruno@clisp.org>
63270         vasnprintf: Fix multiple test failures on mingw.
63271         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
63272         _snprintf, or snwprintf, not _snwprintf.
63274 2010-04-10  Bruno Haible  <bruno@clisp.org>
63276         write: Fix a C++ test error on mingw.
63277         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
63279 2010-04-10  Bruno Haible  <bruno@clisp.org>
63281         vasnprintf test: Reduce code duplication.
63282         * tests/test-vasnprintf.c (test_function): New function, extracted from
63283         test_vasnprintf.
63284         (test_vasnprintf, test_asnprintf): Invoke it.
63286 2010-04-10  Bruno Haible  <bruno@clisp.org>
63288         strnlen: Fix warning in C++ mode on MacOS X.
63289         * lib/string.in.h (strnlen): Use the modern idiom.
63290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
63291         defining strnlen as a macro already in <config.h>.
63292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63293         REPLACE_STRNLEN.
63294         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
63295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63297 2010-04-08  James Youngman  <jay@gnu.org>
63299         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
63300         the example.
63302 2010-04-09  Jim Meyering  <meyering@redhat.com>
63304         maint.mk: print better diagnostic when there is no $(_hv_file)
63305         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
63306         announce that when $(_hv_file) (aka help-version) does not exist.
63308         init.sh: run tr in the "C" locale to avoid multibyte interpretation
63309         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
63310         not try to interpret its random input bytes.  Jarno Rajahalme reported
63311         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
63312         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
63313         (mktempd_): Likewise, just in case.
63315         ftruncate: add two years to projected module removal date: 2012
63316         * m4/ftruncate.m4: Adjust comments.
63318         ftruncate: mark module as obsolete; even MinGW provides it, now
63319         * modules/ftruncate (Status): Obsolete.
63320         (Notice): Say that.
63321         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
63322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
63324 2010-04-08  Bruno Haible  <bruno@clisp.org>
63326         Fix side effects from tests-related modules.
63327         * modules/dprintf-posix (Comment): New section.
63328         * modules/fprintf-posix (Comment): Likewise.
63329         * modules/obstack-printf-posix (Comment): Likewise.
63330         * modules/printf-posix (Comment): Likewise.
63331         * modules/snprintf-posix (Comment): Likewise.
63332         * modules/sprintf-posix (Comment): Likewise.
63333         * modules/vasnprintf-posix (Comment): Likewise.
63334         * modules/vasprintf-posix (Comment): Likewise.
63335         * modules/vdprintf-posix (Comment): Likewise.
63336         * modules/vfprintf-posix (Comment): Likewise.
63337         * modules/vprintf-posix (Comment): Likewise.
63338         * modules/vsnprintf-posix (Comment): Likewise.
63339         * modules/vsprintf-posix (Comment): Likewise.
63340         * modules/xprintf-posix (Comment): Likewise.
63341         * modules/xvasprintf-posix (Comment): Likewise.
63342         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
63343         * modules/floorf-tests (Depends-on): Likewise.
63344         * modules/round-tests (Depends-on): Likewise.
63345         * modules/roundf-tests (Depends-on): Likewise.
63346         * modules/trunc-tests (Depends-on): Likewise.
63347         * modules/truncf-tests (Depends-on): Likewise.
63348         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
63349         'fprintf-posix' module is not present.
63350         * tests/test-floorf2.c (check): Likewise.
63351         * tests/test-trunc2.c (check): Likewise.
63352         * tests/test-truncf2.c (check): Likewise.
63353         * tests/test-round2.c (equal): Likewise.
63354         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
63356 2010-04-07  Karl Berry  <karl@gnu.org>
63358         * config/srclist.txt,
63359         * config/srclistvars.sh,
63360         * config/srclist-update: doc fixes.
63362 2010-04-07  Jim Meyering  <meyering@redhat.com>
63364         maint.mk: add a PATH crosschecking syntax-check rule
63365         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
63366         Useful if you use a test like the one in help-version (coreutils,
63367         diffutils, grep, gzip) that ensures $(VERSION) matches what is
63368         printed by prog --version.
63370 2010-04-06  Bruno Haible  <bruno@clisp.org>
63372         Fix link error on mingw.
63373         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
63374         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
63376 2010-04-06  Bruno Haible  <bruno@clisp.org>
63378         Assume rmdir exists.
63379         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
63381 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
63383         doc: update users.txt
63384         * users.txt: Add gcal.
63386 2010-04-06  Jim Meyering  <meyering@redhat.com>
63388         init.sh: simply unset TMPDIR rather than risking env -i
63389         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
63390         although it probably works fine on all Unix-based systems, some
63391         systems (Cygwin?) cannot tolerate a totally cleared environment.
63392         Suggestion from Eric Blake.
63394 2010-04-06  Jim Meyering  <meyering@redhat.com>
63396         init.sh: portability fix: use env's POSIX-specified -i option not -u
63397         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
63398         than unportable env -u.  Solaris 5.11's env lacks support for -u.
63400 2010-04-05  Bruno Haible  <bruno@clisp.org>
63402         btowc: Work around Cygwin 1.7.2 bug.
63403         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
63404         does not map NUL to 0.
63405         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
63407 2010-04-05  Bruno Haible  <bruno@clisp.org>
63409         Make the multithread modules work on Cygwin 1.7.2.
63410         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
63411         imported symbols can be declared weak, so that it returns "no" on
63412         Cygwin 1.7.2.
63414 2010-04-05  Bruno Haible  <bruno@clisp.org>
63416         Use the module 'strncat'.
63417         * modules/unistr/u8-strncat (Depends-on): Add strncat.
63419         Tests for module 'strncat'.
63420         * modules/strncat-tests: New file.
63421         * tests/test-strncat.c: New file.
63423         New module 'strncat'.
63424         * lib/string.in.h (strncat): New declaration.
63425         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
63426         * m4/strncat.m4: New file, based on m4/memchr.m4.
63427         * modules/strncat: New file.
63428         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
63429         is declared.
63430         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
63431         REPLACE_STRNCAT.
63432         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
63433         REPLACE_STRNCAT.
63434         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
63435         module.
63436         * tests/test-string-c++.cc: Check signature of strncat.
63438 2010-04-05  Jim Meyering  <meyering@redhat.com>
63440         xstrtoumax-tests: convert to use init.sh
63441         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
63442         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63443         Use Exit, not exit.
63444         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63446         xstrtoimax-tests: convert to use init.sh
63447         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
63448         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63449         Use Exit, not exit.
63450         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63452 2010-04-05  Bruno Haible  <bruno@clisp.org>
63454         sys_socket: Avoid #define replacements in C++ mode.
63455         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
63456         warning to the function if possible, rather than #defining the symbol
63457         to a dysfunctional alias.
63459 2010-04-05  Bruno Haible  <bruno@clisp.org>
63461         fseeko: Fix C++ test error on mingw.
63462         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
63463         gl_FUNC_FSEEKO.
63464         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
63465         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
63466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
63467         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
63469 2010-04-05  Bruno Haible  <bruno@clisp.org>
63471         duplocale: Improve test output.
63472         * tests/test-duplocale.c (main): Print reason for skipped test.
63474 2010-04-05  Bruno Haible  <bruno@clisp.org>
63476         Assume rmdir exists.
63477         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
63478         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
63480 2010-04-05  Bruno Haible  <bruno@clisp.org>
63482         Fix link error on Solaris 8 with cc.
63483         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
63485 2010-04-05  Bruno Haible  <bruno@clisp.org>
63487         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
63488         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
63490 2010-04-05  Bruno Haible  <bruno@clisp.org>
63492         vasprintf: Update documentation.
63493         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
63495 2010-04-05  Bruno Haible  <bruno@clisp.org>
63497         ptsname: Improve test.
63498         * tests/test-ptsname.c (main): Also try the various master names of BSD
63499         systems.
63501 2010-04-05  Bruno Haible  <bruno@clisp.org>
63503         memchr: Avoid a possible C++ test error.
63504         * lib/string.in.h (memchr): Provide declaration if function is missing.
63505         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
63506         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
63507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
63508         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
63510 2010-04-05  Bruno Haible  <bruno@clisp.org>
63512         strtok_r: Improve idiom.
63513         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
63514         AC_LIBOBJ is used.
63516 2010-04-05  Bruno Haible  <bruno@clisp.org>
63518         strdup: Improve idiom.
63519         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
63520         AC_LIBOBJ is used.
63521         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
63522         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
63523         when AC_LIBOBJ is used.
63525 2010-04-05  Bruno Haible  <bruno@clisp.org>
63527         mbsinit, mbrtowc, wcrtomb: Improve idioms.
63528         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
63529         don't set REPLACE_MBSINIT to 1.
63530         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
63531         don't set REPLACE_MBRTOWC to 1.
63532         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
63533         exist, don't set REPLACE_MBSRTOWCS to 1.
63534         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
63535         exist, don't set REPLACE_MBSNRTOWCS to 1.
63536         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
63537         don't set REPLACE_WCRTOMB to 1.
63538         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
63539         exist, don't set REPLACE_WCSRTOMBS to 1.
63540         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
63541         exist, don't set REPLACE_WCSNRTOMBS to 1.
63543 2010-04-05  Bruno Haible  <bruno@clisp.org>
63545         ldexpl: Improve idiom.
63546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
63547         make sure to set HAVE_DECL_LDEXPL to 0.
63549 2010-04-05  Jim Meyering  <meyering@redhat.com>
63551         xstrtol-tests: convert to use init.sh
63552         * modules/xstrtol-tests (Files): Add tests/init.sh.
63553         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63554         Use Exit, not exit.
63555         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63557         atexit-tests: convert to use init.sh
63558         * modules/atexit-tests (Files): Add tests/init.sh.
63559         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
63560         Use Exit, not exit.
63561         Remove uses of $EXEEXT and "./" to run a program in the current dir.
63563         init.sh: fix typo
63564         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
63566         init.sh: make it easier for a test script to write to the tty, ...
63567         when using automake's parallel-tests mode.
63568         * tests/init.sh (stderr_fileno_): Define overridable variable.
63569         (warn_): New function, to use it.
63570         (fail_, skip_, framework_failure_): Use warn_.
63572 2010-04-04  Bruno Haible  <bruno@clisp.org>
63574         btowc: Avoid warning.
63575         * lib/btowc.c: Include <stdlib.h>.
63576         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
63578 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
63579             Bruno Haible  <bruno@clisp.org>
63581         wchar: Port to NetBSD 1.5.
63582         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
63583         * lib/wctype.in.h (WEOF): Likewise.
63585 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
63586             Bruno Haible  <bruno@clisp.org>
63588         Port extended stdio to NetBSD 1.5.
63589         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
63590         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
63591         older.
63593 2010-04-04  Bruno Haible  <bruno@clisp.org>
63595         string: Remove unused substitution.
63596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63597         HAVE_DECL_STRERROR.
63598         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
63600 2010-04-04  Bruno Haible  <bruno@clisp.org>
63602         strtod: Avoid a possible C++ test error.
63603         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
63604         set REPLACE_STRTOD.
63606 2010-04-04  Bruno Haible  <bruno@clisp.org>
63608         strerror: Update documentation.
63609         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
63611 2010-04-04  Bruno Haible  <bruno@clisp.org>
63613         stdio: Fix some C++ test errors on Solaris 8 with GCC.
63614         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
63615         _GL_CXXALIAS_SYS_CAST.
63617 2010-04-04  Bruno Haible  <bruno@clisp.org>
63619         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
63620         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
63621         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
63622         REPLACE_FREXPL to 1.
63623         * doc/posix-functions/frexpl.texi: Update documentation.
63625 2010-04-04  Bruno Haible  <bruno@clisp.org>
63627         math: Fix some C++ test errors on Solaris 8 and Cygwin.
63628         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
63630 2010-04-04  Bruno Haible  <bruno@clisp.org>
63632         Implement nanosleep for native Windows.
63633         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
63635 2010-04-04  Bruno Haible  <bruno@clisp.org>
63637         math: Fix some C++ test errors on Solaris 8.
63638         * lib/math.in.h (truncf, trunc): Use simpler idiom.
63640 2010-04-04  Bruno Haible  <bruno@clisp.org>
63642         math: Fix some C++ test errors on Cygwin.
63643         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
63644         truncl): Provide declaration if the system does not have it.
63645         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
63646         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
63647         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
63648         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
63649         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
63650         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
63651         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
63652         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
63653         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
63654         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
63655         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
63656         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
63657         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
63658         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
63659         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
63660         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
63661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
63662         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
63663         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
63664         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
63665         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
63666         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
63668 2010-04-04  Bruno Haible  <bruno@clisp.org>
63670         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
63671         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
63672         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
63673         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63674         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
63675         * m4/isinf.m4 (gl_ISINF): Likewise.
63676         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
63678 2010-04-04  Bruno Haible  <bruno@clisp.org>
63680         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
63681         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
63683 2010-04-04  Bruno Haible  <bruno@clisp.org>
63685         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
63686         * modules/tmpfile (configure.ac): Update.
63688         tmpfile: Fix C++ test error on mingw.
63689         * lib/stdio.in.h (tmpfile): New declaration.
63690         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
63691         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
63692         * modules/tmpfile (Depends-on): Add stdio.
63693         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63694         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
63695         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
63696         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
63697         REPLACE_TMPFILE.
63698         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
63700 2010-04-04  Bruno Haible  <bruno@clisp.org>
63702         ioctl: Fix C++ test error on mingw.
63703         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
63704         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
63705         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
63707 2010-04-03  Bruno Haible  <bruno@clisp.org>
63709         wcwidth: Fix C++ test error on mingw.
63710         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
63711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
63712         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
63714 2010-04-03  Bruno Haible  <bruno@clisp.org>
63716         nanosleep: Fix C++ test error on mingw.
63717         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
63718         * lib/time.in.h (nanosleep): Use modern idiom.
63719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
63720         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
63721         REPLACE_NANOSLEEP to 1.
63722         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
63723         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
63725 2010-04-03  Bruno Haible  <bruno@clisp.org>
63727         strptime: Fix C++ test error on mingw.
63728         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
63729         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
63730         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
63731         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
63732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
63733         not REPLACE_STRPTIME.
63734         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
63735         REPLACE_STRPTIME.
63737 2010-04-03  Bruno Haible  <bruno@clisp.org>
63739         timegm: Fix C++ test error on mingw.
63740         * lib/time.in.h (timegm): Use modern idiom.
63741         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
63742         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
63743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
63744         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
63746 2010-04-03  Bruno Haible  <bruno@clisp.org>
63748         timegm: Assume declaration if function exists.
63749         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
63750         if it exists. Don't clobber ac_cv_func_timegm.
63752 2010-04-03  Bruno Haible  <bruno@clisp.org>
63754         time_r: Fix C++ test error on mingw.
63755         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
63756         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
63757         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
63758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
63759         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
63761 2010-04-03  Bruno Haible  <bruno@clisp.org>
63763         time_r: Minor updates.
63764         * modules/time_r (Description): Mention the provided functions.
63765         * lib/time_r.c: Don't include <string.h>.
63766         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
63767         * doc/posix-functions/localtime_r.texi: Likewise.
63769 2010-04-03  Bruno Haible  <bruno@clisp.org>
63771         time: Fix regression introduced on 2010-03-08.
63772         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
63773         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
63775 2010-04-03  Jim Meyering  <meyering@redhat.com>
63777         maint.mk: don't silently disable project-specific syntax-check rules
63778         * top/maint.mk (_prohibit_regexp): Define, to help people realize
63779         that they need to convert their project-specific syntax-check rules
63780         to use the new _sc_search_regexp.
63782 2010-04-03  Bruno Haible  <bruno@clisp.org>
63784         fchdir: Fix regression introduced on 2010-03-08.
63785         * lib/unistd.in.h (fchdir): Fix declaration.
63786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
63787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
63788         REPLACE_FCHDIR.
63789         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
63790         REPLACE_FCHDIR.
63792 2010-04-03  Bruno Haible  <bruno@clisp.org>
63794         getpagesize: Fix C++ test error on mingw.
63795         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
63796         system does not declare the function.
63797         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
63798         declared.
63799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63800         HAVE_DECL_GETPAGESIZE.
63801         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
63803 2010-04-03  Bruno Haible  <bruno@clisp.org>
63805         stdio: Make C++ tests work on mingw.
63806         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
63807         does not declare the function.
63809 2010-04-03  Bruno Haible  <bruno@clisp.org>
63811         ftello: Fix C++ test error on mingw.
63812         * lib/stdio.in.h (ftello): Use modern idiom.
63813         * lib/ftello.c (ftello): Renamed from rpl_ftello.
63814         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
63815         is missing and that it needs to be replaced.
63816         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
63817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
63818         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
63820 2010-04-03  Bruno Haible  <bruno@clisp.org>
63822         fseeko: Fix C++ test error on mingw.
63823         * lib/stdio.in.h (fseeko): Use modern idiom.
63824         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
63825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
63826         is missing and that it needs to be replaced.
63827         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
63828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
63829         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
63831 2010-04-03  Bruno Haible  <bruno@clisp.org>
63833         mkstemp: Fix C++ test error on mingw.
63834         * lib/stdlib.in.h (mkstemp): Use modern idiom.
63835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
63836         function is missing and that it needs to be replaced.
63837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
63838         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
63840 2010-04-03  Bruno Haible  <bruno@clisp.org>
63842         stpncpy: Fix C++ test error on mingw.
63843         * lib/string.in.h (stpncpy): Use modern idiom.
63844         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
63845         function is missing and that it needs to be replaced.
63846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63847         REPLACE_STPNCPY.
63848         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
63850 2010-04-03  Bruno Haible  <bruno@clisp.org>
63852         sys_stat: Fix C++ test error on mingw.
63853         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
63854         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
63856 2010-04-03  Bruno Haible  <bruno@clisp.org>
63858         pty: Update doc.
63859         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
63861 2010-04-03  Bruno Haible  <bruno@clisp.org>
63863         unistd: Fix C++ test error on mingw.
63864         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
63866 2010-04-03  Bruno Haible  <bruno@clisp.org>
63868         Update doc regarding mingw.
63869         * doc/glibc-functions/openpty.texi: Update regarding mingw.
63870         * doc/glibc-functions/login_tty.texi: Likewise.
63871         * doc/glibc-functions/forkpty.texi: Likewise.
63873 2010-04-03  Bruno Haible  <bruno@clisp.org>
63875         stdlib: Avoid compilation failure of c-strtold on mingw.
63876         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
63878 2010-04-03  Bruno Haible  <bruno@clisp.org>
63880         locale: Make C++ tests work on Cygwin and mingw.
63881         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
63882         cannot provide the function.
63883         Reported by Simon Josefsson.
63885 2010-04-03  Bruno Haible  <bruno@clisp.org>
63887         localename: Port to MacOS X 10.6.
63888         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
63889         memory layout of the locales in MacOS X 10.6 as well.
63890         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
63892 2010-04-02  Bruno Haible  <bruno@clisp.org>
63894         gnulib-tool: Ensure that long-running tests are executed last.
63895         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
63896         running tests after the one for the other tests.
63898 2010-04-02  Bruno Haible  <bruno@clisp.org>
63900         gnulib-tool: Ensure the tests in the main directory are executed first.
63901         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
63902         start with the current directory.
63904 2010-04-02  Bruno Haible  <bruno@clisp.org>
63906         Tests for module 'havelib', moved here from GNU gettext.
63907         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
63908         modifications.
63909         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
63910         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
63911         with modifications.
63912         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
63913         modifications.
63914         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
63915         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
63916         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
63917         with modifications.
63918         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
63919         with modifications.
63920         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
63921         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
63922         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
63923         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
63924         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
63925         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
63926         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
63927         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
63928         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
63929         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
63930         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
63931         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
63932         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
63933         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
63934         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
63935         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
63936         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
63937         with modifications.
63938         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
63939         with modifications.
63940         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
63941         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
63942         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
63943         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
63944         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
63945         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
63946         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
63947         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
63948         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
63949         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
63950         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
63951         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
63952         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
63953         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
63954         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
63955         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
63956         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
63957         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
63958         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
63959         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
63960         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
63961         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
63962         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
63963         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
63964         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
63965         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
63966         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
63967         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
63968         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
63969         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
63970         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
63971         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
63972         * tests/havelib/rpathx/rpathx.c: New file, from
63973         gettext/autoconf-lib-link.
63974         * tests/havelib/rpathx/Makefile.am: New file, from
63975         gettext/autoconf-lib-link.
63976         * tests/havelib/rpathx/configure.ac: New file, from
63977         gettext/autoconf-lib-link with modifications.
63978         * tests/havelib/rpathy/rpathy.c: New file, from
63979         gettext/autoconf-lib-link.
63980         * tests/havelib/rpathy/Makefile.am: New file, from
63981         gettext/autoconf-lib-link.
63982         * tests/havelib/rpathy/configure.ac: New file, from
63983         gettext/autoconf-lib-link with modifications.
63984         * tests/havelib/rpathz/rpathz.c: New file, from
63985         gettext/autoconf-lib-link.
63986         * tests/havelib/rpathz/Makefile.am: New file, from
63987         gettext/autoconf-lib-link.
63988         * tests/havelib/rpathz/configure.ac: New file, from
63989         gettext/autoconf-lib-link with modifications.
63990         * tests/havelib/rpathlx/usex.c: New file, from
63991         gettext/autoconf-lib-link.
63992         * tests/havelib/rpathlx/Makefile.am: New file, from
63993         gettext/autoconf-lib-link.
63994         * tests/havelib/rpathlx/configure.ac: New file, from
63995         gettext/autoconf-lib-link with modifications.
63996         * tests/havelib/rpathly/usey.c: New file, from
63997         gettext/autoconf-lib-link.
63998         * tests/havelib/rpathly/Makefile.am: New file, from
63999         gettext/autoconf-lib-link.
64000         * tests/havelib/rpathly/configure.ac: New file, from
64001         gettext/autoconf-lib-link with modifications.
64002         * tests/havelib/rpathlz/usez.c: New file, from
64003         gettext/autoconf-lib-link.
64004         * tests/havelib/rpathlz/Makefile.am: New file, from
64005         gettext/autoconf-lib-link.
64006         * tests/havelib/rpathlz/configure.ac: New file, from
64007         gettext/autoconf-lib-link with modifications.
64008         * tests/havelib/rpathlyx/usey.c: New file, from
64009         gettext/autoconf-lib-link.
64010         * tests/havelib/rpathlyx/Makefile.am: New file, from
64011         gettext/autoconf-lib-link.
64012         * tests/havelib/rpathlyx/configure.ac: New file, from
64013         gettext/autoconf-lib-link with modifications.
64014         * tests/havelib/rpathlzyx/usez.c: New file, from
64015         gettext/autoconf-lib-link.
64016         * tests/havelib/rpathlzyx/Makefile.am: New file, from
64017         gettext/autoconf-lib-link.
64018         * tests/havelib/rpathlzyx/configure.ac: New file, from
64019         gettext/autoconf-lib-link with modifications.
64020         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
64021         with modifications.
64023 2010-04-02  Bruno Haible  <bruno@clisp.org>
64025         gnulib-tool: Create distributed built sources also for the tests.
64026         * gnulib-tool (func_create_testdir): Also generate distributed built
64027         sources in the tests directory.
64029 2010-04-02  Bruno Haible  <bruno@clisp.org>
64031         gnulib-tool: Obey user's environment variables.
64032         * gnulib-tool (func_create_testdir): When creating built sources,
64033         respect the environment variables for autoconf, automake, etc. given by
64034         the user.
64036 2010-04-02  Bruno Haible  <bruno@clisp.org>
64038         gnulib-tool: Provide the value of --m4-base to modules.
64039         * gnulib-tool (func_import, func_create_testdir): Emit a definition
64040         of gl_m4_base.
64042 2010-04-02  Eric Blake  <eblake@redhat.com>
64044         maint.mk: fix some fallout
64045         * NEWS: Document the incompatible change, and its effect on cfg.mk.
64046         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
64048 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
64050         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
64051         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
64052         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
64053         (sc_cast_of_x_alloc_return_value): Likewise.
64054         (sc_cast_of_alloca_return_value): Likewise.
64055         (sc_space_tab): Likewise.
64056         (sc_prohibit_atoi_atof): Likewise.
64057         (sc_prohibit_magic_number_exit): Likewise.
64058         (sc_error_exit_success): Likewise.
64059         (sc_file_system): Likewise.
64060         (sc_prohibit_have_config_h): Likewise.
64061         (sc_require_config_h): Likewise.
64062         (sc_prohibit_HAVE_MBRTOWC): Likewise.
64063         (sc_obsolete_symbols): Likewise.
64064         (sc_changelog): Likewise.
64065         (sc_program_name): Likewise.
64066         (sc_the_the): Likewise.
64067         (sc_trailing_blank): Likewise.
64068         (sc_two_space_separator_in_usage): Likewise.
64069         (sc_useless_cpp_parens): Likewise.
64070         (sc_GPL_version): Likewise.
64071         (sc_GFDL_version): Likewise.
64072         (sc_texinfo_acronym): Likewise.
64073         (sc_prohibit_cvs_keyword): Likewise.
64074         (sc_prohibit_stat_st_blocks): Likewise.
64075         (sc_prohibit_S_IS_definition): Likewise.
64076         (sc_redundant_const): Likewise.
64077         (sc_makefile_TAB_only_indentation): Likewise.
64078         (sc_m4_quote_check): Likewise.
64079         (sc_makefile_path_separator_check): Likewise.
64080         (sc_copyright_check): Likewise.
64081         (sc_Wundef_boolean): Likewise.
64082         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64084         maint.mk: match 0 or more whitespace-before-function-call '('
64085         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
64086         that have zero or two-and-more spaces between the function name
64087         and the open parenthesis.
64088         (sc_error_message_warn_fatal): Likewise.
64089         (sc_error_message_uppercase): Likewise.
64090         (sc_error_message_period): Likewise.
64092 2010-03-31  Eric Blake  <eblake@redhat.com>
64094         maint.mk: check for [ as well as test
64095         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
64096         Based on a libvirt report by Matthias Bolte.
64098         gnumakefile: don't squelch _version output
64099         * top/GNUmakefile (_version): Create one-shot dependency rather
64100         than using $(shell) when version must be regenerated.
64101         (_autoreconf): Run verbosely, by default.
64103         sys_time: avoid compiler warnings
64104         * lib/sys_time.in.h (includes): Ensure gcc pragma is
64105         unconditional, fixing regression from 2010-03-29.
64106         Reported by Simon Josefsson.
64108 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
64110         maint.mk: s/_header_without_use/_sc_header_without_use/
64111         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
64112         (sc_prohibit_assert_without_use): Use the new name.
64113         (sc_prohibit_close_stream_without_use): Likewise.
64114         (sc_prohibit_getopt_without_use): Likewise.
64115         (sc_prohibit_quotearg_without_use): Likewise.
64116         (sc_prohibit_quote_without_use): Likewise.
64117         (sc_prohibit_long_options_without_use): Likewise.
64118         (sc_prohibit_inttostr_without_use): Likewise.
64119         (sc_prohibit_ignore_value_without_use): Likewise.
64120         (sc_prohibit_error_without_use): Likewise.
64121         (sc_prohibit_xalloc_without_use): Likewise.
64122         (sc_prohibit_hash_without_use): Likewise.
64123         (sc_prohibit_hash_pjw_without_use): Likewise.
64124         (sc_prohibit_safe_read_without_use): Likewise.
64125         (sc_prohibit_argmatch_without_use): Likewise.
64126         (sc_prohibit_canonicalize_without_use): Likewise.
64127         (sc_prohibit_root_dev_ino_without_use): Likewise.
64128         (sc_prohibit_openat_without_use): Likewise.
64129         (sc_prohibit_c_ctype_without_use): Likewise.
64130         (sc_prohibit_signal_without_use): Likewise.
64131         (sc_prohibit_intprops_without_use): Likewise.
64133 2010-03-30  Eric Blake  <eblake@redhat.com>
64135         maint: improve module indicators
64136         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
64137         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
64138         columns, and avoid extra macro expansion.
64140         fdopendir: work around FreeBSD bug
64141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
64142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
64143         * modules/dirent (Makefile.am): Substitute it.
64144         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
64145         declaration.
64146         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
64147         fix.
64148         Reported by Christian Weisgerber <naddy@mips.inka.de>.
64150 2010-03-29  Bruno Haible  <bruno@clisp.org>
64152         Emit #pragma system_header after the inclusion guard, not before.
64153         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
64154         guard that spans the entire file, not before. This enables an
64155         optimization in GCC's preprocessor.
64156         * lib/ctype.in.h: Likewise.
64157         * lib/dirent.in.h: Likewise.
64158         * lib/errno.in.h: Likewise.
64159         * lib/float.in.h: Likewise.
64160         * lib/getopt.in.h: Likewise.
64161         * lib/iconv.in.h: Likewise.
64162         * lib/langinfo.in.h: Likewise.
64163         * lib/locale.in.h: Likewise.
64164         * lib/math.in.h: Likewise.
64165         * lib/netdb.in.h: Likewise.
64166         * lib/netinet_in.in.h: Likewise.
64167         * lib/pty.in.h: Likewise.
64168         * lib/sched.in.h: Likewise.
64169         * lib/se-selinux.in.h: Likewise.
64170         * lib/search.in.h: Likewise.
64171         * lib/spawn.in.h: Likewise.
64172         * lib/stdarg.in.h: Likewise.
64173         * lib/stdint.in.h: Likewise.
64174         * lib/string.in.h: Likewise.
64175         * lib/strings.in.h: Likewise.
64176         * lib/sys_file.in.h: Likewise.
64177         * lib/sys_ioctl.in.h: Likewise.
64178         * lib/sys_time.in.h: Likewise.
64179         * lib/sys_times.in.h: Likewise.
64180         * lib/sys_utsname.in.h: Likewise.
64181         * lib/sys_wait.in.h: Likewise.
64182         * lib/sysexits.in.h: Likewise.
64183         * lib/wctype.in.h: Likewise.
64185 2010-03-28  James Youngman  <jay@gnu.org>
64187         save-cwd: don't leak a file descriptor when the caller execs.
64188         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
64189         saved file descriptor.
64190         * modules/save-cwd (Depends-on): Depend on cloexec.
64192 2010-03-29  Bruno Haible  <bruno@clisp.org>
64194         Remove vestiges of fts-lgpl module.
64195         * lib/fts_.h: Assume GNULIB_FTS is 1.
64196         * lib/fts.c: Likewise.
64197         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
64199 2010-03-28  Bruno Haible  <bruno@clisp.org>
64201         Fix definition of tests witness macro.
64202         * gnulib-tool (func_import): Fix definition of witness macro.
64204 2010-03-28  Bruno Haible  <bruno@clisp.org>
64206         Fix ioctl's protoype on glibc systems.
64207         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
64208         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
64209         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
64210         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
64211         signature. If not, arrange to replace the ioctl function.
64212         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
64213         REPLACE_IOCTL.
64214         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
64215         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
64216         Reported by Ludovic Courtès <ludo@gnu.org>.
64218 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
64220         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
64221         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
64222         made it so grep -r --include=GLOB* ... did not work.
64224 2010-03-26  Jim Meyering  <meyering@redhat.com>
64225             Eric Blake  <eblake@redhat.com>
64227         maint.mk: prohibit use of test's -o and -a operators
64228         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
64230 2010-03-28  Bruno Haible  <bruno@clisp.org>
64232         Remove unused GNULIB_XYZ macro definitions.
64233         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
64234         invocation.
64236 2010-03-28  Bruno Haible  <bruno@clisp.org>
64238         Mark privileged tests modules.
64239         * modules/idpriv-drop-tests (Status): New section.
64240         * modules/idpriv-droptemp-tests (Status): New section.
64242 2010-03-28  Bruno Haible  <bruno@clisp.org>
64244         Split C++ tests into separate tests modules.
64245         * modules/dirent-c++-tests: New file, extracted from
64246         modules/dirent-tests.
64247         * modules/dirent-tests: Depend on it.
64248         * modules/fcntl-h-c++-tests: New file, extracted from
64249         modules/fcntl-h-tests.
64250         * modules/fcntl-h-tests: Depend on it.
64251         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
64252         * modules/glob-tests: Depend on it.
64253         * modules/iconv-h-c++-tests: New file, extracted from
64254         modules/iconv-h-tests.
64255         * modules/iconv-h-tests: Depend on it.
64256         * modules/langinfo-c++-tests: New file, extracted from
64257         modules/langinfo-tests.
64258         * modules/langinfo-tests: Depend on it.
64259         * modules/locale-c++-tests: New file, extracted from
64260         modules/locale-tests.
64261         * modules/locale-tests: Depend on it.
64262         * modules/math-c++-tests: New file, extracted from modules/math-tests.
64263         * modules/math-tests: Depend on it.
64264         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
64265         * modules/pty-tests: Depend on it.
64266         * modules/search-c++-tests: New file, extracted from
64267         modules/search-tests.
64268         * modules/search-tests: Depend on it.
64269         * modules/signal-c++-tests: New file, extracted from
64270         modules/signal-tests.
64271         * modules/signal-tests: Depend on it.
64272         * modules/spawn-c++-tests: New file, extracted from
64273         modules/spawn-tests.
64274         * modules/spawn-tests: Depend on it.
64275         * modules/stdio-c++-tests: New file, extracted from
64276         modules/stdio-tests.
64277         * modules/stdio-tests: Depend on it.
64278         * modules/stdlib-c++-tests: New file, extracted from
64279         modules/stdlib-tests.
64280         * modules/stdlib-tests: Depend on it.
64281         * modules/string-c++-tests: New file, extracted from
64282         modules/string-tests.
64283         * modules/string-tests: Depend on it.
64284         * modules/sys_ioctl-c++-tests: New file, extracted from
64285         modules/sys_ioctl-tests.
64286         * modules/sys_ioctl-tests: Depend on it.
64287         * modules/sys_select-c++-tests: New file, extracted from
64288         modules/sys_select-tests.
64289         * modules/sys_select-tests: Depend on it.
64290         * modules/sys_socket-c++-tests: New file, extracted from
64291         modules/sys_socket-tests.
64292         * modules/sys_socket-tests: Depend on it.
64293         * modules/sys_stat-c++-tests: New file, extracted from
64294         modules/sys_stat-tests.
64295         * modules/sys_stat-tests: Depend on it.
64296         * modules/sys_time-c++-tests: New file, extracted from
64297         modules/sys_time-tests.
64298         * modules/sys_time-tests: Depend on it.
64299         * modules/time-c++-tests: New file, extracted from modules/time-tests.
64300         * modules/time-tests: Depend on it.
64301         * modules/unistd-c++-tests: New file, extracted from
64302         modules/unistd-tests.
64303         * modules/unistd-tests: Depend on it.
64304         * modules/wchar-c++-tests: New file, extracted from
64305         modules/wchar-tests.
64306         * modules/wchar-tests: Depend on it.
64307         * modules/wctype-c++-tests: New file, extracted from
64308         modules/wctype-tests.
64309         * modules/wctype-tests: Depend on it.
64310         Reported by Simon Josefsson.
64312 2010-03-28  Bruno Haible  <bruno@clisp.org>
64314         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
64315         * gnulib-tool (func_exists_module): New function, extracted from
64316         func_verify_module.
64317         (func_verify_module): Use it.
64318         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
64319         'foo' only if 'foo' exists.
64320         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
64321         module.
64323 2010-03-28  Bruno Haible  <bruno@clisp.org>
64325         gnulib-tool: Add support for special categories of tests.
64326         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
64327         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
64328         (func_usage): Document them.
64329         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
64330         inc_unportable_tests, inc_all_tests): New variables.
64331         (func_acceptable): Consider these variables.
64332         (func_modules_transitive_closure): Make it work when the 'Status' field
64333         consists of multiple words.
64334         (func_import): Store and restore the values of inc_cxx_tests,
64335         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
64336         inc_all_tests in gnulib-comp.m4.
64337         (func_create_testdir): Set inc_all_tests to true.
64338         * doc/gnulib.texi (Extra tests modules): New section.
64339         Suggested by Jim Meyering.
64341 2010-03-28  Bruno Haible  <bruno@clisp.org>
64343         ansi-c++-opt: Allow turning off the C++ build by default.
64344         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
64345         gl_CXX_CHOICE_DEFAULT_NO is defined.
64346         Requested by Eric Blake.
64348 2010-03-28  Bruno Haible  <bruno@clisp.org>
64350         unistd: Avoid #define replacements in C++ mode.
64351         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
64352         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
64353         setsockopt, shutdown, select): In C++, attach a warning to the function
64354         if possible, rather than #defining the symbol to a dysfunctional alias.
64355         Reported by John W. Eaton <jwe@gnu.org>.
64357 2010-03-28  Bruno Haible  <bruno@clisp.org>
64359         Fix link errors on mingw.
64360         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
64361         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
64362         $(LIBSOCKET).
64363         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
64364         $(LIBSOCKET).
64366 2010-03-28  Bruno Haible  <bruno@clisp.org>
64367             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64369         lib-ignore: Determine different options for different compilers.
64370         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
64371         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
64372         Add comments.
64373         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
64374         * NEWS: Mention the change.
64376 2010-03-27  Bruno Haible  <bruno@clisp.org>
64378         Remove unused GNULIB_XYZ macro definitions.
64379         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
64380         * modules/fseek (configure.ac): Likewise.
64381         * modules/ioctl (configure.ac): Likewise.
64382         * modules/open (configure.ac): Likewise.
64383         * modules/stdlib-safer (configure.ac): Likewise.
64385 2010-03-27  Bruno Haible  <bruno@clisp.org>
64387         Add a remark about certain modules.
64388         * modules/malloc (Comment): New section.
64389         * modules/realloc (Comment): Likewise.
64390         * modules/sigpipe (Comment): Likewise.
64392 2010-03-27  Bruno Haible  <bruno@clisp.org>
64394         Resolve conflict between the two kinds of module indicators.
64395         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
64396         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
64397         * modules/canonicalize (configure.ac): Invoke
64398         gl_MODULE_INDICATOR_FOR_TESTS.
64399         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
64400         GNULIB_XYZ.
64401         * tests/test-dirent-c++.cc: Likewise.
64402         * tests/test-dirent-safer.c: Likewise.
64403         * tests/test-dup2.c: Likewise.
64404         * tests/test-fchdir.c: Likewise.
64405         * tests/test-fcntl-h-c++.cc: Likewise.
64406         * tests/test-getopt.c: Likewise.
64407         * tests/test-getopt.h: Likewise.
64408         * tests/test-langinfo-c++.cc: Likewise.
64409         * tests/test-locale-c++.cc: Likewise.
64410         * tests/test-math-c++.cc: Likewise.
64411         * tests/test-pty-c++.cc: Likewise.
64412         * tests/test-search-c++.cc: Likewise.
64413         * tests/test-signal-c++.cc: Likewise.
64414         * tests/test-spawn-c++.cc: Likewise.
64415         * tests/test-stdio-c++.cc: Likewise.
64416         * tests/test-stdlib-c++.cc: Likewise.
64417         * tests/test-string-c++.cc: Likewise.
64418         * tests/test-sys_ioctl-c++.cc: Likewise.
64419         * tests/test-sys_select-c++.cc: Likewise.
64420         * tests/test-sys_socket-c++.cc: Likewise.
64421         * tests/test-sys_stat-c++.cc: Likewise.
64422         * tests/test-sys_time-c++.cc: Likewise.
64423         * tests/test-time-c++.cc: Likewise.
64424         * tests/test-unistd-c++.cc: Likewise.
64425         * tests/test-wchar-c++.cc: Likewise.
64426         * tests/uninorm/test-u8-nfc.c: Likewise.
64427         * tests/uninorm/test-u8-nfd.c: Likewise.
64428         * tests/uninorm/test-u8-nfkc.c: Likewise.
64429         * tests/uninorm/test-u8-nfkd.c: Likewise.
64430         * tests/uninorm/test-u16-nfc.c: Likewise.
64431         * tests/uninorm/test-u16-nfd.c: Likewise.
64432         * tests/uninorm/test-u16-nfkc.c: Likewise.
64433         * tests/uninorm/test-u16-nfkd.c: Likewise.
64434         * tests/uninorm/test-u32-nfc.c: Likewise.
64435         * tests/uninorm/test-u32-nfc-big.c: Likewise.
64436         * tests/uninorm/test-u32-nfd.c: Likewise.
64437         * tests/uninorm/test-u32-nfd-big.c: Likewise.
64438         * tests/uninorm/test-u32-nfkc.c: Likewise.
64439         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
64440         * tests/uninorm/test-u32-nfkd.c: Likewise.
64441         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
64442         * tests/uninorm/test-u32-normalize-big.c: Likewise.
64444 2010-03-27  Bruno Haible  <bruno@clisp.org>
64446         Distinguish two kinds of module indicators.
64447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
64448         gl_MODULE_INDICATOR.
64449         (gl_MODULE_INDICATOR): New macro.
64450         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
64451         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
64452         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
64453         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
64454         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
64455         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
64456         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
64457         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
64458         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
64459         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
64460         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
64461         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
64462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
64463         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
64464         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
64465         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
64466         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
64467         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
64468         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
64469         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
64470         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
64471         * modules/cloexec (configure.ac): Likewise.
64472         * modules/getopt-gnu (configure.ac): Likewise.
64473         * modules/uninorm/u8-normalize (configure.ac): Likewise.
64474         * modules/uninorm/u16-normalize (configure.ac): Likewise.
64475         * modules/uninorm/u32-normalize (configure.ac): Likewise.
64476         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
64478 2010-03-27  Bruno Haible  <bruno@clisp.org>
64480         New module description field 'Comment'.
64481         * gnulib-tool: New option --extract-comment.
64482         (func_usage): Document it.
64483         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
64484         (func_get_comment): New function.
64485         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
64487 2010-03-27  Bruno Haible  <bruno@clisp.org>
64489         Addendum to 2010-02-07 commit.
64490         * gnulib-tool (func_usage): Document --extract-applicability option.
64492 2010-03-27  Bruno Haible  <bruno@clisp.org>
64494         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
64495         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
64496         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
64497         rather than link errors.
64499 2010-03-27  Bruno Haible  <bruno@clisp.org>
64501         Avoid side effects from tests-related modules on the compilation of lib.
64502         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
64503         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
64504         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
64505         parameter. Emit into AM_CPPFLAGS a definition of the designated C
64506         macro.
64507         (func_import): Define a witness macro. Assign it a value that depends
64508         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
64509         tests-related modules.
64510         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
64511         Reported by Jim Meyering.
64513 2010-03-27  Bruno Haible  <bruno@clisp.org>
64515         Factorize common .m4 code.
64516         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
64517         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
64518         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
64519         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
64520         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
64521         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
64522         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
64523         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
64524         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
64525         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
64526         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
64527         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
64528         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
64529         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
64530         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
64531         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
64532         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
64533         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
64534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
64535         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
64536         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
64537         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
64538         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
64539         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
64540         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
64541         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
64542         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
64543         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
64544         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
64545         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
64546         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
64547         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
64549 2010-03-27  Bruno Haible  <bruno@clisp.org>
64551         Fix a compilation error on Cygwin with g++ >= 4.3.
64552         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
64553         if it is undefined or if we alias it to chmod.
64554         (lstat): Don't warn about the use of this function if it is undefined
64555         or if we alias it to stat.
64556         Reported by Simon Josefsson.
64558 2010-03-27  Bruno Haible  <bruno@clisp.org>
64560         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
64561         * modules/getlogin (configure.ac): Update.
64563         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
64564         * modules/getlogin_r (configure.ac): Update.
64566         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
64567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
64568         * modules/inet_ntop (configure.ac): Update.
64570         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
64571         * modules/inet_pton (configure.ac): Update.
64573         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
64574         * modules/mbslen (configure.ac): Update.
64576         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
64577         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
64578         * modules/forkpty (configure.ac): Update.
64579         * modules/openpty (configure.ac): Update.
64581 2010-03-26  Simon Josefsson  <simon@josefsson.org>
64583         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
64584         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
64586 2010-03-25  Eric Blake  <eblake@redhat.com>
64588         maint: use pragma consistently across replacement headers
64589         * lib/ctype.in.h (system_header): Hoist for consistent placement.
64590         * lib/dirent.in.h (system_header): Likewise.
64591         * lib/errno.in.h (system_header): Likewise.
64592         * lib/float.in.h (system_header): Likewise.
64593         * lib/getopt.in.h (system_header): Likewise.
64594         * lib/iconv.in.h (system_header): Likewise.
64595         * lib/inttypes.in.h (system_header): Likewise.
64596         * lib/langinfo.in.h (system_header): Likewise.
64597         * lib/locale.in.h (system_header): Likewise.
64598         * lib/math.in.h (system_header): Likewise.
64599         * lib/netdb.in.h (system_header): Likewise.
64600         * lib/netinet_in.in.h (system_header): Likewise.
64601         * lib/pty.in.h (system_header): Likewise.
64602         * lib/sched.in.h (system_header): Likewise.
64603         * lib/se-selinux.in.h (system_header): Likewise.
64604         * lib/search.in.h (system_header): Likewise.
64605         * lib/spawn.in.h (system_header): Likewise.
64606         * lib/stdarg.in.h (system_header): Likewise.
64607         * lib/stdint.in.h (system_header): Likewise.
64608         * lib/string.in.h (system_header): Likewise.
64609         * lib/strings.in.h (system_header): Likewise.
64610         * lib/sys_file.in.h (system_header): Likewise.
64611         * lib/sys_ioctl.in.h (system_header): Likewise.
64612         * lib/sys_socket.in.h (system_header): Likewise.
64613         * lib/sys_times.in.h (system_header): Likewise.
64614         * lib/sys_utsname.in.h (system_header): Likewise.
64615         * lib/sys_wait.in.h (system_header): Likewise.
64616         * lib/sysexits.in.h (system_header): Likewise.
64617         * lib/unistd.in.h (system_header): Likewise.
64618         * lib/wctype.in.h (system_header): Likewise.
64620         arpa/inet: fix mingw compilation warning
64621         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
64622         Reported by Matthew Bolte.
64624 2010-03-25  Bruno Haible  <bruno@clisp.org>
64626         Avoid collision between gnulib wrapper and libintl wrapper.
64627         * lib/printf.c (printf): Don't define if a printf wrapper is already
64628         defined in intl/printf.c.
64629         Reported by Michel Boaventura <michel@michelboaventura.com>.
64631 2010-03-25  Bruno Haible  <bruno@clisp.org>
64633         Use ANSI C.
64634         * lib/readutmp.h (getutent): Provide ANSI C prototype.
64636 2010-03-25  Bruno Haible  <bruno@clisp.org>
64638         Minor formatting changes.
64639         * lib/acosl.c: Insert space before function argument list.
64640         * lib/argz.c: Likewise.
64641         * lib/asinl.c: Likewise.
64642         * lib/expl.c: Likewise.
64643         * lib/gen-uni-tables.c: Likewise.
64644         * lib/gettext.h: Likewise.
64645         * lib/glthread/lock.h: Likewise.
64646         * lib/tanl.c: Likewise.
64647         * lib/uniname/uniname.c: Likewise.
64648         * tests/test-idpriv-drop.c: Likewise.
64649         * tests/test-idpriv-droptemp.c: Likewise.
64650         * tests/test-lock.c: Likewise.
64651         * tests/test-tls.c: Likewise.
64652         * lib/argp-help.c: Insert space before function-like macro argument
64653         list.
64654         * lib/memcmp.c: Likewise.
64655         * tests/test-base64.c: Likewise.
64656         * lib/localename.c: Insert space before sizeof's argument list.
64657         * lib/safe-alloc.h: Likewise.
64658         * lib/file-set.h: Insert space before macro argument list.
64659         * tests/test-argp.c: Likewise.
64660         * lib/argp-namefrob.h: Insert space before function parameter list.
64661         * lib/getaddrinfo.c: Likewise.
64662         * lib/netdb.in.h: Likewise.
64663         * lib/parse-duration.h: Likewise.
64664         * lib/parse-duration.c: Likewise.
64665         * lib/poll.c: Likewise.
64666         * lib/select.c: Likewise.
64667         * lib/trim.h: Likewise.
64668         * tests/test-usleep.c: Likewise.
64669         * lib/ldexpl.c: Insert space before function parameter list and before
64670         function argument list.
64671         * lib/logl.c: Likewise.
64672         * lib/sqrtl.c: Likewise.
64673         * lib/trim.c: Likewise.
64674         * lib/cosl.c: Use GNU style indentation. Insert space before function
64675         argument list.
64676         * lib/sinl.c: Likewise.
64677         * lib/tsearch.c: Insert space after 'for'.
64678         Reported by Jim Meyering.
64680 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
64682         * maint.mk (sc_Wundef_boolean): Check for the presence of the
64683         config header before grepping, as it's not present before
64684         autoreconf/configure are run.  Reported by Simon Josefsson.
64686 2010-03-23  Bruno Haible  <bruno@clisp.org>
64688         pt_chown: Make it work with automake < 1.11.
64689         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
64690         Reported by Simon Josefsson.
64692 2010-03-23  Bruno Haible  <bruno@clisp.org>
64694         pt_chown: Don't depend on GPLed modules.
64695         * lib/pt_chown.c: Don't include idpriv.h.
64696         (main): Don't drop privileges.
64697         * modules/pt_chown (Depends-on): Remove idpriv-drop.
64698         Reported by Simon Josefsson.
64700 2010-03-24  Simon Josefsson  <simon@josefsson.org>
64702         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
64703         suggestions from karl@freefriends.org (Karl Berry).
64705 2010-03-22  Eric Blake  <eblake@redhat.com>
64707         gethostname: further tweaks
64708         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
64709         are overriding gethostname.
64710         Suggested by Bruno Haible.
64712 2010-03-21  Bruno Haible  <bruno@clisp.org>
64714         Fix comments.
64715         * lib/forkpty.c (rpl_forkpty): Fix comment.
64716         * lib/openpty.c (rpl_openpty): Likewise.
64717         Reported by Eric Blake.
64719 2010-03-22  Eric Blake  <eblake@redhat.com>
64721         gethostname: fix build on mingw
64722         * lib/unistd.in.h (includes): Work around fact that mingw
64723         <winsock2.h> re-includes <unistd.h>, by avoiding any
64724         redeclarations if we are being included by <winsock2.h>.
64725         Reported by Matthias Bolte.
64727 2010-03-21  Bruno Haible  <bruno@clisp.org>
64729         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
64730         * lib/forkpty.c (forkpty): New replacement function, from glibc with
64731         modifications.
64732         * lib/pty.in.h (forkpty): Update declaration. Add comments.
64733         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
64734         provide the replacement.
64735         * modules/forkpty (Depends-on): Add openpty, login_tty.
64736         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
64737         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
64738         * doc/glibc-functions/forkpty.texi: More supported platforms.
64739         * config/srclist.txt: Add forkpty.c (commented).
64741 2010-03-21  Bruno Haible  <bruno@clisp.org>
64743         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
64744         (Makefile.am): Verify that PTY_LIB is defined.
64746         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
64748 2010-03-21  Bruno Haible  <bruno@clisp.org>
64750         Tests for module 'login_tty'.
64751         * modules/login_tty-tests: New file.
64752         * tests/test-login_tty.c: New file.
64754         New module 'login_tty'.
64755         * lib/login_tty.c: New file.
64756         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
64757         * modules/login_tty: New file.
64758         * doc/glibc-functions/login_tty.texi: Mention the new module.
64760 2010-03-21  Bruno Haible  <bruno@clisp.org>
64762         login_tty: Documentation.
64763         * doc/glibc-functions/login_tty.texi: New file.
64764         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
64766 2010-03-21  Bruno Haible  <bruno@clisp.org>
64768         pty: Consistent macro naming.
64769         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
64770         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
64771         * modules/pty (configure.ac): Update.
64773 2010-03-21  Bruno Haible  <bruno@clisp.org>
64775         Tests for openpty: Make stricter.
64776         * tests/test-openpty.c (main): Add test of canonical processing and
64777         erase.
64778         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
64780         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
64781         * lib/openpty.c (openpty): New replacement function.
64782         * lib/pty.in.h: Include <termios.h>.
64783         (openpty): Update declaration. Add comments.
64784         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
64785         is not declared, arrange to provide the replacement. Check for _getpty
64786         and posix_openpt.
64787         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
64788         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
64789         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
64790         * modules/pty-tests (test_pty_c___LDADD): New variable.
64791         * doc/glibc-functions/openpty.texi: More supported platforms.
64793 2010-03-21  Bruno Haible  <bruno@clisp.org>
64795         setenv: Tweaks.
64796         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
64797         the test program.
64798         * doc/posix-functions/setenv.texi: Update platforms list.
64800 2010-03-21  Bruno Haible  <bruno@clisp.org>
64802         New module 'unlockpt'.
64803         * lib/unlockpt.c: New file, from glibc with modifications.
64804         * m4/unlockpt.m4: New file.
64805         * modules/unlockpt: New file.
64806         * lib/stdlib.in.h (unlockpt): New declaration.
64807         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
64808         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
64809         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
64810         HAVE_UNLOCKPT.
64811         * doc/posix-functions/unlockpt.texi: Mention the new module.
64812         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
64813         * config/srclist.txt: Add unlockpt.c (commented).
64815 2010-03-21  Jim Meyering  <meyering@redhat.com>
64817         maint.mk: prohibit inclusion of "intprops.h" without use
64818         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
64820 2010-03-21  Bruno Haible  <bruno@clisp.org>
64822         New module 'grantpt'.
64823         * lib/grantpt.c: New file, from glibc with modifications.
64824         * m4/grantpt.m4: New file.
64825         * modules/grantpt: New file.
64826         * lib/stdlib.in.h (grantpt): New declaration.
64827         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
64828         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
64829         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
64830         HAVE_GRANTPT.
64831         * doc/posix-functions/grantpt.texi: Mention the new module.
64832         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
64833         * config/srclist.txt: Add grantpt.c (commented).
64835 2010-03-21  Bruno Haible  <bruno@clisp.org>
64837         New module 'pt_chown'.
64838         * lib/pt_chown.c: New file, from glibc with modifications.
64839         * lib/pty-private.h: New file, from glibc with modifications.
64840         * modules/pt_chown: New file.
64841         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
64843 2010-03-21  Bruno Haible  <bruno@clisp.org>
64845         Tests for module 'ptsname'.
64846         * modules/ptsname-tests: New file.
64847         * tests/test-ptsname.c: New file.
64849         New module 'ptsname'.
64850         * lib/ptsname.c: New file, from glibc with modifications.
64851         * m4/ptsname.m4: New file.
64852         * modules/ptsname: New file.
64853         * lib/stdlib.in.h (ptsname): New declaration.
64854         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
64855         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
64856         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
64857         HAVE_PTSNAME.
64858         * doc/posix-functions/ptsname.texi: Mention the new module.
64859         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
64860         * config/srclist.txt: Add ptsname.c (commented).
64862 2010-03-21  Bruno Haible  <bruno@clisp.org>
64864         Tests for module 'ttyname_r'.
64865         * modules/ttyname_r-tests: New file.
64866         * tests/test-ttyname_r.c: New file.
64868         New module 'ttyname_r'.
64869         * lib/ttyname_r.c: New file.
64870         * m4/ttyname_r.m4: New file.
64871         * modules/ttyname_r: New file.
64872         * lib/unistd.in.h (ttyname_r): New declaration.
64873         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
64874         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
64875         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
64876         HAVE_TTYNAME_R.
64877         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
64878         * doc/posix-functions/ttyname_r.texi: Mention the new module.
64880 2010-03-20  Bruno Haible  <bruno@clisp.org>
64882         signal: Undefine macro definitions in C++ mode.
64883         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
64884         sigfillset): Undefine macro definitions from the system header in C++
64885         mode.
64886         Reported by John W. Eaton <jwe@gnu.org>.
64888 2010-03-20  Bruno Haible  <bruno@clisp.org>
64890         Ensure no #include statements inside extern "C" { ... }.
64891         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
64892         contain #include statements.
64893         * lib/time.in.h: Likewise.
64895 2010-03-20  Bruno Haible  <bruno@clisp.org>
64897         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
64898         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
64899         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
64900         Reported by John W. Eaton <jwe@gnu.org>.
64902 2010-03-20  Bruno Haible  <bruno@clisp.org>
64904         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
64905         Reported by Jim Meyering.
64907 2010-03-20  Bruno Haible  <bruno@clisp.org>
64909         pipe: Set errno upon failure.
64910         * lib/pipe.h: Specify that when -1 is returned, errno is set.
64911         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
64912         errno value in error message.
64914 2010-03-20  Bruno Haible  <bruno@clisp.org>
64915             Jim Meyering  <meyering@redhat.com>
64917         lchown: Avoid "unused variable" warning.
64918         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
64920 2010-03-20  Bruno Haible  <bruno@clisp.org>
64922         Work around unlink() bug on MacOS X 10.5.6.
64923         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
64924         attempting to unlink a parent directory.
64925         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
64926         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
64927         activate for the replacement function.
64928         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
64930 2010-03-20  Bruno Haible  <bruno@clisp.org>
64932         Fix link errors on Solaris 8.
64933         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
64934         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
64936 2010-03-19  Jim Meyering  <meyering@redhat.com>
64938         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
64939         The _LIBC implementation of build_range_exp correctly honors the
64940         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
64941         However, the non-_LIBC implementation would ignore that syntax-bit
64942         flag and return REG_ERANGE unconditionally.
64943         This change makes it honor that flag.
64944         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
64945         Make two pointer parameters "const".
64946         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
64947         (parse_bracket_exp): Update caller.
64949         regex.m4: correct the reversed range endpoint ([b-a]) test
64950         * m4/regex.m4: When requiring that [b-a] evoke failure,
64951         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
64952         test pass once again for x86-based systems.
64954 2010-03-19  Bruno Haible  <bruno@clisp.org>
64956         scandir: Fix link error on Solaris 8.
64957         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
64958         macros.
64960 2010-03-19  Bruno Haible  <bruno@clisp.org>
64962         getusershell: Fix documentation.
64963         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
64964         module.
64965         * doc/glibc-functions/setusershell.texi: Likewise.
64967         getusershell: Provide declaration, missing on Solaris 9.
64968         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
64969         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
64970         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
64971         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
64972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64973         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
64974         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
64975         HAVE_GETUSERSHELL.
64976         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
64978 2010-03-19  Bruno Haible  <bruno@clisp.org>
64980         wctype: Provide iswblank function.
64981         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
64982         exists and is fine.
64983         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
64984         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
64985         * tests/test-wctype.c (main): Re-enable the iswblank tests.
64986         * doc/posix-functions/iswblank.texi: Update.
64988 2010-03-19  Bruno Haible  <bruno@clisp.org>
64990         Tests of module 'pty' in C++ mode.
64991         * modules/pty-tests: New file.
64992         * tests/test-pty-c++.cc: New file.
64993         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
64995 2010-03-19  Eric Blake  <eblake@redhat.com>
64997         logb: fix documentation
64998         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
64999         1.5 declaration bug.
65001         forkpty, openpty: prefer glibc's const-safe prototype
65002         * lib/forkpty.c (rpl_forkpty): New file.
65003         * lib/openpty.c (rpl_openpty): Likewise.
65004         * modules/forkpty (Files): Distribute it.
65005         * modules/openpty (Files): Likewise.
65006         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
65007         check...
65008         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
65009         replacement for non-const BSD signature.
65010         * modules/pty (Makefile.am): Substitute witnesses.
65011         * lib/pty.in.h (forkpty, openpty): Declare replacements.
65012         * tests/test-forkpty.c: Update signature check.
65013         * tests/test-openpty.c: Likewise.
65014         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
65015         * doc/glibc-functions/openpty.texi (openpty): Likewise.
65017         forkpty, openpty: split functions into new modules
65018         * modules/pty (Makefile.am): Substitute new witnesses.
65019         (Libraries): Move library detection...
65020         * modules/forkpty: ...into new module.
65021         * modules/openpty: Another new module.
65022         * modules/pty-tests: Rename and split...
65023         * modules/forkpty-tests: ...to this...
65024         * modules/openpty-tests: ...and this.
65025         * tests/test-pty.c: Rename and split...
65026         * tests/test-forkpty.c: ...to this...
65027         * tests/test-openpty.c: ...and this.
65028         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
65029         (gl_PTY): Split library searching...
65030         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
65031         (gl_FORKPTY, gl_OPENPTY): New macros.
65032         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
65033         * NEWS: Mention the split.
65034         * MODULES.html.sh (Misc): Document the modules.
65035         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
65036         * doc/glibc-functions/openpty.texi (openpty): Likewise.
65038         pty: improve replacement header
65039         * lib/pty.in.h: New file.
65040         * modules/pty (Files): Ship it.
65041         (Makefile.am): Always build replacement.
65042         * m4/pty.m4: Rename...
65043         * m4/pty_h.m4: ...to this.
65044         (gl_PTY): Modernize setting of witness macros; update check of
65045         forkpty to take proper advantage of cache.
65046         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
65048         getopt: avoid compiler warning
65049         * lib/getopt.c (attribute_hidden): Remove unused macro.
65051 2010-03-18  Bruno Haible  <bruno@clisp.org>
65053         Fix link errors on Solaris 8.
65054         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
65055         * modules/search-tests (test_search_c___LDADD): Likewise.
65056         * modules/signal-tests (test_signal_c___LDADD): Likewise.
65057         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
65058         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
65059         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
65060         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
65061         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
65062         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
65064 2010-03-18  Bruno Haible  <bruno@clisp.org>
65066         Fix bug introduced on 2010-03-14.
65067         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
65068         (gl_SPAWN_H): Require it.
65069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
65070         Reported by Simon Josefsson.
65072 2010-03-18  Bruno Haible  <bruno@clisp.org>
65074         Fix typo introduced on 2009-12-31.
65075         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
65076         posix_spawn_file_actions_adddup2.
65078 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
65079         and Eric Blake  <eblake@redhat.com>
65081         test-vc-list-files-git: make more robust
65082         * tests/test-vc-list-files-git.sh: Unset problematic environment
65083         variables.  Chain commands together.
65085 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
65087         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
65088         `AC_CHECK_DECL' invocation.
65090 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
65092         * lib/inttostr.c (inttostr): Make sure the invocation of verify
65093         appears before executable statements. Suggested by Petr Sumbera
65094         <Petr.Sumbera@Sun.COM>.
65096 2010-03-14  Bruno Haible  <bruno@clisp.org>
65098         * tests/test-flock.c (test_exclusive): Comment out a test that causes
65099         portability problems. Instead use a simpler test.
65100         (main): Check that invalid arguments are rejected only on Linux.
65102 2010-03-14  Bruno Haible  <bruno@clisp.org>
65104         Fix bug introduced on 2009-12-31.
65105         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
65106         gl_PREREQ_SYS_H_WINSOCK2 always.
65107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
65108         SYS_SOCKET_H variable.
65109         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
65110         Update comments.
65111         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
65112         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
65113         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
65114         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
65115         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
65117 2010-03-14  Bruno Haible  <bruno@clisp.org>
65119         Fix values returned by sinl, cosl.
65120         * lib/trigl.h: Add specification comments.
65121         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
65122         that combines the values from the precomputed table with the values of
65123         the Chebyshev polynomials.
65125 2010-03-14  Bruno Haible  <bruno@clisp.org>
65127         Fix compilation error when modules 'posix_spawn[p]' are not used.
65128         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
65129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
65131 2010-03-14  Bruno Haible  <bruno@clisp.org>
65133         Fix compilation error on mingw when module 'time_r' is not used.
65134         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
65135         is 1.
65136         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
65137         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
65138         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
65139         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
65141 2010-03-14  Bruno Haible  <bruno@clisp.org>
65143         Fix compilation error with Sun C.
65144         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
65145         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
65146         instead of GCC specific ULONG_LONG_MAX.
65147         * lib/xstrtoll.c: Likewise.
65148         * lib/xstrtoull.c: Likewise.
65150 2010-03-13  Bruno Haible  <bruno@clisp.org>
65152         Allow the user to disable C++ code and tests.
65153         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
65154         (gl_PROG_ANSI_CXX): Require it.
65156 2010-03-13  Bruno Haible  <bruno@clisp.org>
65158         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
65159         cases.
65161 2010-03-13  Bruno Haible  <bruno@clisp.org>
65163         Test that gnulib does not break the standard C++ headers.
65164         * tests/test-locale-c++2.cc: New file.
65165         * modules/locale-tests (Files): Add it.
65166         (Makefile.am): Compile it for test-locale-c++.
65167         * tests/test-math-c++2.cc: New file.
65168         * modules/math-tests (Files): Add it.
65169         (Makefile.am): Compile it for test-math-c++.
65170         * tests/test-signal-c++2.cc: New file.
65171         * modules/signal-tests (Files): Add it.
65172         (Makefile.am): Compile it for test-signal-c++.
65173         * tests/test-stdio-c++2.cc: New file.
65174         * modules/stdio-tests (Files): Add it.
65175         (Makefile.am): Compile it for test-stdio-c++.
65176         * tests/test-stdlib-c++2.cc: New file.
65177         * modules/stdlib-tests (Files): Add it.
65178         (Makefile.am): Compile it for test-stdlib-c++.
65179         * tests/test-string-c++2.cc: New file.
65180         * modules/string-tests (Files): Add it.
65181         (Makefile.am): Compile it for test-string-c++.
65182         * tests/test-time-c++2.cc: New file.
65183         * modules/time-tests (Files): Add it.
65184         (Makefile.am): Compile it for test-time-c++.
65185         Reported by John W. Eaton <jwe@gnu.org>.
65187 2010-03-13  Bruno Haible  <bruno@clisp.org>
65189         * gnulib-tool (func_usage): Clarify which options are available for
65190         --create-testdir and --create-megatestdir.
65192 2010-03-13  Bruno Haible  <bruno@clisp.org>
65194         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
65195         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
65196         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
65197         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
65198         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
65199         when appropriate.
65200         Reported by Jim Meyering.
65202 2010-03-12  Simon Josefsson  <simon@josefsson.org>
65204         * gnulib-tool (func_import): Explain origin of code.
65206 2010-03-12  Bruno Haible  <bruno@clisp.org>
65208         Fix problem with automake's definition of CXXLINK.
65209         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
65210         Reported by Simon Josefsson and Ludovic Courtès.
65212 2010-03-12  Bruno Haible  <bruno@clisp.org>
65214         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
65215         stable releases.
65217 2010-03-11  Bruno Haible  <bruno@clisp.org>
65219         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
65220         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
65221         whether the system provides one variant or multiple variants of the
65222         function.
65223         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
65224         C++ compilers.
65225         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
65226         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
65227         Reported by Jim Meyering.
65229 2010-03-09  Simon Josefsson  <simon@josefsson.org>
65231         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
65233 2010-03-08  Bruno Haible  <bruno@clisp.org>
65235         gnulib-tool: Add support for --libtool in --create-testdir.
65236         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
65237         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
65239 2010-03-08  Eric Blake  <eblake@redhat.com>
65241         gnulib-tool.texi: mention possibility of git submodule
65242         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
65243         submodules.
65244         * doc/.gitignore: Ignore another generated file.
65246 2010-03-08  Karl Berry  <karl@gnu.org>
65248         * doc/gnulib-tool.texi (VCS Issues): Mention third option
65249         of committing gnulib files while skipping others.
65251 2010-03-07  Bruno Haible  <bruno@clisp.org>
65253         Tests of module 'wctype' in C++ mode.
65254         * tests/test-wctype-c++.cc: New file.
65255         * modules/wctype-tests (Files): Add it and tests/signature.h.
65256         (Depends-on): Add ansi-c++-opt.
65257         (Makefile.am): Arrange to compile and run test-wctype-c++.
65259         Tests of module 'wchar' in C++ mode.
65260         * tests/test-wchar-c++.cc: New file.
65261         * modules/wchar-tests (Files): Add it and tests/signature.h.
65262         (Depends-on): Add ansi-c++-opt.
65263         (Makefile.am): Arrange to compile and run test-wchar-c++.
65264         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
65265         gl_MODULE_INDICATOR.
65267         Tests of module 'unistd' in C++ mode.
65268         * tests/test-unistd-c++.cc: New file.
65269         * modules/unistd-tests (Files): Add it and tests/signature.h.
65270         (Depends-on): Add ansi-c++-opt.
65271         (Makefile.am): Arrange to compile and run test-unistd-c++.
65272         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
65273         gl_MODULE_INDICATOR.
65275         Tests of module 'time' in C++ mode.
65276         * tests/test-time-c++.cc: New file.
65277         * modules/time-tests (Files): Add it and tests/signature.h.
65278         (Depends-on): Add ansi-c++-opt.
65279         (Makefile.am): Arrange to compile and run test-time-c++.
65280         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
65282         Tests of module 'sys_time' in C++ mode.
65283         * tests/test-sys_time-c++.cc: New file.
65284         * modules/sys_time-tests (Files): Add it and tests/signature.h.
65285         (Depends-on): Add ansi-c++-opt.
65286         (Makefile.am): Arrange to compile and run test-sys_time-c++.
65287         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
65288         gl_MODULE_INDICATOR.
65290         Tests of module 'sys_stat' in C++ mode.
65291         * tests/test-sys_stat-c++.cc: New file.
65292         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
65293         (Depends-on): Add ansi-c++-opt.
65294         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
65295         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
65296         gl_MODULE_INDICATOR.
65298         Tests of module 'sys_socket' in C++ mode.
65299         * tests/test-sys_socket-c++.cc: New file.
65300         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
65301         (Depends-on): Add ansi-c++-opt.
65302         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
65303         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
65304         gl_MODULE_INDICATOR.
65306         Tests of module 'sys_select' in C++ mode.
65307         * tests/test-sys_select-c++.cc: New file.
65308         * modules/sys_select-tests (Files): Add it and tests/signature.h.
65309         (Depends-on): Add ansi-c++-opt.
65310         (Makefile.am): Arrange to compile and run test-sys_select-c++.
65311         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
65312         gl_MODULE_INDICATOR.
65314         Tests of module 'sys_ioctl' in C++ mode.
65315         * tests/test-sys_ioctl-c++.cc: New file.
65316         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
65317         (Depends-on): Add ansi-c++-opt.
65318         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
65319         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
65320         gl_MODULE_INDICATOR.
65322         Tests of module 'string' in C++ mode.
65323         * tests/test-string-c++.cc: New file.
65324         * modules/string-tests (Files): Add it and tests/signature.h.
65325         (Depends-on): Add ansi-c++-opt.
65326         (Makefile.am): Arrange to compile and run test-string-c++.
65327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
65328         gl_MODULE_INDICATOR.
65330         Tests of module 'stdlib' in C++ mode.
65331         * tests/test-stdlib-c++.cc: New file.
65332         * modules/stdlib-tests (Files): Add it and tests/signature.h.
65333         (Depends-on): Add ansi-c++-opt.
65334         (Makefile.am): Arrange to compile and run test-stdlib-c++.
65335         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
65336         gl_MODULE_INDICATOR.
65338         Tests of module 'stdio' in C++ mode.
65339         * tests/test-stdio-c++.cc: New file.
65340         * modules/stdio-tests (Files): Add it and tests/signature.h.
65341         (Depends-on): Add ansi-c++-opt.
65342         (Makefile.am): Arrange to compile and run test-stdio-c++.
65343         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
65344         gl_MODULE_INDICATOR.
65346         Tests of module 'spawn' in C++ mode.
65347         * tests/test-spawn-c++.cc: New file.
65348         * modules/spawn-tests (Files): Add it and tests/signature.h.
65349         (Depends-on): Add ansi-c++-opt.
65350         (Makefile.am): Arrange to compile and run test-spawn-c++.
65351         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
65352         gl_MODULE_INDICATOR.
65354         Tests of module 'signal' in C++ mode.
65355         * tests/test-signal-c++.cc: New file.
65356         * modules/signal-tests (Files): Add it and tests/signature.h.
65357         (Depends-on): Add ansi-c++-opt.
65358         (Makefile.am): Arrange to compile and run test-signal-c++.
65359         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
65360         gl_MODULE_INDICATOR.
65362         Tests of module 'search' in C++ mode.
65363         * tests/test-search-c++.cc: New file.
65364         * modules/search-tests (Files): Add it and tests/signature.h.
65365         (Depends-on): Add ansi-c++-opt.
65366         (Makefile.am): Arrange to compile and run test-search-c++.
65367         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
65368         gl_MODULE_INDICATOR.
65370         Tests of module 'math' in C++ mode.
65371         * tests/test-math-c++.cc: New file.
65372         * modules/math-tests (Files): Add it and tests/signature.h.
65373         (Depends-on): Add ansi-c++-opt.
65374         (Makefile.am): Arrange to compile and run test-math-c++.
65375         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
65377         Tests of module 'locale' in C++ mode.
65378         * tests/test-locale-c++.cc: New file.
65379         * modules/locale-tests (Files): Add it and tests/signature.h.
65380         (Depends-on): Add ansi-c++-opt.
65381         (Makefile.am): Arrange to compile and run test-locale-c++.
65382         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
65383         gl_MODULE_INDICATOR.
65385         Tests of module 'langinfo' in C++ mode.
65386         * tests/test-langinfo-c++.cc: New file.
65387         * modules/langinfo-tests (Files): Add it and tests/signature.h.
65388         (Depends-on): Add ansi-c++-opt.
65389         (Makefile.am): Arrange to compile and run test-langinfo-c++.
65390         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
65391         gl_MODULE_INDICATOR.
65393         Tests of module 'iconv-h' in C++ mode.
65394         * tests/test-iconv-h-c++.cc: New file.
65395         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
65396         (Depends-on): Add ansi-c++-opt.
65397         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
65399         Tests of module 'glob' in C++ mode.
65400         * tests/test-glob-c++.cc: New file.
65401         * modules/glob-tests (Files): Add it.
65402         (Depends-on): Add ansi-c++-opt.
65403         (Makefile.am): Arrange to compile and run test-glob-c++.
65405         Tests of module 'fcntl-h' in C++ mode.
65406         * tests/test-fcntl-h-c++.cc: New file.
65407         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
65408         (Depends-on): Add ansi-c++-opt.
65409         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
65410         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
65411         gl_MODULE_INDICATOR.
65413         Tests of module 'dirent' in C++ mode.
65414         * tests/test-dirent-c++.cc: New file.
65415         * modules/dirent-tests (Files): Add it and tests/signature.h.
65416         (Depends-on): Add ansi-c++-opt.
65417         (Makefile.am): Arrange to compile and run test-dirent-c++.
65418         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
65419         gl_MODULE_INDICATOR.
65421         New module 'ansi-c++-opt'.
65422         * modules/ansi-c++-opt: New file.
65423         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
65425         Document C++ namespace mode.
65426         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
65428         wctype: Avoid #define replacements in C++ mode.
65429         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
65430         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
65431         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
65432         In C++, define a namespaced alias symbol.
65433         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
65434         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
65435         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
65436         rule.
65438         wchar: Avoid #define replacements in C++ mode.
65439         * lib/wchar.in.h: Include c++defs.h.
65440         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
65441         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
65442         symbol.
65443         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
65444         * modules/wchar (Depends-on): Add c++defs.
65445         (Makefile.am): Update wchar.h rule.
65447         unistd: Avoid #define replacements in C++ mode.
65448         * lib/unistd.in.h: Include c++defs.h.
65449         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
65450         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
65451         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
65452         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
65453         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
65454         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
65455         symbol.
65456         (environ): Update.
65457         * modules/unistd (Depends-on): Add c++defs.
65458         (Makefile.am): Update unistd.h rule.
65460         time: Avoid #define replacements in C++ mode.
65461         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
65462         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
65463         define a namespaced alias symbol.
65464         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
65465         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
65466         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
65467         * modules/time (Depends-on): Add c++defs, warn-on-use.
65468         (Makefile.am): Update time.h rule.
65469         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
65470         * modules/nanosleep (configure.ac): Likewise.
65471         * modules/strptime (configure.ac): Likewise.
65472         * modules/timegm (configure.ac): Likewise.
65474         sys_time: Avoid #define replacements in C++ mode.
65475         * lib/sys_time.in.h: Include c++defs.h.
65476         (gettimeofday): In C++, define a namespaced alias symbol.
65477         * modules/sys_time (Depends-on): Add c++defs.
65478         (Makefile.am): Update sys/time.h rule.
65480         sys_stat: Avoid #define replacements in C++ mode.
65481         * lib/sys_stat.in.h: Include c++defs.h.
65482         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
65483         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
65484         namespaced alias symbol.
65485         In C++, define a namespaced alias symbol.
65486         * modules/sys_stat (Depends-on): Add c++defs.
65487         (Makefile.am): Update sys/stat.h rule.
65489         sys_socket: Avoid #define replacements in C++ mode.
65490         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
65491         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
65492         definitions also when the system has a <sys/socket.h>.
65493         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
65494         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
65495         In C++, define a namespaced alias symbol.
65496         * modules/sys_socket (Depends-on): Add c++defs.
65497         (Makefile.am): Update sys/socket.h rule.
65499         sys_select: Avoid #define replacements in C++ mode.
65500         * lib/sys_select.in.h: Include c++defs.h. Enable the function
65501         definitions also when the system has a <sys/select.h>.
65502         (select): In C++, define a namespaced alias symbol.
65503         * modules/sys_select (Depends-on): Add c++defs.
65504         (Makefile.am): Update sys/select.h rule.
65506         sys_ioctl: Avoid #define replacements in C++ mode.
65507         * lib/sys_ioctl.in.h: Include c++defs.h.
65508         (ioctl): In C++, define a namespaced alias symbol.
65509         * modules/sys_ioctl (Depends-on): Add c++defs.
65510         (Makefile.am): Update sys/ioctl.h rule.
65512         string: Avoid #define replacements in C++ mode.
65513         * lib/string.in.h: Include c++defs.h.
65514         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
65515         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
65516         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
65517         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
65518         strsignal, strverscmp): In C++, define a namespaced alias symbol.
65519         * modules/string (Depends-on): Add c++defs.
65520         (Makefile.am): Update string.h rule.
65522         stdlib: Avoid #define replacements in C++ mode.
65523         * lib/stdlib.in.h: Include c++defs.h.
65524         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
65525         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
65526         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
65527         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
65528         symbol.
65529         * modules/stdlib (Depends-on): Add c++defs.
65530         (Makefile.am): Update stdlib.h rule.
65532         stdio: Avoid #define replacements in C++ mode.
65533         * lib/stdio.in.h: Include c++defs.h.
65534         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
65535         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
65536         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
65537         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
65538         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
65539         namespaced alias symbol.
65540         * modules/stdio (Depends-on): Add c++defs.
65541         (Makefile.am): Update stdio.h rule.
65543         spawn: Avoid #define replacements in C++ mode.
65544         * lib/spawn.in.h: Include c++defs.h.
65545         (posix_spawn, posix_spawnp, posix_spawnattr_init,
65546         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
65547         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
65548         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
65549         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
65550         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
65551         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
65552         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
65553         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
65554         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
65555         In C++, define a namespaced alias symbol.
65556         * modules/spawn (Depends-on): Add c++defs.
65557         (Makefile.am): Update spawn.h rule.
65559         signal: Avoid #define replacements in C++ mode.
65560         * lib/signal.in.h: Include c++defs.h.
65561         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
65562         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
65563         namespaced alias symbol.
65564         * modules/signal (Depends-on): Add c++defs.
65565         (Makefile.am): Update signal.h rule.
65567         search: Avoid #define replacements in C++ mode.
65568         * lib/search.in.h: Include c++defs.h.
65569         (_gl_search_compar_fn, _gl_search_action_fn): New types.
65570         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
65571         symbol.
65572         * modules/search (Depends-on): Add c++defs.
65573         (Makefile.am): Update search.h rule.
65575         math: Avoid #define replacements in C++ mode.
65576         * lib/math.in.h: Include c++defs.h.
65577         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
65578         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
65579         trunc, truncl): In C++, define a namespaced alias symbol.
65580         * modules/math (Depends-on): Add c++defs.
65581         (Makefile.am): Update math.h rule.
65583         locale: Avoid #define replacements in C++ mode.
65584         * lib/locale.in.h: Include c++defs.h.
65585         (duplocale): In C++, define a namespaced alias symbol.
65586         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
65587         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
65588         * modules/locale (Depends-on): Add c++defs.
65589         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
65591         langinfo: Avoid #define replacements in C++ mode.
65592         * lib/langinfo.in.h: Include c++defs.h.
65593         (nl_langinfo): In C++, define a namespaced alias symbol.
65594         * modules/langinfo (Depends-on): Add c++defs.
65595         (Makefile.am): Update langinfo.h rule.
65597         iconv-h: Avoid #define replacements in C++ mode.
65598         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
65599         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
65600         symbol.
65601         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
65602         whenever iconv is present.
65603         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
65604         (Makefile.am): Update iconv.h rule.
65606         glob: Avoid #define replacements in C++ mode.
65607         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
65608         (_gl_glob_errfunc_fn): New type.
65609         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
65610         symbol.
65611         * modules/glob (Depends-on): Add c++defs, warn-on-use.
65612         (Makefile.am): Update glob.h rule.
65614         fcntl-h: Avoid #define replacements in C++ mode.
65615         * lib/fcntl.in.h: Include c++defs.h.
65616         (fcntl, open, openat): In C++, define a namespaced alias symbol.
65617         * modules/fcntl-h (Depends-on): Add c++defs.
65618         (Makefile.am): Update fcntl.h rule.
65620         dirent: Avoid #define replacements in C++ mode.
65621         * lib/dirent.in.h: Include c++defs.h.
65622         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
65623         namespaced alias symbol.
65624         (dirfd): Update declaration.
65625         * modules/dirent (Depends-on): Add c++defs.
65626         (Makefile.am): Update dirent.h rule.
65628         ctype: Make it usable in C++ code.
65629         * lib/ctype.in.h: Include c++defs.h.
65630         (isblank): Declare as extern "C".
65631         * modules/ctype (Depends-on): Add c++defs.
65632         (Makefile.am): Update ctype.h rule.
65634         New module 'c++defs'.
65635         * modules/c++defs: New file.
65636         * build-aux/c++defs.h: New file.
65637         Reported by John W. Eaton <jwe@gnu.org>.
65639 2010-03-07  Bruno Haible  <bruno@clisp.org>
65641         logb: Provide missing declaration for Cygwin.
65642         * lib/math.in.h (logb): New declaration.
65643         * m4/logb.m4: New file.
65644         * modules/logb (Files): Add m4/logb.m4.
65645         (Depends-on): Add math.
65646         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
65647         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
65648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
65649         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
65650         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
65652 2010-03-07  Bruno Haible  <bruno@clisp.org>
65654         Fix test-cond link error.
65655         * tests/test-cond.c: Include <stdio.h>.
65657 2010-03-07  Bruno Haible  <bruno@clisp.org>
65659         Fix test-dirent-safer link error.
65660         * modules/dirent-safer-tests (Makefile.am): Define
65661         test_dirent_safer_LDADD.
65663 2010-03-07  Bruno Haible  <bruno@clisp.org>
65665         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
65666         among default module list.
65668 2010-03-07  Bruno Haible  <bruno@clisp.org>
65670         Fix link error on platforms with GNU libiconv.
65671         * modules/unistr/u8-strcoll-tests (Makefile): Define
65672         test_u8_strcoll_LDADD.
65673         * modules/unistr/u16-strcoll-tests (Makefile): Define
65674         test_u16_strcoll_LDADD.
65675         * modules/unistr/u32-strcoll-tests (Makefile): Define
65676         test_u32_strcoll_LDADD.
65678 2010-03-07  Bruno Haible  <bruno@clisp.org>
65680         Use POSIX declarations for socket functions.
65681         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
65682         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
65683         rpl_sendto): Change declaration to match POSIX.
65684         * lib/connect.c (rpl_connect): Likewise.
65685         * lib/accept.c (rpl_accept): Likewise.
65686         * lib/bind.c (rpl_bind): Likewise.
65687         * lib/getpeername.c (rpl_getpeername): Likewise.
65688         * lib/getsockname.c (rpl_getsockname): Likewise.
65689         * lib/recv.c (rpl_recv): Likewise.
65690         * lib/send.c (rpl_send): Likewise.
65691         * lib/recvfrom.c (rpl_recvfrom): Likewise.
65692         * lib/sendto.c (rpl_sendto): Likewise.
65694 2010-03-06  Bruno Haible  <bruno@clisp.org>
65696         Clarify access, euidaccess, faccessat.
65697         * doc/posix-functions/faccessat.texi: Mention security problem under
65698         "Other problems", not "Portability problems".
65699         * doc/posix-functions/access.texi: Likewise. Mention a related security
65700         problem.
65701         * doc/glibc-functions/euidaccess.texi: Mention security problems.
65702         * lib/euidaccess.c: Add comments about platforms.
65703         * lib/unistd.in.h (access, euidaccess): Add warnings.
65705 2010-03-07  Bruno Haible  <bruno@clisp.org>
65707         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
65708         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
65709         (POSIX_SPAWN_SETSCHEDULER): Likewise.
65710         (POSIX_SPAWN_USEVFORK): Define in a way that works when
65711         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
65712         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
65713         declare when POSIX_SPAWN_SETSCHEDULER is zero.
65714         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
65715         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
65716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
65717         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
65718         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
65719         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
65720         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
65721         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
65722         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
65723         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
65724         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
65725         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
65726         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
65727         Likewise.
65728         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
65729         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
65730         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
65731         Likewise.
65732         * tests/test-spawn.c (main): Make it work when
65733         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
65735 2010-03-07  Bruno Haible  <bruno@clisp.org>
65737         Fix incorrect Makefile.am generation in German locale.
65738         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65739         Execute sed command with character range in C locale.
65741 2010-03-06  Bruno Haible  <bruno@clisp.org>
65743         Tests for module 'iconv-h'.
65744         * modules/iconv-h-tests: New file.
65745         * tests/test-iconv-h.c: New file.
65747         New module 'iconv-h'.
65748         * modules/iconv-h: New file.
65749         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
65750         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
65751         (configure.ac): Remove gl_ICONV_H.
65752         (Makefile.am): Remove rule for iconv.h.
65754 2010-03-06  Bruno Haible  <bruno@clisp.org>
65756         More consistent naming of *.m4 files.
65757         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
65758         * modules/wctype (Files): Update.
65760         More consistent naming of *.m4 files.
65761         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
65762         * modules/wchar (Files): Update.
65764 2010-03-06  Jim Meyering  <meyering@redhat.com>
65766         euidaccess: relax license to LGPLv2+
65767         * modules/euidaccess (License): Relax to LGPLv2+.
65769 2010-03-06  Bruno Haible  <bruno@clisp.org>
65771         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
65772         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
65773         (Makefile.am): Augment lib_SOURCES instead.
65775 2010-03-04  Jim Meyering  <meyering@redhat.com>
65777         utime: remove obsolete module
65778         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
65779         unnecessary for years, and has been marked as obsolete for 10 months.
65780         * modules/utime: Remove file.
65781         * lib/utime.c: Remove file.
65782         * m4/utime.m4: Remove file.
65783         * m4/utimes-null.m4: Remove file.
65784         * doc/posix-functions/utime.texi (utime): Remove reference to
65785         the module.  Move the sole "fixed by gnulib" item into the
65786         "problems not fixed by Gnulib" list.
65787         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
65789 2010-03-05  Simon Josefsson  <simon@josefsson.org>
65791         * modules/exit (License): Relax license to LGPLv2+.
65792         (Status): Mark as obsolete.
65793         * NEWS: Mention deprecated 'exit' module.
65794         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
65795         of now obsolete 'exit'.
65797 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65799         fts-lgpl: remove unused module
65800         * modules/fts-lgpl: Remove.
65801         * MODULES.html.sh (func_all_modules): Adjust.
65802         * check-module (find_included_lib_files): Adjust.
65803         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
65805 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
65807         copy-acl: enhance Solaris ACL error handling
65808         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
65809         * lib/set-mode-acl.c (qset_acl): Likewise.
65811 2010-03-02  Bruno Haible  <bruno@clisp.org>
65813         spawn: Don't override the system defined values on FreeBSD 8.
65814         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
65815         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
65816         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
65817         if HAVE_POSIX_SPAWN is 1.
65818         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
65820 2010-03-01  Bruno Haible  <bruno@clisp.org>
65822         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
65823         regarding Automake.
65825 2010-02-25  Bruno Haible  <bruno@clisp.org>
65827         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
65828         * gnulib-tool: Define 'echo' as a function only before the ksh alias
65829         setting, not afterwards.
65830         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
65832 2010-02-24  Eric Blake  <eblake@redhat.com>
65834         bootstrap, git-version-gen: use timestamp
65835         * build-aux/git-version-gen (scriptversion): Force UTC.
65836         * build-aux/bootstrap (scriptversion): New variable.
65838         bootstrap: allow older git
65839         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
65840         older than 1.6.4.  Requested by the libvirt project.
65842 2010-02-23  Eric Blake  <eblake@redhat.com>
65844         warn-on-use: work with old autoconf
65845         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
65846         AS_VAR semantics of autoconf 2.60.
65847         Reported by Bruno Haible.
65849         bootstrap: improve some comments
65850         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
65851         clarification comments.
65853         gettimeofday: provide correct function
65854         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
65855         when replacement is declared, otherwise provide gettimeofday.
65856         Reported by Michael Goffioul.
65858 2010-02-23  Jim Meyering  <meyering@redhat.com>
65860         lib-ignore: relax license to "unlimited", not LGPLv2+
65861         * modules/lib-ignore (License): Relax to "unlimited".
65863 2010-02-23  Jim Meyering  <meyering@redhat.com>
65865         lib-ignore: relax license to LGPLv2+
65866         * modules/lib-ignore (License): Relax to LGPLv2+.
65868 2010-02-22  Eric Blake  <eblake@redhat.com>
65870         lseek: avoid bash 3.2 broken pipe bug
65871         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
65872         warning from bash 3.2.
65873         Reported by Ben Pfaff, with analysis from Bruno Haible.
65875         bootstrap: support non-FSF copyright holder
65876         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
65877         bootstrap.conf override of COPYRIGHT_HOLDER.
65878         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
65880         bootstrap: interoperate with gettext 0.14.1
65881         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
65883         bootstrap: allow for alternate submodule location
65884         * build-aux/bootstrap (gnulib_path): New variable; use instead of
65885         hardcoding submodule location.
65886         (gnulib_mk): Allow direct use of Makefile.am.
65888         bootstrap: use GNULIB_SRCDIR to reduce disk usage
65889         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
65890         rather than reconfiguring where the submodule points.
65892         gettimeofday: restore support for platforms that lack function
65893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
65894         replacement if function is missing.
65895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
65896         * modules/sys_time (Makefile.am): Substitute it.
65897         * lib/sys_time.in.h (gettimeofday): Check it.
65898         Reported by Michael Goffioul.
65900 2010-02-21  Bruno Haible  <bruno@clisp.org>
65902         * lib/stdio.in.h (obstack_printf): Fix typo.
65904 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
65906         vc-list-files: use bzr ls's -R option
65907         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
65908         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
65910 2010-02-21  Jim Meyering  <meyering@redhat.com>
65912         init.sh: fix EXEEXT shims to work also for names like test-prog
65913         * tests/init.sh: Re-exec a better shell, when needed.
65914         If the current shell lacks support for posix $(...), an init.sh-using
65915         test will now try to find a shell that supports that.  If EXEEXT is
65916         nonempty, we also require support for hyphen-in-alias-name and shell
65917         substitutions like ${var#glob}.  Failure to find such a shell results
65918         in a skipped test.
65920 2010-02-21  Bruno Haible  <bruno@clisp.org>
65922         Really work around "broken pipe" error message from bash 3.2.
65923         * gnulib-tool (func_reset_sigpipe): Remove function.
65924         (echo): In bash 3.2, define to a function that uses printf.
65925         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
65927 2010-02-20  Bruno Haible  <bruno@clisp.org>
65929         Restore support for automake 1.9.6 with autoconf 2.61.
65930         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
65931         Reported by James Youngman <jay@gnu.org>.
65933 2010-02-20  Bruno Haible  <bruno@clisp.org>
65935         Improve *printf warning condition.
65936         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
65937         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
65938         and the function is overridden due to SIGPIPE emulation.
65940 2010-02-20  Bruno Haible  <bruno@clisp.org>
65942         * lib/stdio.in.h: Tweak comments.
65944 2010-02-19  Bruno Haible  <bruno@clisp.org>
65946         Make it easier to find modules. New gnulib-tool option '--find'.
65947         * gnulib-tool: New option --find.
65948         (func_usage): Document it.
65949         (func_sanitize_modulelist): New function, extracted from
65950         func_all_modules.
65951         (func_all_modules): Invoke it.
65952         * doc/gnulib-tool.texi (Which modules?): New node.
65954 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
65956         * lib/sys_select.in.h: Provide select replacement even if
65957         sys/select.h exists on a system, for Interix.
65959 2010-02-18  Jim Meyering  <meyering@redhat.com>
65961         init.sh: don't use $(...) just yet
65962         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
65963         to accommodate e.g., Solaris' /bin/sh.
65965 2010-02-17  Bruno Haible  <bruno@clisp.org>
65967         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
65968         Reported by Ludovic Courtès <ludo@gnu.org>.
65970 2010-02-16  Simon Josefsson  <simon@josefsson.org>
65972         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
65973         linking with -lintl.
65975 2010-02-17  Simon Josefsson  <simon@josefsson.org>
65977         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
65978         if not provided by the system's netdb.h.  Reported by
65979         ludo@gnu.org (Ludovic Courtès).
65981 2010-02-15  Jim Meyering  <meyering@redhat.com>
65983         init.sh: improve portability and efficiency
65984         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
65985         "dummy" in a for loop.
65986         Use '!', not '^' to select the complement of a character set used
65987         in a "case" statement.
65988         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
65989         Suggestions from Eric Blake.
65991         init.sh: automatically accommodate programs with the .exe suffix
65992         Automatically arrange for an invocation of "prog" to execute the
65993         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
65994         may use the simpler "prog", yet still work when built on a system
65995         that requires specifying the added suffix.
65996         Do this by constructing a function named "prog" that invokes
65997         "prog.exe" for each .exe file in selected directories.
65998         * tests/init.sh (find_exe_basenames_): New function.
65999         (create_exe_shim_functions_): New function.
66000         (path_prepend_): Use it.
66002         maint.mk: mark syntax-check sc_*.m rules as .PHONY
66003         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
66004         "make -t syntax-check" doesn't create a ton of sc_*.m files.
66006 2010-02-14  Jim Meyering  <meyering@redhat.com>
66008         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
66009         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
66010         (sc_prohibit_hash_pjw_without_use): New rule.
66012         maint.mk: allow the default upload destination dir to be overridden
66013         * top/maint.mk (upload_dest_dir_): Define with a default that
66014         preserves the status quo.
66015         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
66016         Reported by Peter Simons.
66018         maint.mk: prohibit inclusion of "hash.h" without_use
66019         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
66021 2010-02-10  Jim Meyering  <meyering@redhat.com>
66023         maint.mk: prohibit inclusion of "ignore-value.h" without_use
66024         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
66026 2010-02-09  Eric Blake  <ebb9@byu.net>
66027         and Bruno Haible  <bruno@clisp.org>
66029         obstack-printf-posix: ensure declaration
66030         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
66031         extracted from gl_FUNC_OBSTACK_PRINTF.
66032         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
66033         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
66034         Likewise.
66035         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
66036         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
66037         0.
66039 2010-02-08  Bruno Haible  <bruno@clisp.org>
66041         gnulib-tool: Fix typo in 2010-02-07 commit.
66042         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
66043         Reported by Eric Blake.
66045 2010-02-07  Bruno Haible  <bruno@clisp.org>
66047         gnulib-tool: Fix up caching patches.
66048         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
66049         option --no-cache. Use associative arrays when supported by the shell.
66050         (sed_comments): New variable.
66051         (modcache): Renamed from do_cache.
66052         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
66053         abbreviate unnecessarily.
66054         (have_associative): New variable.
66055         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
66056         way also for ksh and zsh.
66057         (func_init_sed_convert_to_cache_statements): New function, extracted
66058         from func_cache_lookup_module. Add support for associative arrays.
66059         Don't set the c_MODULE_cached variable here. Ignore all lines before
66060         the first field header. Remove only the final newline, not all trailing
66061         newlines. Support empty fields correctly. Limit the use of 'eval' to
66062         assignments.
66063         (func_get_description, func_get_status, func_get_notice,
66064         func_get_applicability, func_get_filelist, func_get_dependencies,
66065         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
66066         func_get_automake_snippet, func_get_include_directive,
66067         func_get_link_directive, func_get_license, func_get_maintainer):
66068         Update documentation. List the unoptimized code first. Add support for
66069         associative arrays. Limit the use of 'eval' to assignments.
66070         (func_get_applicability): Undo stylistic pessimisations.
66071         (func_get_automake_snippet, func_get_include_directive): Reduce code
66072         duplication.
66073         (func_modules_transitive_closure, func_modules_add_dummy,
66074         func_modules_notice, func_modules_to_filelist, func_add_file,
66075         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
66076         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
66077         func_create_testdir, func_create_megatestdir): Update documentation.
66079 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66081         * gnulib-tool (func_cache_lookup_module): Store the module name
66082         belonging to the cache variable; error out if two different
66083         module names map to the same cache variable name.
66085 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66087         gnulib-tool: Make caching optional.
66088         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
66089         Update matching short versions of --no-changelog.
66090         (func_usage): Update.
66091         (sed_extract_cache_prog): Renamed from ...
66092         (sed_extract_prog): ... this; revert to old extraction script.
66093         (func_get_description, func_get_status)
66094         (func_get_notice, func_get_applicability, func_get_filelist)
66095         (func_get_dependencies, func_get_autoconf_early_snippet)
66096         (func_get_autoconf_snippet, func_get_automake_snippet)
66097         (func_get_include_directive, func_get_link_directive)
66098         (func_get_license, func_get_maintainer): If $do_cache is false,
66099         use old, non-caching extraction scripts.
66100         Suggestion by Bruno Haible.
66102 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66104         gnulib-tool: cache module metainformation.
66105         * gnulib-tool (sed_extract_prog): Match newline before each
66106         header, and rewrite header to a shell variable suffix.
66107         (func_cache_var, func_cache_lookup_module): New functions,
66108         to turn a module name into a cache variable prefix, and to
66109         look up and cache module metainformation.
66110         (func_get_description, func_get_status)
66111         (func_get_notice, func_get_applicability, func_get_filelist)
66112         (func_get_dependencies, func_get_autoconf_early_snippet)
66113         (func_get_autoconf_snippet, func_get_automake_snippet)
66114         (func_get_include_directive, func_get_link_directive)
66115         (func_get_license, func_get_maintainer): Use
66116         func_cache_lookup_module.
66118 2010-02-07  Bruno Haible  <bruno@clisp.org>
66120         fnctl: Fix missing dependency.
66121         * modules/fcntl (Depends-on): Add getdtablesize.
66122         Reported by John W. Eaton <jwe@gnu.org>.
66124 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66126         Argp: fix recognition of short alias options.
66128         * lib/argp-parse.c (convert_options): Fix improper use of
66129         `|' between character values.
66130         * tests/test-argp.c (group1_option): New alias option
66131         --read (-r).
66132         (group1_parser): Special handling for 'r'.
66133         (test15): New test case.
66134         (test_fun): Add test15.
66135         * tests/test-argp-2.sh: Update expected --help and --usage
66136         outputs.
66138 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66140         * tests/test-argp.c: Fix indentation.
66142 2010-02-04  Eric Blake  <ebb9@byu.net>
66144         gettimeofday: expose type of second argument
66145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
66146         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
66147         * tests/test-gettimeofday.c: Use it to silence warning.
66148         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
66149         the issue.
66151 2010-02-03  Jim Meyering  <meyering@redhat.com>
66153         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
66154         * lib/regcomp.c (TYPE_SIGNED): Define.
66155         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
66157         regcomp.c: avoid a new -Wshadow warning
66158         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
66160 2010-02-01  Jim Meyering  <meyering@redhat.com>
66162         removing useless parentheses in cpp #define directives
66163         For motivation, see commit c0221df4, "define STREQ(a,b)
66164         consistently, removing useless parentheses"
66165         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
66166         * lib/mountlist.c (MNT_IGNORE): Likewise.
66167         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
66169 2010-02-01  Eric Blake  <ebb9@byu.net>
66171         sys_time: use link-warning
66172         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
66173         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
66174         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
66175         * modules/sys_time (Depends-on): Add warn-on-use.
66176         (Makefile.am): Always build replacement.
66177         (configure.ac): Update substitutions.
66178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
66179         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
66180         bother with SYS_TIME_H.
66181         * modules/gettimeofday (configure.ac): Declare indicator.
66182         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
66183         in use.
66185         closein-tests: silence compiler warning
66186         * tests/test-closein.c (main): Ignore fread result.
66187         * modules/closein-tests (Depends-on): Add ignore-value.
66189         tests: silence warning about system return
66190         * tests/test-areadlink-with-size.c (main): Ignore system result.
66191         * tests/test-areadlink.c (main): Likewise.
66192         * tests/test-areadlinkat-with-size.c (main): Likewise.
66193         * tests/test-areadlinkat.c (main): Likewise.
66194         * tests/test-canonicalize-lgpl.c (main): Likewise.
66195         * tests/test-canonicalize.c (main): Likewise.
66196         * tests/test-chown.c (main): Likewise.
66197         * tests/test-fchownat.c (main): Likewise.
66198         * tests/test-fdutimensat.c (main): Likewise.
66199         * tests/test-fstatat.c (main): Likewise.
66200         * tests/test-futimens.c (main): Likewise.
66201         * tests/test-lchown.c (main): Likewise.
66202         * tests/test-link.c (main): Likewise.
66203         * tests/test-linkat.c (main): Likewise.
66204         * tests/test-lstat.c (main): Likewise.
66205         * tests/test-mkdir.c (main): Likewise.
66206         * tests/test-mkdirat.c (main): Likewise.
66207         * tests/test-mkfifo.c (main): Likewise.
66208         * tests/test-mkfifoat.c (main): Likewise.
66209         * tests/test-mknod.c (main): Likewise.
66210         * tests/test-readlink.c (main): Likewise.
66211         * tests/test-remove.c (main): Likewise.
66212         * tests/test-rename.c (main): Likewise.
66213         * tests/test-renameat.c (main): Likewise.
66214         * tests/test-rmdir.c (main): Likewise.
66215         * tests/test-symlink.c (main): Likewise.
66216         * tests/test-symlinkat.c (main): Likewise.
66217         * tests/test-unlink.c (main): Likewise.
66218         * tests/test-unlinkat.c (main): Likewise.
66219         * tests/test-utimens.c (main): Likewise.
66220         * tests/test-utimensat.c (main): Likewise.
66221         * modules/areadlink-tests (Depends-on): Add ignore-value.
66222         * modules/areadlink-with-size-tests (Depends-on): Likewise.
66223         * modules/areadlinkat-tests (Depends-on): Likewise.
66224         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
66225         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
66226         * modules/canonicalize-tests (Depends-on): Likewise.
66227         * modules/chown-tests (Depends-on): Likewise.
66228         * modules/fdutimensat-tests (Depends-on): Likewise.
66229         * modules/futimens-tests (Depends-on): Likewise.
66230         * modules/lchown-tests (Depends-on): Likewise.
66231         * modules/link-tests (Depends-on): Likewise.
66232         * modules/linkat-tests (Depends-on): Likewise.
66233         * modules/lstat-tests (Depends-on): Likewise.
66234         * modules/mkdir-tests (Depends-on): Likewise.
66235         * modules/mkfifo-tests (Depends-on): Likewise.
66236         * modules/mkfifoat-tests (Depends-on): Likewise.
66237         * modules/mknod-tests (Depends-on): Likewise.
66238         * modules/openat-tests (Depends-on): Likewise.
66239         * modules/readlink-tests (Depends-on): Likewise.
66240         * modules/remove-tests (Depends-on): Likewise.
66241         * modules/rename-tests (Depends-on): Likewise.
66242         * modules/renameat-tests (Depends-on): Likewise.
66243         * modules/rmdir-tests (Depends-on): Likewise.
66244         * modules/symlink-tests (Depends-on): Likewise.
66245         * modules/symlinkat-tests (Depends-on): Likewise.
66246         * modules/unlink-tests (Depends-on): Likewise.
66247         * modules/utimens-tests (Depends-on): Likewise.
66248         * modules/utimensat-tests (Depends-on): Likewise.
66250 2010-01-31  Bruno Haible  <bruno@clisp.org>
66252         Perform the same test for many <math.h> functions.
66253         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
66254         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
66255         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
66256         of gl_MATHFUNC.
66257         * modules/acos (configure.ac): Likewise.
66258         * modules/asin (configure.ac): Likewise.
66259         * modules/atan (configure.ac): Likewise.
66260         * modules/atan2 (configure.ac): Likewise.
66261         * modules/cbrt (configure.ac): Likewise.
66262         * modules/copysign (configure.ac): Likewise.
66263         * modules/cos (configure.ac): Likewise.
66264         * modules/cosh (configure.ac): Likewise.
66265         * modules/erf (configure.ac): Likewise.
66266         * modules/erfc (configure.ac): Likewise.
66267         * modules/exp (configure.ac): Likewise.
66268         * modules/fmod (configure.ac): Likewise.
66269         * modules/hypot (configure.ac): Likewise.
66270         * modules/j0 (configure.ac): Likewise.
66271         * modules/j1 (configure.ac): Likewise.
66272         * modules/jn (configure.ac): Likewise.
66273         * modules/lgamma (configure.ac): Likewise.
66274         * modules/log (configure.ac): Likewise.
66275         * modules/log10 (configure.ac): Likewise.
66276         * modules/log1p (configure.ac): Likewise.
66277         * modules/pow (configure.ac): Likewise.
66278         * modules/remainder (configure.ac): Likewise.
66279         * modules/sin (configure.ac): Likewise.
66280         * modules/sinh (configure.ac): Likewise.
66281         * modules/tan (configure.ac): Likewise.
66282         * modules/tanh (configure.ac): Likewise.
66283         * modules/y0 (configure.ac): Likewise.
66284         * modules/y1 (configure.ac): Likewise.
66285         * modules/yn (configure.ac): Likewise.
66286         Suggested by Paolo Bonzini.
66288 2010-01-31  Bruno Haible  <bruno@clisp.org>
66290         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
66292 2010-01-31  Bruno Haible  <bruno@clisp.org>
66294         Work around getdelim() bug on FreeBSD 8.0.
66295         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
66296         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
66297         not work.
66298         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
66299         is 1.
66300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
66301         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
66302         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
66303         a non-zero size.
66304         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
66306 2010-01-31  Bruno Haible  <bruno@clisp.org>
66308         Work around getline() bug on FreeBSD 8.0.
66309         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
66310         and a non-zero size.
66311         * tests/test-getline.c (main): Likewise.
66312         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
66313         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
66315 2010-01-28  Eric Blake  <ebb9@byu.net>
66317         regex: fix build failure
66318         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
66319         platforms.
66321 2010-01-28  Jim Meyering  <meyering@redhat.com>
66323         regex: do not ignore memory allocation failure
66324         * lib/regex_internal.c (create_cd_newstate): Detect
66325         re_node_set_init_copy failure.   Extracted from glibc commit
66326         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66328         regex: sync more white-space changes from libc
66329         * lib/regex_internal.c: White-space only changes.
66330         * lib/regexec.c: Likewise.
66332         regex: add many uses of __attribute_warn_unused_result__
66333         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
66334         * lib/regexec.c: Likewise.
66335         Extracted from a messy glibc commit.
66337         regcomp.c: spelling and merge-artifact from glibc
66338         * lib/regcomp.c: Merge remainder of glibc's
66339         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66341         regcomp.c: sync white-space changes from glibc
66342         * lib/regcomp.c: Merge to accommodate white space
66343         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
66345         regcomp.c: do not ignore internal return values
66346         * lib/regcomp.c: Do not ignore internal return values.
66347         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
66348         but without its white-space changes and spelling fixes.
66350         regex_internal.h: define __attribute_warn_unused_result__
66351         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
66353         maint: add a syntax-check rule to check for vulnerable Makefile.in
66354         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
66356 2010-01-27  Jim Meyering  <meyering@redhat.com>
66358         ncftpput-ftp: clean up spaces
66359         * build-aux/ncftpput-ftp: Make Copyright line consistent.
66360         Remove trailing blanks.
66362 2010-01-27  Simon Josefsson  <simon@josefsson.org>
66364         * build-aux/git-version-gen: Fix copyright statement.
66365         * build-aux/gnupload: Likewise.
66366         * tests/test-arcfour.c: Likewise.
66367         * tests/test-arctwo.c: Likewise.
66368         * tests/test-count-one-bits.c: Likewise.
66369         * tests/test-crc.c: Likewise.
66370         * tests/test-des.c: Likewise.
66371         * tests/test-gc-arcfour.c: Likewise.
66372         * tests/test-gc-arctwo.c: Likewise.
66373         * tests/test-gc-des.c: Likewise.
66374         * tests/test-gc-hmac-md5.c: Likewise.
66375         * tests/test-gc-hmac-sha1.c: Likewise.
66376         * tests/test-gc-md2.c: Likewise.
66377         * tests/test-gc-md4.c: Likewise.
66378         * tests/test-gc-md5.c: Likewise.
66379         * tests/test-gc-pbkdf2-sha1.c: Likewise.
66380         * tests/test-gc-rijndael.c: Likewise.
66381         * tests/test-gc-sha1.c: Likewise.
66382         * tests/test-gc.c: Likewise.
66383         * tests/test-gethostname.c: Likewise.
66384         * tests/test-gettimeofday.c: Likewise.
66385         * tests/test-hash.c: Likewise.
66386         * tests/test-hmac-md5.c: Likewise.
66387         * tests/test-hmac-sha1.c: Likewise.
66388         * tests/test-md2.c: Likewise.
66389         * tests/test-md4.c: Likewise.
66390         * tests/test-md5.c: Likewise.
66391         * tests/test-memchr.c: Likewise.
66392         * tests/test-memchr2.c: Likewise.
66393         * tests/test-memcmp.c: Likewise.
66394         * tests/test-memmem.c: Likewise.
66395         * tests/test-memrchr.c: Likewise.
66396         * tests/test-rawmemchr.c: Likewise.
66397         * tests/test-read-file.c: Likewise.
66398         * tests/test-rijndael.c: Likewise.
66399         * tests/test-sockets.c: Likewise.
66400         * tests/test-strchrnul.c: Likewise.
66401         * tests/test-strstr.c: Likewise.
66402         * tests/test-strtod.c: Likewise.
66403         * build-aux/ncftpput-ftp: Likewise.
66405 2010-01-26  Eric Blake  <ebb9@byu.net>
66407         ignore-value: update recommended header name
66408         * modules/ignore-value (Include): Only use <> for headers that
66409         exist in glibc.
66411 2010-01-26  Jim Meyering  <meyering@redhat.com>
66413         test-userspec.c: avoid compiler warnings
66414         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
66415         and "initialization discards qualifiers..." warnings.
66416         Put the first "uid" in its own scope, and make char* members "const".
66418 2010-01-25  Bruno Haible  <bruno@clisp.org>
66420         gnulib-tool: Make warning diagnostics consistent.
66421         * gnulib-tool (func_warning): New function.
66422         Use it everywhere where gnulib-tool produces output to stderr and it is
66423         not a fatal error.
66425 2010-01-25  Bruno Haible  <bruno@clisp.org>
66427         Fix test dependencies.
66428         * modules/xstrtol-tests (Depends-on): Add inttypes.
66429         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
66431 2010-01-25  Pádraig Brady  <P@draigBrady.com>
66433         syntax-check: detect incorrect boolean macro values in config.h
66434         * modules/maintainer-makefile (configure.ac): Parameterize the location
66435         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
66436         The logic is from Eric Blake and the location indicated by Jim Meyering.
66437         Note the more natural CONFIG_HEADER name is prohibited by automake
66438         for backwards compatibility reasons.
66439         * top/maint.mk (sc_Wundef_boolean): New rule.
66441 2010-01-25  Jim Meyering  <meyering@redhat.com>
66443         bootstrap: detect MacOS 10.6's shasum, too
66444         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
66445         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
66447 2010-01-23  Jim Meyering  <meyering@redhat.com>
66449         xstrtoll: new module
66450         * modules/xstrtoll: New file.
66451         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
66452         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
66453         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
66454         ./configure fails if you use this module and lack "long long".
66455         * modules/xstrtoll-tests: New module.
66456         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
66457         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
66458         new init.sh-based test framework.
66460 2010-01-24  Bruno Haible  <bruno@clisp.org>
66462         Tests for module 'yn'.
66463         * modules/yn-tests: New file.
66464         * tests/test-yn.c: New file.
66466         Tests for module 'y1'.
66467         * modules/y1-tests: New file.
66468         * tests/test-y1.c: New file.
66470         Tests for module 'y0'.
66471         * modules/y0-tests: New file.
66472         * tests/test-y0.c: New file.
66474         Tests for module 'tanh'.
66475         * modules/tanh-tests: New file.
66476         * tests/test-tanh.c: New file.
66478         Tests for module 'tan'.
66479         * modules/tan-tests: New file.
66480         * tests/test-tan.c: New file.
66482         Tests for module 'sqrt'.
66483         * modules/sqrt-tests: New file.
66484         * tests/test-sqrt.c: New file.
66486         Tests for module 'sinh'.
66487         * modules/sinh-tests: New file.
66488         * tests/test-sinh.c: New file.
66490         Tests for module 'sin'.
66491         * modules/sin-tests: New file.
66492         * tests/test-sin.c: New file.
66494         Tests for module 'rint'.
66495         * modules/rint-tests: New file.
66496         * tests/test-rint.c: New file.
66498         Tests for module 'remainder'.
66499         * modules/remainder-tests: New file.
66500         * tests/test-remainder.c: New file.
66502         Tests for module 'pow'.
66503         * modules/pow-tests: New file.
66504         * tests/test-pow.c: New file.
66506         Tests for module 'nextafter'.
66507         * modules/nextafter-tests: New file.
66508         * tests/test-nextafter.c: New file.
66510         Tests for module 'modf'.
66511         * modules/modf-tests: New file.
66512         * tests/test-modf.c: New file.
66514         Tests for module 'logb'.
66515         * modules/logb-tests: New file.
66516         * tests/test-logb.c: New file.
66518         Tests for module 'log1p'.
66519         * modules/log1p-tests: New file.
66520         * tests/test-log1p.c: New file.
66522         Tests for module 'log10'.
66523         * modules/log10-tests: New file.
66524         * tests/test-log10.c: New file.
66526         Tests for module 'log'.
66527         * modules/log-tests: New file.
66528         * tests/test-log.c: New file.
66530         Tests for module 'lgamma'.
66531         * modules/lgamma-tests: New file.
66532         * tests/test-lgamma.c: New file.
66534         Tests for module 'ldexp'.
66535         * modules/ldexp-tests: New file.
66536         * tests/test-ldexp.c: New file.
66538         Tests for module 'jn'.
66539         * modules/jn-tests: New file.
66540         * tests/test-jn.c: New file.
66542         Tests for module 'j1'.
66543         * modules/j1-tests: New file.
66544         * tests/test-j1.c: New file.
66546         Tests for module 'j0'.
66547         * modules/j0-tests: New file.
66548         * tests/test-j0.c: New file.
66550         Tests for module 'hypot'.
66551         * modules/hypot-tests: New file.
66552         * tests/test-hypot.c: New file.
66554         Tests for module 'fmod'.
66555         * modules/fmod-tests: New file.
66556         * tests/test-fmod.c: New file.
66558         Tests for module 'fabs'.
66559         * modules/fabs-tests: New file.
66560         * tests/test-fabs.c: New file.
66562         Tests for module 'exp'.
66563         * modules/exp-tests: New file.
66564         * tests/test-exp.c: New file.
66566         Tests for module 'erfc'.
66567         * modules/erfc-tests: New file.
66568         * tests/test-erfc.c: New file.
66570         Tests for module 'erf'.
66571         * modules/erf-tests: New file.
66572         * tests/test-erf.c: New file.
66574         Tests for module 'cosh'.
66575         * modules/cosh-tests: New file.
66576         * tests/test-cosh.c: New file.
66578         Tests for module 'cos'.
66579         * modules/cos-tests: New file.
66580         * tests/test-cos.c: New file.
66582         Tests for module 'copysign'.
66583         * modules/copysign-tests: New file.
66584         * tests/test-copysign.c: New file.
66586         Tests for module 'cbrt'.
66587         * modules/cbrt-tests: New file.
66588         * tests/test-cbrt.c: New file.
66590         Tests for module 'atan2'.
66591         * modules/atan2-tests: New file.
66592         * tests/test-atan2.c: New file.
66594         Tests for module 'atan'.
66595         * modules/atan-tests: New file.
66596         * tests/test-atan.c: New file.
66598         Tests for module 'asin'.
66599         * modules/asin-tests: New file.
66600         * tests/test-asin.c: New file.
66602         Tests for module 'acos'.
66603         * modules/acos-tests: New file.
66604         * tests/test-acos.c: New file.
66606 2010-01-24  Bruno Haible  <bruno@clisp.org>
66608         Fix tests for common <math.h> functions.
66609         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
66610         code snippet that references the function pointer, rather than merely
66611         calling the function. Substitute the FUNC_LIBM variable.
66612         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
66613         * modules/acos (configure.ac): Likewise.
66614         * modules/asin (configure.ac): Likewise.
66615         * modules/atan (configure.ac): Likewise.
66616         * modules/atan2 (configure.ac): Likewise.
66617         * modules/cbrt (configure.ac): Likewise.
66618         * modules/copysign (configure.ac): Likewise.
66619         * modules/cos (configure.ac): Likewise.
66620         * modules/cosh (configure.ac): Likewise.
66621         * modules/erf (configure.ac): Likewise.
66622         * modules/erfc (configure.ac): Likewise.
66623         * modules/exp (configure.ac): Likewise.
66624         * modules/fabs (configure.ac): Likewise.
66625         * modules/fmod (configure.ac): Likewise.
66626         * modules/hypot (configure.ac): Likewise.
66627         * modules/j0 (configure.ac): Likewise.
66628         * modules/j1 (configure.ac): Likewise.
66629         * modules/jn (configure.ac): Likewise.
66630         * modules/ldexp (configure.ac): Likewise.
66631         * modules/lgamma (configure.ac): Likewise.
66632         * modules/log (configure.ac): Likewise.
66633         * modules/log10 (configure.ac): Likewise.
66634         * modules/log1p (configure.ac): Likewise.
66635         * modules/logb (configure.ac): Likewise.
66636         * modules/modf (configure.ac): Likewise.
66637         * modules/nextafter (configure.ac): Likewise.
66638         * modules/pow (configure.ac): Likewise.
66639         * modules/remainder (configure.ac): Likewise.
66640         * modules/rint (configure.ac): Likewise.
66641         * modules/sin (configure.ac): Likewise.
66642         * modules/sinh (configure.ac): Likewise.
66643         * modules/tan (configure.ac): Likewise.
66644         * modules/tanh (configure.ac): Likewise.
66645         * modules/y0 (configure.ac): Likewise.
66646         * modules/y1 (configure.ac): Likewise.
66647         * modules/yn (configure.ac): Likewise.
66649 2010-01-24  Bruno Haible  <bruno@clisp.org>
66651         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
66652         * tests/test-acosl.c (x): New variable.
66653         (main): Store argument in x and fetch it from x.
66654         * tests/test-asinl.c (x): New variable.
66655         (main): Store argument in x and fetch it from x.
66656         * tests/test-atanl.c (x): New variable.
66657         (main): Store argument in x and fetch it from x.
66658         * tests/test-cosl.c (x): New variable.
66659         (main): Store argument in x and fetch it from x.
66660         * tests/test-expl.c (x): New variable.
66661         (main): Store argument in x and fetch it from x.
66662         * tests/test-logl.c (x): New variable.
66663         (main): Store argument in x and fetch it from x.
66664         * tests/test-sinl.c (x): New variable.
66665         (main): Store argument in x and fetch it from x.
66666         * tests/test-sqrtl.c (x): New variable.
66667         (main): Store argument in x and fetch it from x.
66668         * tests/test-tanl.c (x): New variable.
66669         (main): Store argument in x and fetch it from x.
66671 2010-01-24  Bruno Haible  <bruno@clisp.org>
66673         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
66674         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
66675         assignments to the initial TESTS_ENVIRONMENT.
66676         * doc/gnulib.texi (Unit test modules): Document it.
66677         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
66678         TESTS_ENVIRONMENT.
66679         * modules/btowc-tests (Makefile.am): Likewise.
66680         * modules/c-stack-tests (Makefile.am): Likewise.
66681         * modules/c-strcase-tests (Makefile.am): Likewise.
66682         * modules/copy-file-tests (Makefile.am): Likewise.
66683         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
66684         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
66685         * modules/mbrtowc-tests (Makefile.am): Likewise.
66686         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66687         * modules/mbscasestr-tests (Makefile.am): Likewise.
66688         * modules/mbschr-tests (Makefile.am): Likewise.
66689         * modules/mbscspn-tests (Makefile.am): Likewise.
66690         * modules/mbsinit-tests (Makefile.am): Likewise.
66691         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66692         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
66693         * modules/mbspbrk-tests (Makefile.am): Likewise.
66694         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66695         * modules/mbsrchr-tests (Makefile.am): Likewise.
66696         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
66697         * modules/mbsspn-tests (Makefile.am): Likewise.
66698         * modules/mbsstr-tests (Makefile.am): Likewise.
66699         * modules/nl_langinfo-tests (Makefile.am): Likewise.
66700         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
66701         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66702         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66703         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66704         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66705         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
66706         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66707         * modules/wcrtomb-tests (Makefile.am): Likewise.
66708         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
66709         * modules/wcsrtombs-tests (Makefile.am): Likewise.
66710         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
66711         assignments from TESTS_ENVIRONMENT.
66712         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
66713         augmentation.
66714         * modules/argp-version-etc-tests (Makefile.am): Likewise.
66715         * modules/atexit-tests (Makefile.am): Likewise.
66716         * modules/binary-io-tests (Makefile.am): Likewise.
66717         * modules/closein-tests (Makefile.am): Likewise.
66718         * modules/dprintf-posix-tests (Makefile.am): Likewise.
66719         * modules/exclude-tests (Makefile.am): Likewise.
66720         * modules/fflush-tests (Makefile.am): Likewise.
66721         * modules/fpending-tests (Makefile.am): Likewise.
66722         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66723         * modules/freadahead-tests (Makefile.am): Likewise.
66724         * modules/freadptr-tests (Makefile.am): Likewise.
66725         * modules/freadseek-tests (Makefile.am): Likewise.
66726         * modules/fseek-tests (Makefile.am): Likewise.
66727         * modules/fseeko-tests (Makefile.am): Likewise.
66728         * modules/ftell-tests (Makefile.am): Likewise.
66729         * modules/ftello-tests (Makefile.am): Likewise.
66730         * modules/idpriv-drop-tests (Makefile.am): Likewise.
66731         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
66732         * modules/lseek-tests (Makefile.am): Likewise.
66733         * modules/parse-duration-tests (Makefile.am): Likewise.
66734         * modules/perror-tests (Makefile.am): Likewise.
66735         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
66736         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
66737         * modules/pipe-tests (Makefile.am): Likewise.
66738         * modules/pread-tests (Makefile.am): Likewise.
66739         * modules/printf-posix-tests (Makefile.am): Likewise.
66740         * modules/select-tests (Makefile.am): Likewise.
66741         * modules/sigpipe-tests (Makefile.am): Likewise.
66742         * modules/tsearch-tests (Makefile.am): Likewise.
66743         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
66744         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
66745         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66746         * modules/uniwidth/width-tests (Makefile.am): Likewise.
66747         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
66748         * modules/version-etc-tests (Makefile.am): Likewise.
66749         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66750         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66751         * modules/xalloc-die-tests (Makefile.am): Likewise.
66752         * modules/xprintf-posix-tests (Makefile.am): Likewise.
66753         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66754         * modules/xstrtol-tests (Makefile.am): Likewise.
66755         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66756         * modules/yesno-tests (Makefile.am): Likewise.
66757         Suggested by Jim Meyering.
66759 2010-01-24  Bruno Haible  <bruno@clisp.org>
66761         More documentation.
66762         * doc/gnulib.texi (Writing modules): New chapter.
66763         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
66764         the new chapter.
66766 2010-01-24  Jim Meyering  <meyering@redhat.com>
66768         maint.mk: do not prepend "./" after filtering
66769         * top/maint.mk (_prepend_srcdir_prefix): New variable
66770         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
66771         "./" when $(srcdir) is ".".
66773         define STREQ(a,b) consistently, removing useless parentheses
66774         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
66775         since the only risk is that "a" or "b" contains an unparenthesized
66776         comma, but if either did that, STREQ would have 3 or more arguments.
66777         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
66778         * lib/fts.c (STREQ): Remove unnecessary parentheses.
66779         * lib/hash-triple.c (STREQ): Likewise.
66780         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
66781         * lib/getugroups.c (STREQ): Likewise.
66783 2010-01-23  Jim Meyering  <meyering@redhat.com>
66785         maint.mk: fix syntax-check in a non-srcdir build directory
66786         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
66787         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
66789 2010-01-22  Jim Meyering  <meyering@redhat.com>
66791         userspec: add unit tests
66792         * tests/test-userspec.c: New file.
66793         * modules/userspec-tests: Likewise.
66795 2010-01-21  Jim Meyering  <meyering@redhat.com>
66797         maint.mk: handle source file names containing "." robustly
66798         * top/maint.mk (_dot_escaped_srcdir): Define.
66799         (VC_LIST): Use it in LHS of sed substitution.
66801 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
66803         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
66804         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
66805         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
66806         from a non-srcdir build.
66808 2010-01-20  Eric Blake  <ebb9@byu.net>
66810         warn-on-use: use instead of link-warning
66811         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
66812         * modules/unistd (Depends-on, Makefile.am): Likewise.
66813         * modules/arpa_inet (Depends-on): Replace link-warning with
66814         warn-on-use.
66815         (Makefile.am): Update rules accordingly.
66816         * modules/ctype (Depends-on, Makefile.am): Likewise.
66817         * modules/dirent (Depends-on, Makefile.am): Likewise.
66818         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
66819         * modules/inttypes (Depends-on, Makefile.am): Likewise.
66820         * modules/langinfo (Depends-on, Makefile.am): Likewise.
66821         * modules/locale (Depends-on, Makefile.am): Likewise.
66822         * modules/math (Depends-on, Makefile.am): Likewise.
66823         * modules/search (Depends-on, Makefile.am): Likewise.
66824         * modules/signal (Depends-on, Makefile.am): Likewise.
66825         * modules/spawn (Depends-on, Makefile.am): Likewise.
66826         * modules/stdlib (Depends-on, Makefile.am): Likewise.
66827         * modules/string (Depends-on, Makefile.am): Likewise.
66828         * modules/strings (Depends-on, Makefile.am): Likewise.
66829         * modules/sys_file (Depends-on, Makefile.am): Likewise.
66830         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
66831         * modules/sys_select (Depends-on, Makefile.am): Likewise.
66832         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
66833         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
66834         * modules/sys_times (Depends-on, Makefile.am): Likewise.
66835         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
66836         * modules/wchar (Depends-on, Makefile.am): Likewise.
66837         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
66838         should be poisoned.
66839         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
66840         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
66841         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
66842         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66843         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
66844         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66845         * m4/math_h.m4 (gl_MATH_H): Likewise.
66846         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66847         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66848         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
66849         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66850         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66851         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66852         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
66853         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
66854         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
66855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66856         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66857         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66858         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
66859         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
66860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66861         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66862         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
66863         GL_LINK_WARNING.
66864         * lib/ctype.in.h: Likewise.
66865         * lib/dirent.in.h: Likewise.
66866         * lib/fcntl.in.h: Likewise.
66867         * lib/inttypes.in.h: Likewise.
66868         * lib/langinfo.in.h: Likewise.
66869         * lib/locale.in.h: Likewise.
66870         * lib/math.in.h: Likewise.
66871         * lib/search.in.h: Likewise.
66872         * lib/signal.in.h: Likewise.
66873         * lib/spawn.in.h: Likewise.
66874         * lib/stdio.in.h: Likewise.
66875         * lib/stdlib.in.h: Likewise.
66876         * lib/string.in.h: Likewise.
66877         * lib/strings.in.h: Likewise.
66878         * lib/sys_file.in.h: Likewise.
66879         * lib/sys_ioctl.in.h: Likewise.
66880         * lib/sys_select.in.h: Likewise.
66881         * lib/sys_socket.in.h: Likewise.
66882         * lib/sys_stat.in.h: Likewise.
66883         * lib/sys_times.in.h: Likewise.
66884         * lib/sys_utsname.in.h: Likewise.
66885         * lib/unistd.in.h: Likewise.
66886         * lib/wchar.in.h: Likewise.
66888 2010-01-20  Bruno Haible  <bruno@clisp.org>
66890         Avoid duplicate -lm.
66891         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
66892         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
66893         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
66894         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
66895         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
66896         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
66897         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
66898         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
66899         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
66900         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
66901         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
66902         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66903         Reported by Paolo Bonzini.
66905 2010-01-19  Bruno Haible  <bruno@clisp.org>
66907         langinfo, nl_langinfo: Relicense under LGPLv2+.
66908         * modules/langinfo (License): Change to LGPLv2+.
66909         * modules/nl_langinfo (License): Likewise.
66910         Patch by David Lutterkort <lutter@redhat.com>.
66912 2010-01-19  Bruno Haible  <bruno@clisp.org>
66914         Avoid compilation error with cc on OSF/1 5.1.
66915         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
66916         statement, not before.
66917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66919 2010-01-18  Bruno Haible  <bruno@clisp.org>
66921         Avoid a link error due to the __printf__ symbol.
66922         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
66923         and 2.6.x.
66924         (__format__, __printf__): Remove definitions.
66925         * lib/argp-fmtstream.h: Likewise.
66926         * lib/argp.h: Likewise.
66927         * lib/error.h: Likewise.
66928         * lib/vasnprintf.h: Likewise.
66929         * lib/xprintf.h: Likewise.
66930         * lib/xvasprintf.h: Likewise.
66931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66933 2010-01-18  Bruno Haible  <bruno@clisp.org>
66935         Tests for module 'tanl'.
66936         * modules/tanl-tests: New file.
66937         * tests/test-tanl.c: New file.
66939         Tests for module 'sqrtl'.
66940         * modules/sqrtl-tests: New file.
66941         * tests/test-sqrtl.c: New file.
66943         Tests for module 'sinl'.
66944         * modules/sinl-tests: New file.
66945         * tests/test-sinl.c: New file.
66947         Tests for module 'logl'.
66948         * modules/logl-tests: New file.
66949         * tests/test-logl.c: New file.
66951         Tests for module 'expl'.
66952         * modules/expl-tests: New file.
66953         * tests/test-expl.c: New file.
66955         Tests for module 'cosl'.
66956         * modules/cosl-tests: New file.
66957         * tests/test-cosl.c: New file.
66959         Tests for module 'atanl'.
66960         * modules/atanl-tests: New file.
66961         * tests/test-atanl.c: New file.
66963         Tests for module 'asinl'.
66964         * modules/asinl-tests: New file.
66965         * tests/test-asinl.c: New file.
66967         Tests for module 'acosl'.
66968         * modules/acosl-tests: New file.
66969         * tests/test-acosl.c: New file.
66971         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
66972         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
66973         tanl): Use the standard gnulib idiom.
66974         * lib/cosl.c: Don't include trigl.c and sincosl.c.
66975         * lib/sinl.c: Likewise.
66976         * lib/tanl.c: Don't include trigl.c.
66977         (kernel_tanl): Make static.
66978         * lib/sincosl.c: Include trigl.h first.
66979         * lib/trigl.c: Likewise.
66980         * m4/acosl.m4: New file.
66981         * m4/asinl.m4: New file.
66982         * m4/atanl.m4: New file.
66983         * m4/cosl.m4: New file.
66984         * m4/expl.m4: New file.
66985         * m4/logl.m4: New file.
66986         * m4/sinl.m4: New file.
66987         * m4/sqrtl.m4: New file.
66988         * m4/tanl.m4: New file.
66989         * m4/mathl.m4: Remove file.
66990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
66991         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
66992         Don't initialize GNULIB_MATHL.
66993         * modules/acosl: New file.
66994         * modules/asinl: New file.
66995         * modules/atanl: New file.
66996         * modules/cosl: New file.
66997         * modules/expl: New file.
66998         * modules/logl: New file.
66999         * modules/sinl: New file.
67000         * modules/sqrtl: New file.
67001         * modules/tanl: New file.
67002         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
67003         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
67004         substitute GNULIB_MATHL.
67005         * modules/mathl: Rewritten.
67006         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
67007         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
67008         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
67009         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
67010         * doc/posix-functions/expl.texi: Mention the 'expl' module.
67011         * doc/posix-functions/logl.texi: Mention the 'logl' module.
67012         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
67013         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
67014         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
67016 2010-01-18  Bruno Haible  <bruno@clisp.org>
67018         sqrt: Make gl_FUNC_SQRT requirable.
67019         * m4/sqrt.m4: New file.
67020         * modules/sqrt (Files): Add it.
67021         (configure.ac): Invoke gl_FUNC_SQRT.
67023 2010-01-18  Bruno Haible  <bruno@clisp.org>
67025         New modules for common <math.h> functions.
67026         * m4/mathfunc.m4: New file.
67027         * modules/acos: New file.
67028         * modules/asin: New file.
67029         * modules/atan: New file.
67030         * modules/atan2: New file.
67031         * modules/cbrt: New file.
67032         * modules/copysign: New file.
67033         * modules/cos: New file.
67034         * modules/cosh: New file.
67035         * modules/erf: New file.
67036         * modules/erfc: New file.
67037         * modules/exp: New file.
67038         * modules/fabs: New file.
67039         * modules/fmod: New file.
67040         * modules/hypot: New file.
67041         * modules/j0: New file.
67042         * modules/j1: New file.
67043         * modules/jn: New file.
67044         * modules/ldexp: New file.
67045         * modules/lgamma: New file.
67046         * modules/log: New file.
67047         * modules/log10: New file.
67048         * modules/log1p: New file.
67049         * modules/logb: New file.
67050         * modules/modf: New file.
67051         * modules/nextafter: New file.
67052         * modules/pow: New file.
67053         * modules/remainder: New file.
67054         * modules/rint: New file.
67055         * modules/sin: New file.
67056         * modules/sinh: New file.
67057         * modules/sqrt: New file.
67058         * modules/tan: New file.
67059         * modules/tanh: New file.
67060         * modules/y0: New file.
67061         * modules/y1: New file.
67062         * modules/yn: New file.
67063         * doc/posix-functions/acos.texi: Mention the 'acos' module.
67064         * doc/posix-functions/asin.texi: Mention the 'asin' module.
67065         * doc/posix-functions/atan.texi: Mention the 'atan' module.
67066         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
67067         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
67068         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
67069         * doc/posix-functions/cos.texi: Mention the 'cos' module.
67070         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
67071         * doc/posix-functions/erf.texi: Mention the 'erf' module.
67072         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
67073         * doc/posix-functions/exp.texi: Mention the 'exp' module.
67074         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
67075         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
67076         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
67077         * doc/posix-functions/j0.texi: Mention the 'j0' module.
67078         * doc/posix-functions/j1.texi: Mention the 'j1' module.
67079         * doc/posix-functions/jn.texi: Mention the 'jn' module.
67080         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
67081         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
67082         * doc/posix-functions/log.texi: Mention the 'log' module.
67083         * doc/posix-functions/log10.texi: Mention the 'log10' module.
67084         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
67085         * doc/posix-functions/logb.texi: Mention the 'logb' module.
67086         * doc/posix-functions/modf.texi: Mention the 'modf' module.
67087         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
67088         * doc/posix-functions/pow.texi: Mention the 'pow' module.
67089         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
67090         * doc/posix-functions/rint.texi: Mention the 'rint' module.
67091         * doc/posix-functions/sin.texi: Mention the 'sin' module.
67092         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
67093         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
67094         * doc/posix-functions/tan.texi: Mention the 'tan' module.
67095         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
67096         * doc/posix-functions/y0.texi: Mention the 'y0' module.
67097         * doc/posix-functions/y1.texi: Mention the 'y1' module.
67098         * doc/posix-functions/yn.texi: Mention the 'yn' module.
67100 2010-01-18  Jim Meyering  <meyering@redhat.com>
67102         ignore-value: relax license to LGPLv2+
67103         * modules/ignore-value (License): Relax to LGPLv2+.
67105         getdate: don't leak when TZ contains two or more '"'s
67106         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
67107         double quote in TZ after the first one.
67109         readtokens: do not leak internal token_lengths buffer
67110         * lib/readtokens.c (readtokens): Free the local, lengths,
67111         when the supplied "token_lengths" parameter is NULL.
67113 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67115         Fix a couple of missing LIBTHREAD link failures on AIX.
67116         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
67117         $(LIBTHREAD).
67118         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
67120         Link test-poll against INET_PTON_LIB.
67121         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
67122         for inet_pton on Solaris 10.
67124 2010-01-17  Bruno Haible  <bruno@clisp.org>
67126         unistdio/*-sprintf: Fix typo in module description.
67127         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
67128         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
67129         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
67130         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
67131         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
67132         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
67133         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
67134         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67136 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67138         gnulib-tool: fix filelist for AIX, HP-UX ksh.
67139         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
67140         variables in shell case patterns, for AIX and HP-UX ksh.
67142         Split large sed scripts, for HP-UX sed.
67143         * modules/stdio: Split sed scripts around 50 sed commands,
67144         to avoid HP-UX limit of 99 commands, in the near future.
67145         * modules/string: Likewise.
67146         * modules/unistd: Likewise.
67148         gnulib-tool: avoid writing in the current directory.
67149         * gnulib-tool (func_emit_lib_Makefile_am)
67150         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
67151         not in the current directory, so concurrent gnulib-tool
67152         instances do not interfere.
67154 2010-01-16  Jim Meyering  <meyering@redhat.com>
67156         doc: update users.txt
67157         * users.txt: Add grep.
67158         (diffutils, gzip): Update URLs.
67160 2010-01-12  Bruno Haible  <bruno@clisp.org>
67162         posix_spawn: Avoid test failure on Cygwin.
67163         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
67164         characters.
67165         Reported by Simon Josefsson.
67167 2010-01-12  Bruno Haible  <bruno@clisp.org>
67169         * tests/test-cond.c (main): When skipping the test, show the reason.
67171 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67173         * lib/striconv.c (str_cd_iconv): Avoid if before free.
67175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67177         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
67178         VC_LIST_ALWAYS_EXCLUDE_REGEX.
67180 2010-01-12  Eric Blake  <ebb9@byu.net>
67182         build: guarantee AS_VAR_IF
67183         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
67184         (gl_AS_VAR_IF): Move...
67185         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
67186         Reported by Simon Josefsson.
67188 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67190         * lib/stdio.in.h: Fix typo.
67192 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67194         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
67195         libgpg-error.
67197 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67199         * tests/test-xalloc-die.sh: Use $EXEEXT.
67201 2010-01-12  Simon Josefsson  <simon@josefsson.org>
67202             Bruno Haible  <bruno@clisp.org>
67204         getlogin, getlogin_r: Avoid test failure.
67205         * tests/test-getlogin.c: Include <stdio.h>.
67206         (main): Skip the test when the function fails because stdin is not a
67207         tty.
67208         * tests/test-getlogin_r.c: Include <stdio.h>.
67209         (main): Skip the test when the function fails because stdin is not a
67210         tty.
67212 2010-01-11  Eric Blake  <ebb9@byu.net>
67214         tests: avoid more large file warnings
67215         * tests/test-fflush.c: Avoid warning about ftell use.
67216         * tests/test-fseek.c: Avoid warning about fseek use.
67218 2010-01-10  Bruno Haible  <bruno@clisp.org>
67220         nproc: Work better on Linux when /proc and /sys are not mounted.
67221         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
67222         as lower bound when, on glibc/Linux systems,
67223         sysconf (_SC_NPROCESSORS_CONF) returns 1.
67224         Suggested by Pádraig Brady <P@draigbrady.com>.
67225         Reported by Dmitry V. Levin <ldv@altlinux.org>.
67227         nproc: Refactor.
67228         * lib/nproc.c (num_processors_via_affinity_mask): New function,
67229         extracted from num_processors.
67230         (num_processors): Call it.
67232 2010-01-11  Jim Meyering  <meyering@redhat.com>
67234         utimecmp: avoid new warning from upcoming gcc-4.5.0
67235         * lib/utimecmp.c (BILLION): Define using #define rather than an
67236         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
67238 2010-01-11  Eric Blake  <ebb9@byu.net>
67240         math: add portability warnings for classification macros
67241         * modules/math (Depends-on): Add warn-on-use.
67242         (Makefile.am): Provide new substitutions.
67243         * m4/math_h.m4 (gl_MATH_H): Require inline.
67244         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
67245         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
67246         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
67247         implement warnings.
67249         unistd: warn on use of environ without module
67250         * modules/unistd (Depends-on): Add warn-on-use.
67251         (Makefile.am): Provide new substitutions.
67252         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
67253         * lib/unistd.in.h (environ): Wrap with a warning helper function.
67255         stdio: warn on suspicious uses
67256         * modules/stdio (Depends-on): Add warn-on-use.
67257         (Makefile.am): Provide new substitutions.
67258         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
67259         fseeko.
67260         * lib/stdio.in.h (gets): Always warn on use.
67261         (fseek, ftell): Adjust when warnings are issued, and honor
67262         _GL_NO_LARGE_FILES as a way to silence the warning.
67263         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
67264         any warning about large file offsets.
67265         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
67266         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
67267         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
67268         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
67269         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
67270         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
67271         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
67272         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
67274         warn-on-use: new module
67275         * modules/warn-on-use: New file.
67276         * build-aux/warn-on-use.h: Likewise.
67277         * m4/warn-on-use.m4: Likewise.
67278         * MODULES.html.sh (Support for building): Mention it.
67280 2010-01-10  Bruno Haible  <bruno@clisp.org>
67282         Tests for module 'unistr/u32-strdup'.
67283         * modules/unistr/u32-strdup-tests: New file.
67284         * tests/unistr/test-u32-strdup.c: New file.
67286         Tests for module 'unistr/u16-strdup'.
67287         * modules/unistr/u16-strdup-tests: New file.
67288         * tests/unistr/test-u16-strdup.c: New file.
67290         Tests for module 'unistr/u8-strdup'.
67291         * modules/unistr/u8-strdup-tests: New file.
67292         * tests/unistr/test-u8-strdup.c: New file.
67293         * tests/unistr/test-strdup.h: New file.
67295         Tests for module 'unistr/u32-strncmp'.
67296         * modules/unistr/u32-strncmp-tests: New file.
67297         * tests/unistr/test-u32-strncmp.c: New file.
67299         Tests for module 'unistr/u16-strncmp'.
67300         * modules/unistr/u16-strncmp-tests: New file.
67301         * tests/unistr/test-u16-strncmp.c: New file.
67303         Tests for module 'unistr/u8-strncmp'.
67304         * modules/unistr/u8-strncmp-tests: New file.
67305         * tests/unistr/test-u8-strncmp.c: New file.
67306         * tests/unistr/test-strncmp.h: New file.
67308         Tests for module 'unistr/u32-strcoll'.
67309         * modules/unistr/u32-strcoll-tests: New file.
67310         * tests/unistr/test-u32-strcoll.c: New file.
67312         Tests for module 'unistr/u16-strcoll'.
67313         * modules/unistr/u16-strcoll-tests: New file.
67314         * tests/unistr/test-u16-strcoll.c: New file.
67316         Tests for module 'unistr/u8-strcoll'.
67317         * modules/unistr/u8-strcoll-tests: New file.
67318         * tests/unistr/test-u8-strcoll.c: New file.
67320         Tests for module 'unistr/u32-strcmp'.
67321         * modules/unistr/u32-strcmp-tests: New file.
67322         * tests/unistr/test-u32-strcmp.c: New file.
67323         * tests/unistr/test-u32-strcmp.h: New file.
67325         Tests for module 'unistr/u16-strcmp'.
67326         * modules/unistr/u16-strcmp-tests: New file.
67327         * tests/unistr/test-u16-strcmp.c: New file.
67328         * tests/unistr/test-u16-strcmp.h: New file.
67330         Tests for module 'unistr/u8-strcmp'.
67331         * modules/unistr/u8-strcmp-tests: New file.
67332         * tests/unistr/test-u8-strcmp.c: New file.
67333         * tests/unistr/test-u8-strcmp.h: New file.
67334         * tests/unistr/test-strcmp.h: New file.
67336         Tests for module 'unistr/u32-strncat'.
67337         * modules/unistr/u32-strncat-tests: New file.
67338         * tests/unistr/test-u32-strncat.c: New file.
67340         Tests for module 'unistr/u16-strncat'.
67341         * modules/unistr/u16-strncat-tests: New file.
67342         * tests/unistr/test-u16-strncat.c: New file.
67344         Tests for module 'unistr/u8-strncat'.
67345         * modules/unistr/u8-strncat-tests: New file.
67346         * tests/unistr/test-u8-strncat.c: New file.
67347         * tests/unistr/test-strncat.h: New file.
67349         Tests for module 'unistr/u32-strcat'.
67350         * modules/unistr/u32-strcat-tests: New file.
67351         * tests/unistr/test-u32-strcat.c: New file.
67353         Tests for module 'unistr/u16-strcat'.
67354         * modules/unistr/u16-strcat-tests: New file.
67355         * tests/unistr/test-u16-strcat.c: New file.
67357         Tests for module 'unistr/u8-strcat'.
67358         * modules/unistr/u8-strcat-tests: New file.
67359         * tests/unistr/test-u8-strcat.c: New file.
67360         * tests/unistr/test-strcat.h: New file.
67362         Tests for module 'unistr/u32-stpncpy'.
67363         * modules/unistr/u32-stpncpy-tests: New file.
67364         * tests/unistr/test-u32-stpncpy.c: New file.
67366         Tests for module 'unistr/u16-stpncpy'.
67367         * modules/unistr/u16-stpncpy-tests: New file.
67368         * tests/unistr/test-u16-stpncpy.c: New file.
67370         Tests for module 'unistr/u8-stpncpy'.
67371         * modules/unistr/u8-stpncpy-tests: New file.
67372         * tests/unistr/test-u8-stpncpy.c: New file.
67373         * tests/unistr/test-stpncpy.h: New file.
67375         Tests for module 'unistr/u32-strncpy'.
67376         * modules/unistr/u32-strncpy-tests: New file.
67377         * tests/unistr/test-u32-strncpy.c: New file.
67379         Tests for module 'unistr/u16-strncpy'.
67380         * modules/unistr/u16-strncpy-tests: New file.
67381         * tests/unistr/test-u16-strncpy.c: New file.
67383         Tests for module 'unistr/u8-strncpy'.
67384         * modules/unistr/u8-strncpy-tests: New file.
67385         * tests/unistr/test-u8-strncpy.c: New file.
67386         * tests/unistr/test-strncpy.h: New file.
67388         Tests for module 'unistr/u32-stpcpy'.
67389         * modules/unistr/u32-stpcpy-tests: New file.
67390         * tests/unistr/test-u32-stpcpy.c: New file.
67392         Tests for module 'unistr/u16-stpcpy'.
67393         * modules/unistr/u16-stpcpy-tests: New file.
67394         * tests/unistr/test-u16-stpcpy.c: New file.
67396         Tests for module 'unistr/u8-stpcpy'.
67397         * modules/unistr/u8-stpcpy-tests: New file.
67398         * tests/unistr/test-u8-stpcpy.c: New file.
67399         * tests/unistr/test-stpcpy.h: New file.
67401         Tests for module 'unistr/u32-strcpy'.
67402         * modules/unistr/u32-strcpy-tests: New file.
67403         * tests/unistr/test-u32-strcpy.c: New file.
67405         Tests for module 'unistr/u16-strcpy'.
67406         * modules/unistr/u16-strcpy-tests: New file.
67407         * tests/unistr/test-u16-strcpy.c: New file.
67409         Tests for module 'unistr/u8-strcpy'.
67410         * modules/unistr/u8-strcpy-tests: New file.
67411         * tests/unistr/test-u8-strcpy.c: New file.
67412         * tests/unistr/test-strcpy.h: New file.
67414         Tests for module 'unistr/u32-strnlen'.
67415         * modules/unistr/u32-strnlen-tests: New file.
67416         * tests/unistr/test-u32-strnlen.c: New file.
67418         Tests for module 'unistr/u16-strnlen'.
67419         * modules/unistr/u16-strnlen-tests: New file.
67420         * tests/unistr/test-u16-strnlen.c: New file.
67422         Tests for module 'unistr/u8-strnlen'.
67423         * modules/unistr/u8-strnlen-tests: New file.
67424         * tests/unistr/test-u8-strnlen.c: New file.
67425         * tests/unistr/test-strnlen.h: New file.
67427         Tests for module 'unistr/u32-strlen'.
67428         * modules/unistr/u32-strlen-tests: New file.
67429         * tests/unistr/test-u32-strlen.c: New file.
67431         Tests for module 'unistr/u16-strlen'.
67432         * modules/unistr/u16-strlen-tests: New file.
67433         * tests/unistr/test-u16-strlen.c: New file.
67435         Tests for module 'unistr/u8-strlen'.
67436         * modules/unistr/u8-strlen-tests: New file.
67437         * tests/unistr/test-u8-strlen.c: New file.
67439         Tests for module 'unistr/u32-prev'.
67440         * modules/unistr/u32-prev-tests: New file.
67441         * tests/unistr/test-u32-prev.c: New file.
67443         Tests for module 'unistr/u16-prev'.
67444         * modules/unistr/u16-prev-tests: New file.
67445         * tests/unistr/test-u16-prev.c: New file.
67447         Tests for module 'unistr/u8-prev'.
67448         * modules/unistr/u8-prev-tests: New file.
67449         * tests/unistr/test-u8-prev.c: New file.
67451         Tests for module 'unistr/u32-next'.
67452         * modules/unistr/u32-next-tests: New file.
67453         * tests/unistr/test-u32-next.c: New file.
67455         Tests for module 'unistr/u16-next'.
67456         * modules/unistr/u16-next-tests: New file.
67457         * tests/unistr/test-u16-next.c: New file.
67459         Tests for module 'unistr/u8-next'.
67460         * modules/unistr/u8-next-tests: New file.
67461         * tests/unistr/test-u8-next.c: New file.
67463         Tests for module 'unistr/u32-strmbtouc'.
67464         * modules/unistr/u32-strmbtouc-tests: New file.
67465         * tests/unistr/test-u32-strmbtouc.c: New file.
67467         Tests for module 'unistr/u16-strmbtouc'.
67468         * modules/unistr/u16-strmbtouc-tests: New file.
67469         * tests/unistr/test-u16-strmbtouc.c: New file.
67471         Tests for module 'unistr/u8-strmbtouc'.
67472         * modules/unistr/u8-strmbtouc-tests: New file.
67473         * tests/unistr/test-u8-strmbtouc.c: New file.
67475         Tests for module 'unistr/u32-strmblen'.
67476         * modules/unistr/u32-strmblen-tests: New file.
67477         * tests/unistr/test-u32-strmblen.c: New file.
67479         Tests for module 'unistr/u16-strmblen'.
67480         * modules/unistr/u16-strmblen-tests: New file.
67481         * tests/unistr/test-u16-strmblen.c: New file.
67483         Tests for module 'unistr/u8-strmblen'.
67484         * modules/unistr/u8-strmblen-tests: New file.
67485         * tests/unistr/test-u8-strmblen.c: New file.
67487         Tests for module 'unistr/u32-cpy-alloc'.
67488         * modules/unistr/u32-cpy-alloc-tests: New file.
67489         * tests/unistr/test-u32-cpy-alloc.c: New file.
67491         Tests for module 'unistr/u16-cpy-alloc'.
67492         * modules/unistr/u16-cpy-alloc-tests: New file.
67493         * tests/unistr/test-u16-cpy-alloc.c: New file.
67495         Tests for module 'unistr/u8-cpy-alloc'.
67496         * modules/unistr/u8-cpy-alloc-tests: New file.
67497         * tests/unistr/test-u8-cpy-alloc.c: New file.
67498         * tests/unistr/test-cpy-alloc.h: New file.
67500         Tests for module 'unistr/u32-mbsnlen'.
67501         * modules/unistr/u32-mbsnlen-tests: New file.
67502         * tests/unistr/test-u32-mbsnlen.c: New file.
67504         Tests for module 'unistr/u16-mbsnlen'.
67505         * modules/unistr/u16-mbsnlen-tests: New file.
67506         * tests/unistr/test-u16-mbsnlen.c: New file.
67508         Tests for module 'unistr/u8-mbsnlen'.
67509         * modules/unistr/u8-mbsnlen-tests: New file.
67510         * tests/unistr/test-u8-mbsnlen.c: New file.
67512         Tests for module 'unistr/u32-chr'.
67513         * modules/unistr/u32-chr-tests: New file.
67514         * tests/unistr/test-u32-chr.c: New file.
67516         Tests for module 'unistr/u16-chr'.
67517         * modules/unistr/u16-chr-tests: New file.
67518         * tests/unistr/test-u16-chr.c: New file.
67520         Tests for module 'unistr/u8-chr'.
67521         * modules/unistr/u8-chr-tests: New file.
67522         * tests/unistr/test-u8-chr.c: New file.
67523         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
67525         Tests for module 'unistr/u32-cmp2'.
67526         * modules/unistr/u32-cmp2-tests: New file.
67527         * tests/unistr/test-u32-cmp2.c: New file.
67529         Tests for module 'unistr/u16-cmp2'.
67530         * modules/unistr/u16-cmp2-tests: New file.
67531         * tests/unistr/test-u16-cmp2.c: New file.
67533         Tests for module 'unistr/u8-cmp2'.
67534         * modules/unistr/u8-cmp2-tests: New file.
67535         * tests/unistr/test-u8-cmp2.c: New file.
67536         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
67538         Tests for module 'unistr/u32-cmp'.
67539         * modules/unistr/u32-cmp-tests: New file.
67540         * tests/unistr/test-u32-cmp.c: New file.
67542         Tests for module 'unistr/u16-cmp'.
67543         * modules/unistr/u16-cmp-tests: New file.
67544         * tests/unistr/test-u16-cmp.c: New file.
67546         Tests for module 'unistr/u8-cmp'.
67547         * modules/unistr/u8-cmp-tests: New file.
67548         * tests/unistr/test-u8-cmp.c: New file.
67549         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
67551         Tests for module 'unistr/u32-set'.
67552         * modules/unistr/u32-set-tests: New file.
67553         * tests/unistr/test-u32-set.c: New file.
67555         Tests for module 'unistr/u16-set'.
67556         * modules/unistr/u16-set-tests: New file.
67557         * tests/unistr/test-u16-set.c: New file.
67559         Tests for module 'unistr/u8-set'.
67560         * modules/unistr/u8-set-tests: New file.
67561         * tests/unistr/test-u8-set.c: New file.
67562         * tests/unistr/test-set.h: New file.
67564         Tests for module 'unistr/u32-move'.
67565         * modules/unistr/u32-move-tests: New file.
67566         * tests/unistr/test-u32-move.c: New file.
67568         Tests for module 'unistr/u16-move'.
67569         * modules/unistr/u16-move-tests: New file.
67570         * tests/unistr/test-u16-move.c: New file.
67572         Tests for module 'unistr/u8-move'.
67573         * modules/unistr/u8-move-tests: New file.
67574         * tests/unistr/test-u8-move.c: New file.
67575         * tests/unistr/test-move.h: New file.
67577         Tests for module 'unistr/u32-cpy'.
67578         * modules/unistr/u32-cpy-tests: New file.
67579         * tests/unistr/test-u32-cpy.c: New file.
67581         Tests for module 'unistr/u16-cpy'.
67582         * modules/unistr/u16-cpy-tests: New file.
67583         * tests/unistr/test-u16-cpy.c: New file.
67585         Tests for module 'unistr/u8-cpy'.
67586         * modules/unistr/u8-cpy-tests: New file.
67587         * tests/unistr/test-u8-cpy.c: New file.
67588         * tests/unistr/test-cpy.h: New file.
67590 2010-01-09  Bruno Haible  <bruno@clisp.org>
67592         Tests for module 'unistr/u32-uctomb'.
67593         * modules/unistr/u32-uctomb-tests: New file.
67594         * tests/unistr/test-u32-uctomb.c: New file.
67596         Tests for module 'unistr/u16-uctomb'.
67597         * modules/unistr/u16-uctomb-tests: New file.
67598         * tests/unistr/test-u16-uctomb.c: New file.
67600         Tests for module 'unistr/u8-uctomb'.
67601         * modules/unistr/u8-uctomb-tests: New file.
67602         * tests/unistr/test-u8-uctomb.c: New file.
67604         Tests for module 'unistr/u32-mbtoucr'.
67605         * modules/unistr/u32-mbtoucr-tests: New file.
67606         * tests/unistr/test-u32-mbtoucr.c: New file.
67608         Tests for module 'unistr/u16-mbtoucr'.
67609         * modules/unistr/u16-mbtoucr-tests: New file.
67610         * tests/unistr/test-u16-mbtoucr.c: New file.
67612         Tests for module 'unistr/u8-mbtoucr'.
67613         * modules/unistr/u8-mbtoucr-tests: New file.
67614         * tests/unistr/test-u8-mbtoucr.c: New file.
67616         Tests for module 'unistr/u32-mbtouc'.
67617         * modules/unistr/u32-mbtouc-tests: New file.
67618         * tests/unistr/test-u32-mbtouc.c: New file.
67620         Tests for module 'unistr/u16-mbtouc'.
67621         * modules/unistr/u16-mbtouc-tests: New file.
67622         * tests/unistr/test-u16-mbtouc.c: New file.
67624         Tests for module 'unistr/u8-mbtouc'.
67625         * modules/unistr/u8-mbtouc-tests: New file.
67626         * tests/unistr/test-u8-mbtouc.c: New file.
67628         Tests for module 'unistr/u32-mbtouc-unsafe'.
67629         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
67630         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
67631         * tests/unistr/test-u32-mbtouc.h: New file.
67633         Tests for module 'unistr/u16-mbtouc-unsafe'.
67634         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
67635         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
67636         * tests/unistr/test-u16-mbtouc.h: New file.
67638         Tests for module 'unistr/u8-mbtouc-unsafe'.
67639         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
67640         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
67641         * tests/unistr/test-u8-mbtouc.h: New file.
67643         Tests for module 'unistr/u32-mblen'.
67644         * modules/unistr/u32-mblen-tests: New file.
67645         * tests/unistr/test-u32-mblen.c: New file.
67647         Tests for module 'unistr/u16-mblen'.
67648         * modules/unistr/u16-mblen-tests: New file.
67649         * tests/unistr/test-u16-mblen.c: New file.
67651         Tests for module 'unistr/u8-mblen'.
67652         * modules/unistr/u8-mblen-tests: New file.
67653         * tests/unistr/test-u8-mblen.c: New file.
67655         Tests for module 'unistr/u32-to-u16'.
67656         * modules/unistr/u32-to-u16-tests: New file.
67657         * tests/unistr/test-u32-to-u16.c: New file.
67659         Tests for module 'unistr/u32-to-u8'.
67660         * modules/unistr/u32-to-u8-tests: New file.
67661         * tests/unistr/test-u32-to-u8.c: New file.
67663         Tests for module 'unistr/u16-to-u32'.
67664         * modules/unistr/u16-to-u32-tests: New file.
67665         * tests/unistr/test-u16-to-u32.c: New file.
67667         Tests for module 'unistr/u16-to-u8'.
67668         * modules/unistr/u16-to-u8-tests: New file.
67669         * tests/unistr/test-u16-to-u8.c: New file.
67671         Tests for module 'unistr/u8-to-u32'.
67672         * modules/unistr/u8-to-u32-tests: New file.
67673         * tests/unistr/test-u8-to-u32.c: New file.
67675         Tests for module 'unistr/u8-to-u16'.
67676         * modules/unistr/u8-to-u16-tests: New file.
67677         * tests/unistr/test-u8-to-u16.c: New file.
67679         Tests for module 'unistr/u32-check'.
67680         * modules/unistr/u32-check-tests: New file.
67681         * tests/unistr/test-u32-check.c: New file.
67683         Tests for module 'unistr/u16-check'.
67684         * modules/unistr/u16-check-tests: New file.
67685         * tests/unistr/test-u16-check.c: New file.
67687         Tests for module 'unistr/u8-check'.
67688         * modules/unistr/u8-check-tests: New file.
67689         * tests/unistr/test-u8-check.c: New file.
67691         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
67692         (category_equals): New function.
67693         (main): Add more tests.
67694         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
67696         * tests/unictype/test-bidi_byname.c (main): Add more tests.
67698 2010-01-10  Bruno Haible  <bruno@clisp.org>
67700         unistr/u*-strcoll: Try harder to distinguish different strings.
67701         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
67702         compare s1 and s2 to see if they are different.
67704 2010-01-10  Bruno Haible  <bruno@clisp.org>
67706         unistr/u*-stpncpy: Fix the return value.
67707         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
67708         description of the return value consistent with stpncpy in glibc.
67709         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
67710         written non-NUL unit.
67712 2010-01-10  Bruno Haible  <bruno@clisp.org>
67714         unistr/u*-next: Add missing dependencies.
67715         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
67716         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
67717         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
67719 2010-01-10  Bruno Haible  <bruno@clisp.org>
67721         unistr/u8-mbsnlen: Fix return value for incomplete character.
67722         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
67723         u8_mblen.
67724         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
67725         Remove unistr/u8-mblen.
67726         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
67727         u16_mblen.
67728         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
67729         Remove unistr/u16-mblen.
67731 2010-01-10  Bruno Haible  <bruno@clisp.org>
67733         wchar: Fix compilation error when <wchar.h> is used from coreutils.
67734         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
67735         Reported by Brian Gough <bjg@gnu.org> and
67736         Chris Clayton <chris2553@googlemail.com> via
67737         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
67739 2010-01-09  Bruno Haible  <bruno@clisp.org>
67741         unistr/u16-to-u32: Reject invalid input.
67742         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
67743         u16_mbtouc.
67744         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
67745         Remove unistr/u16-mbtouc.
67747         unistr/u16-to-u8: Reject invalid input.
67748         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
67749         u16_mbtouc.
67750         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
67751         Remove unistr/u16-mbtouc.
67753         unistr/u8-to-u32: Reject invalid input.
67754         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
67755         u8_mbtouc.
67756         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
67757         Remove unistr/u8-mbtouc.
67759         unistr/u8-to-u16: Reject invalid input.
67760         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
67761         u8_mbtouc.
67762         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
67763         Remove unistr/u8-mbtouc.
67765 2010-01-09  Bruno Haible  <bruno@clisp.org>
67767         Tests for module 'getlogin'.
67768         * modules/getlogin-tests: New file.
67769         * tests/test-getlogin.c: New file.
67771         New module 'getlogin'.
67772         * lib/unistd.in.h (getlogin): New declaration.
67773         * lib/getlogin.c: New file.
67774         * m4/getlogin.m4: New file.
67775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
67776         HAVE_GETLOGIN.
67777         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
67778         HAVE_GETLOGIN.
67779         * modules/getlogin: New file.
67780         * doc/posix-functions/getlogin.texi: Mention the new module.
67781         Reported by John W. Eaton <jwe@gnu.org>.
67783 2010-01-09  Bruno Haible  <bruno@clisp.org>
67785         getlogin_r: Support for native Windows.
67786         * lib/getlogin_r.c: Include <windows.h>
67787         (getlogin_r): Implement for native Windows.
67788         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
67789         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
67790         via John W. Eaton <jwe@gnu.org>.
67792 2010-01-09  Bruno Haible  <bruno@clisp.org>
67794         getlogin_r: Small fixes.
67795         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
67796         succeeds.
67797         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
67798         before testing whether getlogin_r is declared. No need to set
67799         HAVE_DECL_GETLOGIN_R to 1.
67800         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
67802 2010-01-09  Bruno Haible  <bruno@clisp.org>
67804         * lib/unistd.in.h (getlogin_r): Add comment.
67806 2010-01-09  Bruno Haible  <bruno@clisp.org>
67808         Tests for module 'getlogin_r'.
67809         * modules/getlogin_r-tests: New file.
67810         * tests/test-getlogin_r.c: New file.
67812 2010-01-09  Jim Meyering  <meyering@redhat.com>
67814         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
67815         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
67816         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
67818 2010-01-08  Simon Josefsson  <simon@josefsson.org>
67820         * lib/dup2.c (rpl_dup2): Improve comment.
67822 2010-01-08  Eric Blake  <ebb9@byu.net>
67824         maint.mk: allow packages to add makefile @@ exceptions
67825         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
67826         (sc_makefile_check): Rename...
67827         (sc_makefile_at_at_check): ...to this, and use hook.
67829         dup2: work around mingw bug
67830         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
67831         Reported by Simon Josefsson.
67833 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
67835         glob: Fix C++ compilation.
67836         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
67837         C++.
67839 2010-01-07  Bruno Haible  <bruno@clisp.org>
67841         Fix indentation of wctype.in.h, broken since 2007-01-06.
67842         * lib/wctype.in.h: Fix indentation of preprocessor directives.
67844 2010-01-07  Bruno Haible  <bruno@clisp.org>
67846         mbslen: Avoid collision with system function.
67847         * lib/string.in.h [MirBSD]: Include <wchar.h>.
67848         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
67849         * m4/mbslen.m4: New file.
67850         * modules/mbslen (Files): Add it.
67851         (configure.ac): Invoke gl_MBSLEN.
67852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
67853         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
67854         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
67855         via Ian Beckwith <ianb@erislabs.net>.
67857 2010-01-07  Bruno Haible  <bruno@clisp.org>
67859         dirent: Document the last fix.
67860         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
67862 2010-01-07  Bruno Haible  <bruno@clisp.org>
67864         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
67865         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
67866         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
67867         va_list are defined.
67868         * doc/posix-headers/stdio.texi: Document the bug of missing types.
67869         Reported by Eric Blake.
67871 2010-01-07  Bruno Haible  <bruno@clisp.org>
67873         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
67874         * modules/xlist (Depends-on): Add 'list',
67875         * modules/xoset (Depends-on): Add 'oset'.
67876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67878 2010-01-07  Bruno Haible  <bruno@clisp.org>
67880         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
67881         * doc/posix-functions/strncasecmp.texi: Likewise.
67883 2010-01-07  Bruno Haible  <bruno@clisp.org>
67885         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
67887 2010-01-07  John W. Eaton  <jwe@octave.org>
67889         wctype: allow C++ use
67890         * lib/wctype.in.h: Add extern "C" block for C++.
67892 2010-01-06  Eric Blake  <ebb9@byu.net>
67894         maint.mk: detect incorrect GFDL usage
67895         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
67897 2010-01-06  Jim Meyering  <meyering@redhat.com>
67898         and Eric Blake  <ebb9@byu.net>
67900         maint.mk: ignore multi-line copyright in NEWS
67901         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
67903 2010-01-06  Eric Blake  <ebb9@byu.net>
67905         select: add missing dependency
67906         * modules/select-tests (Depends-on): Move sockets dependency...
67907         * modules/select (Depends-on): ...here.
67908         Reported by Ian Beckwith.
67910         doc: regenerate INSTALL
67911         * doc/INSTALL: Reflect recent autoconf update.
67912         * doc/INSTALL.ISO: Likewise.
67913         * doc/INSTALL.UTF-8: Likewise.
67915         pread: fix compilation on glibc
67916         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
67917         Reported by Ralf Wildenhues.
67919         dirent: fix test failure
67920         * lib/dirent.in.h (includes): Guarantee ino_t.
67921         Reported by Ralf Wildenhues.
67923 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
67925         linkat, renameat: avoid bad free
67926         * lib/at-func2.c (at_func2): Fix typo.
67927         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
67929 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67931         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
67932         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
67933         to avoid failure of symlink test later.
67935 2010-01-06  Eric Blake  <ebb9@byu.net>
67937         stdio, unistd: guarantee ssize_t
67938         * lib/unistd.in.h (includes): Ensure that types required by POSIX
67939         2008 are exposed when needed.
67940         * lib/stdio.in.h (includes): Likewise.
67941         Reported by Ralf Wildenhues.
67943 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
67945         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
67946         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
67947         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
67949 2010-01-06  Jim Meyering  <meyering@redhat.com>
67951         readtokens: this module *does* require xalloc.h
67952         It uses only functions that were omitted by the old syntax-check rule.
67953         * lib/readtokens.c: Include "xalloc.h" once again.
67954         * modules/readtokens (Depends-on): Add xalloc.
67955         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
67957 2010-01-05  Eric Blake  <ebb9@byu.net>
67959         maint: support 'make announcement' from a VPATH build
67960         * top/maint.mk (announcement): Look for correct NEWS file.
67962 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
67964         utimens (fdutimens): ignore a negative FD, per contract
67965         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
67966         when we have a valid file descriptor.  Otherwise, using a brand
67967         new glibc (with just-patched futimens that now fails with EBADF)
67968         would cause this function to fail with ENOSYS.
67969         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
67970         See also http://bugzilla.redhat.com/552320.
67972 2010-01-05  Eric Blake  <ebb9@byu.net>
67974         strcase: document what it provides
67975         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
67976         gnulib module.
67977         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
67978         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
67980 2010-01-05  Jim Meyering  <meyering@redhat.com>
67982         maint: remove useless inclusions of "xalloc.h"
67983         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
67984         * lib/readtokens.c: Likewise.
67985         * lib/same.c: Likewise.
67986         * modules/getloadavg (Depends-on): Remove xalloc.
67987         * modules/readtokens: Likewise.
67988         * modules/same: Likewise.
67990         maint.mk: include 4 more function names in alloca.h-checking regexp
67991         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
67992         regexp.  Before, we would give a false-positive (saying alloca.h
67993         is included unnecessarily) when the only uses involved omitted symbols.
67995         xalloc.h: use consistent formatting
67996         * lib/xalloc.h: Move declarations to start in the first column.
67998 2010-01-05  Eric Blake  <ebb9@byu.net>
68000         mkdir: avoid xalloc
68001         * lib/mkdir.c (includes): Drop unused header.
68002         Reported by John W. Eaton.
68004 2010-01-04  Jim Meyering  <meyering@redhat.com>
68006         nl_langinfo: avoid configure-time syntax error
68007         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
68008         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
68009         the empty string.  Don't let that provoke a shell syntax error.
68011         regcomp, regexec, fnmatch: avoid array bounds read error
68012         * lib/regcomp.c (build_equiv_class): From glibc:
68013         Use only the low 24 bits of a findidx return value as an index
68014         into the weights array.  Patch by Ulrich Drepper:
68015         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
68016         * lib/regexec.c (check_node_accept_bytes): Likewise.
68017         * lib/fnmatch_loop.c (FCT): Likewise.
68019         regcomp: skip collseq lookup when there are no rules
68020         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
68021         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
68023         regcomp: recognize ill-formed { } expressions
68024         * lib/regcomp.c (parse_dup_op): From glibc:
68025         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
68027         regcomp: fix typo in comment
68028         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
68029         s/satisfy/satisfies/.
68031         regcomp: sync from glibc: remove dead store
68032         * lib/regcomp.c (duplicate_node_closure): Remove useless
68033         search_duplicated_node call and dead store.
68035         regcomp: sync from glibc; always use nl_langinfo
68036         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
68037         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
68038         * modules/regex (Depends-on): Add nl_langinfo.
68040 2010-01-04  Eric Blake  <ebb9@byu.net>
68042         fdopendir: fix configure test
68043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
68045 2010-01-01  Bruno Haible  <bruno@clisp.org>
68047         wchar: Remove unused configure check.
68048         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
68050 2010-01-01  Eric Blake  <ebb9@byu.net>
68052         headers: make check of system header explicit
68053         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
68054         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
68055         ourselves.
68056         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68059         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
68060         internals.
68061         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
68062         missing.
68063         Suggested by Bruno Haible.
68065 2010-01-01  Jim Meyering  <meyering@redhat.com>
68067         ChangeLog: tweak to eliminate unnecessary copyright line
68068         * ChangeLog: Remove a copyright line that was mistakenly updated
68069         by today's update-copyright run.  Reported by Eric Blake.
68071         test-update-copyright: don't let envvar setting cause test failure
68072         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
68074 2010-01-01  Bruno Haible  <bruno@clisp.org>
68076         localename: Avoid gcc warning.
68077         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
68078         function if it is not used.
68080 2010-01-01  Jim Meyering  <meyering@redhat.com>
68082         update nearly all FSF copyright year lists to include 2010
68083         Use the same procedure as for 2009, outlined in
68084         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
68086         version-etc: set COPYRIGHT_YEAR to 2010
68087         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
68089 2009-12-31  Eric Blake  <ebb9@byu.net>
68091         doc: correct availability of cygwin 1.5.x getopt
68092         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
68093         variables.
68094         * doc/posix-functions/opterr.texi (opterr): Likewise.
68095         * doc/posix-functions/optind.texi (optind): Likewise.
68096         * doc/posix-functions/optopt.texi (optopt): Likewise.
68097         * doc/posix-functions/tzname.texi (tzname): Likewise.
68099         openat: update maintainer
68100         * modules/openat (Maintainer): Add myself.
68102         utimens: avoid shadowing warning
68103         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
68104         buffers into one, to avoid shadowing, as well as avoiding a
68105         redundant stat.
68106         Reported by Jim Meyering.
68108         test-dup2: avoid compiler warning
68109         * tests/test-dup2.c (is_inheritable): Only define if used.
68111 2010-01-01  Bruno Haible  <bruno@clisp.org>
68113         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
68114         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
68115         defined, use wctomb instead of wcrtomb.
68117 2010-01-01  Bruno Haible  <bruno@clisp.org>
68119         iconv: Reject native Solaris iconv.
68120         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
68121         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
68123 2009-12-31  Bruno Haible  <bruno@clisp.org>
68125         * tests/test-signal.c (main): Remove test of 'SIG'.
68127 2009-12-31  Bruno Haible  <bruno@clisp.org>
68129         spawn: Fix incomplete fix.
68130         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
68131         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
68132         warnings for GNULIB_POSIXCHECK again.
68133         Reported by Eric Blake.
68135 2009-12-31  Bruno Haible  <bruno@clisp.org>
68137         Avoid namespace pollution on glibc systems.
68138         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
68139         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
68140         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
68141         glibc systems.
68143 2009-12-31  Bruno Haible  <bruno@clisp.org>
68145         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
68146         (gl_REPLACE_WCHAR_H): Turn into a no-op.
68147         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
68148         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
68149         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
68150         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
68151         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
68153 2009-12-31  Bruno Haible  <bruno@clisp.org>
68155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
68156         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
68157         afterwards.
68159 2009-12-31  Bruno Haible  <bruno@clisp.org>
68161         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
68162         SYS_UTSNAME_H.
68164 2009-12-31  Bruno Haible  <bruno@clisp.org>
68166         spawn: Fix misapplied patch.
68167         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
68168         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
68169         warnings for GNULIB_POSIXCHECK.
68171 2009-12-31  Bruno Haible  <bruno@clisp.org>
68173         times: Update after sys_times changed.
68174         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
68175         * modules/times (Files): Add it.
68176         (configure.ac): Invoke gl_FUNC_TIMES.
68178 2009-12-31  Bruno Haible  <bruno@clisp.org>
68180         Use AC_C_INLINE where necessary.
68181         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
68182         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
68183         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68184         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68185         * m4/mbfile.m4 (gl_MBFILE): Likewise.
68186         * m4/mbiter.m4 (gl_MBITER): Likewise.
68187         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68188         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
68189         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
68190         * modules/u64 (configure.ac): Likewise.
68192 2009-12-31  Bruno Haible  <bruno@clisp.org>
68194         Use AC_C_INLINE instead of module 'inline' where possible.
68195         * modules/inline (Description): Clarify purpose.
68196         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
68197         * modules/count-one-bits (Depends-on): Remove inline.
68198         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
68199         * modules/openat (Depends-on): Remove inline.
68200         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
68201         instead of depending on module 'inline'.
68202         * modules/filevercmp (Depends-on, configure.ac): Likewise.
68203         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
68204         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
68205         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
68206         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
68207         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
68208         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
68209         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
68210         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
68211         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
68212         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
68213         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
68214         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
68215         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
68216         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
68217         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
68218         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
68219         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
68220         Likewise.
68221         * modules/unictype/property-ascii-hex-digit (Depends-on,
68222         configure.ac): Likewise.
68223         * modules/unictype/property-bidi-arabic-digit (Depends-on,
68224         configure.ac): Likewise.
68225         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
68226         configure.ac): Likewise.
68227         * modules/unictype/property-bidi-block-separator (Depends-on,
68228         configure.ac): Likewise.
68229         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
68230         configure.ac): Likewise.
68231         * modules/unictype/property-bidi-common-separator (Depends-on,
68232         configure.ac): Likewise.
68233         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
68234         Likewise.
68235         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
68236         configure.ac): Likewise.
68237         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
68238         configure.ac): Likewise.
68239         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
68240         configure.ac): Likewise.
68241         * modules/unictype/property-bidi-european-digit (Depends-on,
68242         configure.ac): Likewise.
68243         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
68244         configure.ac): Likewise.
68245         * modules/unictype/property-bidi-left-to-right (Depends-on,
68246         configure.ac): Likewise.
68247         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
68248         configure.ac): Likewise.
68249         * modules/unictype/property-bidi-other-neutral (Depends-on,
68250         configure.ac): Likewise.
68251         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
68252         Likewise.
68253         * modules/unictype/property-bidi-segment-separator (Depends-on,
68254         configure.ac): Likewise.
68255         * modules/unictype/property-bidi-whitespace (Depends-on,
68256         configure.ac): Likewise.
68257         * modules/unictype/property-combining (Depends-on, configure.ac):
68258         Likewise.
68259         * modules/unictype/property-composite (Depends-on, configure.ac):
68260         Likewise.
68261         * modules/unictype/property-currency-symbol (Depends-on,
68262         configure.ac): Likewise.
68263         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
68264         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
68265         Likewise.
68266         * modules/unictype/property-default-ignorable-code-point (Depends-on,
68267         configure.ac): Likewise.
68268         * modules/unictype/property-deprecated (Depends-on, configure.ac):
68269         Likewise.
68270         * modules/unictype/property-diacritic (Depends-on, configure.ac):
68271         Likewise.
68272         * modules/unictype/property-extender (Depends-on, configure.ac):
68273         Likewise.
68274         * modules/unictype/property-format-control (Depends-on, configure.ac):
68275         Likewise.
68276         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
68277         Likewise.
68278         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
68279         Likewise.
68280         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
68281         Likewise.
68282         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
68283         Likewise.
68284         * modules/unictype/property-hyphen (Depends-on, configure.ac):
68285         Likewise.
68286         * modules/unictype/property-id-continue (Depends-on, configure.ac):
68287         Likewise.
68288         * modules/unictype/property-id-start (Depends-on, configure.ac):
68289         Likewise.
68290         * modules/unictype/property-ideographic (Depends-on, configure.ac):
68291         Likewise.
68292         * modules/unictype/property-ids-binary-operator (Depends-on,
68293         configure.ac): Likewise.
68294         * modules/unictype/property-ids-trinary-operator (Depends-on,
68295         configure.ac): Likewise.
68296         * modules/unictype/property-ignorable-control (Depends-on,
68297         configure.ac): Likewise.
68298         * modules/unictype/property-iso-control (Depends-on, configure.ac):
68299         Likewise.
68300         * modules/unictype/property-join-control (Depends-on, configure.ac):
68301         Likewise.
68302         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
68303         Likewise.
68304         * modules/unictype/property-line-separator (Depends-on, configure.ac):
68305         Likewise.
68306         * modules/unictype/property-logical-order-exception (Depends-on,
68307         configure.ac): Likewise.
68308         * modules/unictype/property-lowercase (Depends-on, configure.ac):
68309         Likewise.
68310         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
68311         * modules/unictype/property-non-break (Depends-on, configure.ac):
68312         Likewise.
68313         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
68314         Likewise.
68315         * modules/unictype/property-numeric (Depends-on, configure.ac):
68316         Likewise.
68317         * modules/unictype/property-other-alphabetic (Depends-on,
68318         configure.ac): Likewise.
68319         * modules/unictype/property-other-default-ignorable-code-point
68320         (Depends-on, configure.ac): Likewise.
68321         * modules/unictype/property-other-grapheme-extend (Depends-on,
68322         configure.ac): Likewise.
68323         * modules/unictype/property-other-id-continue (Depends-on,
68324         configure.ac): Likewise.
68325         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
68326         Likewise.
68327         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
68328         Likewise.
68329         * modules/unictype/property-other-math (Depends-on, configure.ac):
68330         Likewise.
68331         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
68332         Likewise.
68333         * modules/unictype/property-paired-punctuation (Depends-on,
68334         configure.ac): Likewise.
68335         * modules/unictype/property-paragraph-separator (Depends-on,
68336         configure.ac): Likewise.
68337         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
68338         Likewise.
68339         * modules/unictype/property-pattern-white-space (Depends-on,
68340         configure.ac): Likewise.
68341         * modules/unictype/property-private-use (Depends-on, configure.ac):
68342         Likewise.
68343         * modules/unictype/property-punctuation (Depends-on, configure.ac):
68344         Likewise.
68345         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
68346         Likewise.
68347         * modules/unictype/property-radical (Depends-on, configure.ac):
68348         Likewise.
68349         * modules/unictype/property-sentence-terminal (Depends-on,
68350         configure.ac): Likewise.
68351         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
68352         Likewise.
68353         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
68354         * modules/unictype/property-terminal-punctuation (Depends-on,
68355         configure.ac): Likewise.
68356         * modules/unictype/property-titlecase (Depends-on, configure.ac):
68357         Likewise.
68358         * modules/unictype/property-unassigned-code-value (Depends-on,
68359         configure.ac): Likewise.
68360         * modules/unictype/property-unified-ideograph (Depends-on,
68361         configure.ac): Likewise.
68362         * modules/unictype/property-uppercase (Depends-on, configure.ac):
68363         Likewise.
68364         * modules/unictype/property-variation-selector (Depends-on,
68365         configure.ac): Likewise.
68366         * modules/unictype/property-white-space (Depends-on, configure.ac):
68367         Likewise.
68368         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
68369         Likewise.
68370         * modules/unictype/property-xid-start (Depends-on, configure.ac):
68371         Likewise.
68372         * modules/unictype/property-zero-width (Depends-on, configure.ac):
68373         Likewise.
68374         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
68375         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
68376         Likewise.
68378 2009-12-31  Bruno Haible  <bruno@clisp.org>
68380         Remove unnecessary AC_C_INLINE invocation.
68381         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
68382         since 2009-08-21.
68384 2009-12-31  Jim Meyering  <meyering@redhat.com>
68386         maint.mk: don't require explicit gpg_key_ID in cfg.mk
68387         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
68388         With this change, we can all remove the gpg_key_ID = ... definition
68389         from our respective cfg.mk files.
68391         maint.mk: create announcement template in ~/, not in /tmp
68392         * top/maint.mk (emit_upload_commands): Adjust.
68393         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
68394         Remove temporary file, .ci-msg.
68396 2009-12-31  Eric Blake  <ebb9@byu.net>
68398         link-warning: always build headers with link warnings
68399         * modules/arpa_inet (Makefile.am): Always build replacement
68400         header.
68401         * modules/ctype (Makefile.am): Likewise.
68402         * modules/dirent (Makefile.am): Likewise.
68403         * modules/inttypes (Makefile.am): Likewise.
68404         * modules/langinfo (Makefile.am): Likewise.
68405         * modules/locale (Makefile.am): Likewise.
68406         * modules/spawn (Makefile.am): Likewise.
68407         * modules/sys_file (Makefile.am): Likewise.
68408         * modules/sys_ioctl (Makefile.am): Likewise.
68409         * modules/sys_select (Makefile.am): Likewise.
68410         * modules/sys_socket (Makefile.am): Likewise.
68411         * modules/sys_times (Makefile.am): Likewise.
68412         * modules/sys_utsname (Makefile.am): Likewise.
68413         * modules/sys_wait (Makefile.am): Likewise.
68414         * modules/wchar (Makefile.am): Likewise.
68415         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
68416         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
68417         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
68418         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
68419         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
68420         Likewise.
68421         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68422         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68423         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
68424         Likewise.
68425         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
68426         Likewise.
68427         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
68428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
68429         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
68430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68431         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68432         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
68433         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
68434         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
68435         (gl_WCHAR_H_DEFAULTS): Likewise.
68437 2009-12-31  Eric Blake  <ebb9@byu.net>
68439         signal, spawn: use link warnings
68440         * lib/signal.in.h (sigset_t): Make unconditional.
68441         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
68442         (sigpending, sigprocmask, sigaction): Add link warnings.
68443         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
68444         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
68445         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
68446         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
68447         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
68448         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
68449         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
68450         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
68451         (posix_spawn_file_actions_destroy)
68452         (posix_spawn_file_actions_addopen)
68453         (posix_spawn_file_actions_addclose)
68454         (posix_spawn_file_actions_adddup2): Likewise.
68455         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
68456         * tests/test-signal.c (main): Enhance test.
68458         spawn: improve wrapper support
68459         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
68460         (gl_SPAWN_H_DEFAULTS): New defaults.
68461         * modules/spawn (Makefile.am): Substitute them.
68462         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
68463         Only declare if missing or broken.
68465         sys_times, sys_utsname: use include_next
68466         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
68467         header.
68468         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
68469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
68470         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
68471         * modules/sys_times (Depends-on): Add include_next.
68472         (Makefile.am): Substitute additional values.
68473         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68474         * lib/sys_times.in.h (includes): Include native header, if
68475         available.
68476         * lib/sys_utsname.in.h (includes): Likewise.
68477         * tests/test-sys_times.c (main): Enhance test.
68479         fdutimensat: revert prior patch
68480         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
68481         utimens.h.
68482         Reported by Bruno Haible.
68484 2009-12-30  Eric Blake  <ebb9@byu.net>
68486         sys_wait: drop link-warning dependency
68487         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
68488         link-warning efforts.
68489         * lib/sys_wait.in.h: Likewise.
68491         fdutimensat: remove bogus dependency
68492         * modules/fdutimensat (Depends-on): Drop inline.
68494         unistd: fix typo
68495         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
68497 2009-12-30  Bruno Haible  <bruno@clisp.org>
68499         Fix compilation error with Solaris cc.
68500         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
68501         * lib/unicase/u16-is-invariant.c: Likewise.
68502         * lib/unicase/u32-is-invariant.c: Likewise.
68503         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68505 2009-12-30  Bruno Haible  <bruno@clisp.org>
68507         Fix test crash.
68508         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
68509         locales.
68510         Reported by Simon Josefsson <simon@josefsson.org>.
68512 2009-12-30  Bruno Haible  <bruno@clisp.org>
68514         Fix compilation error on most platforms.
68515         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
68516         Reported by Simon Josefsson <simon@josefsson.org>
68517         and Nelson H. F. Beebe <beebe@math.utah.edu>.
68519 2009-12-30  Eric Blake  <ebb9@byu.net>
68521         futimens, utimensat: work around ntfs-3g bug
68522         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
68523         a ctime bug is present, and expand workaround to cover ntfs-3g.
68524         * lib/utimens.c (fdutimens, lutimens): Likewise.
68525         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
68526         (validate_timespec): Adjust return value.
68527         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
68528         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68529         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
68531 2009-12-29  Eric Blake  <ebb9@byu.net>
68533         link-warning: make usage consistent
68534         * modules/ctype (Depends-on): Add link-warning.
68535         (Makefile.am): Update rules accordingly.
68536         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68537         * modules/locale (Depends-on, Makefile.am): Likewise.
68538         * modules/sys_file (Makefile.am): Likewise.
68539         * modules/getopt-posix (Makefile.am): Delete unused link warning
68540         efforts.
68541         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
68542         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
68543         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
68544         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
68546         stdio: remove unused variables
68547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
68548         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
68549         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
68551         tests: test more substitute headers
68552         * modules/ctype-tests: New file.
68553         * modules/dirent-tests: Likewise.
68554         * modules/spawn-tests: Likewise.
68555         * modules/sys_file-tests: Likewise.
68556         * modules/sys_ioctl-tests: Likewise.
68557         * modules/sys_wait-tests: Likewise.
68558         * tests/test-ctype.c: Likewise.
68559         * tests/test-dirent.c: Likewise.
68560         * tests/test-spawn.c: Likewise.
68561         * tests/test-sys_file.c: Likewise.
68562         * tests/test-sys_ioctl.c: Likewise.
68563         * tests/test-sys_wait.c: Likewise.
68564         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
68565         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
68566         whether or not flock is in use.
68568         tests: remove License section from module
68569         * modules/arpa_inet-tests: Remove unneeded section.
68570         * modules/byteswap-tests: Likewise.
68571         * modules/ceilf-tests: Likewise.
68572         * modules/ceill-tests: Likewise.
68573         * modules/crypto/des-tests: Likewise.
68574         * modules/crypto/gc-arcfour-tests: Likewise.
68575         * modules/crypto/gc-arctwo-tests: Likewise.
68576         * modules/crypto/gc-des-tests: Likewise.
68577         * modules/crypto/gc-hmac-md5-tests: Likewise.
68578         * modules/crypto/gc-hmac-sha1-tests: Likewise.
68579         * modules/crypto/gc-md2-tests: Likewise.
68580         * modules/crypto/gc-md4-tests: Likewise.
68581         * modules/crypto/gc-md5-tests: Likewise.
68582         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
68583         * modules/crypto/gc-rijndael-tests: Likewise.
68584         * modules/crypto/gc-sha1-tests: Likewise.
68585         * modules/crypto/gc-tests: Likewise.
68586         * modules/crypto/md2-tests: Likewise.
68587         * modules/crypto/md4-tests: Likewise.
68588         * modules/fcntl-h-tests: Likewise.
68589         * modules/floorf-tests: Likewise.
68590         * modules/floorl-tests: Likewise.
68591         * modules/frexp-nolibm-tests: Likewise.
68592         * modules/frexp-tests: Likewise.
68593         * modules/frexpl-nolibm-tests: Likewise.
68594         * modules/frexpl-tests: Likewise.
68595         * modules/getaddrinfo-tests: Likewise.
68596         * modules/inttypes-tests: Likewise.
68597         * modules/isfinite-tests: Likewise.
68598         * modules/isinf-tests: Likewise.
68599         * modules/ldexpl-tests: Likewise.
68600         * modules/locale-tests: Likewise.
68601         * modules/math-tests: Likewise.
68602         * modules/netdb-tests: Likewise.
68603         * modules/netinet_in-tests: Likewise.
68604         * modules/printf-frexp-tests: Likewise.
68605         * modules/printf-frexpl-tests: Likewise.
68606         * modules/priv-set-tests: Likewise.
68607         * modules/random_r-tests: Likewise.
68608         * modules/round-tests: Likewise.
68609         * modules/roundf-tests: Likewise.
68610         * modules/roundl-tests: Likewise.
68611         * modules/search-tests: Likewise.
68612         * modules/select-tests: Likewise.
68613         * modules/signal-tests: Likewise.
68614         * modules/stdbool-tests: Likewise.
68615         * modules/stddef-tests: Likewise.
68616         * modules/stdint-tests: Likewise.
68617         * modules/stdio-tests: Likewise.
68618         * modules/stdlib-tests: Likewise.
68619         * modules/string-tests: Likewise.
68620         * modules/strings-tests: Likewise.
68621         * modules/sys_select-tests: Likewise.
68622         * modules/sys_socket-tests: Likewise.
68623         * modules/sys_stat-tests: Likewise.
68624         * modules/sys_time-tests: Likewise.
68625         * modules/sys_utsname-tests: Likewise.
68626         * modules/sysexits-tests: Likewise.
68627         * modules/time-tests: Likewise.
68628         * modules/trunc-tests: Likewise.
68629         * modules/truncf-tests: Likewise.
68630         * modules/truncl-tests: Likewise.
68631         * modules/tsearch-tests: Likewise.
68632         * modules/unistd-tests: Likewise.
68633         * modules/wchar-tests: Likewise.
68634         * modules/wctype-tests: Likewise.
68636         tests: fix license on several tests
68637         * tests/test-des.c: Update to GPLv3+.
68638         * tests/test-flock.c: Likewise.
68639         * tests/test-fsync.c: Likewise.
68640         * tests/test-futimens.h: Likewise.
68641         * tests/test-gc-arcfour.c: Likewise.
68642         * tests/test-gc-arctwo.c: Likewise.
68643         * tests/test-gc-des.c: Likewise.
68644         * tests/test-gc-hmac-md5.c: Likewise.
68645         * tests/test-gc-hmac-sha1.c: Likewise.
68646         * tests/test-gc-md2.c: Likewise.
68647         * tests/test-gc-md4.c: Likewise.
68648         * tests/test-gc-md5.c: Likewise.
68649         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68650         * tests/test-gc-rijndael.c: Likewise.
68651         * tests/test-gc-sha1.c: Likewise.
68652         * tests/test-gc.c: Likewise.
68653         * tests/test-getcwd.c: Likewise.
68654         * tests/test-link.c: Likewise.
68655         * tests/test-link.h: Likewise.
68656         * tests/test-lutimens.h: Likewise.
68657         * tests/test-md2.c: Likewise.
68658         * tests/test-md4.c: Likewise.
68659         * tests/test-mkdir.h: Likewise.
68660         * tests/test-rename.c: Likewise.
68661         * tests/test-rename.h: Likewise.
68662         * tests/test-safe-alloc.c: Likewise.
68663         * tests/test-utimens-common.h: Likewise.
68664         * tests/test-utimens.h: Likewise.
68666         maint: sync license texts
68667         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
68668         * doc/gpl-3.0.texi: Revert copyright year update.
68669         * doc/lgpl-3.0.texi: Likewise.
68671 2009-12-29  Jim Meyering  <meyering@redhat.com>
68673         update nearly all FSF copyright year lists to include 2009
68674         The files named by the following are exempted:
68675             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
68676               test -f "$dst" && { echo "$dst"; continue; }
68677               test -d "$dst" || continue
68678               echo "$dst"/$(basename "$src")
68679             done > exempt
68680             git ls-files tests/unictype >> exempt
68681         In the remaining files, convert to all-interval notation if
68682         - there is already at least one year interval like 2000-2003
68683         - the file is maintained by me
68684         - the file is in lib/uni*/, where that style already prevails
68685         Otherwise, use update-copyright's default.
68687 2009-12-29  Simon Josefsson  <simon@josefsson.org>
68688         and Eric Blake  <ebb9@byu.net>
68690         tests: don't require debug system() to pass
68691         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
68692         * tests/test-rmdir.h (test_rmdir_func): Likewise.
68693         * tests/test-unlink.h (test_unlink_func): Likewise.
68694         * tests/test-fstatat.c (main): ...into callers.
68695         * tests/test-lstat.c (main): Likewise.
68696         * tests/test-rmdir.c (main): Likewise.
68697         * tests/test-unlink.c (main): Likewise.
68698         * tests/test-unlinkat.c (main): Likewise.
68699         * tests/test-areadlink-with-size.c (main): Don't require a
68700         debug-only system call to pass, aiding cross-testing to mingw.
68701         * tests/test-areadlink.c (main): Likewise.
68702         * tests/test-areadlinkat-with-size.c (main): Likewise.
68703         * tests/test-areadlinkat.c (main): Likewise.
68704         * tests/test-canonicalize-lgpl.c (main): Likewise.
68705         * tests/test-canonicalize.c (main): Likewise.
68706         * tests/test-chown.c (main): Likewise.
68707         * tests/test-fchownat.c (main): Likewise.
68708         * tests/test-lchown.c (main): Likewise.
68709         * tests/test-fdutimensat.c (main): Likewise.
68710         * tests/test-futimens.c (main): Likewise.
68711         * tests/test-link.c (main): Likewise.
68712         * tests/test-linkat.c (main): Likewise.
68713         * tests/test-mkdir.c (main): Likewise.
68714         * tests/test-mkdirat.c (main): Likewise.
68715         * tests/test-mkfifo.c (main): Likewise.
68716         * tests/test-mkfifoat.c (main): Likewise.
68717         * tests/test-mknod.c (main): Likewise.
68718         * tests/test-readlink.c (main): Likewise.
68719         * tests/test-remove.c (main): Likewise.
68720         * tests/test-rename.c (main): Likewise.
68721         * tests/test-renameat.c (main): Likewise.
68722         * tests/test-symlink.c (main): Likewise.
68723         * tests/test-symlinkat.c (main): Likewise.
68724         * tests/test-utimens.c (main): Likewise.
68725         * tests/test-utimensat.c (main): Likewise.
68727 2009-12-29  Simon Josefsson  <simon@josefsson.org>
68729         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
68730         on $(UNUSED_PARAMETER_H) to avoid build failure.
68732 2009-12-28  Jim Meyering  <meyering@redhat.com>
68734         update-copyright: you may specify a max. line length other than 72
68735         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
68737         maint: use consistent FSF copyright line syntax
68738         * lib/posixtm.c: Add missing comma in FSF copyright line.
68739         * lib/posixtm.h: Likewise.
68740         * lib/getugroups.c: Add missing ", Inc.".
68742         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
68743         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
68744         FSF copyright line.  Remove trailing blanks.
68746 2009-12-28  Eric Blake  <ebb9@byu.net>
68748         test-dup2: reduce dependencies
68749         * modules/cloexec (Configure.ac): Set witness.
68750         * modules/dup2-tests (Depends-on): Drop cloexec.
68751         * tests/test-dup2.c (main): Skip portion of test if cloexec module
68752         not present.
68753         Suggested by Bruno Haible.
68755 2009-12-26  Bruno Haible  <bruno@clisp.org>
68757         Remove an unneeded dependency.
68758         * modules/fseterr (Depends-on): Remove dup2.
68760 2009-12-26  Eric Blake  <ebb9@byu.net>
68762         tests: use macros.h in more places
68763         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
68764         (ASSERT_STREAM): Provide default of stderr.
68765         * tests/test-dirent-safer.c: Include macros.h, using alternate
68766         stream for assertions.
68767         * tests/test-dup-safer.c: Likewise.
68768         * tests/test-freopen-safer.c: Likewise.
68769         * tests/test-getopt.c: Likewise.
68770         * tests/test-openat-safer.c: Likewise.
68771         * tests/test-pipe.c: Likewise.
68772         * tests/test-popen-safer.c: Likewise.
68773         * modules/dirent-safer-tests (Files): Include macros.h.
68774         * modules/unistd-safer-tests (Files): Likewise.
68775         * modules/freopen-safer-tests (Files): Likewise.
68776         * modules/getopt-posix-tests (Files): Likewise.
68777         * modules/openat-safer-tests (Files): Likewise.
68778         * modules/pipe-tests (Files): Likewise.
68780 2009-12-26  Bruno Haible  <bruno@clisp.org>
68782         javacomp-script: Portability fix.
68783         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
68784         that it also works on Solaris.
68786 2009-12-26  Bruno Haible  <bruno@clisp.org>
68788         localename: Fix storage allocation of gl_locale_name_thread's result.
68789         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
68790         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
68791         all platforms that have 'uselocale'.
68792         (gl_locale_name_thread_unsafe): New function, extracted from
68793         gl_locale_name_thread.
68794         (gl_locale_name_thread): Call struniq on all platforms that have
68795         'uselocale'.
68796         * tests/test-localename.c (test_locale_name_thread): Check that the
68797         resulting strings are permanently allocated.
68798         * modules/localename-tests (Depends-on): Add strdup.
68800 2009-12-26  Bruno Haible  <bruno@clisp.org>
68802         * tests/test-localename.c (categories): Fill in the strings.
68804 2009-12-26  Jim Meyering  <meyering@redhat.com>
68806         isdir: complete the removal of m4/isdir.m4
68807         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
68809         isdir: clean up, since at least grep still uses it
68810         * lib/isdir.c: Include "isdir.h".
68811         (S_ISDIR): Remove now-unneeded definition.
68812         * modules/isdir (Files): Add lib/isdir.h.
68813         * lib/isdir.h: New file, with declaration.
68814         * m4/isdir.m4: Remove file -- unneeded.
68816 2009-12-25  Bruno Haible  <bruno@clisp.org>
68818         selinux-h: Make generated .h files standalone.
68819         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
68820         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
68821         * lib/se-selinux.in.h: Likewise.
68822         * modules/selinux-h (Depends-on): Add unused-parameter.
68823         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
68824         selinux/selinux.h and selinux/context.h.
68825         Suggested by Eric Blake.
68827 2009-12-25  Bruno Haible  <bruno@clisp.org>
68829         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
68830         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
68831         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
68832         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
68833         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
68835 2009-12-24  Bruno Haible  <bruno@clisp.org>
68837         openat: Fix warning.
68838         * lib/openat-proc.c: Include <unistd.h>.
68840 2009-12-24  Bruno Haible  <bruno@clisp.org>
68842         New module 'unused-parameter'.
68843         * build-aux/unused-parameter.h: New file, extracted from earlier
68844         gnulib-common.m4.
68845         * modules/unused-parameter: New file.
68846         * lib/unistr.h: Include unused-parameter.h.
68847         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
68848         _GL_UNUSED.
68849         * modules/unistr/base (Depends-on): Add unused-parameter.
68851 2009-12-24  Bruno Haible  <bruno@clisp.org>
68853         Add missing dependencies to 'extensions' module.
68854         * m4/extensions.m4: Add comment.
68855         * modules/accept4 (Depends-on): Add extensions.
68856         * modules/dup3 (Depends-on): Likewise.
68857         * modules/fcntl (Depends-on): Likewise.
68858         * modules/futimens (Depends-on): Likewise.
68859         * modules/mknod (Depends-on): Likewise.
68860         * modules/pipe2 (Depends-on): Likewise.
68861         * modules/stat-time (Depends-on): Likewise.
68862         * modules/strcasestr-simple (Depends-on): Likewise.
68863         * modules/strsignal (Depends-on): Likewise.
68864         * modules/utimensat (Depends-on): Likewise.
68865         * modules/localcharset (Depends-on): Likewise. Needed because of
68866         gl_FCNTL_O_FLAGS.
68867         * modules/wcrtomb (Depends-on): Likewise. Needed because of
68868         AC_TYPE_MBSTATE_T.
68869         * modules/wcsnrtombs (Depends-on): Likewise.
68870         * modules/wcsrtombs (Depends-on): Likewise.
68872 2009-12-24  Bruno Haible  <bruno@clisp.org>
68874         binary-io: Avoid gcc warning due to SET_BINARY.
68875         * lib/binary-io.h (SET_BINARY): Cast the result to void.
68876         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
68878 2009-12-24  Bruno Haible  <bruno@clisp.org>
68880         Avoid future namespace pollution on glibc systems.
68881         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
68882         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
68883         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
68884         glibc systems.
68886 2009-12-24  Bruno Haible  <bruno@clisp.org>
68888         Refactor common macros used in tests.
68889         * tests/macros.h: New file.
68890         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
68891         and/or <stdlib.h>, if appropriate.
68892         (ASSERT, SIZEOF): Remove macros.
68893         * tests/test-areadlink-with-size.c: Likewise.
68894         * tests/test-areadlinkat.c: Likewise.
68895         * tests/test-areadlinkat-with-size.c: Likewise.
68896         * tests/test-argmatch.c: Likewise.
68897         * tests/test-argv-iter.c: Likewise.
68898         * tests/test-array-mergesort.c: Likewise.
68899         * tests/test-array_list.c: Likewise.
68900         * tests/test-array_oset.c: Likewise.
68901         * tests/test-avltree_list.c: Likewise.
68902         * tests/test-avltree_oset.c: Likewise.
68903         * tests/test-avltreehash_list.c: Likewise.
68904         * tests/test-base64.c: Likewise.
68905         * tests/test-binary-io.c: Likewise.
68906         * tests/test-bitrotate.c: Likewise.
68907         * tests/test-btowc.c: Likewise.
68908         * tests/test-byteswap.c: Likewise.
68909         * tests/test-c-ctype.c: Likewise.
68910         * tests/test-c-stack.c: Likewise.
68911         * tests/test-c-strcasecmp.c: Likewise.
68912         * tests/test-c-strcasestr.c: Likewise.
68913         * tests/test-c-strncasecmp.c: Likewise.
68914         * tests/test-c-strstr.c: Likewise.
68915         * tests/test-canonicalize-lgpl.c: Likewise.
68916         * tests/test-canonicalize.c: Likewise.
68917         * tests/test-carray_list.c: Likewise.
68918         * tests/test-ceilf1.c: Likewise.
68919         * tests/test-ceilf2.c: Likewise.
68920         * tests/test-ceill.c: Likewise.
68921         * tests/test-chown.c: Likewise.
68922         * tests/test-cloexec.c: Likewise.
68923         * tests/test-copy-acl.c: Likewise.
68924         * tests/test-copy-file.c: Likewise.
68925         * tests/test-count-one-bits.c: Likewise.
68926         * tests/test-dprintf-posix.c: Likewise.
68927         * tests/test-dup2.c: Likewise.
68928         * tests/test-dup3.c: Likewise.
68929         * tests/test-duplocale.c: Likewise.
68930         * tests/test-fbufmode.c: Likewise.
68931         * tests/test-fchdir.c: Likewise.
68932         * tests/test-fchownat.c: Likewise.
68933         * tests/test-fcntl-safer.c: Likewise.
68934         * tests/test-fcntl.c: Likewise.
68935         * tests/test-fdopendir.c: Likewise.
68936         * tests/test-fdutimensat.c: Likewise.
68937         * tests/test-fflush2.c: Likewise.
68938         * tests/test-file-has-acl.c: Likewise.
68939         * tests/test-filevercmp.c: Likewise.
68940         * tests/test-flock.c: Likewise.
68941         * tests/test-floorf1.c: Likewise.
68942         * tests/test-floorf2.c: Likewise.
68943         * tests/test-floorl.c: Likewise.
68944         * tests/test-fnmatch.c: Likewise.
68945         * tests/test-fopen.h: Likewise.
68946         * tests/test-fpending.c: Likewise.
68947         * tests/test-fprintf-posix.c: Likewise.
68948         * tests/test-fpurge.c: Likewise.
68949         * tests/test-freadable.c: Likewise.
68950         * tests/test-freadahead.c: Likewise.
68951         * tests/test-freading.c: Likewise.
68952         * tests/test-freadptr.c: Likewise.
68953         * tests/test-freadptr2.c: Likewise.
68954         * tests/test-freadseek.c: Likewise.
68955         * tests/test-freopen.c: Likewise.
68956         * tests/test-frexp.c: Likewise.
68957         * tests/test-frexpl.c: Likewise.
68958         * tests/test-fseek.c: Likewise.
68959         * tests/test-fseeko.c: Likewise.
68960         * tests/test-fstatat.c: Likewise.
68961         * tests/test-fstrcmp.c: Likewise.
68962         * tests/test-fsync.c: Likewise.
68963         * tests/test-ftell.c: Likewise.
68964         * tests/test-ftello.c: Likewise.
68965         * tests/test-func.c: Likewise.
68966         * tests/test-futimens.c: Likewise.
68967         * tests/test-fwritable.c: Likewise.
68968         * tests/test-fwriting.c: Likewise.
68969         * tests/test-getcwd.c: Likewise.
68970         * tests/test-getdate.c: Likewise.
68971         * tests/test-getdelim.c: Likewise.
68972         * tests/test-getdtablesize.c: Likewise.
68973         * tests/test-getgroups.c: Likewise.
68974         * tests/test-getline.c: Likewise.
68975         * tests/test-getndelim2.c: Likewise.
68976         * tests/test-glob.c: Likewise.
68977         * tests/test-hash.c: Likewise.
68978         * tests/test-i-ring.c: Likewise.
68979         * tests/test-iconv-utf.c: Likewise.
68980         * tests/test-iconv.c: Likewise.
68981         * tests/test-idpriv-drop.c: Likewise.
68982         * tests/test-idpriv-droptemp.c: Likewise.
68983         * tests/test-inet_ntop.c: Likewise.
68984         * tests/test-inet_pton.c: Likewise.
68985         * tests/test-isblank.c: Likewise.
68986         * tests/test-isfinite.c: Likewise.
68987         * tests/test-isinf.c: Likewise.
68988         * tests/test-isnan.c: Likewise.
68989         * tests/test-isnand.h: Likewise.
68990         * tests/test-isnanf.h: Likewise.
68991         * tests/test-isnanl.h: Likewise.
68992         * tests/test-lchown.c: Likewise.
68993         * tests/test-ldexpl.c: Likewise.
68994         * tests/test-link.c: Likewise.
68995         * tests/test-linkat.c: Likewise.
68996         * tests/test-linked_list.c: Likewise.
68997         * tests/test-linkedhash_list.c: Likewise.
68998         * tests/test-localename.c: Likewise.
68999         * tests/test-lseek.c: Likewise.
69000         * tests/test-lstat.c: Likewise.
69001         * tests/test-mbmemcasecmp.c: Likewise.
69002         * tests/test-mbmemcasecoll.c: Likewise.
69003         * tests/test-mbrtowc.c: Likewise.
69004         * tests/test-mbscasecmp.c: Likewise.
69005         * tests/test-mbscasestr1.c: Likewise.
69006         * tests/test-mbscasestr2.c: Likewise.
69007         * tests/test-mbscasestr3.c: Likewise.
69008         * tests/test-mbscasestr4.c: Likewise.
69009         * tests/test-mbschr.c: Likewise.
69010         * tests/test-mbscspn.c: Likewise.
69011         * tests/test-mbsinit.c: Likewise.
69012         * tests/test-mbsncasecmp.c: Likewise.
69013         * tests/test-mbsnrtowcs.c: Likewise.
69014         * tests/test-mbspbrk.c: Likewise.
69015         * tests/test-mbspcasecmp.c: Likewise.
69016         * tests/test-mbsrchr.c: Likewise.
69017         * tests/test-mbsrtowcs.c: Likewise.
69018         * tests/test-mbsspn.c: Likewise.
69019         * tests/test-mbsstr1.c: Likewise.
69020         * tests/test-mbsstr2.c: Likewise.
69021         * tests/test-mbsstr3.c: Likewise.
69022         * tests/test-memchr.c: Likewise.
69023         * tests/test-memchr2.c: Likewise.
69024         * tests/test-memcmp.c: Likewise.
69025         * tests/test-memmem.c: Likewise.
69026         * tests/test-memrchr.c: Likewise.
69027         * tests/test-mkdir.c: Likewise.
69028         * tests/test-mkdirat.c: Likewise.
69029         * tests/test-mkfifo.c: Likewise.
69030         * tests/test-mkfifoat.c: Likewise.
69031         * tests/test-mknod.c: Likewise.
69032         * tests/test-nanosleep.c: Likewise.
69033         * tests/test-nl_langinfo.c: Likewise.
69034         * tests/test-obstack-printf.c: Likewise.
69035         * tests/test-open.c: Likewise.
69036         * tests/test-openat.c: Likewise.
69037         * tests/test-pipe-filter-gi1.c: Likewise.
69038         * tests/test-pipe-filter-gi2-main.c: Likewise.
69039         * tests/test-pipe-filter-ii1.c: Likewise.
69040         * tests/test-pipe-filter-ii2-main.c: Likewise.
69041         * tests/test-pipe2.c: Likewise.
69042         * tests/test-popen.h: Likewise.
69043         * tests/test-posixtm.c: Likewise.
69044         * tests/test-pread.c: Likewise.
69045         * tests/test-printf-frexp.c: Likewise.
69046         * tests/test-printf-frexpl.c: Likewise.
69047         * tests/test-printf-posix.c: Likewise.
69048         * tests/test-priv-set.c: Likewise.
69049         * tests/test-quotearg.c: Likewise.
69050         * tests/test-random_r.c: Likewise.
69051         * tests/test-rawmemchr.c: Likewise.
69052         * tests/test-rbtree_list.c: Likewise.
69053         * tests/test-rbtree_oset.c: Likewise.
69054         * tests/test-rbtreehash_list.c: Likewise.
69055         * tests/test-readlink.c: Likewise.
69056         * tests/test-remove.c: Likewise.
69057         * tests/test-rename.c: Likewise.
69058         * tests/test-renameat.c: Likewise.
69059         * tests/test-rmdir.c: Likewise.
69060         * tests/test-round1.c: Likewise.
69061         * tests/test-roundf1.c: Likewise.
69062         * tests/test-roundl.c: Likewise.
69063         * tests/test-safe-alloc.c: Likewise.
69064         * tests/test-sameacls.c: Likewise.
69065         * tests/test-set-mode-acl.c: Likewise.
69066         * tests/test-setenv.c: Likewise.
69067         * tests/test-sigaction.c: Likewise.
69068         * tests/test-signbit.c: Likewise.
69069         * tests/test-sleep.c: Likewise.
69070         * tests/test-snprintf-posix.c: Likewise.
69071         * tests/test-snprintf.c: Likewise.
69072         * tests/test-sprintf-posix.c: Likewise.
69073         * tests/test-stat-time.c: Likewise.
69074         * tests/test-stat.c: Likewise.
69075         * tests/test-strcasestr.c: Likewise.
69076         * tests/test-strchrnul.c: Likewise.
69077         * tests/test-strerror.c: Likewise.
69078         * tests/test-striconv.c: Likewise.
69079         * tests/test-striconveh.c: Likewise.
69080         * tests/test-striconveha.c: Likewise.
69081         * tests/test-strsignal.c: Likewise.
69082         * tests/test-strstr.c: Likewise.
69083         * tests/test-strtod.c: Likewise.
69084         * tests/test-strverscmp.c: Likewise.
69085         * tests/test-symlink.c: Likewise.
69086         * tests/test-symlinkat.c: Likewise.
69087         * tests/test-trunc1.c: Likewise.
69088         * tests/test-trunc2.c: Likewise.
69089         * tests/test-truncf1.c: Likewise.
69090         * tests/test-truncf2.c: Likewise.
69091         * tests/test-truncl.c: Likewise.
69092         * tests/test-uname.c: Likewise.
69093         * tests/test-unlink.c: Likewise.
69094         * tests/test-unlinkat.c: Likewise.
69095         * tests/test-unsetenv.c: Likewise.
69096         * tests/test-usleep.c: Likewise.
69097         * tests/test-utimens.c: Likewise.
69098         * tests/test-utimensat.c: Likewise.
69099         * tests/test-vasnprintf-posix.c: Likewise.
69100         * tests/test-vasnprintf-posix2.c: Likewise.
69101         * tests/test-vasnprintf.c: Likewise.
69102         * tests/test-vasprintf-posix.c: Likewise.
69103         * tests/test-vasprintf.c: Likewise.
69104         * tests/test-vdprintf-posix.c: Likewise.
69105         * tests/test-vfprintf-posix.c: Likewise.
69106         * tests/test-vprintf-posix.c: Likewise.
69107         * tests/test-vsnprintf-posix.c: Likewise.
69108         * tests/test-vsnprintf.c: Likewise.
69109         * tests/test-vsprintf-posix.c: Likewise.
69110         * tests/test-wcrtomb.c: Likewise.
69111         * tests/test-wcsnrtombs.c: Likewise.
69112         * tests/test-wcsrtombs.c: Likewise.
69113         * tests/test-wctype.c: Likewise.
69114         * tests/test-wcwidth.c: Likewise.
69115         * tests/test-xfprintf-posix.c: Likewise.
69116         * tests/test-xmemdup0.c: Likewise.
69117         * tests/test-xprintf-posix.c: Likewise.
69118         * tests/test-xvasprintf.c: Likewise.
69119         * tests/unicase/test-locale-language.c: Likewise.
69120         * tests/unicase/test-mapping-part1.h: Likewise.
69121         * tests/unicase/test-predicate-part1.h: Likewise.
69122         * tests/unicase/test-u8-casecmp.c: Likewise.
69123         * tests/unicase/test-u8-casecoll.c: Likewise.
69124         * tests/unicase/test-u8-casefold.c: Likewise.
69125         * tests/unicase/test-u8-is-cased.c: Likewise.
69126         * tests/unicase/test-u8-is-casefolded.c: Likewise.
69127         * tests/unicase/test-u8-is-lowercase.c: Likewise.
69128         * tests/unicase/test-u8-is-titlecase.c: Likewise.
69129         * tests/unicase/test-u8-is-uppercase.c: Likewise.
69130         * tests/unicase/test-u8-tolower.c: Likewise.
69131         * tests/unicase/test-u8-totitle.c: Likewise.
69132         * tests/unicase/test-u8-toupper.c: Likewise.
69133         * tests/unicase/test-u16-casecmp.c: Likewise.
69134         * tests/unicase/test-u16-casecoll.c: Likewise.
69135         * tests/unicase/test-u16-casefold.c: Likewise.
69136         * tests/unicase/test-u16-is-cased.c: Likewise.
69137         * tests/unicase/test-u16-is-casefolded.c: Likewise.
69138         * tests/unicase/test-u16-is-lowercase.c: Likewise.
69139         * tests/unicase/test-u16-is-titlecase.c: Likewise.
69140         * tests/unicase/test-u16-is-uppercase.c: Likewise.
69141         * tests/unicase/test-u16-tolower.c: Likewise.
69142         * tests/unicase/test-u16-totitle.c: Likewise.
69143         * tests/unicase/test-u16-toupper.c: Likewise.
69144         * tests/unicase/test-u32-casecmp.c: Likewise.
69145         * tests/unicase/test-u32-casecoll.c: Likewise.
69146         * tests/unicase/test-u32-casefold.c: Likewise.
69147         * tests/unicase/test-u32-is-cased.c: Likewise.
69148         * tests/unicase/test-u32-is-casefolded.c: Likewise.
69149         * tests/unicase/test-u32-is-lowercase.c: Likewise.
69150         * tests/unicase/test-u32-is-titlecase.c: Likewise.
69151         * tests/unicase/test-u32-is-uppercase.c: Likewise.
69152         * tests/unicase/test-u32-tolower.c: Likewise.
69153         * tests/unicase/test-u32-totitle.c: Likewise.
69154         * tests/unicase/test-u32-toupper.c: Likewise.
69155         * tests/unicase/test-ulc-casecmp.c: Likewise.
69156         * tests/unicase/test-ulc-casecoll.c: Likewise.
69157         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69158         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
69159         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69160         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69161         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
69162         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
69163         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69164         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69165         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69166         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
69167         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69168         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69169         * tests/unictype/test-bidi_byname.c: Likewise.
69170         * tests/unictype/test-bidi_name.c: Likewise.
69171         * tests/unictype/test-bidi_of.c: Likewise.
69172         * tests/unictype/test-bidi_test.c: Likewise.
69173         * tests/unictype/test-block_list.c: Likewise.
69174         * tests/unictype/test-block_of.c: Likewise.
69175         * tests/unictype/test-block_test.c: Likewise.
69176         * tests/unictype/test-categ_and.c: Likewise.
69177         * tests/unictype/test-categ_and_not.c: Likewise.
69178         * tests/unictype/test-categ_byname.c: Likewise.
69179         * tests/unictype/test-categ_name.c: Likewise.
69180         * tests/unictype/test-categ_none.c: Likewise.
69181         * tests/unictype/test-categ_of.c: Likewise.
69182         * tests/unictype/test-categ_or.c: Likewise.
69183         * tests/unictype/test-categ_test_withtable.c: Likewise.
69184         * tests/unictype/test-combining.c: Likewise.
69185         * tests/unictype/test-decdigit.c: Likewise.
69186         * tests/unictype/test-digit.c: Likewise.
69187         * tests/unictype/test-mirror.c: Likewise.
69188         * tests/unictype/test-numeric.c: Likewise.
69189         * tests/unictype/test-pr_byname.c: Likewise.
69190         * tests/unictype/test-pr_test.c: Likewise.
69191         * tests/unictype/test-predicate-part1.h: Likewise.
69192         * tests/unictype/test-scripts.c: Likewise.
69193         * tests/unictype/test-sy_c_ident.c: Likewise.
69194         * tests/unictype/test-sy_java_ident.c: Likewise.
69195         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
69196         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
69197         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
69198         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
69199         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
69200         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
69201         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
69202         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
69203         * tests/uninorm/test-canonical-decomposition.c: Likewise.
69204         * tests/uninorm/test-compat-decomposition.c: Likewise.
69205         * tests/uninorm/test-composition.c: Likewise.
69206         * tests/uninorm/test-decomposing-form.c: Likewise.
69207         * tests/uninorm/test-decomposition.c: Likewise.
69208         * tests/uninorm/test-u8-nfc.c: Likewise.
69209         * tests/uninorm/test-u8-nfd.c: Likewise.
69210         * tests/uninorm/test-u8-nfkc.c: Likewise.
69211         * tests/uninorm/test-u8-nfkd.c: Likewise.
69212         * tests/uninorm/test-u8-normcmp.c: Likewise.
69213         * tests/uninorm/test-u8-normcoll.c: Likewise.
69214         * tests/uninorm/test-u16-nfc.c: Likewise.
69215         * tests/uninorm/test-u16-nfd.c: Likewise.
69216         * tests/uninorm/test-u16-nfkc.c: Likewise.
69217         * tests/uninorm/test-u16-nfkd.c: Likewise.
69218         * tests/uninorm/test-u16-normcmp.c: Likewise.
69219         * tests/uninorm/test-u16-normcoll.c: Likewise.
69220         * tests/uninorm/test-u32-nfc.c: Likewise.
69221         * tests/uninorm/test-u32-nfd.c: Likewise.
69222         * tests/uninorm/test-u32-nfkc.c: Likewise.
69223         * tests/uninorm/test-u32-nfkd.c: Likewise.
69224         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69225         * tests/uninorm/test-u32-normcmp.c: Likewise.
69226         * tests/uninorm/test-u32-normcoll.c: Likewise.
69227         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
69228         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
69229         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
69230         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
69231         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
69232         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
69233         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
69234         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
69235         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
69236         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
69237         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
69238         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
69239         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
69240         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
69241         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
69242         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
69243         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
69244         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
69245         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
69246         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
69247         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
69248         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
69249         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
69250         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
69251         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
69252         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
69253         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
69254         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
69255         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
69256         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
69257         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
69258         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
69259         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
69260         * tests/uniwidth/test-u8-strwidth.c: Likewise.
69261         * tests/uniwidth/test-u8-width.c: Likewise.
69262         * tests/uniwidth/test-u16-strwidth.c: Likewise.
69263         * tests/uniwidth/test-u16-width.c: Likewise.
69264         * tests/uniwidth/test-u32-strwidth.c: Likewise.
69265         * tests/uniwidth/test-u32-width.c: Likewise.
69266         * tests/uniwidth/test-uc_width.c: Likewise.
69267         * tests/uniwidth/test-uc_width2.c: Likewise.
69268         * modules/acl-tests (Files): Add tests/macros.h.
69269         * modules/areadlink-tests (Files): Likewise.
69270         * modules/areadlink-with-size-tests (Files): Likewise.
69271         * modules/areadlinkat-tests (Files): Likewise.
69272         * modules/areadlinkat-with-size-tests (Files): Likewise.
69273         * modules/argmatch-tests (Files): Likewise.
69274         * modules/argv-iter-tests (Files): Likewise.
69275         * modules/array-list-tests (Files): Likewise.
69276         * modules/array-mergesort-tests (Files): Likewise.
69277         * modules/array-oset-tests (Files): Likewise.
69278         * modules/avltree-list-tests (Files): Likewise.
69279         * modules/avltree-oset-tests (Files): Likewise.
69280         * modules/avltreehash-list-tests (Files): Likewise.
69281         * modules/base64-tests (Files): Likewise.
69282         * modules/binary-io-tests (Files): Likewise.
69283         * modules/bitrotate-tests (Files): Likewise.
69284         * modules/btowc-tests (Files): Likewise.
69285         * modules/byteswap-tests (Files): Likewise.
69286         * modules/c-ctype-tests (Files): Likewise.
69287         * modules/c-stack-tests (Files): Likewise.
69288         * modules/c-strcase-tests (Files): Likewise.
69289         * modules/c-strcasestr-tests (Files): Likewise.
69290         * modules/c-strstr-tests (Files): Likewise.
69291         * modules/canonicalize-lgpl-tests (Files): Likewise.
69292         * modules/canonicalize-tests (Files): Likewise.
69293         * modules/carray-list-tests (Files): Likewise.
69294         * modules/ceilf-tests (Files): Likewise.
69295         * modules/ceill-tests (Files): Likewise.
69296         * modules/chown-tests (Files): Likewise.
69297         * modules/cloexec-tests (Files): Likewise.
69298         * modules/copy-file-tests (Files): Likewise.
69299         * modules/count-one-bits-tests (Files): Likewise.
69300         * modules/dprintf-posix-tests (Files): Likewise.
69301         * modules/dup2-tests (Files): Likewise.
69302         * modules/dup3-tests (Files): Likewise.
69303         * modules/duplocale-tests (Files): Likewise.
69304         * modules/fbufmode-tests (Files): Likewise.
69305         * modules/fchdir-tests (Files): Likewise.
69306         * modules/fcntl-safer-tests (Files): Likewise.
69307         * modules/fcntl-tests (Files): Likewise.
69308         * modules/fdopendir-tests (Files): Likewise.
69309         * modules/fdutimensat-tests (Files): Likewise.
69310         * modules/fflush-tests (Files): Likewise.
69311         * modules/filevercmp-tests (Files): Likewise.
69312         * modules/flock-tests (Files): Likewise.
69313         * modules/floorf-tests (Files): Likewise.
69314         * modules/floorl-tests (Files): Likewise.
69315         * modules/fnmatch-tests (Files): Likewise.
69316         * modules/fopen-safer-tests (Files): Likewise.
69317         * modules/fopen-tests (Files): Likewise.
69318         * modules/fpending-tests (Files): Likewise.
69319         * modules/fprintf-posix-tests (Files): Likewise.
69320         * modules/fpurge-tests (Files): Likewise.
69321         * modules/freadable-tests (Files): Likewise.
69322         * modules/freadahead-tests (Files): Likewise.
69323         * modules/freading-tests (Files): Likewise.
69324         * modules/freadptr-tests (Files): Likewise.
69325         * modules/freadseek-tests (Files): Likewise.
69326         * modules/freopen-tests (Files): Likewise.
69327         * modules/frexp-nolibm-tests (Files): Likewise.
69328         * modules/frexp-tests (Files): Likewise.
69329         * modules/frexpl-nolibm-tests (Files): Likewise.
69330         * modules/frexpl-tests (Files): Likewise.
69331         * modules/fseek-tests (Files): Likewise.
69332         * modules/fseeko-tests (Files): Likewise.
69333         * modules/fstrcmp-tests (Files): Likewise.
69334         * modules/fsync-tests (Files): Likewise.
69335         * modules/ftell-tests (Files): Likewise.
69336         * modules/ftello-tests (Files): Likewise.
69337         * modules/func-tests (Files): Likewise.
69338         * modules/futimens-tests (Files): Likewise.
69339         * modules/fwritable-tests (Files): Likewise.
69340         * modules/fwriting-tests (Files): Likewise.
69341         * modules/getcwd-tests (Files): Likewise.
69342         * modules/getdate-tests (Files): Likewise.
69343         * modules/getdelim-tests (Files): Likewise.
69344         * modules/getdtablesize-tests (Files): Likewise.
69345         * modules/getgroups-tests (Files): Likewise.
69346         * modules/getline-tests (Files): Likewise.
69347         * modules/getndelim2-tests (Files): Likewise.
69348         * modules/glob-tests (Files): Likewise.
69349         * modules/hash-tests (Files): Likewise.
69350         * modules/i-ring-tests (Files): Likewise.
69351         * modules/iconv-tests (Files): Likewise.
69352         * modules/iconv_open-utf-tests (Files): Likewise.
69353         * modules/idpriv-drop-tests (Files): Likewise.
69354         * modules/idpriv-droptemp-tests (Files): Likewise.
69355         * modules/inet_ntop-tests (Files): Likewise.
69356         * modules/inet_pton-tests (Files): Likewise.
69357         * modules/isblank-tests (Files): Likewise.
69358         * modules/isfinite-tests (Files): Likewise.
69359         * modules/isinf-tests (Files): Likewise.
69360         * modules/isnan-tests (Files): Likewise.
69361         * modules/isnand-nolibm-tests (Files): Likewise.
69362         * modules/isnand-tests (Files): Likewise.
69363         * modules/isnanf-nolibm-tests (Files): Likewise.
69364         * modules/isnanf-tests (Files): Likewise.
69365         * modules/isnanl-nolibm-tests (Files): Likewise.
69366         * modules/isnanl-tests (Files): Likewise.
69367         * modules/lchown-tests (Files): Likewise.
69368         * modules/ldexpl-tests (Files): Likewise.
69369         * modules/link-tests (Files): Likewise.
69370         * modules/linkat-tests (Files): Likewise.
69371         * modules/linked-list-tests (Files): Likewise.
69372         * modules/linkedhash-list-tests (Files): Likewise.
69373         * modules/localename-tests (Files): Likewise.
69374         * modules/lseek-tests (Files): Likewise.
69375         * modules/lstat-tests (Files): Likewise.
69376         * modules/mbmemcasecmp-tests (Files): Likewise.
69377         * modules/mbmemcasecoll-tests (Files): Likewise.
69378         * modules/mbrtowc-tests (Files): Likewise.
69379         * modules/mbscasecmp-tests (Files): Likewise.
69380         * modules/mbscasestr-tests (Files): Likewise.
69381         * modules/mbschr-tests (Files): Likewise.
69382         * modules/mbscspn-tests (Files): Likewise.
69383         * modules/mbsinit-tests (Files): Likewise.
69384         * modules/mbsncasecmp-tests (Files): Likewise.
69385         * modules/mbsnrtowcs-tests (Files): Likewise.
69386         * modules/mbspbrk-tests (Files): Likewise.
69387         * modules/mbspcasecmp-tests (Files): Likewise.
69388         * modules/mbsrchr-tests (Files): Likewise.
69389         * modules/mbsrtowcs-tests (Files): Likewise.
69390         * modules/mbsspn-tests (Files): Likewise.
69391         * modules/mbsstr-tests (Files): Likewise.
69392         * modules/memchr-tests (Files): Likewise.
69393         * modules/memchr2-tests (Files): Likewise.
69394         * modules/memcmp-tests (Files): Likewise.
69395         * modules/memmem-tests (Files): Likewise.
69396         * modules/memrchr-tests (Files): Likewise.
69397         * modules/mkdir-tests (Files): Likewise.
69398         * modules/mkfifo-tests (Files): Likewise.
69399         * modules/mkfifoat-tests (Files): Likewise.
69400         * modules/mknod-tests (Files): Likewise.
69401         * modules/nanosleep-tests (Files): Likewise.
69402         * modules/nl_langinfo-tests (Files): Likewise.
69403         * modules/obstack-printf-tests (Files): Likewise.
69404         * modules/open-tests (Files): Likewise.
69405         * modules/openat-tests (Files): Likewise.
69406         * modules/pipe-filter-gi-tests (Files): Likewise.
69407         * modules/pipe-filter-ii-tests (Files): Likewise.
69408         * modules/pipe2-tests (Files): Likewise.
69409         * modules/popen-safer-tests (Files): Likewise.
69410         * modules/popen-tests (Files): Likewise.
69411         * modules/posixtm-tests (Files): Likewise.
69412         * modules/pread-tests (Files): Likewise.
69413         * modules/printf-frexp-tests (Files): Likewise.
69414         * modules/printf-frexpl-tests (Files): Likewise.
69415         * modules/printf-posix-tests (Files): Likewise.
69416         * modules/priv-set-tests (Files): Likewise.
69417         * modules/quotearg-tests (Files): Likewise.
69418         * modules/random_r-tests (Files): Likewise.
69419         * modules/rawmemchr-tests (Files): Likewise.
69420         * modules/rbtree-list-tests (Files): Likewise.
69421         * modules/rbtree-oset-tests (Files): Likewise.
69422         * modules/rbtreehash-list-tests (Files): Likewise.
69423         * modules/readlink-tests (Files): Likewise.
69424         * modules/remove-tests (Files): Likewise.
69425         * modules/rename-tests (Files): Likewise.
69426         * modules/renameat-tests (Files): Likewise.
69427         * modules/rmdir-tests (Files): Likewise.
69428         * modules/round-tests (Files): Likewise.
69429         * modules/roundf-tests (Files): Likewise.
69430         * modules/roundl-tests (Files): Likewise.
69431         * modules/safe-alloc-tests (Files): Likewise.
69432         * modules/setenv-tests (Files): Likewise.
69433         * modules/sigaction-tests (Files): Likewise.
69434         * modules/signbit-tests (Files): Likewise.
69435         * modules/sleep-tests (Files): Likewise.
69436         * modules/snprintf-posix-tests (Files): Likewise.
69437         * modules/snprintf-tests (Files): Likewise.
69438         * modules/sprintf-posix-tests (Files): Likewise.
69439         * modules/stat-tests (Files): Likewise.
69440         * modules/stat-time-tests (Files): Likewise.
69441         * modules/strcasestr-tests (Files): Likewise.
69442         * modules/strchrnul-tests (Files): Likewise.
69443         * modules/strerror-tests (Files): Likewise.
69444         * modules/striconv-tests (Files): Likewise.
69445         * modules/striconveh-tests (Files): Likewise.
69446         * modules/striconveha-tests (Files): Likewise.
69447         * modules/strsignal-tests (Files): Likewise.
69448         * modules/strstr-tests (Files): Likewise.
69449         * modules/strtod-tests (Files): Likewise.
69450         * modules/strverscmp-tests (Files): Likewise.
69451         * modules/symlink-tests (Files): Likewise.
69452         * modules/symlinkat-tests (Files): Likewise.
69453         * modules/trunc-tests (Files): Likewise.
69454         * modules/truncf-tests (Files): Likewise.
69455         * modules/truncl-tests (Files): Likewise.
69456         * modules/uname-tests (Files): Likewise.
69457         * modules/unicase/cased-tests (Files): Likewise.
69458         * modules/unicase/ignorable-tests (Files): Likewise.
69459         * modules/unicase/locale-language-tests (Files): Likewise.
69460         * modules/unicase/tolower-tests (Files): Likewise.
69461         * modules/unicase/totitle-tests (Files): Likewise.
69462         * modules/unicase/toupper-tests (Files): Likewise.
69463         * modules/unicase/u8-casecmp-tests (Files): Likewise.
69464         * modules/unicase/u8-casecoll-tests (Files): Likewise.
69465         * modules/unicase/u8-casefold-tests (Files): Likewise.
69466         * modules/unicase/u8-is-cased-tests (Files): Likewise.
69467         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
69468         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
69469         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
69470         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
69471         * modules/unicase/u8-tolower-tests (Files): Likewise.
69472         * modules/unicase/u8-totitle-tests (Files): Likewise.
69473         * modules/unicase/u8-toupper-tests (Files): Likewise.
69474         * modules/unicase/u16-casecmp-tests (Files): Likewise.
69475         * modules/unicase/u16-casecoll-tests (Files): Likewise.
69476         * modules/unicase/u16-casefold-tests (Files): Likewise.
69477         * modules/unicase/u16-is-cased-tests (Files): Likewise.
69478         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
69479         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
69480         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
69481         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
69482         * modules/unicase/u16-tolower-tests (Files): Likewise.
69483         * modules/unicase/u16-totitle-tests (Files): Likewise.
69484         * modules/unicase/u16-toupper-tests (Files): Likewise.
69485         * modules/unicase/u32-casecmp-tests (Files): Likewise.
69486         * modules/unicase/u32-casecoll-tests (Files): Likewise.
69487         * modules/unicase/u32-casefold-tests (Files): Likewise.
69488         * modules/unicase/u32-is-cased-tests (Files): Likewise.
69489         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
69490         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
69491         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
69492         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
69493         * modules/unicase/u32-tolower-tests (Files): Likewise.
69494         * modules/unicase/u32-totitle-tests (Files): Likewise.
69495         * modules/unicase/u32-toupper-tests (Files): Likewise.
69496         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
69497         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
69498         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
69499         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
69500         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
69501         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
69502         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
69503         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
69504         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
69505         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
69506         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
69507         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
69508         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
69509         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
69510         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
69511         * modules/unictype/bidicategory-name-tests (Files): Likewise.
69512         * modules/unictype/bidicategory-of-tests (Files): Likewise.
69513         * modules/unictype/bidicategory-test-tests (Files): Likewise.
69514         * modules/unictype/block-list-tests (Files): Likewise.
69515         * modules/unictype/block-of-tests (Files): Likewise.
69516         * modules/unictype/block-test-tests (Files): Likewise.
69517         * modules/unictype/category-C-tests (Files): Likewise.
69518         * modules/unictype/category-Cc-tests (Files): Likewise.
69519         * modules/unictype/category-Cf-tests (Files): Likewise.
69520         * modules/unictype/category-Cn-tests (Files): Likewise.
69521         * modules/unictype/category-Co-tests (Files): Likewise.
69522         * modules/unictype/category-Cs-tests (Files): Likewise.
69523         * modules/unictype/category-L-tests (Files): Likewise.
69524         * modules/unictype/category-Ll-tests (Files): Likewise.
69525         * modules/unictype/category-Lm-tests (Files): Likewise.
69526         * modules/unictype/category-Lo-tests (Files): Likewise.
69527         * modules/unictype/category-Lt-tests (Files): Likewise.
69528         * modules/unictype/category-Lu-tests (Files): Likewise.
69529         * modules/unictype/category-M-tests (Files): Likewise.
69530         * modules/unictype/category-Mc-tests (Files): Likewise.
69531         * modules/unictype/category-Me-tests (Files): Likewise.
69532         * modules/unictype/category-Mn-tests (Files): Likewise.
69533         * modules/unictype/category-N-tests (Files): Likewise.
69534         * modules/unictype/category-Nd-tests (Files): Likewise.
69535         * modules/unictype/category-Nl-tests (Files): Likewise.
69536         * modules/unictype/category-No-tests (Files): Likewise.
69537         * modules/unictype/category-P-tests (Files): Likewise.
69538         * modules/unictype/category-Pc-tests (Files): Likewise.
69539         * modules/unictype/category-Pd-tests (Files): Likewise.
69540         * modules/unictype/category-Pe-tests (Files): Likewise.
69541         * modules/unictype/category-Pf-tests (Files): Likewise.
69542         * modules/unictype/category-Pi-tests (Files): Likewise.
69543         * modules/unictype/category-Po-tests (Files): Likewise.
69544         * modules/unictype/category-Ps-tests (Files): Likewise.
69545         * modules/unictype/category-S-tests (Files): Likewise.
69546         * modules/unictype/category-Sc-tests (Files): Likewise.
69547         * modules/unictype/category-Sk-tests (Files): Likewise.
69548         * modules/unictype/category-Sm-tests (Files): Likewise.
69549         * modules/unictype/category-So-tests (Files): Likewise.
69550         * modules/unictype/category-Z-tests (Files): Likewise.
69551         * modules/unictype/category-Zl-tests (Files): Likewise.
69552         * modules/unictype/category-Zp-tests (Files): Likewise.
69553         * modules/unictype/category-Zs-tests (Files): Likewise.
69554         * modules/unictype/category-and-not-tests (Files): Likewise.
69555         * modules/unictype/category-and-tests (Files): Likewise.
69556         * modules/unictype/category-byname-tests (Files): Likewise.
69557         * modules/unictype/category-name-tests (Files): Likewise.
69558         * modules/unictype/category-none-tests (Files): Likewise.
69559         * modules/unictype/category-of-tests (Files): Likewise.
69560         * modules/unictype/category-or-tests (Files): Likewise.
69561         * modules/unictype/category-test-withtable-tests (Files): Likewise.
69562         * modules/unictype/combining-class-tests (Files): Likewise.
69563         * modules/unictype/ctype-alnum-tests (Files): Likewise.
69564         * modules/unictype/ctype-alpha-tests (Files): Likewise.
69565         * modules/unictype/ctype-blank-tests (Files): Likewise.
69566         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
69567         * modules/unictype/ctype-digit-tests (Files): Likewise.
69568         * modules/unictype/ctype-graph-tests (Files): Likewise.
69569         * modules/unictype/ctype-lower-tests (Files): Likewise.
69570         * modules/unictype/ctype-print-tests (Files): Likewise.
69571         * modules/unictype/ctype-punct-tests (Files): Likewise.
69572         * modules/unictype/ctype-space-tests (Files): Likewise.
69573         * modules/unictype/ctype-upper-tests (Files): Likewise.
69574         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
69575         * modules/unictype/decimal-digit-tests (Files): Likewise.
69576         * modules/unictype/digit-tests (Files): Likewise.
69577         * modules/unictype/mirror-tests (Files): Likewise.
69578         * modules/unictype/numeric-tests (Files): Likewise.
69579         * modules/unictype/property-alphabetic-tests (Files): Likewise.
69580         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
69581         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
69582         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
69583         Likewise.
69584         * modules/unictype/property-bidi-block-separator-tests (Files):
69585         Likewise.
69586         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
69587         Likewise.
69588         * modules/unictype/property-bidi-common-separator-tests (Files):
69589         Likewise.
69590         * modules/unictype/property-bidi-control-tests (Files): Likewise.
69591         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
69592         Likewise.
69593         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
69594         Likewise.
69595         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
69596         Likewise.
69597         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
69598         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
69599         Likewise.
69600         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
69601         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
69602         Likewise.
69603         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
69604         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
69605         * modules/unictype/property-bidi-segment-separator-tests (Files):
69606         Likewise.
69607         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
69608         * modules/unictype/property-byname-tests (Files): Likewise.
69609         * modules/unictype/property-combining-tests (Files): Likewise.
69610         * modules/unictype/property-composite-tests (Files): Likewise.
69611         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
69612         * modules/unictype/property-dash-tests (Files): Likewise.
69613         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
69614         * modules/unictype/property-default-ignorable-code-point-tests (Files):
69615         Likewise.
69616         * modules/unictype/property-deprecated-tests (Files): Likewise.
69617         * modules/unictype/property-diacritic-tests (Files): Likewise.
69618         * modules/unictype/property-extender-tests (Files): Likewise.
69619         * modules/unictype/property-format-control-tests (Files): Likewise.
69620         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
69621         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
69622         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
69623         * modules/unictype/property-hex-digit-tests (Files): Likewise.
69624         * modules/unictype/property-hyphen-tests (Files): Likewise.
69625         * modules/unictype/property-id-continue-tests (Files): Likewise.
69626         * modules/unictype/property-id-start-tests (Files): Likewise.
69627         * modules/unictype/property-ideographic-tests (Files): Likewise.
69628         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
69629         * modules/unictype/property-ids-trinary-operator-tests (Files):
69630         Likewise.
69631         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
69632         * modules/unictype/property-iso-control-tests (Files): Likewise.
69633         * modules/unictype/property-join-control-tests (Files): Likewise.
69634         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
69635         * modules/unictype/property-line-separator-tests (Files): Likewise.
69636         * modules/unictype/property-logical-order-exception-tests (Files):
69637         Likewise.
69638         * modules/unictype/property-lowercase-tests (Files): Likewise.
69639         * modules/unictype/property-math-tests (Files): Likewise.
69640         * modules/unictype/property-non-break-tests (Files): Likewise.
69641         * modules/unictype/property-not-a-character-tests (Files): Likewise.
69642         * modules/unictype/property-numeric-tests (Files): Likewise.
69643         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
69644         * modules/unictype/property-other-default-ignorable-code-point-tests
69645         (Files): Likewise.
69646         * modules/unictype/property-other-grapheme-extend-tests (Files):
69647         Likewise.
69648         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
69649         * modules/unictype/property-other-id-start-tests (Files): Likewise.
69650         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
69651         * modules/unictype/property-other-math-tests (Files): Likewise.
69652         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
69653         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
69654         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
69655         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
69656         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
69657         * modules/unictype/property-private-use-tests (Files): Likewise.
69658         * modules/unictype/property-punctuation-tests (Files): Likewise.
69659         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
69660         * modules/unictype/property-radical-tests (Files): Likewise.
69661         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
69662         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
69663         * modules/unictype/property-space-tests (Files): Likewise.
69664         * modules/unictype/property-terminal-punctuation-tests (Files):
69665         Likewise.
69666         * modules/unictype/property-test-tests (Files): Likewise.
69667         * modules/unictype/property-titlecase-tests (Files): Likewise.
69668         * modules/unictype/property-unassigned-code-value-tests (Files):
69669         Likewise.
69670         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
69671         * modules/unictype/property-uppercase-tests (Files): Likewise.
69672         * modules/unictype/property-variation-selector-tests (Files): Likewise.
69673         * modules/unictype/property-white-space-tests (Files): Likewise.
69674         * modules/unictype/property-xid-continue-tests (Files): Likewise.
69675         * modules/unictype/property-xid-start-tests (Files): Likewise.
69676         * modules/unictype/property-zero-width-tests (Files): Likewise.
69677         * modules/unictype/scripts-tests (Files): Likewise.
69678         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
69679         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
69680         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
69681         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
69682         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
69683         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
69684         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
69685         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
69686         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
69687         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
69688         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
69689         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
69690         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
69691         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
69692         * modules/uninorm/composition-tests (Files): Likewise.
69693         * modules/uninorm/decomposing-form-tests (Files): Likewise.
69694         * modules/uninorm/decomposition-tests (Files): Likewise.
69695         * modules/uninorm/filter-tests (Files): Likewise.
69696         * modules/uninorm/nfc-tests (Files): Likewise.
69697         * modules/uninorm/nfd-tests (Files): Likewise.
69698         * modules/uninorm/nfkc-tests (Files): Likewise.
69699         * modules/uninorm/nfkd-tests (Files): Likewise.
69700         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
69701         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
69702         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
69703         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
69704         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
69705         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
69706         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
69707         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
69708         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
69709         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
69710         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
69711         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
69712         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
69713         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
69714         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
69715         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
69716         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
69717         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
69718         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
69719         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
69720         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
69721         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
69722         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
69723         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
69724         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
69725         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
69726         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
69727         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
69728         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
69729         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
69730         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
69731         * modules/uniwidth/u8-width-tests (Files): Likewise.
69732         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
69733         * modules/uniwidth/u16-width-tests (Files): Likewise.
69734         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
69735         * modules/uniwidth/u32-width-tests (Files): Likewise.
69736         * modules/uniwidth/width-tests (Files): Likewise.
69737         * modules/unlink-tests (Files): Likewise.
69738         * modules/unsetenv-tests (Files): Likewise.
69739         * modules/usleep-tests (Files): Likewise.
69740         * modules/utimens-tests (Files): Likewise.
69741         * modules/utimensat-tests (Files): Likewise.
69742         * modules/vasnprintf-posix-tests (Files): Likewise.
69743         * modules/vasnprintf-tests (Files): Likewise.
69744         * modules/vasprintf-posix-tests (Files): Likewise.
69745         * modules/vasprintf-tests (Files): Likewise.
69746         * modules/vdprintf-posix-tests (Files): Likewise.
69747         * modules/vfprintf-posix-tests (Files): Likewise.
69748         * modules/vprintf-posix-tests (Files): Likewise.
69749         * modules/vsnprintf-posix-tests (Files): Likewise.
69750         * modules/vsnprintf-tests (Files): Likewise.
69751         * modules/vsprintf-posix-tests (Files): Likewise.
69752         * modules/wcrtomb-tests (Files): Likewise.
69753         * modules/wcsnrtombs-tests (Files): Likewise.
69754         * modules/wcsrtombs-tests (Files): Likewise.
69755         * modules/wctype-tests (Files): Likewise.
69756         * modules/wcwidth-tests (Files): Likewise.
69757         * modules/xmemdup0-tests (Files): Likewise.
69758         * modules/xprintf-posix-tests (Files): Likewise.
69759         * modules/xvasprintf-tests (Files): Likewise.
69761 2009-12-24  Eric Blake  <ebb9@byu.net>
69763         test-nanosleep: fix typo
69764         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
69765         patch.
69766         Reported by Bruno Haible.
69768 2009-12-24  Bruno Haible  <bruno@clisp.org>
69770         Reduce namespace pollution on glibc systems.
69771         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
69772         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
69773         systems.
69774         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
69775         <getopt.h> on glibc systems.
69776         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
69777         systems.
69778         * lib/fcntl.c: Include <unistd.h> here instead.
69780 2009-12-24  Bruno Haible  <bruno@clisp.org>
69782         * lib/stdlib.in.h (includes): Fix typo in today's commit.
69784 2009-12-24  Eric Blake  <ebb9@byu.net>
69786         tests: add signature checks
69787         * tests/signature.h (SIGNATURE_CHECK): New file.
69788         * modules/atexit-tests (Files): Use it.
69789         * modules/btowc-tests (Files): Likewise.
69790         * modules/canonicalize-lgpl-tests (Files): Likewise.
69791         * modules/ceilf-tests (Files): Likewise.
69792         * modules/ceill-tests (Files): Likewise.
69793         * modules/chown-tests (Files): Likewise.
69794         * modules/dprintf-posix-tests (Files): Likewise.
69795         * modules/dup2-tests (Files): Likewise.
69796         * modules/dup3-tests (Files): Likewise.
69797         * modules/duplocale-tests (Files): Likewise.
69798         * modules/fchdir-tests (Files): Likewise.
69799         * modules/fcntl-tests (Files): Likewise.
69800         * modules/fdopendir-tests (Files): Likewise.
69801         * modules/fflush-tests (Files): Likewise.
69802         * modules/flock-tests (Files): Likewise.
69803         * modules/floorf-tests (Files): Likewise.
69804         * modules/floorl-tests (Files): Likewise.
69805         * modules/fnmatch-tests (Files): Likewise.
69806         * modules/fopen-tests (Files): Likewise.
69807         * modules/fprintf-posix-tests (Files): Likewise.
69808         * modules/freopen-tests (Files): Likewise.
69809         * modules/frexp-nolibm-tests (Files): Likewise.
69810         * modules/frexp-tests (Files): Likewise.
69811         * modules/frexpl-nolibm-tests (Files): Likewise.
69812         * modules/frexpl-tests (Files): Likewise.
69813         * modules/fseek-tests (Files): Likewise.
69814         * modules/fseeko-tests (Files): Likewise.
69815         * modules/fsync-tests (Files): Likewise.
69816         * modules/ftell-tests (Files): Likewise.
69817         * modules/ftello-tests (Files): Likewise.
69818         * modules/futimens-tests (Files): Likewise.
69819         * modules/getaddrinfo-tests (Files): Likewise.
69820         * modules/getcwd-tests (Files): Likewise.
69821         * modules/getdelim-tests (Files): Likewise.
69822         * modules/getdtablesize-tests (Files): Likewise.
69823         * modules/getgroups-tests (Files): Likewise.
69824         * modules/gethostname-tests (Files): Likewise.
69825         * modules/getline-tests (Files): Likewise.
69826         * modules/getopt-posix-tests (Files): Likewise.
69827         * modules/gettimeofday-tests (Files): Likewise.
69828         * modules/glob-tests (Files): Likewise.
69829         * modules/iconv-tests (Files): Likewise.
69830         * modules/inet_ntop-tests (Files): Likewise.
69831         * modules/inet_pton-tests (Files): Likewise.
69832         * modules/isblank-tests (Files): Likewise.
69833         * modules/lchown-tests (Files): Likewise.
69834         * modules/ldexpl-tests (Files): Likewise.
69835         * modules/link-tests (Files): Likewise.
69836         * modules/linkat-tests (Files): Likewise.
69837         * modules/lseek-tests (Files): Likewise.
69838         * modules/lstat-tests (Files): Likewise.
69839         * modules/mbrtowc-tests (Files): Likewise.
69840         * modules/mbsinit-tests (Files): Likewise.
69841         * modules/mbsnrtowcs-tests (Files): Likewise.
69842         * modules/mbsrtowcs-tests (Files): Likewise.
69843         * modules/memchr-tests (Files): Likewise.
69844         * modules/memcmp-tests (Files): Likewise.
69845         * modules/memmem-tests (Files): Likewise.
69846         * modules/memrchr-tests (Files): Likewise.
69847         * modules/mkdir-tests (Files): Likewise.
69848         * modules/mkfifo-tests (Files): Likewise.
69849         * modules/mkfifoat-tests (Files): Likewise.
69850         * modules/mknod-tests (Files): Likewise.
69851         * modules/nanosleep-tests (Files): Likewise.
69852         * modules/nl_langinfo-tests (Files): Likewise.
69853         * modules/obstack-printf-tests (Files): Likewise.
69854         * modules/open-tests (Files): Likewise.
69855         * modules/openat-tests (Files): Likewise.
69856         * modules/perror-tests (Files): Likewise.
69857         * modules/pipe2-tests (Files): Likewise.
69858         * modules/poll-tests (Files): Likewise.
69859         * modules/popen-tests (Files): Likewise.
69860         * modules/posix_spawn-tests (Files): Likewise.
69861         * modules/posix_spawnp-tests (Files): Likewise.
69862         * modules/pread-tests (Files): Likewise.
69863         * modules/printf-posix-tests (Files): Likewise.
69864         * modules/pty-tests (Files): Likewise.
69865         * modules/random_r-tests (Files): Likewise.
69866         * modules/rawmemchr-tests (Files): Likewise.
69867         * modules/readlink-tests (Files): Likewise.
69868         * modules/remove-tests (Files): Likewise.
69869         * modules/rename-tests (Files): Likewise.
69870         * modules/renameat-tests (Files): Likewise.
69871         * modules/rmdir-tests (Files): Likewise.
69872         * modules/round-tests (Files): Likewise.
69873         * modules/roundf-tests (Files): Likewise.
69874         * modules/roundl-tests (Files): Likewise.
69875         * modules/select-tests (Files): Likewise.
69876         * modules/setenv-tests (Files): Likewise.
69877         * modules/sigaction-tests (Files): Likewise.
69878         * modules/sleep-tests (Files): Likewise.
69879         * modules/snprintf-posix-tests (Files): Likewise.
69880         * modules/snprintf-tests (Files): Likewise.
69881         * modules/sprintf-posix-tests (Files): Likewise.
69882         * modules/stat-tests (Files): Likewise.
69883         * modules/strcasestr-tests (Files): Likewise.
69884         * modules/strchrnul-tests (Files): Likewise.
69885         * modules/strerror-tests (Files): Likewise.
69886         * modules/strsignal-tests (Files): Likewise.
69887         * modules/strstr-tests (Files): Likewise.
69888         * modules/strtod-tests (Files): Likewise.
69889         * modules/strverscmp-tests (Files): Likewise.
69890         * modules/symlink-tests (Files): Likewise.
69891         * modules/symlinkat-tests (Files): Likewise.
69892         * modules/times-tests (Files): Likewise.
69893         * modules/trunc-tests (Files): Likewise.
69894         * modules/truncf-tests (Files): Likewise.
69895         * modules/truncl-tests (Files): Likewise.
69896         * modules/tsearch-tests (Files): Likewise.
69897         * modules/uname-tests (Files): Likewise.
69898         * modules/unlink-tests (Files): Likewise.
69899         * modules/unsetenv-tests (Files): Likewise.
69900         * modules/usleep-tests (Files): Likewise.
69901         * modules/utimensat-tests (Files): Likewise.
69902         * modules/vasprintf-tests (Files): Likewise.
69903         * modules/vdprintf-posix-tests (Files): Likewise.
69904         * modules/vfprintf-posix-tests (Files): Likewise.
69905         * modules/vprintf-posix-tests (Files): Likewise.
69906         * modules/vsnprintf-posix-tests (Files): Likewise.
69907         * modules/vsnprintf-tests (Files): Likewise.
69908         * modules/vsprintf-posix-tests (Files): Likewise.
69909         * modules/wcrtomb-tests (Files): Likewise.
69910         * modules/wcsnrtombs-tests (Files): Likewise.
69911         * modules/wcsrtombs-tests (Files): Likewise.
69912         * modules/wcwidth-tests (Files): Likewise.
69913         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
69914         * tests/test-isinf.c (isinf): Likewise.
69915         * tests/test-isnan.c (isnan): Likewise.
69916         * tests/test-signbit.c (signbit): Likewise.
69917         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
69918         declaration, either as macro or with correct signature.
69919         (select): Ensure function under test is declared with correct
69920         signature in correct header.
69921         * tests/test-atexit.c (atexit): Likewise.
69922         * tests/test-btowc.c (btowc): Likewise.
69923         * tests/test-canonicalize-lgpl.c (realpath)
69924         (canonicalize_file_name): Likewise.
69925         * tests/test-ceilf1.c (ceilf): Likewise.
69926         * tests/test-ceill.c (ceill): Likewise.
69927         * tests/test-chown.c (chown): Likewise.
69928         * tests/test-dprintf-posix.c (dprintf): Likewise.
69929         * tests/test-dup2.c (dup2): Likewise.
69930         * tests/test-dup3.c (dup3): Likewise.
69931         * tests/test-duplocale.c (duplocale): Likewise.
69932         * tests/test-fchdir.c (fchdir): Likewise.
69933         * tests/test-fchownat.c (fchownat): Likewise.
69934         * tests/test-fcntl.c (fcntl): Likewise.
69935         * tests/test-fdopendir.c (fdopendir): Likewise.
69936         * tests/test-fflush.c (fflush): Likewise.
69937         * tests/test-flock.c (flock): Likewise.
69938         * tests/test-floorf1.c (floorf): Likewise.
69939         * tests/test-floorl.c (floorl): Likewise.
69940         * tests/test-fnmatch.c (fnmatch): Likewise.
69941         * tests/test-fopen.c (fopen): Likewise.
69942         * tests/test-fprintf-posix.c (fprintf): Likewise.
69943         * tests/test-freopen.c (freopen): Likewise.
69944         * tests/test-frexp.c (frexp): Likewise.
69945         * tests/test-frexpl.c (frexpl): Likewise.
69946         * tests/test-fseek.c (fseek): Likewise.
69947         * tests/test-fseeko.c (fseeko): Likewise.
69948         * tests/test-fstatat.c (fstatat): Likewise.
69949         * tests/test-fsync.c (fsync): Likewise.
69950         * tests/test-ftell.c (ftell): Likewise.
69951         * tests/test-ftello.c (ftello): Likewise.
69952         * tests/test-futimens.c (futimens): Likewise.
69953         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
69954         (gai_strerror): Likewise.
69955         * tests/test-getcwd.c (getcwd): Likewise.
69956         * tests/test-getdelim.c (getdelim): Likewise.
69957         * tests/test-getdtablesize.c (getdtablesize): Likewise.
69958         * tests/test-getgroups.c (getgroups): Likewise.
69959         * tests/test-gethostname.c (gethostname): Likewise.
69960         * tests/test-getline.c (getline): Likewise.
69961         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
69962         Likewise.
69963         * tests/test-gettimeofday.c (gettimeofday): Likewise.
69964         * tests/test-glob.c (glob, globfree): Likewise.
69965         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
69966         * tests/test-inet_ntop.c (inet_ntop): Likewise.
69967         * tests/test-inet_pton.c (inet_pton): Likewise.
69968         * tests/test-isblank.c (isblank): Likewise.
69969         * tests/test-lchown.c (lchown): Likewise.
69970         * tests/test-ldexpl.c (ldexpl): Likewise.
69971         * tests/test-link.c (link): Likewise.
69972         * tests/test-linkat.c (linkat): Likewise.
69973         * tests/test-lseek.c (lseek): Likewise.
69974         * tests/test-lstat.c (lstat): Likewise.
69975         * tests/test-mbrtowc.c (mbrtowc): Likewise.
69976         * tests/test-mbsinit.c (mbsinit): Likewise.
69977         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
69978         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
69979         * tests/test-memchr.c (memchr): Likewise.
69980         * tests/test-memcmp.c (memcmp): Likewise.
69981         * tests/test-memmem.c (memmem): Likewise.
69982         * tests/test-memrchr.c (memrchr): Likewise.
69983         * tests/test-mkdir.c (mkdir): Likewise.
69984         * tests/test-mkdirat.c (mkdirat): Likewise.
69985         * tests/test-mkfifo.c (mkfifo): Likewise.
69986         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
69987         * tests/test-mknod.c (mknod): Likewise.
69988         * tests/test-nanosleep.c (nanosleep): Likewise.
69989         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
69990         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
69991         Likewise.
69992         * tests/test-open.c (open): Likewise.
69993         * tests/test-openat.c (openat): Likewise.
69994         * tests/test-perror.c (perror): Likewise.
69995         * tests/test-pipe2.c (pipe2): Likewise.
69996         * tests/test-poll.c (poll): Likewise.
69997         * tests/test-popen.c (popen, pclose): Likewise.
69998         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
69999         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
70000         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
70001         (posix_spawn_file_actions_destroy)
70002         (posix_spawn_file_actions_addclose)
70003         (posix_spawn_file_actions_addopen)
70004         (posix_spawn_file_actions_adddup2): Likewise.
70005         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
70006         * tests/test-pread.c (pread): Likewise.
70007         * tests/test-printf-posix.c (printf): Likewise.
70008         * tests/test-pty.c (openpty, forkpty): Likewise.
70009         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
70010         (random_r): Likewise.
70011         * tests/test-rawmemchr.c (rawmemchr): Likewise.
70012         * tests/test-readlink.c (readlink): Likewise.
70013         * tests/test-remove.c (remove): Likewise.
70014         * tests/test-rename.c (rename): Likewise.
70015         * tests/test-renameat.c (renameat): Likewise.
70016         * tests/test-rmdir.c (rmdir): Likewise.
70017         * tests/test-round1.c (round): Likewise.
70018         * tests/test-roundf1.c (roundf): Likewise.
70019         * tests/test-roundl.c (roundl): Likewise.
70020         * tests/test-setenv.c (setenv): Likewise.
70021         * tests/test-sigaction.c (sigaction): Likewise.
70022         * tests/test-sleep.c (sleep): Likewise.
70023         * tests/test-snprintf.c (snprintf): Likewise.
70024         * tests/test-sprintf-posix.c (sprintf): Likewise.
70025         * tests/test-stat.c (stat): Likewise.
70026         * tests/test-stpncpy.c (stpncpy): Likewise.
70027         * tests/test-strcasestr.c (strcasestr): Likewise.
70028         * tests/test-strchrnul.c (strchrnul): Likewise.
70029         * tests/test-strerror.c (strerror): Likewise.
70030         * tests/test-strsignal.c (strsignal): Likewise.
70031         * tests/test-strstr.c (strstr): Likewise.
70032         * tests/test-strtod.c (strtod): Likewise.
70033         * tests/test-strverscmp.c (strverscmp): Likewise.
70034         * tests/test-symlink.c (symlink): Likewise.
70035         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
70036         * tests/test-times.c (times): Likewise.
70037         * tests/test-trunc1.c (trunc): Likewise.
70038         * tests/test-truncf1.c (truncf): Likewise.
70039         * tests/test-truncl.c (truncl): Likewise.
70040         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
70041         Likewise.
70042         * tests/test-uname.c (uname): Likewise.
70043         * tests/test-unlink.c (unlink): Likewise.
70044         * tests/test-unlinkat.c (unlinkat): Likewise.
70045         * tests/test-unsetenv.c (unsetenv): Likewise.
70046         * tests/test-usleep.c (usleep): Likewise.
70047         * tests/test-utimensat.c (utimensat): Likewise.
70048         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
70049         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
70050         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
70051         * tests/test-vprintf-posix.c (vprintf): Likewise.
70052         * tests/test-vsnprintf.c (vsnprintf): Likewise.
70053         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
70054         * tests/test-wcrtomb.c (wcrtomb): Likewise.
70055         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
70056         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
70057         * tests/test-wcwidth.c (wcwidth): Likewise.
70059         build: pull in conditional headers during GNULIB_POSIXCHECK
70060         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
70061         definitions from any conditionally-included headers.
70062         * lib/stdlib.in.h (includes): Likewise.
70063         * lib/unistd.in.h (includes): Likewise.
70065 2009-12-24  Bruno Haible  <bruno@clisp.org>
70067         * tests/test-argv-iter.c: Include header file being tested immediately
70068         after config.h.
70069         * tests/test-base64.c: Likewise.
70070         * tests/test-flock.c: Likewise.
70071         * tests/test-fsync.c: Likewise.
70072         * tests/test-getdate.c: Likewise.
70073         * tests/test-getndelim2.c: Likewise.
70074         * tests/test-isfinite.c: Likewise.
70075         * tests/test-isinf.c: Likewise.
70076         * tests/test-strerror.c: Likewise.
70077         * tests/test-strsignal.c: Likewise.
70079 2009-12-23  Eric Blake  <ebb9@byu.net>
70081         unistd: work around cygwin bug
70082         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
70083         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
70084         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
70086 2009-12-23  Bruno Haible  <bruno@clisp.org>
70088         localename: More tests.
70089         * tests/test-localename.c (SIZEOF): New macro.
70090         (categories): New variable.
70091         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
70092         test_locale_name_default): Add test w.r.t. thread locale.
70093         (test_locale_name_thread): New function.
70094         (main): Invoke it.
70096         localename: Make aware of thread locale.
70097         * lib/localename.h (gl_locale_name_thread): New declaration.
70098         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
70099         behaviour with respect to thread locale.
70100         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
70101         <langinfo.h>, glthread/lock.h.
70102         (SIZE_BITS): New macro.
70103         (string_hash): New function.
70104         (struct hash_node): New type.
70105         (HASH_TABLE_SIZE): New macro.
70106         (struniq_hash_table, struniq_lock): New variables.
70107         (struniq): New function.
70108         (gl_locale_name_thread): New function.
70109         (gl_locale_name): Invoke it.
70110         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
70111         * modules/localename (Depends-on): Add lock.
70112         Reported by Mike Gran <spk121@yahoo.com>.
70114 2009-12-23  Eric Blake  <ebb9@byu.net>
70116         va-args: new module
70117         * modules/va-args: New file.
70118         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
70119         * MODULES.html.sh (Core language properties): Mention it.
70121         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
70122         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
70123         named alias for __attribute__((__unused__)).
70124         * lib/chown.c: Update client.
70125         * lib/fchmodat.c: Likewise.
70126         * lib/fts.c: Likewise.
70127         * lib/getdate.y: Likewise.
70128         * lib/getgroups.c: Likewise.
70129         * lib/getopt.c: Likewise.
70130         * lib/getugroups.c: Likewise.
70131         * lib/mkdir.c: Likewise.
70132         * lib/mkfifo.c: Likewise.
70133         * lib/mkfifoat.c: Likewise.
70134         * lib/mknod.c: Likewise.
70135         * lib/mknodat.c: Likewise.
70136         * lib/readlink.c: Likewise.
70137         * lib/se-context.in.h: Likewise.
70138         * lib/se-selinux.in.h: Likewise.
70139         * lib/sockets.c: Likewise.
70140         * lib/symlink.c: Likewise.
70141         * lib/symlinkat.c: Likewise.
70142         * lib/unicodeio.c: Likewise.
70143         * lib/unistr.h: Likewise.
70144         * tests/test-areadlink.c: Likewise.
70145         * tests/test-areadlinkat.c: Likewise.
70146         * tests/test-filenamecat.c: Likewise.
70147         * tests/test-fseeko.c: Likewise.
70148         * tests/test-ftello.c: Likewise.
70149         * tests/test-getdate.c: Likewise.
70150         * tests/test-getgroups.c: Likewise.
70151         * tests/test-gethostname.c: Likewise.
70152         * tests/test-quotearg.c: Likewise.
70153         * tests/test-version-etc.c: Likewise.
70154         * tests/test-xalloc-die.c: Likewise.
70155         * tests/test-xfprintf-posix.c: Likewise.
70156         * tests/test-xprintf-posix.c: Likewise.
70157         * tests/test-xvasprintf.c: Likewise.
70159         tests: avoid compiler warnings
70160         * tests/test-fcntl.c (main): Delete unused parameters.
70161         * tests/test-freopen-safer.c (main): Likewise.
70162         * tests/test-xalloc-die.c (main): Mark unused parameters.
70163         * tests/test-fseeko.c (main): Likewise.
70164         * tests/test-ftello.c (main): Likewise.
70165         * tests/test-nanosleep.c (main): Avoid declaration warning.
70166         * tests/test-sleep.c (main): Likewise.
70167         * tests/test-unsetenv.c (main): Silence warning about string
70168         literal.
70169         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
70171 2009-12-23  Bruno Haible  <bruno@clisp.org>
70173         * tests/test-localename.c (test_locale_name): New function, extracted
70174         from main. Also test mixed situations.
70175         (test_locale_name_posix, test_locale_name_environ,
70176         test_locale_name_default): New functions.
70177         (main): Invoke them all.
70178         * modules/localename-tests (configure.ac): Test for newlocale.
70180 2009-12-23  Bruno Haible  <bruno@clisp.org>
70182         unistd: Ensure getcwd gets declared before being overridden.
70183         * lib/unistd.in.h: Conditionally include <io.h>.
70185 2009-12-22  Bruno Haible  <bruno@clisp.org>
70187         wchar: Diagnose broken combination of glibc and gcc versions and flags.
70188         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
70189         (gl_WCHAR_H): Invoke it.
70190         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
70191         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
70192         Reported by Karl Berry <karl@freefriends.org>.
70194 2009-12-22  Eric Blake  <ebb9@byu.net>
70196         math, unistd: avoid redundant includes
70197         * lib/math.in.h (isnan): No need to re-include <math.h>.
70198         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
70200         getsubopt: work around cygwin bug
70201         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
70202         avoid conflicting with system getsubopt.
70203         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
70204         bug.
70206         getopt: synchronize from glibc
70207         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
70208         parameter order.  Adjust all callers.
70209         (_getopt_internal_r, main): Adjust quoting in error messages.
70210         Drop considerations for outdated POSIX 1003.2 error message.
70211         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
70212         callers.
70213         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
70215         test-getopt: test stderr behavior
70216         * modules/getopt-posix-tests (Depends-on): Add dup2.
70217         * tests/test-getopt.c (ASSERT): Avoid stderr.
70218         (main): Move stderr to a temporary file.
70219         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
70220         Instead, add parameter to inform caller if output occurred.
70221         (test_getopt): Adjust all existing tests to expect silence, and
70222         add new tests of leading ":".
70223         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
70224         glibc shortcomings with leading "-:" or "+:" in optstring.
70225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70226         Likewise.
70227         * doc/posix-functions/getopt.texi (getopt): Likewise.
70229         test-getopt: enhance test
70230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
70231         supports optind=0.
70232         * tests/test-getopt.c (OPTIND_MIN): Move...
70233         * tests/test-getopt.h (OPTIND_MIN): ...here.
70234         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
70235         Require that optind=0 works, since modern BSD supports it in
70236         addition to optreset, and since coreutils expects it.
70237         (test_getopt_long_only): New test.
70238         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
70239         glibc shortcomings with 'W;', and enforcement of optind=0.
70240         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70241         Likewise.
70243 2009-12-21  Bruno Haible  <bruno@clisp.org>
70245         localename: Improvements for MacOS X and Cygwin.
70246         * lib/localename.h (gl_locale_name_environ): New declaration.
70247         * lib/localename.c (gl_locale_name_environ): New function, extracted from
70248         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
70249         (gl_locale_name_posix): Invoke it.
70250         (gl_locale_name_default): Add comments. Use Windows native API also on
70251         Cygwin.
70253 2009-12-21  Bruno Haible  <bruno@clisp.org>
70255         Update list of Win32 locale ids.
70256         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
70257         (LANG_SAMI): Renamed from LANG_SAAMI.
70258         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
70259         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
70260         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
70261         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
70262         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
70263         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
70264         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
70265         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
70266         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
70267         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
70268         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
70269         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
70270         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
70271         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
70272         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
70273         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
70274         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
70275         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
70276         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
70277         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
70278         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
70279         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
70280         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
70281         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
70282         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
70283         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
70284         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
70285         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
70286         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
70287         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
70288         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
70289         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
70290         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
70291         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
70292         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
70293         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
70294         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
70295         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
70296         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
70297         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
70298         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
70299         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
70300         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
70301         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
70302         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
70303         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
70304         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
70305         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
70306         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
70307         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
70308         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
70309         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
70310         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
70311         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
70312         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
70313         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
70314         Add more languages and countries for Sami, Sorbian. Add more countries
70315         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
70316         for Pashto. Change country for Syriac, Tswana.
70318 2009-12-21  Eric Blake  <ebb9@byu.net>
70320         test-utimens: avoid spurious failure
70321         * tests/test-chown.h (nap): Factor...
70322         * tests/nap.h: ...into new file.
70323         * tests/test-lchown.h (nap): Avoid duplication.
70324         * tests/test-utimens-common.h (nap): Use shared implementation,
70325         necessary on file systems with 1-second resolution.
70326         * modules/chown-tests (Files): Include new file.
70327         * modules/fdutimensat-tests (Files): Likewise.
70328         * modules/futimens-tests (Files): Likewise.
70329         * modules/lchown-tests (Files): Likewise.
70330         * modules/openat-tests (Files): Likewise.
70331         * modules/utimens-tests (Files): Likewise.
70332         * modules/utimensat-tests (Files): Likewise.
70334 2009-12-19  Eric Blake  <ebb9@byu.net>
70336         futimens, utimensat: work around Linux bug
70337         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
70338         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70339         * lib/utimensat.c (rpl_utimensat): Work around it.
70340         * lib/futimens.c (rpl_futimens): Adjust comment.
70342         utimens: work around Linux ctime bug
70343         * lib/utimens.c (detect_ctime_bug): New helper function.
70344         (update_timespec): Differentiate between workaround needed for
70345         this bug vs. what is needed for systems that lack utimensat.
70346         (fdutimens, lutimens): Work around bug.
70348         utimens: check for ctime update
70349         * tests/test-utimens-common.h (check_ctime): Define.
70350         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
70351         * tests/test-futimens.h (test_futimens): Likewise.
70352         * tests/test-lutimens.h (test_lutimens): Likewise.
70353         * doc/posix-functions/futimens.texi (futimens): Document the bug.
70354         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
70356 2009-12-19  Bruno Haible  <bruno@clisp.org>
70358         dprintf-posix: Check against memory leak fixed on 2009-12-15.
70359         * tests/test-dprintf-posix2.sh: New file.
70360         * tests/test-dprintf-posix2.c: New file.
70361         * modules/dprintf-posix-tests (Files): Add them.
70362         (configure.ac): Check for getrlimit and setrlimit.
70363         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
70365 2009-12-19  Bruno Haible  <bruno@clisp.org>
70367         fprintf-posix: Check against memory leak fixed on 2009-12-15.
70368         * tests/test-fprintf-posix3.sh: New file.
70369         * tests/test-fprintf-posix3.c: New file.
70370         * modules/fprintf-posix-tests (Files): Add them.
70371         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
70373 2009-12-19  Eric Blake  <ebb9@byu.net>
70375         dirfd: fix prototype
70376         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
70377         * lib/dirfd.c (dirfd): Likewise.
70379         canonicalize: reduce memory usage
70380         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
70381         allocation to size.
70382         Reported by Solar Designer <solar@openwall.com>.
70384 2009-12-19  Bruno Haible  <bruno@clisp.org>
70386         New module attribute 'Applicability'.
70387         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
70388         * gnulib-tool: New option --extract-applicability.
70389         (func_usage): Document it.
70390         (sed_extract_prog): Recognize it.
70391         (func_get_applicability): New function.
70392         (func_import): Generalize handling of 'link-warning' module.
70393         * modules/link-warning (Applicability): New section.
70394         * modules/arg-nonnull (Applicability): New section.
70395         Repoted by Simon Josefsson <simon@josefsson.org>.
70397 2009-12-19  Bruno Haible  <bruno@clisp.org>
70399         fflush: tweak
70400         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
70401         * lib/fseeko.c (rpl_fseeko): Likewise.
70403 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
70405         * lib/gl_list.h: Fix typo in comment.
70407 2009-12-16  Eric Blake  <ebb9@byu.net>
70409         fcntl: use to simplify other modules
70410         * modules/cloexec (Depends-on): Add fcntl.
70411         * modules/fchdir (Depends-on): Likewise.
70412         * modules/fd-safer-flag (Depends-on): Likewise.
70413         * modules/unistd-safer (Depends-on): Likewise.
70414         * modules/dup3 (configure.ac): Set module indicator.
70415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
70416         missing.
70417         * lib/fchdir.c (_gl_register_dup): Fix comment.
70418         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
70419         * lib/dup-safer.c (dup_safer): Likewise.
70420         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
70421         * lib/dup3.c (dup3): Likewise.
70422         * tests/test-fchdir.c (main): Enhance test.
70423         Fixes a dup_cloexec bug reported by Ondřej Vašík.
70425         fcntl: port portions of fcntl to mingw
70426         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
70427         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
70428         replacement for mingw.
70429         * modules/fcntl (Description): Update.
70430         (Depends-on): Add dup2.
70431         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
70432         * modules/fcntl-h (Makefile.am): Substitute it.
70433         * lib/fcntl.in.h (fcntl): Update declaration.
70434         (F_DUPFD, F_GETFD): New macros, when needed.
70435         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
70436         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
70437         * tests/test-fcntl.c (check_flags, main): Enhance test for items
70438         we now guarantee.
70440         fcntl: work around cygwin bug in F_DUPFD
70441         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
70442         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
70443         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
70444         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
70445         * doc/posix-functions/fcntl.texi (fcntl): Document it.
70447         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
70448         * modules/fcntl (Files): List new files.
70449         (configure.ac): Run a test.
70450         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
70451         * lib/fcntl.c (rpl_fcntl): Likewise.
70452         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
70453         (gl_FCNTL_H): Always replace fcntl.h.
70454         * modules/fcntl-h (Makefile.am): Substitute witnesses.
70455         * lib/fcntl.in.h (fcntl): Declare replacement.
70456         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
70457         needed, plus a witness.
70458         * doc/posix-functions/fcntl.texi (fcntl): Document this.
70459         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
70460         * tests/test-fcntl.c: New file.
70461         * modules/fcntl-tests: Likewise.
70463         binary-io: avoid potential compilation warning
70464         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
70465         directives.
70467         fflush: avoid compilation error on NetBSD
70468         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
70469         between off_t and fpos_t, since the latter is sometimes a struct.
70470         * lib/fseeko.c (rpl_fseeko): Likewise.
70471         Reported by Alexander Nasonov <alnsn@yandex.ru>.
70473 2009-12-15  Eric Blake  <ebb9@byu.net>
70475         fcntl-h, stdio, sys_ioctl: fix declarations
70476         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
70477         function must not take arguments.
70478         * lib/sys_ioctl.in.h (ioctl): Likewise.
70479         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
70480         (open): Add a link warning.
70482 2009-12-15  Jim Meyering  <meyering@redhat.com>
70484         areadlink, areadlink-with-size: relax license to LGPLv2+
70485         * modules/areadlink (License): Relax to LGPLv2+.
70486         * modules/areadlink-with-size (License): Likewise.
70488 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
70489             Bruno Haible  <bruno@clisp.org>
70491         *printf: Fix memory leak.
70492         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
70493         * lib/vfprintf.c (vfprintf): Likewise.
70494         * lib/dprintf.c (dprintf): Likewise.
70495         * lib/vdprintf.c (vdprintf): Likewise.
70497 2009-12-14  Eric Blake  <ebb9@byu.net>
70499         accept4: adjust module dependencies
70500         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
70502         utimens: one more try at avoiding compiler warning
70503         * lib/utimens.c (lutimens): Lower scope of result.
70505 2009-12-13  Bruno Haible  <bruno@clisp.org>
70507         Move the malloc checking from module 'list' to new module 'xlist'.
70508         * modules/xlist: New file.
70509         * lib/gl_xlist.h: New file.
70510         * lib/gl_xlist.c: New file.
70511         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
70512         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
70513         gl_list_add_last, gl_list_add_before, gl_list_add_after,
70514         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
70515         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
70516         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
70517         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
70518         gl_sortedlist_nx_add): New declarations.
70519         (struct gl_list_implementation): Rename and change methods accordingly.
70520         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
70521         (gl_list_nx_create): Renamed from gl_list_create.
70522         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
70523         (gl_list_nx_set_at): Renamed from gl_list_set_at.
70524         (gl_list_nx_add_first): Renamed from gl_list_add_first.
70525         (gl_list_nx_add_last): Renamed from gl_list_add_last.
70526         (gl_list_nx_add_before): Renamed from gl_list_add_before.
70527         (gl_list_nx_add_after): Renamed from gl_list_add_after.
70528         (gl_list_nx_add_at): Renamed from gl_list_add_at.
70529         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
70530         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
70531         gl_list_create_empty.
70532         (gl_list_nx_create): Renamed from gl_list_create.
70533         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
70534         (gl_list_nx_set_at): Renamed from gl_list_set_at.
70535         (gl_list_nx_add_first): Renamed from gl_list_add_first.
70536         (gl_list_nx_add_last): Renamed from gl_list_add_last.
70537         (gl_list_nx_add_before): Renamed from gl_list_add_before.
70538         (gl_list_nx_add_after): Renamed from gl_list_add_after.
70539         (gl_list_nx_add_at): Renamed from gl_list_add_at.
70540         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
70541         * lib/gl_array_list.c: Don't include xalloc.h.
70542         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
70543         NULL upon out-of-memory.
70544         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
70545         out-of-memory.
70546         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
70547         Change return type to 'int'.
70548         (gl_array_nx_set_at): Renamed from gl_array_set_at.
70549         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
70550         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
70551         upon out-of-memory.
70552         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
70553         upon out-of-memory.
70554         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
70555         upon out-of-memory.
70556         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
70557         upon out-of-memory.
70558         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
70559         out-of-memory.
70560         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
70561         Update.
70562         (gl_array_list_implementation): Update.
70563         * lib/gl_carray_list.c: Don't include xalloc.h.
70564         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
70565         Return NULL upon out-of-memory.
70566         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
70567         out-of-memory.
70568         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
70569         Change return type to 'int'.
70570         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
70571         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
70572         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
70573         upon out-of-memory.
70574         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
70575         upon out-of-memory.
70576         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
70577         out-of-memory.
70578         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
70579         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
70580         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
70581         Update.
70582         (gl_carray_list_implementation): Update.
70583         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
70584         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
70585         gl_linked_create_empty. Return NULL upon out-of-memory.
70586         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
70587         out-of-memory.
70588         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
70589         Change return type to 'int'. Return -1 upon out-of-memory.
70590         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
70591         out-of-memory.
70592         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
70593         upon out-of-memory.
70594         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
70595         upon out-of-memory.
70596         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
70597         NULL upon out-of-memory.
70598         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
70599         upon out-of-memory.
70600         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
70601         out-of-memory.
70602         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
70603         Update.
70604         * lib/gl_linked_list.c: Don't include xalloc.h.
70605         (gl_linked_list_implementation): Update.
70606         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
70607         (add_to_bucket): Change return type to 'int'.
70608         (gl_linkedhash_list_implementation): Update.
70609         * lib/gl_anytree_list1.h (free_subtree): New function.
70610         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
70611         gl_tree_create_empty. Return NULL upon out-of-memory.
70612         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
70613         Change return type to 'int'. Return -1 upon out-of-memory.
70614         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
70615         out-of-memory.
70616         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
70617         (gl_tree_remove_node): New function, moved here from
70618         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
70619         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
70620         Update.
70621         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
70622         malloc, not xmalloc. Return NULL upon out-of-memory.
70623         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
70624         out-of-memory.
70625         (gl_tree_remove_node_from_tree): New function, extracted from
70626         gl_tree_remove_node.
70627         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
70628         upon out-of-memory.
70629         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
70630         out-of-memory.
70631         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
70632         upon out-of-memory.
70633         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
70634         upon out-of-memory.
70635         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
70636         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
70637         not xmalloc. Return NULL upon out-of-memory.
70638         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
70639         out-of-memory.
70640         (gl_tree_remove_node_from_tree): New function, extracted from
70641         gl_tree_remove_node.
70642         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
70643         upon out-of-memory.
70644         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
70645         out-of-memory.
70646         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
70647         upon out-of-memory.
70648         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
70649         upon out-of-memory.
70650         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
70651         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
70652         gl_anytree_list1.h before gl_anyavltree_list2.h.
70653         (gl_avltree_list_implementation): Update.
70654         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
70655         gl_anytree_list1.h before gl_anyavltree_list2.h.
70656         (gl_rbtree_list_implementation): Update.
70657         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
70658         Change return type to 'int'. Return -1 upon out-of-memory. Use
70659         __builtin_expect.
70660         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
70661         (gl_avltreehash_list_implementation): Update.
70662         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
70663         (gl_rbtreehash_list_implementation): Update.
70664         * modules/array-list (Depends-on): Remove xalloc.
70665         * modules/carray-list (Depends-on): Likewise.
70666         * modules/linked-list (Depends-on): Likewise.
70667         * modules/linkedhash-list (Depends-on): Likewise.
70668         * modules/avltree-list (Depends-on): Likewise.
70669         * modules/rbtree-list (Depends-on): Likewise.
70670         * modules/avltreehash-list (Depends-on): Likewise.
70671         * modules/rbtreehash-list (Depends-on): Likewise.
70673         * modules/xsublist: New file.
70674         * lib/gl_xsublist.h: New file.
70675         * lib/gl_xsublist.c: New file.
70676         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
70677         (gl_sublist_nx_create): New declaration.
70678         * lib/gl_sublist.c: Don't include xalloc.h.
70679         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
70680         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
70681         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
70682         Change return type to 'int'. Return -1 upon out-of-memory.
70683         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
70684         upon out-of-memory.
70685         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
70686         NULL upon out-of-memory.
70687         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
70688         upon out-of-memory.
70689         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
70690         NULL upon out-of-memory.
70691         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
70692         NULL upon out-of-memory.
70693         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
70694         upon out-of-memory.
70695         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
70696         (gl_sublist_list_implementation): Update.
70697         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
70698         upon out-of-memory.
70699         * modules/sublist (Depends-on): Remove xalloc.
70701         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
70702         * tests/test-carray_list.c: Likewise.
70703         * tests/test-linked_list.c: Likewise.
70704         * tests/test-linkedhash_list.c: Likewise.
70705         * tests/test-avltree_list.c: Likewise.
70706         * tests/test-rbtree_list.c: Likewise.
70707         * tests/test-avltreehash_list.c: Likewise.
70708         * tests/test-rbtreehash_list.c: Likewise.
70709         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
70710         * modules/carray-list-tests (Makefile.am): Likewise.
70711         * modules/linked-list-tests (Makefile.am): Likewise.
70712         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70713         * modules/avltree-list-tests (Makefile.am): Likewise.
70714         * modules/rbtree-list-tests (Makefile.am): Likewise.
70715         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70716         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70718         * NEWS: Mention the changes.
70720         * lib/clean-temp.c: Include gl_xlist.h.
70721         * modules/clean-temp (Depends-on): Add xlist.
70723         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
70724         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
70726         * tests/test-array_oset.c: Include gl_xlist.h.
70727         * modules/array-oset-tests (Depends-on): Add xlist.
70729         Reported by José E. Marchesi <jemarch@gnu.org>.
70731 2009-12-13  Bruno Haible  <bruno@clisp.org>
70733         Move the malloc checking from module 'oset' to new module 'xoset'.
70734         * modules/xoset: New file.
70735         * lib/gl_xoset.h: New file.
70736         * lib/gl_xoset.c: New file.
70737         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
70738         declarations.
70739         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
70740         (struct gl_oset_implementation): Rename and change methods accordingly.
70741         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
70742         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
70743         'int'. Mark as __warn_unused_result__.
70744         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
70745         gl_oset_create_empty.
70746         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
70747         'int'.
70748         * lib/gl_array_oset.c: Don't include xalloc.h.
70749         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
70750         malloc, not xmalloc.
70751         (grow): Change return type to 'int'. Don't call xalloc_die.
70752         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
70753         to 'int'.
70754         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
70755         'int'.
70756         (gl_array_oset_implementation): Update.
70757         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
70758         gl_tree_create_empty.
70759         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
70760         'int'.
70761         * lib/gl_avltree_oset.c: Don't include xalloc.h.
70762         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
70763         xmalloc.
70764         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
70765         not xmalloc.
70766         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
70767         xmalloc.
70768         (gl_avltree_oset_implementation): Update.
70769         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
70770         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
70771         xmalloc.
70772         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
70773         not xmalloc.
70774         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
70775         xmalloc.
70776         (gl_rbtree_oset_implementation): Update.
70777         * modules/array-oset (Depends-on): Remove xalloc.
70778         * modules/avltree-oset (Depends-on): Likewise.
70779         * modules/rbtree-oset (Depends-on): Likewise.
70780         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
70781         * tests/test-avltree_oset.c: Likewise.
70782         * tests/test-rbtree_oset.c: Likewise.
70783         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70784         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
70785         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70786         * NEWS: Mention the change.
70788 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
70790         maint.mk: allow a project to override release-prep commands
70791         * top/maint.mk (alpha, beta, stable): Move release-preparatory
70792         commands into a new rule.
70793         (release-prep): New rule.
70794         (release-prep-hook): New overridable variable.
70796 2009-12-13  Bruno Haible  <bruno@clisp.org>
70798         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
70800 2009-12-13  Jim Meyering  <meyering@redhat.com>
70802         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
70803         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
70805 2009-12-12  Bruno Haible  <bruno@clisp.org>
70807         duplocale: Tweak.
70808         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
70810 2009-12-12  Karl Berry  <karl@gnu.org>
70812         * config/srclist.txt (strtoll.c): tab changes, no more sync.
70814 2009-12-12  Bruno Haible  <bruno@clisp.org>
70816         * m4/po.m4: Undo incorrect untabification.
70818 2009-12-12  Bruno Haible  <bruno@clisp.org>
70820         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
70821         * modules/c-strtod (Depends-on): Add locale.
70822         * modules/c-strtold (Depends-on): Likewise.
70824 2009-12-12  Bruno Haible  <bruno@clisp.org>
70826         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
70828 2009-12-11  Eric Blake  <ebb9@byu.net>
70830         setenv: relax requirement in light of POSIX ruling
70831         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
70832         not NULL.
70833         * tests/test-setenv.c (main): Relax test.
70834         * tests/test-unsetenv.c (main): Likewise.
70835         * doc/posix-functions/setenv.texi (setenv): Document this.
70836         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
70838 2009-12-11  Bruno Haible  <bruno@clisp.org>
70840         New module 'fd-safer-flag'.
70841         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
70842         * lib/dup-safer.c (dup_safer_flag): Remove function.
70843         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
70844         * lib/fd-safer.c (fd_safer_flag): Remove function.
70845         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
70846         * modules/cloexec (configure.ac): Drop indicator macro.
70847         * modules/fd-safer-flag: New file.
70848         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
70849         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
70850         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
70852 2009-12-11  Bruno Haible  <bruno@clisp.org>
70854         Tests for module 'nl_langinfo'.
70855         * modules/nl_langinfo-tests: New file.
70856         * tests/test-nl_langinfo.sh: New file.
70857         * tests/test-nl_langinfo.c: New file.
70859         New module 'nl_langinfo'.
70860         * lib/nl_langinfo.c: New file.
70861         * m4/nl_langinfo.m4: New file.
70862         * modules/nl_langinfo: New file.
70863         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
70865 2009-12-11  Bruno Haible  <bruno@clisp.org>
70867         Tests for module 'langinfo'.
70868         * modules/langinfo-tests: New file.
70869         * tests/test-langinfo.c: New file.
70871         New module 'langinfo'.
70872         * lib/langinfo.in.h: New file.
70873         * m4/langinfo_h.m4: New file.
70874         * modules/langinfo: New file.
70875         * doc/posix-headers/langinfo.texi: Mention the new module.
70877 2009-12-11  Bruno Haible  <bruno@clisp.org>
70879         * lib/config.charset: Untabify.
70881 2009-12-11  Bruno Haible  <bruno@clisp.org>
70883         * modules/unistd-safer (configure.ac): Drop indicator macro.
70885 2009-12-11  Bruno Haible  <bruno@clisp.org>
70887         Move pipe2-safer code to its own file.
70888         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
70889         * lib/pipe-safer.c (pipe2_safer): Remove function.
70890         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
70891         (Makefile.am): Add it to lib_SOURCES.
70893 2009-12-10  Bruno Haible  <bruno@clisp.org>
70895         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
70897 2009-12-10  Bruno Haible  <bruno@clisp.org>
70899         Declare which arguments expect non-NULL values, for GCC and clang.
70900         * build-aux/arg-nonnull.h: New file.
70901         * modules/arg-nonnull: New file.
70902         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
70903         (inet_ntop, inet_pton): Use it.
70904         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
70905         (closedir, dirfd, opendir, scandir, alphasort): Use it.
70906         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
70907         (open, openat): Use it.
70908         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
70909         (fnmatch): Use it.
70910         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
70911         (getopt, getopt_long, getopt_long_only): Use it.
70912         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
70913         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
70914         Use it.
70915         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
70916         (iconv_open): Use it.
70917         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
70918         (strtoimax, strtoumax): Use it.
70919         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
70920         (duplocale): Use it.
70921         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
70922         (frexp, frexpl): Use it.
70923         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
70924         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
70925         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
70926         (tsearch, tfind, tdelete, twalk): Use it.
70927         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
70928         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70929         sigpending): Use it.
70930         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
70931         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70932         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70933         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70934         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70935         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70936         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70937         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70938         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70939         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70940         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70941         Use it.
70942         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
70943         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
70944         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
70945         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
70946         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
70947         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
70948         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
70949         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
70950         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
70951         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
70952         strtoull, unsetenv): Use it.
70953         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
70954         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70955         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70956         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
70957         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
70958         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
70959         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
70960         (strcasecmp, strncasecmp): Use it.
70961         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
70962         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
70963         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
70964         rpl_setsockopt): Use it.
70965         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
70966         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
70967         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
70968         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
70969         (gettimeofday): Use it.
70970         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
70971         (times): Use it.
70972         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
70973         (uname): Use it.
70974         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
70975         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
70976         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
70977         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
70978         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
70979         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
70980         unlinkat, write): Use it.
70981         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
70982         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
70983         * lib/argv-iter.h: Include arg-nonnull.h.
70984         (_ATTRIBUTE_NONNULL_): Remove macro.
70985         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
70986         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
70987         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
70988         optimization.
70989         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
70990         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
70991         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
70992         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
70993         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
70994         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
70995         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
70996         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
70997         * modules/arpa_inet (Depends-on): Add arg-nonnull.
70998         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
70999         * modules/dirent (Depends-on): Add arg-nonnull.
71000         (Makefile.am): Insert arg-nonnull.h into dirent.h.
71001         * modules/fcntl-h (Depends-on): Add arg-nonnull.
71002         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
71003         * modules/fnmatch (Depends-on): Add arg-nonnull.
71004         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
71005         * modules/getopt-posix (Depends-on): Add arg-nonnull.
71006         (Makefile.am): Insert arg-nonnull.h into getopt.h.
71007         * modules/glob (Depends-on): Add arg-nonnull.
71008         (Makefile.am): Insert arg-nonnull.h into glob.h.
71009         * modules/iconv_open (Depends-on): Add arg-nonnull.
71010         (Makefile.am): Insert arg-nonnull.h into iconv.h.
71011         * modules/inttypes (Depends-on): Add arg-nonnull.
71012         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
71013         * modules/locale (Depends-on): Add arg-nonnull.
71014         (Makefile.am): Insert arg-nonnull.h into locale.h.
71015         * modules/math (Depends-on): Add arg-nonnull.
71016         (Makefile.am): Insert arg-nonnull.h into math.h.
71017         * modules/netdb (Depends-on): Add arg-nonnull.
71018         (Makefile.am): Insert arg-nonnull.h into netdb.h.
71019         * modules/search (Depends-on): Add arg-nonnull.
71020         (Makefile.am): Insert arg-nonnull.h into search.h.
71021         * modules/signal (Depends-on): Add arg-nonnull.
71022         (Makefile.am): Insert arg-nonnull.h into signal.h.
71023         * modules/spawn (Depends-on): Add arg-nonnull.
71024         (Makefile.am): Insert arg-nonnull.h into spawn.h.
71025         * modules/stdio (Depends-on): Add arg-nonnull.
71026         (Makefile.am): Insert arg-nonnull.h into stdio.h.
71027         * modules/stdlib (Depends-on): Add arg-nonnull.
71028         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
71029         * modules/string (Depends-on): Add arg-nonnull.
71030         (Makefile.am): Insert arg-nonnull.h into string.h.
71031         * modules/strings (Depends-on): Add arg-nonnull.
71032         (Makefile.am): Insert arg-nonnull.h into strings.h.
71033         * modules/sys_socket (Depends-on): Add arg-nonnull.
71034         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
71035         * modules/sys_stat (Depends-on): Add arg-nonnull.
71036         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
71037         * modules/sys_time (Depends-on): Add arg-nonnull.
71038         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
71039         * modules/sys_times (Depends-on): Add arg-nonnull.
71040         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
71041         * modules/sys_utsname (Depends-on): Add arg-nonnull.
71042         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
71043         * modules/time (Depends-on): Add arg-nonnull.
71044         (Makefile.am): Insert arg-nonnull.h into time.h.
71045         * modules/unistd (Depends-on): Add arg-nonnull.
71046         (Makefile.am): Insert arg-nonnull.h into unistd.h.
71047         * modules/wchar (Depends-on): Add arg-nonnull.
71048         (Makefile.am): Insert arg-nonnull.h into wchar.h.
71049         * modules/argv-iter (Depends-on): Add arg-nonnull.
71050         * tests/test-canonicalize.c (null_ptr): New function.
71051         (main): Use it.
71052         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
71053         (main): Use it.
71054         * tests/test-memmem.c (null_ptr): New function.
71055         (main): Use it.
71056         Reported by Jim Meyering.
71058 2009-12-10  Bruno Haible  <bruno@clisp.org>
71060         Use spaces for indentation, not tabs.
71061         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
71062         * m4/*.m4: Untabify.
71063         * build-aux/*.h: Untabify.
71064         * tests/**/*.[hc]: Untabify.
71065         * README: New section "Indent with spaces, not TABs", based on
71066         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
71067         * NEWS: Mention the change.
71069 2009-12-10  Bruno Haible  <bruno@clisp.org>
71071         pty test: Fix link error.
71072         * modules/pty-tests (Makefile.am): Add the default LDADD value to
71073         test_pty_LDADD.
71075 2009-12-07  Simon Josefsson  <simon@josefsson.org>
71077         * modules/pty: New file.
71078         * modules/pty-tests: New file.
71079         * m4/pty.m4: New file.
71080         * tests/test-pty.c: New file.
71081         * doc/glibc-headers/pty.texi: Modified.
71082         * doc/glibc-functions/forkpty.texi: Modified.
71083         * doc/glibc-functions/openpty.texi: Modified.
71085 2009-12-10  Bruno Haible  <bruno@clisp.org>
71087         Avoid syntax error in C++ mode.
71088         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
71090 2009-12-10  Bruno Haible  <bruno@clisp.org>
71092         Use sed with option -e.
71093         * gnulib-tool (func_version, func_emit_copyright_notice,
71094         func_emit_initmacro_end, func_import, func_create_testdir): Pass
71095         option -e to sed.
71096         * modules/link-warning (Makefile.am): Likewise.
71098 2009-12-10  Jim Meyering  <meyering@redhat.com>
71100         mgetgroups: do not write bytes beyond end of malloc'd buffer
71101         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
71102         username, we call getgroups with a one-element-shorter buffer,
71103         but still told it the length was original, max_n_groups.
71105 2009-12-09  Eric Blake  <ebb9@byu.net>
71107         cloexec: relax license
71108         * modules/cloexec (Maintainer): Add myself.
71109         (License): Use LGPL, not GPL.
71111         link-warning: optimize generation
71112         * modules/link-warning (Makefile.am): Reduce process usage.
71114 2009-12-09  Bruno Haible  <bruno@clisp.org>
71116         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
71117         workaround was added on 2009-11-17.
71119 2009-12-09  Jim Meyering  <meyering@redhat.com>
71120             Bruno Haible  <bruno@clisp.org>
71122         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
71123         * modules/link-warning (Makefile.am): Make the comment-removing sed
71124         command more robust in the face of bootstrap-prepended comment lines.
71126 2009-12-09  Bruno Haible  <bruno@clisp.org>
71128         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
71129         most one group.
71131 2009-12-09  Simon Josefsson  <simon@josefsson.org>
71132             Bruno Haible  <bruno@clisp.org>
71134         * build-aux/link-warning.h: Add copyright notice.
71135         * modules/link-warning (Makefile.am): Generate link-warning.h from
71136         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
71137         * NEWS: Mention change in link-warning module.
71138         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
71139         * modules/dirent (Makefile.am): Add dependency to dirent.h.
71140         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
71141         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
71142         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
71143         * modules/math (Makefile.am): Add dependency to math.h.
71144         * modules/search (Makefile.am): Add dependency to search.h.
71145         * modules/signal (Makefile.am): Add dependency to signal.h.
71146         * modules/spawn (Makefile.am): Add dependency to spawn.h.
71147         * modules/stdio (Makefile.am): Add dependency to stdio.h.
71148         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
71149         * modules/string (Makefile.am): Add dependency to string.h.
71150         * modules/strings (Makefile.am): Add dependency to strings.h.
71151         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
71152         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
71153         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
71154         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
71155         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
71156         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
71157         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
71158         * modules/unistd (Makefile.am): Add dependency to unistd.h.
71159         * modules/wchar (Makefile.am): Add dependency to wchar.h.
71161 2009-12-09  Bruno Haible  <bruno@clisp.org>
71163         fchdir: Optimize away rpl_fstat when possible.
71164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
71165         REPLACE_OPEN_DIRECTORY.
71166         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
71168 2009-12-09  Bruno Haible  <bruno@clisp.org>
71170         * lib/fchdir.c: Update comment.
71172 2009-12-09  Bruno Haible  <bruno@clisp.org>
71174         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
71176 2009-12-08  Eric Blake  <ebb9@byu.net>
71178         fchdir: avoid memory leak on re-registration.
71179         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
71181 2009-12-08  Jim Meyering  <meyering@redhat.com>
71183         init.sh: avoid Solaris 10 /bin/sh portability problem
71184         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
71185         sourced script:
71186           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
71187           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
71188           bar
71189         tests/init.sh relied on that, accepting a --set-path=DIR argument,
71190         and two tests used that idiom.
71191         * tests/init.sh: Update suggested usage comments.
71192         (path_prepend_): New function, to be used in place
71193         of the --src-path=DIR option.
71194         (setup_): Move PATH-prepending code into path_prepend_.
71195         * tests/test-pread.sh: Adapt to new usage.
71196         * tests/test-xalloc-die.sh: Likewise.
71198 2009-12-08  Simon Josefsson  <simon@josefsson.org>
71200         * doc/gnulib.texi (Glibc pty.h): Add.
71201         * doc/glibc-functions/forkpty.texi: Add.
71202         * doc/glibc-functions/openpty.texi: Add.
71203         Suggested by Bruno Haible.
71205 2009-12-08  Eric Blake  <ebb9@byu.net>
71207         fchdir: fix logic bugs
71208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
71209         * tests/test-fchdir.c (main): Enhance test.
71210         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
71211         is in use.
71213         dup2: fix logic bugs
71214         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
71215         REPLACE_DUP2 to decide when rpl_dup2 is needed.
71216         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
71217         exists.
71218         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
71220 2009-12-07  Eric Blake  <ebb9@byu.net>
71222         unlink: fix m4 detection
71223         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
71225         unistd-safer: add unit test
71226         * modules/unistd-safer-tests: New file.
71227         * tests/test-dup-safer.c: Likewise.
71228         * tests/test-cloexec.c (setmode): Avoid compiler warning.
71229         * tests/test-dup2.c (setmode): Likewise.
71230         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
71232         cloexec: preserve text vs. binary across dup_cloexec
71233         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
71234         mode.
71235         * modules/dup2-tests (Depends-on): Add binary-io.
71236         * modules/cloexec-tests (Depends-on): Likewise.
71237         * tests/test-dup2.c (setmode, is_mode): New helpers.
71238         (main): Add tests that translation mode is preserved.
71239         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
71240         Reported by Bruno Haible.
71242         mgetgroups: reduce duplicate listings
71243         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
71244         resulting array.
71245         * tests/test-chown.h (test_chown): Simplify client.
71246         * tests/test-lchown.h (test_lchown): Likewise.
71248 2009-12-06  Bruno Haible  <bruno@clisp.org>
71250         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
71251         value.
71253 2009-12-06  Bruno Haible  <bruno@clisp.org>
71255         * lib/progname.c: Include stdio.h, stdlib.h.
71256         (set_program_name): Reject a NULL argument.
71258 2009-12-05  Eric Blake  <ebb9@byu.net>
71260         pipe2-safer: new module
71261         * modules/pipe2-safer: New file.
71262         * lib/unistd-safer.h (pipe2_safer): New prototype.
71263         * lib/unistd--.h (pipe2): New wrapper.
71264         * lib/pipe-safer.c (pipe2_safer): New function.
71265         * modules/pipe (Depends-on): Add pipe2-safer.
71266         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
71268         stdlib-safer: preserve cloexec flag for mkostemp[s]
71269         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
71270         fd_safer_flag.
71272         unistd-safer: allow preservation of cloexec status via flag
71273         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
71274         prototypes.
71275         * lib/dup-safer.c (dup_safer_flag): New function.
71276         * lib/fd-safer.c (fd_safer_flag): Likewise.
71277         * modules/cloexec (configure.ac): Set witness.
71279         test-dup2: enhance test
71280         * modules/dup2-tests (Depends-on): Add cloexec.
71281         * tests/test-dup2.c (main): Enhance test.
71283         cloexec: add dup_cloexec
71284         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
71285         header and comments.
71286         * lib/cloexec.c (set_cloexec_flag): Add comments.
71287         (dup_cloexec): New function, with mingw implementation borrowed
71288         from...
71289         * lib/w32spawn.h (dup_noinherit): ...here.
71290         * modules/execute (Depends-on): Add cloexec.
71291         * modules/pipe (Depends-on): Likewise.
71292         * modules/cloexec (Depends-on): Add dup2.
71293         * modules/cloexec-tests (Files): New file.
71294         * tests/test-cloexec.c: Likewise.
71296         test-xalloc-die: fix test for mingw
71297         * modules/xalloc-die-tests (Files): Add tests/init.sh.
71298         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
71299         directory and .exe suffix off argv[0] output.
71301         test-fseeko: fix test for mingw
71302         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
71303         than undefining fseek, so test will pass on mingw.
71305 2009-12-05  Bruno Haible  <bruno@clisp.org>
71307         * lib/progname.h (set_program_name): Clarify specification.
71308         * lib/progname.c (set_program_name): Likewise.
71309         Reported by Jim Meyering.
71311 2009-12-05  Jim Meyering  <meyering@redhat.com>
71313         maint.mk: backslash-escape parens in default regexp
71314         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
71315         backslash-escape the literal parentheses.
71317         maint.mk: news-date-check: use grep -E
71318         * top/maint.mk (today): Define a Make variable, not a...
71319         (news-date-check): ...shell variable.
71320         (news-date-regexp): Use the Make variable.
71321         Use grep's -E option.  Change the failing diagnostic to mention
71322         the variable, $(news-date-regexp).
71324 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
71326         maintainer-makefile: allow customization of NEWS entry format
71327         * top/maint.mk (news-date-regexp): New overridable variable.
71328         (news-date-check): Use it.
71330 2009-12-04  Eric Blake  <ebb9@byu.net>
71332         mgetgroups: add xgetgroups, and avoid ENOSYS failures
71333         * lib/mgetgroups.h (xgetgroups): New prototype.
71334         * lib/mgetgroups.c (xgetgroups): New wrapper.
71335         (mgetgroups): Handle ENOSYS.
71336         * modules/mgetgroups (Depends-on): Add realloc.
71337         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
71339         mgetgroups: avoid argument promotion issues with -1
71340         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
71341         for invalid gid_t.
71342         * tests/test-chown.h (getegid, test_chown): Likewise.
71343         * tests/test-lchown.h (getegid, test_lchown): Likewise.
71345 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
71347         exclude: Fix header file problems.
71348         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
71350 2009-12-01  Jim Meyering  <meyering@redhat.com>
71352         fts: fts_open: do not let an empty string cause immediate failure
71353         This is required in support of GNU rm, for which the command
71354         "rm A '' B" must process and remove both A and B, in spite of
71355         the empty string argument.
71356         * lib/fts.c (fts_open): Do not let the presence of an empty string
71357         cause fts_open to fail immediately.  Most fts-using tools must be
71358         able to process all arguments, in order, and can be expected to
71359         diagnose such arguments themselves.
71361 2009-11-30  Eric Blake  <ebb9@byu.net>
71363         utimens: fix compilation error
71364         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
71365         Declare variable at right scope.
71367 2009-11-29  Jim Meyering  <meyering@redhat.com>
71369         bootstrap: handle perl-5.11's changed --version output
71370         * build-aux/bootstrap (get_version): Handle perl separately,
71371         since perl-5.11's --version output is different.
71373 2009-11-28  Jim Meyering  <meyering@redhat.com>
71375         userspec: depend on the inttostr module, too
71376         * modules/userspec (Depends-on): Add inttostr.
71378         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
71379         * lib/userspec.c (parse_with_separator): Do not accept a user ID
71380         number of MAXUID when it evaluates to (uid_t) -1.
71381         Likewise for group ID.  Reported by Matt McCutchen in
71382         <http://savannah.gnu.org/bugs/?28113>
71384         userspec: reformat to use spaces, not TABs
71385         * lib/userspec.c: Expand TABs to spaces.
71386         Add Emacs' "indent-tabs-mode: nil" hint.
71388 2009-11-27  Eric Blake  <ebb9@byu.net>
71390         getopt-gnu: flush out another BSD bug
71391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
71392         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
71393         flush out BSD bug.
71394         * tests/test-getopt.h (test_getopt): End lists with NULL.
71395         * tests/test-getopt_long.h (test_getopt_long): Likewise.
71396         (test_getopt_long_posix): Enhance test.
71397         * modules/getopt-posix-tests (Depends-on): Add stdbool.
71398         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
71399         getopt-gnu.
71400         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
71401         Likewise.
71403 2009-11-27  Simon Josefsson  <simon@josefsson.org>
71405         * modules/idpriv-droptemp-tests (Notice): Fix text.
71407 2009-11-27  Jim Meyering  <meyering@redhat.com>
71409         test-xalloc-die: avoid spurious failure due to libtool argv difference
71410         In a libtool-enabled project, this test would fail due to a difference
71411         in the emitted program name, e.g.,
71412         -test-xalloc-die: memory exhausted
71413         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
71414         Use program to avoid that.
71415         * modules/xalloc-die-tests (Depends-on): Add progname.
71416         * tests/test-xalloc-die.c: Include progname.h".
71417         (program_name): Remove decl.
71418         (main): Call set_program_name.
71419         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
71421 2009-11-26  Richard Jones  <rjones@redhat.com>
71423         w32sock: leave win32 error in place.
71424         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
71426 2009-11-26  Eric Blake  <ebb9@byu.net>
71428         init.sh: suggest to use skip_ and fail_ functions in comments
71429         * tests/init.sh: Add a sentence.
71431 2009-11-25  Bruno Haible  <bruno@clisp.org>
71433         init.sh: add documentation in comments
71434         * tests/init.sh: Add some developer and user documentation.
71436 2009-11-26  Jim Meyering  <meyering@redhat.com>
71438         init.sh: accommodate even those who specify bogus srcdir manually
71439         * tests/init.sh: Normally, srcdir is guaranteed by automake and
71440         configure-time tests to be sanitized, so that there is no need to
71441         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
71442         (with no double quotes) suffices.  However, since tests may be
71443         invoked manually, and since you may explicitly set srcdir to the
71444         name of a directory containing spaces, do quote its uses here.
71445         * tests/test-pread.sh: Likewise.
71446         Suggested by Bruno Haible.
71448         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
71449         * tests/test-pread.sh: Write no data into the pipe, because
71450         test-pread actually reads none.  This avoids a diagnostic,
71451         "bash: echo: write error: Broken pipe", that arises in the unusual
71452         event something is ignoring SIGPIPE, and might be interpreted
71453         as some sort of failure.  Reported by Bruno Haible.
71455 2009-11-25  Jim Meyering  <meyering@redhat.com>
71457         test-pread: cover failure with ESPIPE and EINVAL
71458         * tests/test-pread.c (main): Test for failure, too.
71459         * tests/test-pread.sh: Invoke with stdin on a pipe.
71460         Suggested by Eric Blake.
71462         pread: improvement and fix
71463         * modules/pread (Depends-on): Depend on lseek, for portability to
71464         e.g., mingw.  Suggested by Eric Blake.
71465         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
71467         unistd.in.h: correct declaration of pread
71468         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
71469         Reported by Richard W.M. Jones.
71471         test-pread.sh: distribute the test script
71472         * modules/pread-tests (Files): Include test-pread.sh.
71474         test-pread.sh: clean up
71475         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
71476         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
71477         That is unnecessary, since it's always ".".
71478         Suggestion from Eric Blake.
71480         test-pread.sh: make executable
71481         * tests/test-pread.sh: Set executable bit.
71482         Reported by Eric Blake.
71484         correct typo in test-pread.sh
71485         * tests/test-pread.sh: Add #! line.
71487         test pread
71488         * tests/test-pread.c: New file.
71489         * tests/test-pread.sh: Likewise.
71490         * modules/pread-tests: Likewise.
71492         pread: new module
71493         * modules/pread: New file.
71494         * lib/unistd.in.h (pread): Define/declare.
71495         * lib/pread.c (pread): New file.
71496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
71497         * modules/unistd (Makefile.am): Substitute witnesses.
71498         * doc/posix-functions/pread.texi (pread): Update.
71499         * MODULES.html.sh: Add pread.
71501 2009-11-25  Jim Meyering  <meyering@redhat.com>
71503         tests/init.sh: new file to be used via most *.sh tests
71504         * tests/init.sh: New file.
71506 2009-11-25  Eric Blake  <ebb9@byu.net>
71508         utimens: work around older Linux failure with symlinks
71509         * lib/utimens.c (lutimensat_works_really): New variable.
71510         (fdutimens, lutimens): Use it to manage kernels that support
71511         nanosecond times on files, but not on symlinks.
71512         Reported by Ondřej Vašík.
71514         utimes: fix configure grammar
71515         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
71517 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
71519         regex: Fix fastmap for multibyte character ranges.
71520         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
71521         characters when a multibyte character range is included.
71523 2009-11-22  Andy Wingo  <wingo@pobox.com>
71525         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
71526         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
71528 2009-11-24  Bruno Haible  <bruno@clisp.org>
71530         doc: Most *_l functions exist in MacOS X 10.5.
71531         * doc/posix-functions/duplocale.texi: Update platforms list.
71532         * doc/posix-functions/freelocale.texi: Likewise.
71533         * doc/posix-functions/newlocale.texi: Likewise.
71534         * doc/posix-functions/uselocale.texi: Likewise.
71535         * doc/posix-functions/isalnum_l.texi: Likewise.
71536         * doc/posix-functions/isalpha_l.texi: Likewise.
71537         * doc/posix-functions/isblank_l.texi: Likewise.
71538         * doc/posix-functions/iscntrl_l.texi: Likewise.
71539         * doc/posix-functions/isdigit_l.texi: Likewise.
71540         * doc/posix-functions/isgraph_l.texi: Likewise.
71541         * doc/posix-functions/islower_l.texi: Likewise.
71542         * doc/posix-functions/isprint_l.texi: Likewise.
71543         * doc/posix-functions/ispunct_l.texi: Likewise.
71544         * doc/posix-functions/isspace_l.texi: Likewise.
71545         * doc/posix-functions/isupper_l.texi: Likewise.
71546         * doc/posix-functions/iswalnum_l.texi: Likewise.
71547         * doc/posix-functions/iswalpha_l.texi: Likewise.
71548         * doc/posix-functions/iswblank_l.texi: Likewise.
71549         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71550         * doc/posix-functions/iswctype_l.texi: Likewise.
71551         * doc/posix-functions/iswdigit_l.texi: Likewise.
71552         * doc/posix-functions/iswgraph_l.texi: Likewise.
71553         * doc/posix-functions/iswlower_l.texi: Likewise.
71554         * doc/posix-functions/iswprint_l.texi: Likewise.
71555         * doc/posix-functions/iswpunct_l.texi: Likewise.
71556         * doc/posix-functions/iswspace_l.texi: Likewise.
71557         * doc/posix-functions/iswupper_l.texi: Likewise.
71558         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71559         * doc/posix-functions/isxdigit_l.texi: Likewise.
71560         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
71561         * doc/posix-functions/strcasecmp_l.texi: Likewise.
71562         * doc/posix-functions/strcoll_l.texi: Likewise.
71563         * doc/posix-functions/strfmon_l.texi: Likewise.
71564         * doc/posix-functions/strftime_l.texi: Likewise.
71565         * doc/posix-functions/strncasecmp_l.texi: Likewise.
71566         * doc/posix-functions/strxfrm_l.texi: Likewise.
71567         * doc/posix-functions/tolower_l.texi: Likewise.
71568         * doc/posix-functions/toupper_l.texi: Likewise.
71569         * doc/posix-functions/towctrans_l.texi: Likewise.
71570         * doc/posix-functions/towlower_l.texi: Likewise.
71571         * doc/posix-functions/towupper_l.texi: Likewise.
71572         * doc/posix-functions/wcscoll_l.texi: Likewise.
71573         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71574         * doc/posix-functions/wctrans_l.texi: Likewise.
71575         * doc/posix-functions/wctype_l.texi: Likewise.
71576         * doc/glibc-functions/strptime_l.texi: Likewise.
71577         * doc/glibc-functions/strtod_l.texi: Likewise.
71578         * doc/glibc-functions/strtof_l.texi: Likewise.
71579         * doc/glibc-functions/strtol_l.texi: Likewise.
71580         * doc/glibc-functions/strtold_l.texi: Likewise.
71581         * doc/glibc-functions/strtoll_l.texi: Likewise.
71582         * doc/glibc-functions/strtoul_l.texi: Likewise.
71583         * doc/glibc-functions/strtoull_l.texi: Likewise.
71584         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71585         * doc/glibc-functions/wcstod_l.texi: Likewise.
71586         * doc/glibc-functions/wcstof_l.texi: Likewise.
71587         * doc/glibc-functions/wcstol_l.texi: Likewise.
71588         * doc/glibc-functions/wcstold_l.texi: Likewise.
71589         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71590         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71591         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71593 2009-11-24  Bruno Haible  <bruno@clisp.org>
71595         duplocale: Fix logic bug.
71596         * lib/duplocale.c: Don't include <langinfo.h>.
71597         (_NL_LOCALE_NAME): Remove macro.
71598         (rpl_duplocale): Use setlocale instead of nl_langinfo.
71599         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
71601 2009-11-23  Jim Meyering  <meyering@redhat.com>
71603         test-update-copyright: don't hard-code /usr/bin/perl
71604         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
71605         perl to print the current year.  Gilles Espinasse reported that
71606         the replaced use of perl was hard-coded as /usr/bin/perl.
71608 2009-11-23  Bruno Haible  <bruno@clisp.org>
71610         duplocale: Add support for glibc 2.3.x.
71611         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
71613 2009-11-22  Bruno Haible  <bruno@clisp.org>
71615         vasnprintf: Tiny optimization.
71616         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
71617         MacOS X.
71619 2009-11-22  Bruno Haible  <bruno@clisp.org>
71621         Tests for module 'duplocale'.
71622         * modules/duplocale-tests: New file.
71623         * tests/test-duplocale.c: New file.
71625         New module 'duplocale'.
71626         * m4/duplocale.m4: New file.
71627         * lib/locale.in.h (duplocale): New declaration.
71628         * lib/duplocale.c: New file.
71629         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
71630         gl_LOCALE_H_DEFAULTS): New macros.
71631         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
71632         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
71633         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
71634         REPLACE_DUPLOCALE.
71635         * modules/duplocale: New file.
71636         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
71638 2009-11-22  Bruno Haible  <bruno@clisp.org>
71640         * modules/locale-tests (configure.ac): Test for newlocale function.
71641         * tests/test-locale.c: When the system has extended locale functions,
71642         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
71644         locale: Make locale_t available when possible.
71645         * lib/locale.in.h: Include <xlocale.h> when it exists.
71646         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
71647         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
71648         * modules/locale (Depends-on): Add extensions.
71649         (Makefile.am): Also substitute HAVE_XLOCALE_H.
71650         * doc/posix-headers/locale.texi: Document the problem with locale_t.
71652 2009-11-22  Bruno Haible  <bruno@clisp.org>
71654         Add comments.
71655         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
71656         invocation.
71657         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
71658         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71659         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71661 2009-11-22  Bruno Haible  <bruno@clisp.org>
71663         error: account for the possibility of freopen (stdout).
71664         * lib/error.c: Include <unistd.h>.
71665         (flush_stdout): New function, extracted from error and error_at_line.
71666         Determine stdout's fd dynamically.
71667         (error, error_at_line): Invoke flush_stdout.
71668         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
71669         * modules/error (Depends-on): Add unistd.
71671 2009-11-22  Bruno Haible  <bruno@clisp.org>
71673         diffseq: Add comment.
71674         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
71676 2009-11-22  Jim Meyering  <meyering@redhat.com>
71678         c-stack: avoid defining an unused static function
71679         * lib/c-stack.c (find_stack_direction): Do not define this function
71680         when it will not be used.
71682         diffseq: avoid spurious gcc warnings
71683         * lib/diffseq.h (IF_LINT2): Define.
71684         (compareseq): Use it to initialize two members of "part".
71685         This avoids two used-uninitialized warnings.
71687 2009-11-21  Jim Meyering  <meyering@redhat.com>
71689         c-stack: avoid "ignoring return value of `write'" warning
71690         * lib/c-stack.c: Include "ignore-value.h".
71691         (die): Explicitly ignore each write return value.
71692         * modules/c-stack (Depends-on): Add ignore-value.
71694 2009-11-21  Bruno Haible  <bruno@clisp.org>
71696         diffseq: reduce scope of variable 'best'.
71697         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
71698         variable, earlier used for two different purposes.
71700 2009-11-21  Jim Meyering  <meyering@redhat.com>
71702         diffseq: remove useless assignment to "best"
71703         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
71704         assignment.  At that point "best" is already guaranteed to be zero.
71706 2009-11-20  Eric Blake  <ebb9@byu.net>
71708         build: mention ftp redirector in release announcements
71709         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
71710         values that used to come from cfg.mk; mention FTP redirect URL.
71711         * build-aux/announce-gen: Mention the mirror list.
71712         Suggested by Karl Berry.
71714         nanosleep: improve port to mingw
71715         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
71716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
71717         LIB_NANOSLEEP, but only when needed.
71718         * modules/select (Link): Document LIBSOCKET.
71719         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
71720         enough.
71722         nanosleep: work around cygwin bug
71723         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
71724         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
71725         bug.
71726         (getnow): Delete, not needed.
71727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
71728         LIB_CLOCK_GETTIME.
71729         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
71730         clock-time, gettime.
71731         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
71732         bug.
71733         * modules/nanosleep-tests: New test.
71734         * tests/test-nanosleep.c: New file.
71736         sleep: work around cygwin bug
71737         * lib/sleep.c (rpl_sleep): Work around the bug.
71738         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
71739         (gl_PREREQ_SLEEP): Delete unused macro.
71740         * modules/sleep (Depends-on): Add verify.
71741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
71742         * modules/unistd (Makefile.am): Substitute witness.
71743         * lib/unistd.in.h (sleep): Update prototype.
71744         * doc/posix-functions/sleep.texi (sleep): Document the bug.
71745         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
71746         * modules/sleep-tests (Depends-on): Check for alarm.
71748 2009-11-20  Jim Meyering  <meyering@redhat.com>
71750         maint.mk: improve sc_prohibit_magic_number_exit
71751         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
71752         so it does not match uses like System.exit(1).
71753         Add comments showing how to correct all offenders.
71755 2009-11-19  Eric Blake  <ebb9@byu.net>
71757         xalloc-die-tests: add missing library
71758         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
71760         test-xvasprintf: silence compiler warnings
71761         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
71762         empty string from gcc.
71764 2009-11-19  Jim Meyering  <meyering@redhat.com>
71766         xfreopen: new module, from coreutils
71767         * modules/xfreopen: New module.
71768         * lib/xfreopen.c: New file.
71769         * lib/xfreopen.h: New file.
71770         * MODULES.html.sh (File stream based Input/Output"): Add it.
71772 2009-11-19  Eric Blake  <ebb9@byu.net>
71774         manywarnings: depend on warnings
71775         * modules/manywarnings (Depends-on): Add warnings.
71777         build: avoid compiler warnings
71778         * lib/select.c (rpl_select): Delete unused variable.
71779         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
71781 2009-11-18  Eric Blake  <ebb9@byu.net>
71783         tests: avoid false negative with --with-packager
71784         * tests/test-version-etc.sh: Discard packager information.
71785         * tests/test-argp-version-etc-1.sh: Likewise.
71786         Reported by Mike Frysinger.
71788         utimens: fix regression on Solaris
71789         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
71790         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
71791         can only change fd timestamps via futimesat.  Instead, use an
71792         additional witness macro to avoid BSD bug.
71793         Reported by Jim Meyering.
71795 2009-11-17  Eric Blake  <ebb9@byu.net>
71797         usleep: use it to simplify tests
71798         * modules/stat-time-tests (Depends-on): Add usleep.
71799         (configure.ac): Drop usleep check.
71800         * modules/chown-tests (Depends-on, configure.ac): Likewise.
71801         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
71802         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
71803         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
71804         * modules/openat-tests (Depends-on, configure.ac): Likewise.
71805         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
71806         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
71807         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
71808         Likewise.
71809         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
71810         * tests/test-lchown.h (nap): Likewise.
71811         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
71812         * tests/test-stat-time.c (nap): Likewise.
71813         * tests/test-utimens-common.h (nap): Update comments.
71815         usleep: new module
71816         * modules/usleep: New file.
71817         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
71818         * lib/usleep.c (usleep): Likewise.
71819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
71820         * modules/unistd (Makefile.am): Substitute witnesses.
71821         * lib/unistd.in.h (usleep): Add declaration.
71822         * doc/pastposix-functions/usleep.texi (usleep): Document this.
71823         * MODULES.html.sh (Date and time): Likewise.
71824         * modules/usleep-tests (Depends-on): New test.
71825         * tests/test-usleep.c: New file.
71827         chown: work around OpenBSD bug
71828         * lib/chown.c (rpl_chown): Work around the bug.
71829         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
71830         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
71831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
71832         * modules/chown (Depends-on): Add stdbool.
71833         * modules/lchown (Depends-on): Likewise.
71834         * doc/posix-functions/chown.texi (chown): Document the bug.
71835         * doc/posix-functions/lchown.texi (lchown): Likewise.
71836         * tests/test-lchown.h (test_chown): Relax test.
71838         mkstemp: avoid conflict with C++ keyword template
71839         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
71840         * lib/mkostemp.c (mkostemp): Likewise.
71841         * lib/mkostemps.c (mkostemps): Likewise.
71842         * lib/mkstemp.c (mkstemp): Likewise.
71843         * lib/mkstemps.c (mkstemps): Likewise.
71845         xalloc-die-tests: optimize
71846         * tests/test-xalloc-die.sh: Reduce number of processes.
71848 2009-11-17  Simon Josefsson  <simon@josefsson.org>
71850         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
71851         patch from ludo@gnu.org (Ludovic Courtès).
71853 2009-11-17  Jim Meyering  <meyering@redhat.com>
71855         version-etc: use proper license string
71856         * modules/version-etc (License): Use LGPL, not LGPLv3+.
71857         * modules/version-etc-fsf: Likewise.
71859 2009-11-17  Simon Josefsson  <simon@josefsson.org>
71861         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
71862         printed to stdout.  Deal with EOL differences.
71864 2009-11-17  Eric Blake  <ebb9@byu.net>
71866         unsetenv: work around Solaris bug
71867         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
71868         * lib/unsetenv.c (rpl_unsetenv): Work around it.
71869         Reported by Jim Meyering.
71871         vasnprintf: avoid compiler warnings
71872         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
71873         variables.
71874         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
71876 2009-11-17  Simon Josefsson  <simon@josefsson.org>
71878         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
71879         settings since xalloc-die is no longer the self test,
71880         xalloc-die.sh is.
71882 2009-11-17  Jim Meyering  <meyering@redhat.com>
71884         test-xalloc-die.sh: make the code agree with the commit log
71885         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
71886         at the end, just in case you happen to have a test-xalloc-die
71887         program in some other PATH directory.
71889         test-xalloc-die.sh: fix a portability bug
71890         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
71891         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
71892         Otherwise, argv[0] (as often seen in diagnostics) would be too
71893         system-dependent, sometimes with, and sometimes without the leading "./".
71895         version-etc-fsf: relax license to LGPLv3+
71896         * modules/version-etc-fsf (License): Relax license.
71898 2009-11-16  Eric Blake  <ebb9@byu.net>
71900         xalloc-die-tests: avoid printing null pointer
71901         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
71902         shell script.
71903         * tests/test-xalloc-die.c (program_name): Declare.
71904         * tests/test-xalloc-die.sh (tmpfiles): New file.
71906         setenv, unsetenv: work around various bugs
71907         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
71908         (setenv) [HAVE_SETENV]: Work around bugs.
71909         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
71910         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
71911         for bugs.
71912         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
71913         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
71914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
71915         * modules/stdlib (Makefile.am): Update substitutions.
71916         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
71917         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
71918         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
71919         * modules/setenv-tests: New test.
71920         * modules/unsetenv-tests: Likewise.
71921         * tests/test-setenv.c: New file.
71922         * tests/test-unsetenv.c: Likewise.
71924 2009-11-16  Jim Meyering  <meyering@redhat.com>
71926         version-etc: relax license to LGPLv3+
71927         * modules/version-etc (License): Relax license.
71929         better AC_REQUIRE expanded-before-required-warning avoidance
71930         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
71931         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
71932         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
71933         which is no longer needed.
71935 2009-11-16  Eric Blake  <ebb9@byu.net>
71937         test-freading: clean up temporary file
71938         * tests/test-freading.c (main): Remove file on success, and use
71939         ASSERT more liberally.
71940         Reported by Jim Meyering.
71942 2009-11-16  Jim Meyering  <meyering@redhat.com>
71944         avoid new AC_REQUIRE expanded-before-required warnings
71945         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
71946         merely using it.
71947         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
71948         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
71950 2009-11-15  Simon Josefsson  <simon@josefsson.org>
71952         * tests/test-xalloc-die.c: New file.
71953         * modules/xalloc-die-tests: New file.
71954         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
71955         XFAIL_TESTS so it can be appended by modules.
71957 2009-11-15  Simon Josefsson  <simon@josefsson.org>
71959         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
71960         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
71962 2009-11-14  Eric Blake  <ebb9@byu.net>
71964         fnmatch: avoid compiler warning
71965         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
71966         to silence compiler warning about mismatch signedness in ?:.
71967         Reported by Robert Millan.
71969         intprops: add double-inclusion guard
71970         * lib/intprops.h: Allow idempotent includes.
71971         Suggested by Bruce Korb.
71973         openat: detect Solaris fchownat bug
71974         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
71975         penalizing glibc chownat when only lchownat is broken.
71976         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
71977         trailing slash bugs.
71978         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
71979         * modules/openat-tests (Files): Include more files.
71980         (Depends-on): Add mgetgroups, sleep, stat-time.
71981         (configure.ac): Add additional checks.
71982         (Makefile.am): Build new test.
71983         * tests/test-fchownat.c: New file.
71985         lchown: detect Solaris and FreeBSD bug
71986         * lib/lchown.c (rpl_lchown): Work around bug.
71987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
71988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
71989         * modules/unistd (Makefile.am): Populate it.
71990         * lib/unistd.in.h (lchown): Update declaration.
71991         * doc/posix-functions/lchown.texi (lchown): Document the bug.
71992         * modules/lchown-tests: New file.
71993         * tests/test-lchown.h (test_lchown): Likewise.
71994         * tests/test-lchown.c (main): Likewise.
71996         chown: detect Solaris and FreeBSD bug
71997         * lib/chown.c (rpl_chown): Work around bug.
71998         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
71999         (gl_PREREQ_CHOWN): Delete.
72000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72001         * modules/unistd (Makefile.am): Populate it.
72002         * lib/unistd.in.h (chown): Update declaration.
72003         * lib/lchown.c (chown): Update client.
72004         * modules/lchown (Depends-on): Add lstat.
72005         * doc/posix-functions/chown.texi (chown): Document the bug.
72006         * doc/posix-functions/getgroups.texi (getgroups): Document
72007         getgroups pitfall.
72008         * modules/chown-tests: New file.
72009         * tests/test-chown.h (test_chown): Likewise.
72010         * tests/test-chown.c (main): Likewise.
72012 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
72014         gnulib-tool: correctly detect absence of m4 directories
72015         * gnulib-tool: Avoid extra newline on data passed to wc -l.
72017 2009-11-14  Jim Meyering  <meyering@redhat.com>
72019         maint.mk: Prohibit inclusion of "xalloc.h" without use.
72020         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
72022 2009-11-14  John W. Eaton  <jwe@gnu.org>
72024         strftime.h: wrap function declaration in extern "C" block
72025         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
72027 2009-11-13  Eric Blake  <ebb9@byu.net>
72029         getgroups: avoid compiler warning
72030         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
72032         getgroups: work around FreeBSD bug
72033         * lib/getgroups.c (rpl_getgroups): Work around the bug.
72034         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
72035         * doc/posix-functions/getgroups.texi (getgroups): Document it.
72036         * tests/test-getgroups.c (main): Fix buffer overrun.
72038         getgroups: avoid compilation failure
72039         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
72040         * modules/getgroups (Depends-on): Add stdint.
72042 2009-11-13  Jim Meyering  <meyering@redhat.com>
72044         test-getgroups: avoid compilation failure
72045         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
72047 2009-11-13  Eric Blake  <ebb9@byu.net>
72049         mgetgroups: new module, taken from coreutils
72050         * modules/mgetgroups: New file.
72051         * lib/mgetgroups.h: Likewise.
72052         * lib/mgetgroups.c (mgetgroups): Likewise.
72053         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
72054         * MODULES.html.sh (Users and groups): Mention it.
72056         getgroups: don't expose GETGROUPS_T to user
72057         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
72058         an element at a time if GETGROUPS_T is wrong size.
72059         * lib/getugroups.h (getugroups): Change signature.
72060         * lib/unistd.in.h (getgroups): Likewise.
72061         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
72062         signature needs fixing.
72063         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
72064         AC_TYPE_GETGROUPS.
72065         * modules/group-member (Depends-on): Add getgroups.
72066         * lib/group-member.c (group_info, get_group_info): Use gid_t.
72067         (group_member): Rely on getgroups replacement.
72068         * lib/getugroups.c (getugroups): Use gid_t.
72069         * tests/test-getgroups.c (main): Likewise.
72070         * NEWS: Mention the signature change.
72071         * doc/posix-functions/getgroups.texi (getgroups): Mention the
72072         problem with signature.
72073         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
72074         GETGROUPS_T is still useful for setgroups.
72076         getgroups, getugroups: provide stubs for mingw
72077         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
72078         * lib/getugroups.c (getugroups): Likewise.
72079         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
72080         function.  Modernize replacement scheme.
72081         (gl_PREREQ_GETGROUPS): Delete.
72082         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
72083         * modules/getgroups (configure.ac): Declare witness.
72084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
72085         * modules/unistd (Depends-on): Substitute witness.
72086         * lib/unistd.in.h (getgroups): Declare replacement.
72088         getgroups: avoid calling exit
72089         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
72090         drop xalloc.
72091         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
72092         dependencies.
72093         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
72094         exiting, in the rare case of malloc failure.
72096         getgroups: fix logic error
72097         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
72098         has more than 20 groups.
72099         * modules/getgroups-tests: New test.
72100         * tests/test-getgroups.c: New file.
72102 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72104         * tests/test-base64.c: Improve.
72106 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72108         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
72109         Blake <ebb9@byu.net>.
72111 2009-11-13  Simon Josefsson  <simon@josefsson.org>
72113         * tests/test-xvasprintf.c: Add %s%s related checks.
72115 2009-11-12  Eric Blake  <ebb9@byu.net>
72117         version-etc: match standards.texi style
72118         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
72119         and use <> only for URLs.
72121 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
72123         fts: do not fail on a submount during traversal
72124         * lib/fts.c (fts_build): Read the stat info again after opening
72125         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
72126         Original report at http://bugzilla.redhat.com/501848.
72128 2009-11-12  Jim Meyering  <meyering@redhat.com>
72130         bootstrap: sync from coreutils
72131         * build-aux/bootstrap (bootstrap_epilogue): New function.
72132         Use git_modules_config in one more place.  This make bootstrap's
72133         --gnulib-srcdir option more useful for testing.
72135         bootstrap: generalize autoheader check
72136         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
72137         AC_CONFIG_HEADERS.
72139 2009-11-11  Eric Blake  <ebb9@byu.net>
72141         mkfifoat: use new modules for Solaris and BSD bugs
72142         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
72143         * lib/mkfifoat.c (mknodat): Split...
72144         * lib/mknodat.c (mknodat): ...into new file.
72145         * modules/mkfifoat (Files): Ship new file.
72146         (Depends-on): Add mkfifo, mknod.
72147         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
72148         (Depends-on): Add symlink.
72149         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
72150         redundant with test_mkfifo.h.
72151         (do_mkfifoat, do_mknodat): New helpers.
72153         mknod: new module
72154         * modules/mknod: New file.
72155         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
72156         * lib/mknod.c (mknod): Likewise.
72157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
72158         defaults.
72159         * modules/sys_stat (Makefile.am): Substitute them.
72160         * lib/sys_stat.in.h (mknod): Declare replacement.
72161         * MODULES.html.sh (Support for systems lacking POSIX:2008):
72162         Document it.
72163         * doc/posix-functions/mknod.texi (mknod): Likewise.
72164         * modules/mknod-tests: New test.
72165         * tests/test-mknod.c: Likewise.
72167         mkfifo: new module
72168         * modules/mkfifo: New file.
72169         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
72170         * lib/mkfifo.c (mkfifo): Likewise.
72171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
72172         defaults.
72173         * modules/sys_stat (Makefile.am): Substitute them.
72174         * lib/sys_stat.in.h (mkfifo): Declare replacement.
72175         * MODULES.html.sh (Support for systems lacking POSIX:2008):
72176         Document it.
72177         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
72178         * modules/mkfifo-tests: New test.
72179         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
72180         from test-mkfifoat.c.
72181         * tests/test-mkfifo.c: New file.
72183         readlink: detect FreeBSD bug
72184         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
72185         slash on symlink.
72186         * doc/posix-functions/readlink.texi (readlink): Document the bug.
72187         * tests/test-readlink.h (test_readlink): Enhance test.
72189         symlink: detect FreeBSD bug
72190         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
72191         slash on symlink.
72192         * doc/posix-functions/symlink.texi (symlink): Document the bug.
72193         * tests/test-symlink.h (test_symlink): Enhance test.
72195 2009-11-10  Eric Blake  <ebb9@byu.net>
72197         link: detect FreeBSD bug
72198         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
72199         symlink.
72200         * doc/posix-functions/link.texi (link): Document the bug.
72201         * tests/test-link.h (test_link): Enhance test.
72202         * tests/test-linkat.c (main): Update caller.
72204         unlink, remove: detect FreeBSD bug
72205         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
72206         slash on symlink.
72207         * doc/posix-functions/unlink.texi (unlink): Document the bug.
72208         * doc/posix-functions/remove.texi (remove): Likewise.
72209         * tests/test-unlink.h (test_unlink): Enhance test.
72210         * tests/test-remove.c (main): Likewise.
72212 2009-11-09  Eric Blake  <ebb9@byu.net>
72214         rename: detect FreeBSD bug
72215         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
72216         slash on symlink.
72217         * modules/renameat-tests (Depends-on): Add filenamecat.
72218         * tests/test-rename.h (test_rename): Allow one more errno.
72219         * tests/test-renameat.c (main): Likewise.
72220         * doc/posix-functions/rename.texi (rename): Document the bug.
72222         open: detect FreeBSD bug
72223         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
72224         symlink.
72225         * doc/posix-functions/open.texi (open): Document the bug.
72226         * doc/posix-functions/utimes.texi (utimes): Likewise.
72227         * tests/test-open.h (test_open): Add parameters, and test symlink
72228         handling.
72229         * tests/test-open.c (main): Adjust caller.
72230         * tests/test-fcntl-safer.c (main): Likewise.
72231         * modules/open-tests (Depends-on): Add stdbool, symlink.
72232         * modules/fcntl-safer-tests (Depends-on): Likewise.
72233         * tests/test-openat.c (main): Add test-open tests.
72235         stat: detect FreeBSD bug
72236         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
72237         symlink.
72238         * doc/posix-functions/stat.texi (stat): Document the bug.
72239         * tests/test-stat.h (test_stat_func): Add argument.
72240         * tests/test-stat.c (main): Adjust caller.
72241         * tests/test-fstatat.c (main): Likewise.
72242         * modules/stat-tests (Depends-on): Add stdbool, symlink.
72243         Reported by Jim Meyering.
72245 2009-11-09  James Youngman  <jay@gnu.org>
72247         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
72248         * lib/strftime.c: Correct placement of #include "ignore-value.h".
72250 2009-11-08  Jim Meyering  <meyering@redhat.com>
72252         utimens: remove invalid futimesat call
72253         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
72254         It used the file descriptor of the target file as the DIR_FD
72255         parameter and NULL as the file name.  That caused failure with
72256         errno == EFAULT on FreeBSD-8.0-rc2
72258 2009-11-07  Eric Blake  <ebb9@byu.net>
72260         fflush, freadseek: use fseeko, not fseek
72261         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
72262         (clear_ungetc_buffer): Avoid potential problems on large files.
72263         * lib/freadseek.c (freadseek): Likewise.
72264         * modules/freadseek (Depends-on): Add fseeko.
72265         * modules/fseek (configure.ac): Set a witness.
72266         * tests/test-fflush.c (main): Use fseeko.
72267         * tests/test-fpurge.c (fseek): Disable link warning.
72268         * tests/test-freadable.c (fseek): Likewise.
72269         * tests/test-freading.c (fseek): Likewise.
72270         * tests/test-fseeko.c (fseek): Likewise.
72271         * tests/test-ftell.c (fseek): Likewise.
72272         * tests/test-ftello.c (fseek): Likewise.
72273         * tests/test-fwritable.c (fseek): Likewise.
72274         * tests/test-fwriting.c (fseek): Likewise.
72276 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72278         * modules/memchr (Depends-on): Drop getpagesize dependency.
72280 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72282         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
72283         Reported by Ludovic Courtès.
72284         * build-aux/pmccabe2html: Improve example usage.
72285         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
72287 2009-11-06  Jim Meyering  <meyering@redhat.com>
72289         do-release-commit-and-tag: New module.
72290         Automate the release-commit and tag process.
72291         * build-aux/do-release-commit-and-tag: New script, from coreutils.
72292         * modules/do-release-commit-and-tag: New file.
72293         * MODULES.html.sh (Support for maintaining and releasing): Add it.
72295 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72297         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
72298         because test-select.c uses inet_pton.
72300 2009-11-06  Simon Josefsson  <simon@josefsson.org>
72302         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
72303         GETADDRINFO_LIB.  Bump serial number.
72304         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
72305         Suggested by Eric Blake <ebb9@byu.net>.
72307 2009-11-05  Eric Blake  <ebb9@byu.net>
72309         strtod: detect darwin bug
72310         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
72311         Reported by Leo Davis.
72313         freopen-safer: new module
72314         * modules/freopen-safer: New module.
72315         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
72316         * lib/freopen-safer.c (freopen_safer): New file.
72317         * lib/stdio-safer.h (freopen_safer): New declaration.
72318         * lib/stdio--.h (freopen): New override.
72319         * MODULES.html.sh (File stream based Input/Output): Mention it.
72320         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
72321         freopen-safer module.
72322         * doc/posix-functions/stderr.texi (stderr): Likewise.
72323         * doc/posix-functions/stdin.texi (stdin): Likewise.
72324         * doc/posix-functions/stdout.texi (stdout): Likewise.
72325         * modules/freopen-safer-tests: New test.
72326         * tests/test-reopen-safer.c: New file.
72328 2009-11-05  Jim Meyering  <meyering@redhat.com>
72330         maint.mk: Prohibit inclusion of "close-stream.h" without use.
72331         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
72333 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72335         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
72337 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72339         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
72341 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72343         Fix link error.
72344         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
72345         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72347 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72349         * tests/test-func.c: Also test value of __func__.
72351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
72353         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
72354         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
72356 2009-11-05  Bruno Haible  <bruno@clisp.org>
72358         Fix link error.
72359         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
72360         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72361         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
72363 2009-11-05  Bruno Haible  <bruno@clisp.org>
72365         Tests for module 'inet_pton'.
72366         * modules/inet_pton-tests: New file.
72367         * tests/test-inet_pton.c: New file.
72369 2009-11-05  Bruno Haible  <bruno@clisp.org>
72371         Tests for module 'inet_ntop'.
72372         * modules/inet_ntop-tests: New file.
72373         * tests/test-inet_ntop.c: New file.
72375 2009-11-04  Eric Blake  <ebb9@byu.net>
72377         stdlib-safer: wrap all mkstemp variants
72378         * modules/mkostemp (configure.ac): Set witness.
72379         * modules/mkostemps (configure.ac): Likewise.
72380         * modules/mkstemps (configure.ac): Likewise.
72381         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
72382         (mkstemps_safer): Wrap more functions.
72383         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
72384         wrapping.
72385         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
72386         (mkstemps_safer): Implement the wrappers.
72388         mkstemps, mkostemps: new modules
72389         * modules/mkostemps: New module.
72390         * modules/mkstemps: Likewise.
72391         * lib/mkostemps.c (mkostemps): New file.
72392         * lib/mkstemps.c (mkstemps): Likewise.
72393         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
72394         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
72395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
72396         * modules/stdlib (Makefile.am): Substitute them.
72397         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
72398         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
72399         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
72400         * doc/gnulib.texi (Glibc stdlib.h): Include them.
72401         * MODULES.html.sh (File system functions): Mention them.
72403         tempname: resync from glibc
72404         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
72405         same values for __GT_FILE as glibc.  Abort even when assertions
72406         are disabled.
72407         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
72408         match its value otherwise.  Allow idempotent inclusion.
72409         * lib/mkdtemp.c (mkdtemp): Adjust caller.
72410         * lib/mkostemp.c (mkostemp): Likewise.
72411         * lib/mkstemp.c (mkstemp): Likewise.
72412         * lib/tmpfile.c (tmpfile): Likewise.
72413         * NEWS: Document this.
72415         utimens: fix use of futimens on older Linux
72416         * lib/utimens.c (fdutimens): Use updated, rather than original,
72417         timespec to avoid bug in older Linux kernel.
72418         Reported by Simon Josefsson.
72420 2009-11-04  Bruno Haible  <bruno@clisp.org>
72422         Make num_processors more flexible and consistent.
72423         * lib/nproc.h (enum nproc_query): New type.
72424         (num_processors): Add a 'query' argument.
72425         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
72426         (num_processors): Add a 'query' argument. Test the value of the
72427         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
72428         mingw, count the number of CPUs available for the current process.
72429         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
72430         Check for sched_getaffinity and sched_getaffinity_np.
72431         * modules/nproc (Depends-on): Add c-ctype, extensions.
72432         * NEWS: Mention the change.
72434 2009-11-03  Bruno Haible  <bruno@clisp.org>
72436         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
72438 2009-11-03  Jim Meyering  <meyering@redhat.com>
72440         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
72441         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
72442         if it is defined.
72444 2009-11-02  Eric Blake  <ebb9@byu.net>
72446         mktime, timegm: share common declaration
72447         * lib/mktime-internal.h: New file.
72448         * lib/mktime.c: Use it rather than open-coding a declaration.
72449         * lib/timegm.c: Likewise.
72450         * modules/mktime (Files): Ship it.
72451         * modules/timegm (Files): Likewise.
72452         Suggested by Bruno Haible.
72454         test-update-copyright: update test to match script changes
72455         * tests/test-update-copyright.sh: Avoid hard-coding perl
72456         location.  Don't update *.bak created by earlier runs.
72458 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72459             Simon Josefsson  <simon@josefsson.org>
72460             Bruno Haible  <bruno@clisp.org>
72462         Fix link error on Solaris 8.
72463         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
72464         also in libnsl. Define also INET_PTON_LIB.
72465         * modules/inet_pton (Link): New section.
72467 2009-11-02  Simon Josefsson  <simon@josefsson.org>
72468             Bruno Haible  <bruno@clisp.org>
72470         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
72471         * modules/inet_ntop (Link): New section.
72472         Reported by Boyan Kasarov <bkasarov@gmail.com>.
72474 2009-11-02  Eric Blake  <ebb9@byu.net>
72476         maint: avoid compiler warnings in m4 macros
72477         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
72478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
72480 2009-11-02  Simon Josefsson  <simon@josefsson.org>
72482         * m4/pmccabe2html.m4: Remove file.
72483         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
72484         function.  Change maintainer.
72485         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
72486         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
72487         Courtès).
72489 2009-10-31  Eric Blake  <ebb9@byu.net>
72491         fseeko: fix m4 regression
72492         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
72493         regression from 2009-10-27.
72494         Reported by Ralf Wildenhues.
72496 2009-10-31  Jim Meyering  <meyering@redhat.com>
72498         inttostr: aesthetics and improved (compile-time) safety
72499         Define inttype_is_signed rather than inttype_is_unsigned,
72500         since the sole use is via "#if inttype_is_signed".
72501         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
72502         inttype_is_unsigned.
72503         * lib/offtostr.c (inttype_is_signed): Likewise.
72504         * lib/uinttostr.c (inttype_is_signed): Likewise.
72505         * lib/umaxtostr.c (inttype_is_signed): Likewise.
72506         * lib/inttostr.c (inttostr): Use verify to cross-check the
72507         inttype_is_signed value and the signedness of the actual type.
72508         * modules/inttostr (Depends-on): Add verify.
72510 2009-10-30  Eric Blake  <ebb9@byu.net>
72512         build: avoid compiler warnings
72513         * lib/fchmodat.c (lchmod): Mark unused variables.
72514         * lib/getopt.c (_getopt_initialize): Likewise.
72515         * lib/mktime.c (__mktime_internal): Provide prototype.
72516         * lib/inttostr.c (inttostr): Avoid compiler warning even with
72517         older gcc that do not understand #pragma GCC diagnostic.
72518         * lib/uinttostr.c (inttype_is_unsigned): Define.
72519         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
72521 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
72523         stat: fix compilation on AIX
72524         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
72525         only see struct stat64.
72527 2009-10-30  Eric Blake  <ebb9@byu.net>
72529         exclude: make more robust
72530         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
72531         rather than masking a coding bug.
72532         Suggested by Bruno Haible.
72534 2009-10-30  Jim Meyering  <meyering@redhat.com>
72536         perl scripts: remove #!/usr/bin/perl in favor of more portable...
72537         Rather than putting #!/usr/bin/perl on the first line,
72538         start with a variant of what's recommended by "man perlrun" that
72539         invokes the first "perl" program from your shell's search path.
72540         * build-aux/gitlog-to-changelog: Replace #!... as above.
72541         Add a "Local Variables" perl mode setting.
72542         Prompted by a patch from Ludovic Courtès.
72543         Improved by Eric Blake.
72544         * build-aux/useless-if-before-free: Likewise.
72545         * build-aux/announce-gen: Likewise.
72546         * build-aux/update-copyright: Likewise.
72548 2009-10-29  Eric Blake  <ebb9@byu.net>
72550         filenamecat-lgpl: adjust clients
72551         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
72552         filenamecat.
72553         * modules/renameat (Depends-on): Likewise.
72555         filenamecat: split into filenamecat-lgpl
72556         * modules/filenamecat-lgpl: New module.
72557         * modules/filenamecat (Files): Move library-safe files into
72558         filenamecat-lgpl.
72559         (Depends-on): Add filenamecat-lgpl.
72560         (configure.ac): Declare witness.
72561         * lib/filenamecat.h (file_name_concat): Only declare when using
72562         GPL module.
72563         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
72564         Move...
72565         * lib/filenamecat-lgpl.c: ...into new file.
72566         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
72567         (gl_FILE_NAME_CONCAT): Use it.
72568         * MODULES.html.sh (File system functions): Mention new module.
72570         argp: avoid memory leak
72571         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
72572         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
72573         base_name, since the latter malloc()s and can call exit().
72574         Leak introduced 2006-07-03.
72576         dirname-lgpl: adjust clients that don't need full dirname
72577         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
72578         * modules/filenamecat (Depends-on): Likewise.
72579         * modules/linkat (Depends-on): Likewise.
72580         * modules/mkancesdirs (Depends-on): Likewise.
72581         * modules/mkdir (Depends-on): Likewise.
72582         * modules/openat (Depends-on): Likewise.
72583         * modules/savewd (Depends-on): Likewise.
72584         * modules/rename (Depends-on): Likewise.
72585         (License): Relax license.
72586         * modules/mkdir-tests (Depends-on): Drop progname.
72587         (Makefile.am): Delete unneeded LDADD.
72588         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
72590         dirname: split into dirname-lgpl
72591         * modules/dirname-lgpl: New module.
72592         * modules/dirname (Files): Move library-safe files into
72593         dirname-lgpl.
72594         (Depends-on): Add dirname-lgpl.
72595         (configure.ac): Declare witness.
72596         * modules/double-slash-root (License): Relax license.
72597         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
72598         module.
72599         * lib/dirname.c (dir_len, mdir_name): Move...
72600         * lib/dirname-lgpl.c: ...into new file.
72601         * lib/basename.c (last_component, base_len): Move...
72602         * lib/basename-lgpl.c: ...into new file.
72603         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
72604         (gl_DIRNAME): Use it.
72605         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
72606         Mention new module.
72607         * modules/dirname-tests (Depends-on): Add progname.
72608         * tests/test-dirname.c (program_name): Delete.
72610         mkdir: make safe for libraries
72611         * modules/mkdir (Depends-on): Drop xalloc.
72612         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
72613         exit.
72615         tests: avoid some compiler warnings
72616         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
72617         literals.
72618         * tests/test-memchr.c (main): Avoid type mismatch.
72619         * tests/test-arpa_inet.c (main): Avoid unused parameters.
72620         * tests/test-base64.c (main): Likewise.
72621         * tests/test-getdelim.c (main): Likewise.
72622         * tests/test-gethostname.c (main): Likewise.
72623         * tests/test-getline.c (main): Likewise.
72624         * tests/test-netinet_in.c (main): Likewise.
72625         * tests/test-select.c (open_server_socket, main): Likewise.
72626         * tests/test-select-stdin.c (main): Likewise.
72627         * tests/test-sockets.c (main): Likewise.
72628         * tests/test-strsignal.c (main): Likewise.
72629         * tests/test-sys_select.c (main): Likewise.
72630         * tests/test-sys_socket.c (main): Likewise.
72631         * tests/test-u64.c (main): Likewise.
72632         * tests/test-xfprintf-posix.c (main): Likewise.
72633         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
72635         sockets: avoid compiler warning
72636         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
72638         maint: detect usage(1) and other suspicious exits
72639         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
72641 2009-10-29  Jim Meyering  <meyering@redhat.com>
72643         timespec: long-to-int truncation could make timespec_cmp malfunction
72644         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
72645         a multiple of 2^32 nanoseconds as no difference.
72647 2009-10-28  Jim Meyering  <meyering@redhat.com>
72649         fprintftime: wrap macro code argument in "do {...} while(0)"
72650         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
72651         cpy macro must be a statement that can be followed by a semicolon.
72652         Now that the else clause contains a comment and is hence longer
72653         than one line, I require curly braces.  That in turn requires
72654         that we wrap this code block in the standard do...while(0).
72656         fprintftime: remove stray semicolon from previous change
72657         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
72659         fprintftime: avoid a warning about ignored fwrite return value
72660         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
72661         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
72662         that is unsafe.
72663         * modules/fprintftime (Depends-on): Add ignore-value.
72665         exclude: avoid an unwarranted warning
72666         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
72668 2009-10-27  Eric Blake  <ebb9@byu.net>
72670         fseek: avoid compilation failure when fflush is replaced
72671         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
72672         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
72673         module is in use.
72674         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
72675         module is not in use; since REPLACE_FSEEK worked otherwise.
72676         (GNULIB_FTELLO): Likewise for ftell.
72677         Reported by Ian Beckwith and others.
72679 2009-10-27  Bruno Haible  <bruno@clisp.org>
72681         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
72682         Reported by Jim Meyering.
72684 2009-10-27  Jim Meyering  <jim@meyering.net>
72685             Bruno Haible  <bruno@clisp.org>
72687         Avoid warning despite dropping the return value of fwrite.
72688         * lib/unicodeio.c: Include ignore-value.h.
72689         (fwrite_success_callback): Explicitly ignore fwrite's return value.
72690         * modules/unicodeio (Depends-on): Add ignore-value.
72692 2009-10-26  Eric Blake  <ebb9@byu.net>
72694         areadlinkat: fix fallback path
72695         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
72696         pointer and zero.
72698 2009-10-22  Pádraig Brady  <P@draigBrady.com>
72700         Use a better IO block size for modern systems
72701         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
72702         * lib/md2.c: Likewise.
72703         * lib/md4.c: Likewise.
72704         * lib/md5.c: Likewise.
72705         * lib/sha1.c: Likewise.
72706         * lib/sha256.c: Likewise.
72707         * lib/sha512.c: Likewise.
72709 2009-10-22  Eric Blake  <ebb9@byu.net>
72711         tests: avoid several compiler warnings
72712         * tests/test-getcwd.c (main): Avoid buffer underflow.
72713         * tests/test-getdate.c (main): String literals are not safe with
72714         putenv, so use setenv.  Declare unused argument.
72715         * modules/getdate-tests (Depends-on): Add setenv.
72716         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
72717         problems with string literals in char *.
72718         * tests/test-hash.c (main): Avoid shadowing declaration.
72719         (insert_new): Treat string literals as char const *.
72720         * tests/test-getopt.h (test_getopt): Likewise.
72721         (getopt_loop): Alter types to minimize casting elsewhere.
72722         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
72723         (test_getopt_long_posix): Likewise.
72724         (do_getopt_long): Add wrapper to minimize casting.
72725         * tests/test-atexit.c (clear_temp_file): Use void.
72726         * tests/test-areadlink-with-size.c (main): Declare unused
72727         arguments.
72728         * tests/test-areadlink.c (main): Likewise.
72729         * tests/test-areadlinkat-with-size.c (main): Likewise.
72730         * tests/test-areadlinkat.c (main): Likewise.
72731         * tests/test-canonicalize-lgpl.c (main): Likewise.
72732         * tests/test-canonicalize.c (main): Likewise.
72733         * tests/test-dirent-safer.c (main): Likewise.
72734         * tests/test-dirname.c (main): Likewise.
72735         * tests/test-dup2.c (main): Likewise.
72736         * tests/test-fchdir.c (main): Likewise.
72737         * tests/test-fcntl-h.c (main): Likewise.
72738         * tests/test-fcntl-safer.c (main): Likewise.
72739         * tests/test-fdopendir.c (main): Likewise.
72740         * tests/test-fdutimensat.c (main): Likewise.
72741         * tests/test-fflush.c (main): Likewise.
72742         * tests/test-filenamecat.c (main): Likewise.
72743         * tests/test-filevercmp.c (main): Likewise.
72744         * tests/test-fopen-safer.c (main): Likewise.
72745         * tests/test-fopen.c (main): Likewise.
72746         * tests/test-fpending.c (main): Likewise.
72747         * tests/test-fpurge.c (main): Likewise.
72748         * tests/test-freading.c (main): Likewise.
72749         * tests/test-fstatat.c (main): Likewise.
72750         * tests/test-fsync.c (main): Likewise.
72751         * tests/test-futimens.c (main): Likewise.
72752         * tests/test-getndelim2.c (main): Likewise.
72753         * tests/test-gettimeofday.c (main): Likewise.
72754         * tests/test-getopt.c (main): Likewise.
72755         * tests/test-i-ring.c (main): Likewise.
72756         * tests/test-inttypes.c (main): Likewise.
72757         * tests/test-link.c (main): Likewise.
72758         * tests/test-lstat.c (main): Likewise.
72759         * tests/test-math.c (main): Likewise.
72760         * tests/test-md5.c (main): Likewise.
72761         * tests/test-memchr2.c (main): Likewise.
72762         * tests/test-memrchr.c (main): Likewise.
72763         * tests/test-mkdir.c (main): Likewise.
72764         * tests/test-mkdirat.c (main): Likewise.
72765         * tests/test-mkfifoat.c (main): Likewise.
72766         * tests/test-open.c (main): Likewise.
72767         * tests/test-openat-safer.c (main): Likewise.
72768         * tests/test-openat.c (main): Likewise.
72769         * tests/test-quotearg.c (main): Likewise.
72770         * tests/test-rawmemchr.c (main): Likewise.
72771         * tests/test-readlink.c (main): Likewise.
72772         * tests/test-remove.c (main): Likewise.
72773         * tests/test-rename.c (main): Likewise.
72774         * tests/test-renameat.c (main): Likewise.
72775         * tests/test-rmdir.c (main): Likewise.
72776         * tests/test-sha1.c (main): Likewise.
72777         * tests/test-signal.c (main): Likewise.
72778         * tests/test-sigaction.c (main): Likewise.
72779         * tests/test-stat.c (main): Likewise.
72780         * tests/test-stat-time.c (main): Likewise.
72781         * tests/test-stddef.c (main): Likewise.
72782         * tests/test-stdint.c (main): Likewise.
72783         * tests/test-stdio.c (main): Likewise.
72784         * tests/test-stdlib.c (main): Likewise.
72785         * tests/test-strchrnul.c (main): Likewise.
72786         * tests/test-strerror.c (main): Likewise.
72787         * tests/test-string.c (main): Likewise.
72788         * tests/test-strtod.c (main): Likewise.
72789         * tests/test-strverscmp.c (main): Likewise.
72790         * tests/test-symlink.c (main): Likewise.
72791         * tests/test-symlinkat.c (main): Likewise.
72792         * tests/test-sys_stat.c (main): Likewise.
72793         * tests/test-sys_time.c (main): Likewise.
72794         * tests/test-time.c (main): Likewise.
72795         * tests/test-unistd.c (main): Likewise.
72796         * tests/test-unlink.c (main): Likewise.
72797         * tests/test-unlinkat.c (main): Likewise.
72798         * tests/test-utimens.c (main): Likewise.
72799         * tests/test-utimensat.c (main): Likewise.
72800         * tests/test-version-etc.c (main): Likewise.
72801         * tests/test-wchar.c (main): Likewise.
72802         * tests/test-wctype.c (main): Likewise.
72803         * tests/test-xprintf-posix.c (main): Likewise.
72804         * tests/test-posixtm.c (main): Likewise.
72805         (STREQ): Delete unused macro.
72806         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
72807         shadowed variables.
72808         * tests/test-memchr.c (main): Likewise.
72810 2009-10-21  Eric Blake  <ebb9@byu.net>
72812         areadlinkat: avoid failure on older glibc
72813         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
72814         rather than mis-comparing 0 against FUNC_RESULT of char*.
72816 2009-10-21  Bruno Haible  <bruno@clisp.org>
72818         * modules/stpncpy (License): Relicense under LGPLv2+.
72819         Reported by David Lutterkort <lutter@redhat.com>.
72821 2009-10-20  Eric Blake  <ebb9@byu.net>
72823         utimensat: work around Solaris 9 bug
72824         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
72825         has trailing slash bugs.
72826         * tests/test-lutimens.h (test_lutimens): Enhance test.
72827         * tests/test-utimens.h (test_utimens): Likewise.
72828         * doc/posix-functions/utime.texi (utime): Enhance documentation.
72829         * doc/posix-functions/utimes.texi (utimes): Likewise.
72830         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72831         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
72832         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
72833         * doc/posix-functions/futimens.texi (futimens): Likewise.
72835         fdutimensat: new module
72836         * modules/fdutimensat: New file.
72837         * lib/fdutimensat.c (fdutimensat): Likewise.
72838         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
72839         * MODULES.html.sh (File system functions): Mention module.
72840         * modules/fdutimensat-tests: New test.
72841         * tests/test-fdutimensat.c: Likewise.
72843         doc: regenerate INSTALL
72844         * doc/INSTALL: Reflect recent autoconf update.
72845         * doc/INSTALL.ISO: Likewise.
72846         * doc/INSTALL.UTF-8: Likewise.
72848 2009-10-20  Pádraig Brady  <P@draigBrady.com>
72850         acl: warn if ACL support is not detected
72851         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
72853 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
72855         * lib/nproc.h: Add extern "C" block for C++.
72857 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
72858             Bruno Haible  <bruno@clisp.org>
72860         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
72861         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
72862         * doc/posix-functions/isalpha.texi: Likewise.
72863         * doc/posix-functions/isblank.texi: Likewise.
72864         * doc/posix-functions/iscntrl.texi: Likewise.
72865         * doc/posix-functions/isdigit.texi: Likewise.
72866         * doc/posix-functions/isgraph.texi: Likewise.
72867         * doc/posix-functions/islower.texi: Likewise.
72868         * doc/posix-functions/isprint.texi: Likewise.
72869         * doc/posix-functions/ispunct.texi: Likewise.
72870         * doc/posix-functions/isspace.texi: Likewise.
72871         * doc/posix-functions/isupper.texi: Likewise.
72872         * doc/posix-functions/isxdigit.texi: Likewise.
72874 2009-10-18  Bruno Haible  <bruno@clisp.org>
72876         Tests for module 'isblank'.
72877         * modules/isblank-tests: New file.
72878         * tests/test-isblank.c: New file.
72880         New module 'isblank'.
72881         * lib/isblank.c: New file.
72882         * m4/isblank.m4: New file.
72883         * modules/isblank: New file.
72884         * doc/posix-functions/isblank.texi: Mention the new module.
72886 2009-10-18  Bruno Haible  <bruno@clisp.org>
72888         New module 'ctype'.
72889         * lib/ctype.in.h: New file.
72890         * m4/ctype.m4: New file.
72891         * modules/ctype: New file.
72892         * doc/posix-headers/ctype.texi: Mention the new module.
72894 2009-10-18  Jim Meyering  <meyering@redhat.com>
72896         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
72897         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
72898         right after its initialization, rather than farther down.
72899         Keeping these in close proximity makes it easier to ensure
72900         that each such variable is initialized.  E.g.,
72902             LIB_CLOCK_GETTIME=
72903             AC_SUBST([LIB_CLOCK_GETTIME])
72905         This change also increments these serial numbers.
72906         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
72907         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72910 2009-10-18  Bruno Haible  <bruno@clisp.org>
72912         Don't let environment variables perturb build.
72913         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
72914         (gl_PREREQ_GETHRXTIME): ... not here.
72916 2009-10-18  Bruno Haible  <bruno@clisp.org>
72918         Avoid symlink attack in localcharset module.
72919         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
72920         (O_NOFOLLOW): Define fallback.
72921         (get_charset_aliases): Don't open the file if it is a symbolic link.
72922         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
72923         gl_FCNTL_H.
72924         (gl_FCNTL_H): Require it.
72925         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
72926         * modules/localcharset (Files): Add m4/fcntl_h.m4.
72927         Reported by Fergal Glynn <fglynn@veracode.com>.
72929 2009-10-18  Bruno Haible  <bruno@clisp.org>
72931         Implement nproc for mingw.
72932         * lib/nproc.c: Include <windows.h>
72933         (num_processors): On native Windows platforms, try GetSystemInfo.
72935 2009-10-18  Bruno Haible  <bruno@clisp.org>
72937         Implement nproc for IRIX.
72938         * lib/nproc.c: Include <sys/sysmp.h>.
72939         (num_processors): On IRIX systems, try sysmp.
72940         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
72942 2009-10-18  Bruno Haible  <bruno@clisp.org>
72944         Implement nproc for HP-UX.
72945         * lib/nproc.c: Include <sys/pstat.h>
72946         (num_processors): On HP-UX systems, try pstat_getdynamic.
72947         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
72948         pstat_getdynamic.
72950 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
72951             Bruno Haible  <bruno@clisp.org>
72953         Implement nproc for NetBSD, OpenBSD.
72954         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
72955         (ARRAY_SIZE): New macro.
72956         (num_processors): On BSD systems, try sysctl of HW_NCPU.
72957         * m4/nproc.m4: New file.
72958         * modules/nproc (Files): Add m4/nproc.m4.
72959         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
72960         (Makefile.am): Instead, augment lib_SOURCES.
72962 2009-10-18  Bruno Haible  <bruno@clisp.org>
72964         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
72965         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
72966         sys/param.h.
72968 2009-10-16  Eric Blake  <ebb9@byu.net>
72970         utimensat: new module
72971         * modules/utimensat: New file.
72972         * lib/utimensat.c (utimensat): Likewise.
72973         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72974         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
72975         so we can work around Linux bugs.
72976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
72977         * modules/sys_stat (Makefile.am): Substitute them.
72978         * lib/sys_stat.in.h (utimensat): Declare it.
72979         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
72980         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72981         * modules/utimensat-tests: New test.
72982         * tests/test-utimensat.c: Likewise.
72984         utimens: let lutimens work on non-symlinks
72985         * lib/utimens.c (lutimens): Fall back to utimens rather than
72986         failing with ENOSYS, when file is not a symlink.
72987         (utimens): Reduce redirection.
72988         * tests/test-lutimens.h (test_lutimens): Update test to cover
72989         non-symlinks.
72990         * tests/test-utimens.h (test_utimens): Update test to cover
72991         symlinks.
72992         * tests/test-utimens.c (main): Update caller.
72994         utimens: cache whether utimensat syscall works
72995         * lib/utimens.c (utimensat_works_really): New cache variable.
72996         (fdutimens, lutimens): Use it to avoid failing syscall.
72998         test-stat-time, test-utimens: improve portability
72999         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
73000         ext4 on alpha, and for cygwin.
73001         * tests/test-utimens-common.h: New file.
73002         (nap): Factor delays into single function.
73003         * tests/test-lutimens.h (test_lutimens): Use new header.
73004         * tests/test-futimens.h (test_futimens): Likewise.
73005         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
73006         timestamps to occur from same machine, as was done previously for
73007         test_utimens.
73008         * modules/utimens-tests (Files): Ship new file.
73009         * modules/futimens-tests (Files): Likewise.
73010         Reported in part by Jim Meyering.
73012         sys_stat: sort replacement declarations
73013         * lib/sys_stat.in.h: Sort declarations.
73014         * lib/futimens.c (futimens): Fix typo.
73016 2009-10-15  Jim Meyering  <meyering@redhat.com>
73018         don't let environment settings perturb build
73019         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
73020         could cause a configure-time and/or build-time malfunction.
73021         Typically, a configure-time function-in-library test is performed
73022         via code like this:
73024           LIB_VAR=
73025           AC_SUBST([LIB_VAR])
73026           prefix_saved_LIBS=$LIBS
73027             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
73028                        [test "$ac_cv_search_FUNC" = "none required" ||
73029                         LIB_VAR=$ac_cv_search_FUNC])
73030           LIBS=$prefix_saved_LIBS
73032         However, in each of the files affected by this change, the LIB_VAR=
73033         initialization was omitted.  Thus, when set in the environment, its
73034         value would propagate into generated Makefiles when FUNC is not found
73035         in LIB_NAME.
73036         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
73037         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73040 2009-10-14  Eric Blake  <ebb9@byu.net>
73042         fchdir: avoid infinite recursion in mingw
73043         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
73044         recursing.
73046         test-stat-time: port to mingw
73047         * tests/test-stat-time.c (force_unlink): Return a value.
73048         (test_ctime) [W32]: Fix compilation error.
73049         (nap): Don't call usleep with too large an argument.  Use
73050         force_unlink.
73051         * doc/pastposix-functions/usleep.texi (usleep): Document the
73052         portability issue.
73054 2009-10-13  Jim Meyering  <meyering@redhat.com>
73056         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
73057         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
73058         * modules/pipe-filter-ii: Likewise.
73059         * modules/sys_socket-tests: Likewise.
73060         * modules/tsearch-tests: Likewise.
73061         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
73062         (check): Depend on it.
73064 2009-10-12  Eric Blake  <ebb9@byu.net>
73066         utimens-tests: port to NFS file systems
73067         * tests/test-utimens.h (test_utimens): Refactor utimecmp
73068         comparisons to avoid spurious failures from timestamp drift
73069         between NFS machines.
73071 2009-10-12  Eric Blake  <ebb9@byu.net>
73073         stat-time-tests: minor cleanups
73074         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
73075         * tests/test-stat-time.c (nap): Separate assignment from call.
73076         Suggested by Paolo Bonzini and Bruno Haible.
73078         sys_stat: guarantee struct timespec
73079         * lib/sys_stat.in.h (includes): Always include <time.h>
73080         * modules/sys_stat (Depends-on): Add time.
73081         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
73082         mode_t permission values.
73083         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
73084         get at subsecond timestamps.
73086 2009-10-10  Eric Blake  <ebb9@byu.net>
73088         futimens: new module
73089         * modules/futimens: New file.
73090         * lib/futimens.c (futimens): Likewise.
73091         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
73092         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
73093         we can work around Linux bugs.
73094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
73095         * modules/sys_stat (Makefile.am): Substitute them.
73096         * lib/sys_stat.in.h (futimens): Declare it.
73097         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73098         * doc/posix-functions/futimens.texi (futimens): Likewise.
73099         * modules/futimens-tests: New test.
73100         * tests/test-futimens.c: Likewise.
73102         utimens: introduce fdutimens
73103         * lib/utimens.h (fdutimens): New prototype.
73104         * lib/utimens.c (gl_futimens): Move guts...
73105         (fdutimens): ...to new interface.
73106         * tests/test-utimens.c (do_fdutimens): Use it.
73108         utimens: add UTIME_NOW and UTIME_OMIT support
73109         * lib/utimens.c (validate_timespec, update_timespec): New helper
73110         functions.
73111         (gl_futimens, lutimens): Use them.
73112         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
73113         stdbool, sys_stat.
73114         (Link): Mention resulting library dependency.
73115         * modules/utimecmp (Link): Likewise.
73116         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
73117         (Makefile.am): Pick up library dependency.
73118         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
73119         definition.
73120         * tests/test-sys_stat.c: Test the definitions.
73121         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
73122         * NEWS: Document library dependency.
73124         utimecmp: support symlink timestamps
73125         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
73126         hashing when possible.  Use pathconf when available.
73127         (SYSCALL_RESOLUTION): Recognize tighter resolution.
73128         * modules/utimecmp (Depends-on): Add lstat.
73130         utimens: add lutimens interface
73131         * lib/utimens.c (lutimens): New function.
73132         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
73133         * lib/utimens.h (lutimens): Declare new interface.
73134         * tests/test-utimens.c (main): Enhance test.
73135         * tests/test-lutimens.h (test_lutimens): New file.
73136         * modules/utimens-tests (Files): Distribute it.
73137         (Depends-on): Add symlink.
73138         (configure.ac): Check for usleep.
73140         utimens: validate futimens usage
73141         * lib/utimens.c (gl_futimens): Require valid fd up front, using
73142         fewer syscalls on failure later on.  Avoid compiler warning on
73143         mingw.
73144         * modules/utimens (Depends-on): Add dup2.
73146         utimens: add test
73147         * modules/utimens-tests: New test.
73148         * tests/test-utimens.h: New file.
73149         * tests/test-futimens.h: Likewise.
73150         * tests/test-utimens.c: Likewise.
73152         doc: mention timestamp portability issues
73153         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
73154         instead.
73155         * doc/posix-functions/utime.texi (utime): Likewise.
73156         * doc/posix-functions/utimes.texi (utimes): Likewise.
73157         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
73158         instead.
73159         * doc/posix-functions/futimens.texi (futimens): Mention utimens
73160         module.
73161         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73162         Mention weakness with symlink timestamps.
73163         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
73164         to utimensat/futimens instead.
73165         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
73167         test-dup2: enhance test
73168         * tests/test-dup2.c (main): Also check AT_FDCWD.
73170         test-stat-time: avoid more spurious failures
73171         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
73172         xfs; and avoid race if the two timestamps cross quantization edge.
73174         relocatable: prefer 'file system' over 'filesystem'
73175         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
73176         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
73177         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
73178         * doc/relocatable.texi (Enabling Relocatability): Likewise.
73179         * lib/relocatable.c (compute_curr_prefix): Likewise.
73181 2009-10-10  Jim Meyering  <meyering@redhat.com>
73183         stat-time-tests: check for the usleep function
73184         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
73186 2009-10-10  Bruno Haible  <bruno@clisp.org>
73188         * modules/xnanosleep: Put the Link section after the Include section.
73190 2009-10-09  Eric Blake  <ebb9@byu.net>
73192         dup2: work around FreeBSD 6.1 bug
73193         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
73194         * doc/posix-functions/dup2.texi (dup2): Document it.
73195         Reported by Nelson H. F. Beebe and Jim Meyering.
73197         test-stat-time: port to buggy NFS clients
73198         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
73199         (test_ctime): Also skip test if mtime and ctime are skewed.
73201         maint: prefer 'file system' over 'filesystem'
73202         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
73203         * doc/posix-functions/lstat.texi (lstat): Likewise.
73204         * lib/file-has-acl.c (file_has_acl): Likewise.
73205         * lib/fwriteerror.c [TEST]: Likewise.
73206         * tests/test-areadlink.h (test_areadlink): Likewise.
73207         * tests/test-areadlinkat-with-size.c (main): Likewise.
73208         * tests/test-areadlinkat.c (main): Likewise.
73209         * tests/test-canonicalize-lgpl.c (main): Likewise.
73210         * tests/test-canonicalize.c (main): Likewise.
73211         * tests/test-fstatat.c (main): Likewise.
73212         * tests/test-linkat.c (main): Likewise.
73213         * tests/test-lstat.h (test_lstat_func): Likewise.
73214         * tests/test-mkdir.h (test_mkdir): Likewise.
73215         * tests/test-readlink.h (test_readlink): Likewise.
73216         * tests/test-remove.c (main): Likewise.
73217         * tests/test-rename.h (test_rename): Likewise.
73218         * tests/test-renameat.c (main): Likewise.
73219         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73220         * tests/test-symlink.h (test_symlink): Likewise.
73221         * tests/test-symlinkat.c (main): Likewise.
73222         * tests/test-unlink.h (test_unlink_func): Likewise.
73223         * tests/test-unlinkat.c (main): Likewise.
73225         maint: make realtime library usage explicit
73226         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
73227         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
73228         * modules/settime (Link): Likewise.
73229         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
73231         test-stat-time: speed up execution
73232         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
73233         warning on mingw.
73234         (nap): New helper function.
73235         (prepare_test): Use it to reduce sleep time.
73236         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
73237         execution.
73238         * modules/stat-time-tests (configure.ac): Check for usleep.
73240 2009-10-09  Jim Meyering  <meyering@redhat.com>
73242         selinux-h: always use getfilecon wrappers
73243         * lib/getfilecon.c: New file.
73244         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
73245         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
73246         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
73247         (fgetfilecon): Provide a stub.
73248         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
73249         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
73250         file unconditionally.
73251         When <selinux/selinux.h> is found, arrange to use wrappers.
73252         * modules/selinux-h (Files): Add getfilecon.c.
73253         (Makefile.am): Substitute include-next-related bits
73254         into the now-always-generated selinux/selinux.h file.
73255         * doc/glibc-functions/lgetfilecon.texi: New file.
73256         * doc/glibc-functions/fgetfilecon.texi: New file.
73257         * doc/glibc-functions/getfilecon.texi: New file.
73258         * doc/glibc-functions/getfilecon-desc.texi: New file.
73259         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
73260         which to pull in the new files.
73261         * MODULES.html.sh (Misc): Add selinux-h.
73263 2009-10-08  Jim Meyering  <meyering@redhat.com>
73265         unistd: fix comment typo
73266         * lib/unistd.in.h (euidaccess): Fix a comment typo.
73268 2009-10-08  Eric Blake  <ebb9@byu.net>
73270         areadlink: use SIZE_MAX consistently
73271         * modules/areadlink (Depends-on): Add stdint.
73272         * modules/areadlink-with-size (Depends-on): Likewise.
73273         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
73274         gives NULL; drop sys/types, since unistd gives size_t; and add
73275         stdint for SIZE_MAX.
73276         (SIZE_MAX): Rely on headers.
73277         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
73278         and add stdint.
73279         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
73280         (SIZE_MAX): Likewise.
73281         (INITIAL_BUF_SIZE): Turn into enum.
73282         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
73284 2009-10-08  Jim Meyering  <meyering@redhat.com>
73286         areadlinkat: avoid compilation failure
73287         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
73288         Fix typo in comment.
73290 2009-10-07  Eric Blake  <ebb9@byu.net>
73292         areadlinkat-with-size: new module
73293         * modules/areadlinkat-with-size: New module.
73294         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
73295         * lib/areadlink.h (areadlinkat): Declare it.
73296         * MODULES.html.sh (File system functions): Mention it.
73297         * modules/areadlinkat-with-size-tests: New test.
73298         * tests/test-areadlinkat-with-size.c: New file.
73300         xreadlinkat: new module
73301         * modules/xreadlinkat: New module.
73302         * lib/xreadlinkat.c (xreadlinkat): New file.
73303         * lib/xreadlink.h (xreadlinkat): Declare it.
73304         * MODULES.html.sh (File system functions): Mention it.
73306         areadlinkat: new module
73307         * lib/at-func.c (FUNC_FAIL): New define.
73308         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
73309         * modules/areadlinkat: New module.
73310         * lib/linkat.c (areadlinkat): Move...
73311         * lib/areadlinkat.c (areadlinkat): ...to new file.
73312         * lib/areadlink.h (areadlinkat): Declare it.
73313         * modules/linkat (Depends-on): Add areadlinkat.
73314         * MODULES.html.sh (File system functions): Mention it.
73315         * modules/areadlinkat-tests: New test.
73316         * tests/test-areadlinkat.c: New file.
73318         areadlink, areadlink-with-size: add tests
73319         * modules/areadlink-tests: New test.
73320         * modules/areadlink-with-size-tests: Likewise.
73321         * tests/test-areadlink.h: New file.
73322         * tests/test-areadlink.c: Likewise.
73323         * tests/test-areadlink-with-size.c: Likewise.
73325         maint: minor cleanups
73326         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
73327         _UNUSED_PARAMETER_ instead.
73328         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
73329         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
73330         * modules/linkat-tests (Files): Distribute test-link.h.
73332         openat, utimens: whitespace cleanup
73333         * lib/openat.c: Prefer space throughout, rather than mix of 8
73334         spaces vs. tabs.
73335         * lib/at-func.c: Likewise.
73336         * lib/utimens.c: Likewise.
73338         openat: avoid using wrong fd
73339         * lib/openat.c (openat_permissive): Reject user's fd if saving the
73340         working directory chooses same fd.
73341         * lib/at-func.c (AT_FUNC_NAME): Likewise.
73343         mkdir, mkdirat: fix cygwin 1.5.x bug
73344         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
73345         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
73346         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
73347         bug.
73348         (gl_PREREQ_MKDIR): Delete unused macro.
73349         * modules/mkdir (Files): Track file rename.
73350         (configure.ac): Update macro name.
73351         * modules/openat (Depends-on): Add mkdir.
73352         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
73354         mkdir, mkdirat: add tests
73355         * modules/mkdir-tests: New test.
73356         * tests/test-mkdir.h: New file.
73357         * tests/test-mkdir.c: Likewise.
73358         * tests/test-mkdirat.c: Likewise.
73359         * modules/openat-tests (Files): Add new files.
73360         (Makefile.am): Run new test.
73362 2009-10-06  Eric Blake  <ebb9@byu.net>
73364         doc: tweak *at function documentation
73365         * doc/posix-functions/faccessat.texi (faccessat): Mention
73366         known issue with replacement.
73367         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
73368         * doc/posix-functions/linkat.texi (linkat): Likewise.
73369         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
73370         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
73371         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
73372         * doc/posix-functions/renameat.texi (renameat): Likewise.
73373         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
73375         openat: fix GNU/Hurd bug in unlinkat
73376         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
73377         broken.
73378         * doc/posix-functions/unlink.texi (unlink): Document this.
73379         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
73381         fdopendir: fix GNU/Hurd bug
73382         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
73383         allowing non-directory fds.
73384         * lib/fdopendir.c (rpl_fdopendir): Work around it.
73385         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
73386         * modules/dirent (Makefile.am): Substitute it.
73387         * lib/dirent.in.h (fdopendir): Declare replacement.
73388         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
73389         * tests/test-fdopendir.c (main): Test something other than
73390         /dev/null, since on Hurd that behaves like a directory.
73392         test-symlink: port to GNU/Hurd
73393         * tests/test-symlink.h (test_symlink): Relax expected errno.
73395         doc: tweak more cygwin information
73396         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
73397         now compatible with glibc.
73398         * doc/posix-functions/getopt.texi (getopt): Likewise.
73400         getopt-gnu: add another test
73401         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
73402         guarantee behavior relied on by m4.
73403         * tests/test-getopt.c (main): Use it.
73404         * modules/getopt-posix-tests (Depends-on): Add setenv.
73405         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
73407         getopt: fix compilation on darwin
73408         * lib/getopt.in.h (includes): Leave breadcrumbs during system
73409         include.
73410         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
73411         Reported by Ludovic Courtès.
73413 2009-10-06  Bruno Haible  <bruno@clisp.org>
73415         * modules/size_max (Description): Discourage its use.
73416         Reported by Simon Josefsson.
73418 2009-10-06  Jim Meyering  <meyering@redhat.com>
73420         linkat: avoid compilation failure
73421         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
73423 2009-10-05  Eric Blake  <ebb9@byu.net>
73425         linkat: support Linux 2.6.17
73426         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
73427         linkat on Linux, but allow cache variable override.
73428         * lib/linkat.c (rpl_linkat): Define override.
73429         * modules/linkat (Depends-on): Add symlinkat.
73430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
73431         * modules/unistd (Makefile.am): Substitute it.
73432         * lib/unistd.in.h (linkat): Declare replacement.
73433         Reported by Pádraig Brady.
73435         quotearg: port test to systems with C.UTF-8 locale
73436         * tests/test-quotearg.c (struct result_strings): Add another
73437         member, differentiating between C.ASCII and C.UTF-8 handling.
73438         (compare_strings): Add parameter.
73439         (main): Adjust all callers.
73441         getopt: avoid clash with FreeBSD _getopt_internal
73442         * lib/getopt.in.h (_getopt_internal): Override the name.
73443         * lib/getopt_int.h (includes): Pick up any overrides.
73444         Reported by Reuben Thomas.
73446         hash: allow C89 compilation
73447         * lib/hash.c (check_tuning): Move declaration before statement.
73448         Reported by Reuben Thomas.
73450 2009-10-05  Karl Berry  <karl@gnu.org>
73452         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
73454 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
73455             Bruno Haible  <bruno@clisp.org>
73457         * lib/uname.c (uname): Use a table-driven algorithm to compute
73458         Windows NT versions.
73460 2009-10-04  Bruno Haible  <bruno@clisp.org>
73462         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
73463         program_invocation_short_name.
73464         * modules/progname (configure.ac): Test for presence of
73465         program_invocation_short_name.
73466         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
73468 2009-10-04  Bruno Haible  <bruno@clisp.org>
73470         * lib/progname.c (set_program_name): Fix comment.
73471         Reported by Jim Meyering.
73473 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
73474             Bruno Haible  <bruno@clisp.org>
73476         * lib/uname.c: Include <string.h>.
73477         (uname): Do only one call to GetVersionEx in the common case.
73479 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
73480             Bruno Haible  <bruno@clisp.org>
73482         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
73483         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
73484         (uname): Add support for Windows CE and various non-x86 CPU types.
73486 2009-10-03  Bruno Haible  <bruno@clisp.org>
73488         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
73489         invocation to tests/configure.ac.
73490         Reported by Ian Beckwith <ianb@erislabs.net>.
73492 2009-10-02  Eric Blake  <ebb9@byu.net>
73494         fchdir: avoid compiler warning
73495         * lib/fchdir.c (canonicalize_file_name)
73496         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
73498         test-open: support mingw errno values
73499         * tests/test-open.h (test_open): Relax test.
73500         * tests/test-fopen.h (test_fopen): Likewise.
73501         * tests/test-openat-safer.c (main): Likewise.
73503         open: fix opening directory on mingw
73504         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
73506         test-open: on GNU/Hurd, /dev/null is a directory
73507         * tests/test-fopen.h (main): Rename...
73508         (test_fopen): ...to this.  Use a guaranteed non-directory when
73509         confirming open behavior on trailing slash.
73510         * tests/test-openat-safer.c (main): Likewise.
73511         * tests/test-open.h (main): Likewise....
73512         (test_open): ...to this.
73513         * tests/test-fopen.c (main): Adjust caller.
73514         * tests/test-fopen-safer.c (main): Likewise.
73515         * tests/test-open.c (main): Likewise.
73516         * tests/test-fcntl-safer.c (main): Likewise.
73517         Reported by Samuel Thibault.
73519         rename, fchdir: don't ignore chdir failure
73520         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
73521         * lib/rename.c (rpl_rename) [W32]: Likewise.
73522         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
73523         an empty destination directory if source cannot be renamed,
73524         although there is still possibility for failure.
73525         * doc/posix-functions/rename.texi (rename): Document the race.
73526         Reported by Jim Meyering.
73528         maint: cleanup whitespace in recent commits
73529         * lib/rename.c (rpl_rename): Remove tabs.
73530         * tests/test-link.h (test_link): Likewise.
73531         * lib/fchdir.c (get_name): Likewise.
73532         Reported by Jim Meyering.
73534 2009-10-02  Ben Pfaff  <blp@gnu.org>
73536         relocatable-prog-wrapper: Add missing dependency on
73537         double-slash-root.
73538         * modules/relocatable-prog-wrapper: Add dependency.
73539         Reported by Ian Beckwith <ianb@erislabs.net>.
73541 2009-10-02  Eric Blake  <ebb9@byu.net>
73543         renameat: fix Solaris bugs
73544         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
73545         needed fixing.
73546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
73547         * modules/stdio (Makefile.am): Substitute it.
73548         * lib/stdio.in.h (renameat): Declare replacement.
73549         * lib/renameat.c (rpl_renameat): Implement fix.
73551         renameat: new module
73552         * modules/renameat: New file.
73553         * lib/renameat.c (renameat): Likewise.
73554         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
73555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
73556         * modules/stdio (Makefile.am): Substitute them.
73557         * lib/stdio.in.h (renameat): Declare it.
73558         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73559         * doc/posix-functions/renameat.texi (renameat): Likewise.
73560         * modules/renameat-tests: New test.
73561         * tests/test-renameat.c: Likewise.
73563         rename: fix mingw bugs
73564         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
73565         directory overwrite bugs.
73567         rename: fix another cygwin 1.5 bug
73568         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
73569         checks.
73570         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
73571         unnecessary cygwin workarounds.  Also work around bug with moving
73572         full directory onto an empty one.
73573         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
73575         rename-dest-slash: merge into rename module
73576         * modules/rename-dest-slash (Status): Mark obsolete.
73577         (Depends-on): Add rename.
73578         (Files): Let rename do it all.
73579         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
73580         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
73581         * m4/rename-dest-slash.m4: ...so this file can be deleted.
73582         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
73583         * lib/rename.c (rpl_rename): Update comments.
73585         rename: fix cygwin 1.5.x bugs
73586         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
73587         * lib/rename.c (rpl_rename): Work around them.
73588         * modules/rename (Depends-on): Add same-inode.
73590         rename: fix Solaris 10 bug
73591         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
73592         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
73593         was the only bug.
73595         rename: fix Solaris 9 bug
73596         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
73597         on non-directory.  Avoid calling exit.
73598         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
73599         strdup.
73600         * modules/rename-tests (Depends-on): Drop lstat.
73601         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
73602         (gl_PREREQ_RENAME): Delete unused macro.
73604         rename-dest-slash: fix NetBSD bug
73605         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
73606         links.
73607         * modules/rename-dest-slash (Depends-on): Add same-inode.
73609         rename-tests: new test, exposes several platform bugs
73610         * modules/rename-tests: New file.
73611         * tests/test-rename.h: Likewise.
73612         * tests/test-rename.c: Likewise.
73613         * doc/posix-functions/rename.texi (rename): Improve documentation,
73614         including bugs that will eventually be fixed in gnulib.
73616 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
73618         * lib/uname.c: Include <stdlib.h>
73619         (uname): Assume version info is available.
73621 2009-10-02  Jim Meyering  <meyering@redhat.com>
73623         gnu-web-doc-update: correct --help output
73624         * build-aux/gnu-web-doc-update: Make --help output relevant.
73626         gnu-web-doc-update: add standard options
73627         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
73629         gnu-web-doc-update: New module.
73630         Use this script to automatically update the on-line web documentation
73631         for your GNU project at http://www.gnu.org/software/$pkg/manual/
73632         * modules/gnu-web-doc-update: New file, from coreutils.
73633         * build-aux/gnu-web-doc-update: New script.
73635 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
73637         link: LoadLibrary is not needed.
73638         * lib/link.c: Use GetModuleHandle.
73640 2009-10-01  Eric Blake  <ebb9@byu.net>
73642         getopt: bump serial number
73643         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
73644         change.
73646         tests: tighten link, rmdir, and remove tests
73647         * tests/test-link.h (includes): No need to use <config.h> here.
73648         Clean up if directory hard link was created, otherwise test for
73649         trailing '.'.
73650         * tests/test-linkat.c (main): Simplify.
73651         * tests/test-remove.c (main): Enhance test for trailing '.'.
73652         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73654 2009-10-01  Jim Meyering  <meyering@redhat.com>
73656         maint.mk: requiring "make major" was annoying, for a "minor" release.
73657         What is intended is "stable", to contrast with alpha and beta,
73658         so require "make stable", not "make major".
73659         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
73660         (get_tool_versions): Likewise.
73661         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
73663 2009-09-30  Ben Pfaff  <blp@gnu.org>
73665         Fix broken build of replacement for Windows tmpfile().
73666         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
73667         flags argument added along with the 'mkostemp' module.
73669 2009-09-28  Bruno Haible  <bruno@clisp.org>
73671         Avoid identifier clash with POSIX function 'remove' defined as a macro.
73672         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
73673         to 'remove_elt'.
73674         (gl_list_remove): Update.
73675         * lib/gl_list.c (gl_list_remove): Update.
73676         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
73677         to 'remove_elt'.
73678         (gl_oset_remove): Update.
73679         * lib/gl_list.c (gl_oset_remove): Update.
73680         Reported by Eric Blake.
73682 2009-09-28  Eric Blake  <ebb9@byu.net>
73684         doc: mention yet more cygwin 1.7 status
73685         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
73686         cygwin.
73687         * doc/glibc-functions/execvpe.texi (execvpe): New file.
73688         * doc/gnulib.texi (Glibc unistd.h): Mention it.
73690         argp: fix test failure
73691         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
73692         that are not upper-case.  Pass correct range to tolower.
73694 2009-09-27  Jim Meyering  <meyering@redhat.com>
73696         test-yesno: work around sparc-dash here-document infelicity
73697         Without this change, the literal \177 byte in a here document
73698         would make dash 0.5.5.1-3 access uninitialized memory.
73699         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
73700         Instead, use a marker, "@", and filter through tr to create the desired
73701         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
73703 2009-09-27  Bruno Haible  <bruno@clisp.org>
73705         Disable untested support for new flavours of ACLs on AIX.
73706         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
73707         progress.
73708         * lib/set-mode-acl.c (qset_acl): Likewise.
73710 2008-12-07  Bruno Haible  <bruno@clisp.org>
73712         Add support for new flavours of ACLs on AIX. (Untested.)
73713         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
73714         (file_has_acl): Add support for newer AIX.
73715         * lib/set-mode-acl.c (qset_acl): Likewise.
73716         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
73717         Rainer Tammer <tammer@tammer.net>.
73719 2009-09-26  Eric Blake  <ebb9@byu.net>
73721         argp: fix compilation of getopt
73722         * lib/getopt.in.h (includes): Use different guard than glibc.
73723         Reported by Sergey Poznyakoff.
73725         doc: mention more cygwin 1.7 status
73726         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
73727         bug.
73728         * doc/posix-functions/execl.texi (execl): Likewise.
73729         * doc/posix-functions/execle.texi (execle): Likewise.
73730         * doc/posix-functions/execlp.texi (execlp): Likewise.
73731         * doc/posix-functions/execv.texi (execv): Likewise.
73732         * doc/posix-functions/execve.texi (execve): Likewise.
73733         * doc/posix-functions/execvp.texi (execvp): Likewise.
73734         * doc/glibc-functions/canonicalize_file_name.texi
73735         (canonicalize_file_name): Cygwin 1.7 now provides this.
73736         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
73737         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
73738         on AT_SYMLINK_NOFOLLOW.
73740 2009-09-24  Eric Blake  <ebb9@byu.net>
73742         test-linkat: make test more robust
73743         * tests/test-linkat.c (main): Avoid collision with EEXIST.
73745         getopt: fix inclusion guards for cygwin
73746         * modules/getopt-posix (Depends-on): Add include-next.
73747         (Makefile.am): Substitute more items in replacement header.
73748         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
73749         <getopt.h>.
73750         * lib/getopt.in.h (includes): Use split inclusion guard, and
73751         prefer <getopt.h> over include <unistd.h> when one is present.
73752         (option): Also override name of 'struct option'.
73754         same-inode: revert prior change; it is not yet ready
73755         * NEWS: Undo mention of this change.
73756         * lib/same-inode.h (same-inode.h): Undo tri-state change.
73757         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
73758         * lib/cycle-check.c (cycle_check): Likewise.
73759         * lib/same.c (same_name): Likewise.
73760         * lib/at-func2.c (at_func2): Likewise.
73762 2009-09-23  Eric Blake  <ebb9@byu.net>
73764         linkat: new module
73765         * modules/linkat: New file.
73766         * lib/at-func2.c (at_func2): Likewise.
73767         * lib/linkat.c (linkat): Likewise.
73768         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
73769         * lib/openat-priv.h (at_func2): Add declaration.
73770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
73771         * modules/unistd (Makefile.am): Substitute them.
73772         * lib/unistd.in.h (linkat): Declare it.
73773         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
73774         * doc/posix-functions/linkat.texi (linkat): Likewise.
73775         * doc/posix-functions/link.texi (link): Tweak wording.
73776         * tests/test-link.c (main): Move guts...
73777         * tests/test-link.h (test_link): ...into new file.
73778         * modules/linkat-tests: New test.
73779         * tests/test-linkat.c: Likewise.
73780         * modules/link-tests (Files): Ship new file.
73781         (Depends-on): Add stdbool.
73783         dirname: add library-safe mdir_name
73784         * lib/dirname.h (mdir_name): New prototype.
73785         * lib/dirname.c (dir_name): Move guts...
73786         (mdir_name): ...to new function that avoids xalloc_die.
73788         fchdir: another mingw fix
73789         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
73790         * lib/fchdir.c (get_name): New helper method; skips canonicalize
73791         on mingw (where it has not yet been ported), and make it optional
73792         elsewhere.
73793         (_gl_register_fd): Use it.
73795         same-inode: make SAME_INODE tri-state, to port to mingw
73796         * NEWS: Mention this change.
73797         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
73798         st_ino always being 0.
73799         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
73800         * lib/cycle-check.c (cycle_check): Likewise.
73801         * lib/same.c (same_name): Likewise.
73803         lstat: avoid mingw compilation error
73804         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
73805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
73806         lstat ourselves.
73807         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
73808         was adequate.
73809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
73810         the checks for lstat.
73811         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
73813         link: fix test failure on Solaris 9
73814         * lib/link.c (rpl_link): Don't assume link will catch bogus
73815         trailing slash on source.
73817         test-symlinkat: enhance test
73818         * tests/test-readlink.c (main): Move guts...
73819         * tests/test-readlink.h (test_readlink): ...into new file.
73820         * tests/test-symlink.c (main): Move guts...
73821         * tests/test-symlink.h (test_symlink): ...into new file.
73822         * tests/test-symlinkat.c (main): Use new files for further
73823         coverage.
73824         (do_symlink, do_readlink): New helper functions.
73825         * modules/symlink-tests (Files): Ship new file.
73826         (Depends-on): Add stdbool.
73827         * modules/readlink-tests (Files): Ship new file.
73828         (Depends-on): Add stdbool.
73829         * modules/symlinkat-tests (Files): Use new files.
73831 2009-09-23  Eric Blake  <ebb9@byu.net>
73833         readlink: document portability issue with symlink length
73834         * doc/posix-functions/lstat.texi (lstat): Mention that some file
73835         systems have bogus st_size on symlinks, and mention the
73836         areadlink-with-size module.
73837         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
73838         * doc/posix-functions/readlink.texi (readlink): Mention the
73839         areadlink module, and ERANGE failure.
73840         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
73841         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
73843         readlink: fix Solaris 9 bug with trailing slash
73844         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
73845         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
73846         * doc/posix-functions/readlink.texi (readlink): Document this.
73847         * modules/readlink-tests: New test.
73848         * tests/test-readlink.c: Likewise.
73850         readlink: fix cygwin 1.5.x bug with return type
73851         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
73852         * lib/unistd.in.h (readlink): Use ssize_t.
73853         * lib/readlink.c (readlink): Likewise.
73854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73855         * modules/unistd (Makefile.am): Substitute it.
73856         * lib/unistd.in.h (readlink): Declare replacement.
73857         * doc/posix-functions/readlink.texi (readlink): Document this.
73859         symlink: use throughout gnulib
73860         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
73861         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
73862         symlink is not used.
73863         * modules/symlinkat (Depends-on): Add symlink.
73864         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
73865         * modules/canonicalize-tests (Depends-on): Likewise.
73866         * modules/lstat-tests (Depends-on): Likewise.
73867         * modules/openat-tests (Depends-on): Likewise.
73868         * modules/remove-tests (Depends-on): Likewise.
73869         * modules/rmdir-tests (Depends-on): Likewise.
73870         * modules/unlink-tests (Depends-on): Likewise.
73871         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
73872         * tests/test-canonicalize.c (symlink): Likewise.
73873         * tests/test-fstatat.c (symlink): Likewise.
73874         * tests/test-lstat.c (symlink): Likewise.
73875         * tests/test-remove.c (symlink): Likewise.
73876         * tests/test-rmdir.c (symlink): Likewise.
73877         * tests/test-unlink.c (symlink): Likewise.
73878         * tests/test-unlinkat.c (symlink): Likewise.
73880         symlink: new module, for Solaris 9 bug
73881         * modules/symlink: New file.
73882         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
73883         * lib/symlink.c: Likewise.
73884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73885         * modules/unistd (Makefile.am): Substitute them.
73886         * lib/unistd.in.h (symlink): Declare replacement.
73887         * MODULES.html.sh (File system functions): Mention it.
73888         * doc/posix-functions/symlink.texi (symlink): Likewise.
73889         * modules/symlink-tests: New test.
73890         * tests/test-symlink.c: Likewise.
73892 2009-09-23  Bruno Haible  <bruno@clisp.org>
73894         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
73895         when needed.
73896         Test case: gnulib-tool --import --with-tests atexit inttypes.
73897         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
73899 2009-09-23  Bruno Haible  <bruno@clisp.org>
73901         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
73902         subcommand, not in a subshell.
73904 2009-09-22  Eric Blake  <ebb9@byu.net>
73906         unistd: sort replacement declarations
73907         * lib/unistd.in.h: Sort declarations.
73909         open, openat: minor optimization
73910         * lib/open.c (open): If open succeeded, len is non-zero.
73911         * lib/openat.c (rpl_openat): Likewise.
73913         link-follow: ensure correct result
73914         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
73915         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
73916         distinguish between possible failures.
73918 2009-09-21  Eric Blake  <ebb9@byu.net>
73920         fts: avoid compiler warning
73921         * lib/fts.c (dirent_inode_sort_may_be_useful)
73922         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
73924 2009-09-19  Bruno Haible  <bruno@clisp.org>
73926         * lib/progreloc.c (canonicalize_file_name): New declaration.
73928 2009-09-19  Eric Blake  <ebb9@byu.net>
73930         link: fix quoting
73931         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
73933         openat: fix openat bugs on Solaris 9
73934         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
73935         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
73936         * modules/openat (Depends-on): Add open.
73937         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
73938         * modules/fcntl-h (Makefile.am): Substitute it.
73939         * lib/fcntl.in.h (openat): Declare replacement.
73940         * doc/posix-functions/openat.texi (openat): Document this.
73942         openat: move fstatat and unlinkat into correct files
73943         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
73944         compiled.
73945         * lib/openat.c (fstatat, unlinkat): Move...
73946         * lib/fstatat.c (fstatat): ...into correct files.
73947         * lib/unlinkat.c (unlinkat): Likewise.
73949         openat: fix unlinkat bugs on Solaris 9
73950         * lib/unlinkat.c (unlinkat): New file.
73951         * modules/openat (Depends-on): Add unlink.
73952         (Files): Distribute it.
73953         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
73954         trailing slash behavior is broken.
73955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73956         * modules/unistd (Makefile.am): Substitute it.
73957         * lib/unistd.in.h (unlinkat): Declare replacement.
73958         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
73960         openat: fix fstatat bugs on Solaris 9
73961         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
73962         stat.
73963         * doc/posix-functions/fstatat.texi (fstatat): Document this.
73965         test-unlinkat: enhance test, to expose Solaris 9 bug
73966         * tests/test-unlink.c (main): Factor guts...
73967         * tests/test-unlink.h (test_rmdir_func): ...into new file.
73968         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
73969         * tests/test-rmdir.c (main): Adjust caller.
73970         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
73971         (unlinker): New helper function.
73972         (rmdirat): Enhance check.
73973         * modules/rmdir-tests (Depends-on): Add stdbool.
73974         * modules/unlink-tests (Depends-on): Likewise.
73975         (Files): Add test-unlink.h.
73976         * modules/openat-tests (Files): Likewise.
73977         (Depends-on): Add unlinkdir.
73979         test-fstatat: new test, to expose Solaris 9 bugs
73980         * tests/test-stat.c (main): Factor guts...
73981         * tests/test-stat.h (test_stat_func): ...into new file.
73982         * tests/test-lstat.c (main): Factor guts...
73983         * tests/test-lstat.h (test_lstat_func): ...into new file.
73984         * tests/test-fstatat.c: New file.
73985         * modules/stat-tests (Files): Add test-stat.h.
73986         * modules/lstat-tests (Files): Add test-lstat.h.
73987         (Depends-on): Add stdbool.
73988         * modules/openat-tests (Depends-on): Add pathmax.
73989         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
73990         (Makefile.am): Run new test.
73992         remove: new module, for mingw and Solaris 9 bugs
73993         * modules/remove: New file.
73994         * lib/remove.c: Likewise.
73995         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
73996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
73997         * modules/stdio (Makefile.am): Use them.
73998         * lib/stdio.in.h (remove): Declare replacement.
73999         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74000         * doc/posix-functions/remove.texi (remove): Likewise.
74001         * modules/remove-tests: New test.
74002         * tests/test-remove.c: Likewise.
74004         unlink: new module, for Solaris 9 bug
74005         * modules/unlink: New file.
74006         * lib/unlink.c: Likewise.
74007         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
74008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
74009         * modules/unistd (Makefile.am): Use them.
74010         * lib/unistd.in.h (stat): Declare replacement.
74011         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74012         * doc/posix-functions/unlink.texi (unlink): Likewise.
74013         * modules/unlink-tests: New test.
74014         * tests/test-unlink.c: Likewise.
74016         lstat: fix Solaris 9 bug
74017         * lib/lstat.c (lstat): Also check for trailing slash on
74018         non-symlink, non-directories.  Use stat module to simplify logic.
74019         * doc/posix-functions/lstat.texi (lstat): Document it.
74020         * modules/lstat-tests (Depends-on): Add errno, same-inode.
74021         (configure.ac): Check for symlink.
74022         * tests/test-lstat.c (main): Add more tests.
74024         stat: add as dependency to other modules
74025         * modules/chown (Depends-on): Add stat.
74026         * modules/euidaccess (Depends-on): Likewise.
74027         * modules/fchdir (Depends-on): Likewise.
74028         * modules/isdir (Depends-on): Likewise.
74029         * modules/link (Depends-on): Likewise.
74030         * modules/lstat (Depends-on): Likewise.
74031         * modules/mkdir-p (Depends-on): Likewise.
74032         * modules/modechange (Depends-on): Likewise.
74033         * modules/open (Depends-on): Likewise.
74034         * modules/readlink (Depends-on): Likewise.
74035         * modules/same (Depends-on): Likewise.
74037         stat: fix Solaris 9 bug
74038         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
74039         slash.
74040         * lib/stat.c (rpl_stat): Work around it.
74041         * doc/posix-functions/stat.texi (stat): Update documentation.
74043         stat: new module, for mingw bug
74044         * modules/stat: New file.
74045         * lib/stat.c: Likewise.
74046         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74048         * modules/sys_stat (Makefile.am): Use them.
74049         * lib/sys_stat.in.h (stat): Declare replacement.
74050         * lib/openat.c (fstatat): Deal with lstat and stat being function
74051         macros.
74052         * modules/openat (Depends-on): Add inline.
74053         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74054         * doc/posix-functions/stat.texi (stat): Likewise.
74055         * modules/stat-tests: New test.
74056         * tests/test-stat.c: Likewise.
74058 2009-09-19  Jim Meyering  <meyering@redhat.com>
74060         syntax-check: detect unnecessary inclusion of canonicalize.h
74061         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
74063 2009-09-19  Eric Blake  <ebb9@byu.net>
74065         canonicalize-lgpl: adjust clients to use correct header
74066         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
74067         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
74068         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
74069         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
74070         * lib/progreloc.c (includes): Likewise.
74072 2009-09-19  Jim Meyering  <meyering@redhat.com>
74074         test-posixtm.c: correct a comment
74075         * tests/test-posixtm.c: Correct first-line comment.
74076         Spotted by Eric Blake.
74078 2009-09-16  Jim Meyering  <meyering@redhat.com>
74080         posixtm-tests: make T const-correct; add a test case
74081         * tests/test-posixtm.c (T): Declare const.
74082         Add a test for -(2^31+1).
74083         Remove useless can-succeed-only-in-2002 test.
74085         posixtm-tests: adjust the sole failing test
74086         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
74087         expected output matches what mktime now produces.  Cross-checked via
74088         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
74090         posixtm: move #ifdef'd tests into a new module
74091         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
74092         * tests/test-posixtm.c: ... this new file.
74093         * modules/posixtm-tests: New module.
74095 2009-09-19  Eric Blake  <ebb9@byu.net>
74097         openat: simplify use of at-func.c
74098         * lib/at-func.c (includes): Include prerequisites here, to
74099         simplify requirements on client files.
74100         * lib/openat-priv.h: Add double-inclusion guard.
74101         * lib/faccessat.c (includes): Simplify.
74102         * lib/fchmodat.c (includes): Likewise.
74103         * lib/fchownat.c (includes): Likewise.
74104         * lib/mkdirat.c (includes): Likewise.
74105         * lib/mkfifoat.c (includes): Likewise.
74106         * lib/symlinkat.c (includes): Likewise.
74108         openat: allow return of fd 0
74109         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
74110         * modules/save-cwd (Depends-on): Replace fcntl-safer with
74111         unistd-safer.
74112         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
74113         <fcntl.h>; this module does not leak fds.
74114         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
74115         must be allowed to return 0, leaving openat_safer to add the
74116         safety.
74117         (openat_permissive): Avoid writing to just-opened fd 2 if
74118         restoring the current directory fails.
74119         * lib/openat-die.c (openat_restore_fail): Add comment.
74120         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
74121         (save_cwd): Guarantee safe fd, but without use of open_safer.
74122         * tests/test-openat.c: New test.
74123         * modules/openat-tests (Files, Makefile.am): Distribute and build
74124         new file.
74126         relocatable-prog-wrapper: fix build
74127         * modules/relocatable-prog-wrapper (Files): Update name of
74128         canonicalize m4 file, broken on 2009-09-17.
74129         Reported by emad hajjar <aleppos@hotmail.com>.
74131 2009-09-19  Bruno Haible  <bruno@clisp.org>
74133         * lib/safe-alloc.h: Use the standard header with GPL copyright.
74134         * lib/safe-alloc.c: Likewise.
74135         Reported by Ian Beckwith <ianb@erislabs.net>.
74137 2009-09-18  Bruno Haible  <bruno@clisp.org>
74139         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
74140         Reported by <erobles@sensacd.com.mx>.
74142 2009-09-17  Eric Blake  <ebb9@byu.net>
74144         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
74145         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
74146         slashes when checking if last component is missing.
74147         * tests/test-canonicalize.c (main): Test this.
74149         canonicalize, canonicalize-lgpl: honor // if distinct from /
74150         * modules/canonicalize (Files): Add double-slash-root.m4.
74151         * modules/canonicalize-lgpl (Files): Likewise.
74152         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
74153         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
74154         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
74155         fallback definition.
74156         (canonicalize_filename_mode): Use it to protect //.
74157         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
74158         (__realpath): Likewise.
74159         * tests/test-canonicalize.c (main): Test this.
74160         * tests/test-canonicalize-lgpl.c (main): Likewise.
74161         * modules/canonicalize-tests (Depends-on): Add same-inode.
74162         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
74164         canonicalize-lgpl: fix glibc bug with trailing slash
74165         * m4/canonicalize-lgpl.m4: Move contents...
74166         * m4/canonicalize.m4: ...here.
74167         (gl_CANONICALIZE_LGPL): Factor realpath check...
74168         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
74169         glibc 2.3.5 bug, fixed 2005-04-27.
74170         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
74171         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
74172         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
74173         * modules/canonicalize-lgpl (Files): Manage file rename.
74174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
74175         * modules/stdlib (Makefile.am): Substitute witness.
74176         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
74177         is needed.
74178         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
74179         replacement is required.
74180         * lib/canonicalize.c (canonicalize_file_name): Likewise.
74181         * doc/glibc-functions/canonicalize_file_name.texi
74182         (canonicalize_file_name): Document this.
74183         * doc/posix-functions/realpath.texi (realpath): Likewise.
74185         canonicalize-lgpl: reject non-directory with trailing slash
74186         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
74187         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
74188         catches failures in glibc 2.3.5.
74189         * tests/test-canonicalize.c (main): Likewise.
74191         canonicalize-lgpl: use native realpath if it works
74192         * lib/canonicalize-lgpl.c (realpath): Guard with
74193         FUNC_REALPATH_WORKS.
74194         * lib/stdlib.in.h (realpath): Make declaration optional based on
74195         HAVE_REALPATH.
74196         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
74197         native realpath works.
74198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
74199         * modules/stdlib (Makefile.am): Substitute witness.
74201         canonicalize, canonicalize-lgpl: use <stdlib.h>
74202         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
74203         (Include): Mention <stdlib.h>.
74204         (configure.ac): Mention functions we provide.
74205         * modules/canonicalize (configure.ac): Likewise.
74206         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
74207         realpath if canonicalize_file_name is missing.
74208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
74209         * modules/stdlib (Makefile.am): Substitute witnesses.
74210         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
74211         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
74212         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
74213         * NEWS: Document this.
74214         * doc/glibc-functions/canonicalize_file_name.texi
74215         (canonicalize_file_name): Likewise.
74216         * doc/posix-functions/realpath.texi (realpath): Likewise.
74217         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
74219         test-canonicalize: consolidate into single C program
74220         * tests/test-canonicalize.sh: Delete; move setup into...
74221         * tests/test-canonicalize.c (main): ...the program, making it
74222         easier to run in debugger.  Add some tests.
74223         * modules/canonicalize-tests (Files): Remove unused file.
74224         (Depends-on): Add progname.
74225         (configure.ac, Makefile.am): Simplify.
74227         test-canonicalize-lgpl: consolidate into single C program
74228         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
74229         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
74230         easier to run in debugger.  Add some tests.
74231         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
74232         (configure.ac, Makefile.am): Simplify.
74234         canonicalize: avoid resolvepath
74235         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
74236         unnecessary checks.
74237         * lib/canonicalize.c (includes): Simplify.
74238         (canonicalize_file_name): Drop resolvepath implementation.
74239         * modules/canonicalize (Depends-on): Drop filenamecat.
74241         canonicalize: don't lose errno
74242         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
74243         over calls to free.
74245         canonicalize: simplify errno handling
74246         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
74247         assignment.
74249         canonicalize, canonicalize-lgpl: update module dependencies
74250         * modules/canonicalize (Depends-on): Add extensions, lstat,
74251         pathmax, stdlib.
74252         (Files): Drop pathmax.h.
74253         (configure.ac): Adjust macro name.
74254         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
74255         lstat, stdlib, sys_stat.
74256         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
74257         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
74258         extensions.
74259         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
74260         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
74261         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
74262         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
74263         declaration, if available.
74264         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
74265         we can rely on the readlink module.
74266         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
74267         (includes): Use <unistd.h> unconditionally.
74269 2009-09-17  Eric Blake  <ebb9@byu.net>
74271         maint: make Include sections of modules consistent
74272         * modules/alloca: Use only header name; no need to list #include.
74273         * modules/alloca-opt: Likewise.
74274         * modules/arpa_inet: Likewise.
74275         * modules/canon-host: Likewise.
74276         * modules/configmake: Likewise.
74277         * modules/dirent: Likewise.
74278         * modules/eealloc: Likewise.
74279         * modules/environ: Likewise.
74280         * modules/fchdir: Likewise.
74281         * modules/fcntl: Likewise.
74282         * modules/fcntl-h: Likewise.
74283         * modules/gethrxtime: Likewise.
74284         * modules/gettime: Likewise.
74285         * modules/ignore-value: Likewise.
74286         * modules/inet_ntop: Likewise.
74287         * modules/inet_pton: Likewise.
74288         * modules/inttypes: Likewise.
74289         * modules/isnand-nolibm: Likewise.
74290         * modules/isnanf-nolibm: Likewise.
74291         * modules/mbchar: Likewise.
74292         * modules/mbfile: Likewise.
74293         * modules/mbiter: Likewise.
74294         * modules/mbuiter: Likewise.
74295         * modules/netdb: Likewise.
74296         * modules/netinet_in: Likewise.
74297         * modules/nproc: Likewise.
74298         * modules/pagealign_alloc: Likewise.
74299         * modules/poll: Likewise.
74300         * modules/printf-frexp: Likewise.
74301         * modules/pthread: Likewise.
74302         * modules/putenv: Likewise.
74303         * modules/random_r: Likewise.
74304         * modules/relocatable-prog: Likewise.
74305         * modules/search: Likewise.
74306         * modules/select: Likewise.
74307         * modules/selinux-h: Likewise.
74308         * modules/settime: Likewise.
74309         * modules/signal: Likewise.
74310         * modules/size_max: Likewise.
74311         * modules/socklen: Likewise.
74312         * modules/ssize_t: Likewise.
74313         * modules/stdarg: Likewise.
74314         * modules/stdbool: Likewise.
74315         * modules/stddef: Likewise.
74316         * modules/stdint: Likewise.
74317         * modules/stdio: Likewise.
74318         * modules/stdlib: Likewise.
74319         * modules/string: Likewise.
74320         * modules/strings: Likewise.
74321         * modules/sys_file: Likewise.
74322         * modules/sys_ioctl: Likewise.
74323         * modules/sys_select: Likewise.
74324         * modules/sys_socket: Likewise.
74325         * modules/sys_stat: Likewise.
74326         * modules/sys_time: Likewise.
74327         * modules/sys_times: Likewise.
74328         * modules/sys_utsname: Likewise.
74329         * modules/sys_wait: Likewise.
74330         * modules/sysexits: Likewise.
74331         * modules/time: Likewise.
74332         * modules/times: Likewise.
74333         * modules/tmpfile: Likewise.
74334         * modules/trim: Likewise.
74335         * modules/unistd: Likewise.
74336         * modules/wchar: Likewise.
74337         * modules/wctype: Likewise.
74339 2009-09-17  Bruno Haible  <bruno@clisp.org>
74341         Make getdate.y compile on QNX and NetBSD 5 / i386.
74342         * m4/getdate.m4 (gl_GETDATE): Conditionally define
74343         TIME_T_FITS_IN_LONG_INT.
74344         * lib/getdate.y (long_time_t): New type.
74345         (relative_time): Change type of 'seconds' field to long_time_t.
74346         (get_date): Update types of local variables. Check against overflow
74347         during conversion from long_time_t to time_t.
74348         Reported by Matt Kraai <kraai@ftbfs.org>
74349         and Hasso Tepper <hasso@netbsd.org>.
74351 2009-09-17  Bruno Haible  <bruno@clisp.org>
74353         * modules/COPYING: Update copyright years.
74354         * modules/README: Likeiwse.
74355         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
74356         Reported by Ian Beckwith <ianb@erislabs.net>.
74358 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
74360         * users.txt: Update references for gnuit package.
74362 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
74364         * m4/getdelim.m4: Fix typo in copyright line.
74366 2009-09-17  Bruno Haible  <bruno@clisp.org>
74368         * lib/atoll.c: Use the standard header with GPL copyright.
74369         * lib/argz.in.h: Likewise.
74370         * lib/glob.c: Likewise.
74371         * lib/glob-libc.h: Likewise.
74372         * lib/random_r.c: Likewise.
74373         * lib/siglist.h: Likewise.
74374         * lib/strsignal.c: Likewise.
74375         Reported by Ian Beckwith <ianb@erislabs.net>.
74377 2009-09-17  Eric Blake  <ebb9@byu.net>
74379         rmdir: ensure correct dependency order
74380         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
74382 2009-09-17  Bruno Haible  <bruno@clisp.org>
74384         Disable assertion that fails on NetBSD 5 / i386.
74385         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
74386         Reported by Sam Steingold <sds@gnu.org>
74387         and Hasso Tepper <hasso@netbsd.org>.
74389 2009-09-16  Eric Blake  <ebb9@byu.net>
74391         unlinkdir: port to mingw
74392         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
74393         on which no one can unlink a directory.
74395         stdlib: sort witness names
74396         * modules/stdlib (Makefile.am): Sort replacements.
74397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
74398         * lib/stdlib.in.h: Likewise.
74400         parse-duration-tests: avoid link failure
74401         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
74402         LIBINTL.
74403         Reported by Tom G. Christensen.
74405         openat-tests: ensure unlinkat behaves like rmdir
74406         * tests/test-rmdir.c (main): Factor guts...
74407         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
74408         * modules/rmdir-tests (Files): Ship new file.
74409         * modules/openat-tests: New test.
74410         * tests/test-unlinkat.c: Likewise.
74412         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
74413         * modules/rmdir-errno (Status, Notice): Now obsolete.
74415         rmdir: work around cygwin 1.5.x and mingw bugs
74416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
74417         * lib/rmdir.c (rmdir): Work around it.
74418         * modules/rmdir (Status, Notice): No longer obsolete.
74419         (Files): Add dos.m4.
74420         (Depends-on): Add unistd.
74421         (configure.ac): Set witnesses.
74422         (License): Relax to LGPLv2+.
74423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
74424         * modules/unistd (Makefile.am): Substitute witnesses.
74425         * lib/unistd.in.h (rmdir): Declare replacement.
74426         * doc/posix-functions/rmdir.texi (rmdir): Document this.
74427         * modules/rmdir-tests: New tests.
74428         * tests/test-rmdir.c: Likewise.
74430 2009-09-15  Eric Blake  <ebb9@byu.net>
74432         fchdir: improve use of replacement functions
74433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
74434         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
74435         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
74436         REPLACE_CLOSEDIR.
74437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
74438         * modules/sys_stat (Makefile.am): Substitute correct witness.
74439         * modules/dirent (Makefile.am): Likewise.
74440         * modules/unistd (Makefile.am): Likewise.
74441         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
74442         * lib/unistd.in.h (dup): Likewise.
74443         * lib/sys_stat.in.h (fstat): Likewise.
74445         maint: ignore gnulib-tool temp files
74446         * .gitignore: Ignore files created during gnulib-tool --test.
74448 2009-09-13  Jim Meyering  <meyering@redhat.com>
74450         posixtm: don't reject a time that specify "60" as the number of seconds
74451         * lib/posixtm.c (posixtime): The code to reject invalid dates
74452         would also reject a time specified with the .60 suffix.
74453         But POSIX allows that, in order to accommodate leap seconds.
74454         So don't reject it.
74455         (main): Adjust tests accordingly.
74456         * modules/posixtm (Depends-on): Add stpcpy.
74458 2009-09-11  Jim Meyering  <meyering@redhat.com>
74460         announce-gen: include [$release_type] in emitted Subject:
74461         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
74462         e.g., [stable] in the emitted Subject: line.
74464 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74466         Remove obsolete macros from several modules.
74467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
74468         obsolete Autoconf macros with their modern counterparts.
74469         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
74470         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
74471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
74472         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74473         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
74474         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
74475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
74476         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
74477         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
74478         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
74479         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
74480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
74481         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
74482         * m4/sockets.m4 (gl_SOCKETS): Likewise.
74483         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
74484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
74485         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
74486         * m4/time_r.m4 (gl_TIME_R): Likewise.
74487         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
74488         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
74489         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74491         Fix copyright header in build-aux scripts.
74492         * build-aux/git-version-gen: Fix copyright header to match GPLv3
74493         recommendation.
74494         * build-aux/ncftpput-ftp: Likewise.
74495         * build-aux/update-copyright: Likewise.
74497 2009-09-09  Eric Blake  <ebb9@byu.net>
74499         test-link: allow Linux choice of errno
74500         * tests/test-link.c (main): Relax test for alternate error.
74502         strndup: fix improper m4 caching
74503         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
74504         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
74505         (gl_PREREQ_STRNDUP): Delete.
74506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
74507         * modules/string (Makefile.am): Substitute it.
74508         * lib/string.in.h (strndup): Modernize prototype.
74510         getcwd: port to mingw
74511         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
74512         different from the POSIX assumptions made throughout the getcwd
74513         module; fortunately, the mingw getcwd does not need replacement.
74514         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
74515         * modules/getcwd-tests: New test.
74516         * tests/test-getcwd.c: Likewise.
74518         link: fix platform bugs
74519         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
74520         * lib/link.c (link): Work around them.  Fix related mingw bug.
74521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
74522         * modules/unistd (Makefile.am): Substitute it.
74523         * lib/unistd.in.h (link): Declare replacement.
74524         * doc/posix-functions/link.texi (link): Document this.
74525         * modules/link (Depends-on): Add strdup-posix, sys_stat.
74527         test-link: consolidate into single C program, test more cases
74528         * tests/test-link.sh: Delete.
74529         * tests/test-link.c: Test more error conditions.  Exposes bugs on
74530         at least Cygwin and Solaris.
74531         * modules/link-tests (Files): Remove unused file.
74532         (Depends-on): Add errno, sys_stat.
74533         (Makefile.am): Simplify.
74535 2009-09-08  Bruno Haible  <bruno@clisp.org>
74537         Work around towlower, towupper bug on mingw.
74538         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
74539         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
74540         * doc/posix-functions/towlower.texi: Mention the mingw bug.
74541         * doc/posix-functions/towupper.texi: Likewise.
74542         Reported by Eric Blake.
74544 2009-09-08  Jim Meyering  <meyering@redhat.com>
74546         build: don't try to run autoheader if we don't use it
74547         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
74548         is not used in configure.ac.
74550 2009-09-08  Eric Blake  <ebb9@byu.net>
74552         euidaccess: fix compilation error
74553         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
74555         rawmemchr: relax license
74556         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
74557         okay.
74558         Reported by Jim Meyering.
74560         mkfifoat: new module
74561         * modules/mkfifoat: New file.
74562         * lib/mkfifoat.c: Likewise.
74563         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
74564         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74565         * modules/sys_stat (Makefile.am): Use them.
74566         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
74567         * MODULES.html.sh (File system functions): Mention module.
74568         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
74569         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
74570         * modules/mkfifoat-tests: New test.
74571         * tests/test-mkfifoat.c: Likewise.
74573         strchrnul: relax license
74574         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
74575         okay.
74576         Reported by Jim Meyering.
74578 2009-09-08  Eric Blake  <ebb9@byu.net>
74580         fstatat: fix compilation on Solaris
74581         * lib/fstatat.c (includes): Add fcntl.h.
74582         Reported by Pádraig Brady.
74584 2009-09-07  Eric Blake  <ebb9@byu.net>
74586         rename: modernize replacement
74587         * modules/rename (Depends-on): Add stdio.
74588         (configure.ac): Declare witness.
74589         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
74590         stdio take care of replacement.
74591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
74592         * modules/stdio (Makefile.am): Substitute them.
74593         * lib/stdio.in.h (rename): Declare replacement.
74594         * lib/rename.c (includes): Allow cross-compilation to non-windows
74595         machines.
74596         * doc/posix-functions/rename.texi (rename): Improve
74597         documentation.
74599         stdio: sort witness names
74600         * modules/stdio (Makefile.am): Sort replacements.
74601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74602         * lib/stdio.in.h: Likewise.
74604         getcwd: minor cleanups
74605         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
74606         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
74608         openat: provide more convenience names
74609         * modules/faccessat (configure.ac): Add C witness.
74610         * lib/unistd.in.h (readlinkat): Fix typo.
74611         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
74612         convenience wrappers.
74613         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
74614         wrappers in syntax checks.
74616 2009-09-06  Eric Blake  <ebb9@byu.net>
74618         doc: fix comments in recent patches
74619         * lib/faccessat.c: Mention correct function.
74620         * lib/fchmodat.c: Likewise.
74621         * lib/fchownat.c: Likewise.
74622         * lib/symlinkat.c: Likewise.
74623         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
74624         constants.
74626         faccessat, symlinkat: continue cleanup of previous patch
74627         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
74628         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
74629         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
74630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
74631         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
74632         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
74633         set.
74635 2009-09-06  Bruno Haible  <bruno@clisp.org>
74637         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
74638         (fstatat): Declare if GNULIB_FSTATAT is set.
74639         (mkdirat): Declare if GNULIB_MKDIRAT is set.
74640         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
74641         (unlinkat): Declare if GNULIB_UNLINKAT is set.
74642         * modules/fcntl-h (Files): Remove m4/openat.m4.
74643         * modules/sys_stat (Files): Remove m4/openat.m4.
74644         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
74645         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
74646         * modules/unistd (Files): Remove m4/openat.m4.
74647         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
74648         GNULIB_OPENAT.
74649         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
74650         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
74651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
74652         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
74653         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
74654         gl_OPENAT_DEFAULTS.
74655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
74656         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
74657         Don't require gl_OPENAT_DEFAULTS.
74658         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
74659         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
74660         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
74661         (gl_OPENAT_DEFAULTS): Remove macro.
74663 2009-09-06  Bruno Haible  <bruno@clisp.org>
74665         * modules/openat (configure.ac): Remove unneeded witness.
74667 2009-09-06  Bruno Haible  <bruno@clisp.org>
74669         Set errno to ENOSYS when a function is entirely unsupported.
74670         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
74671         EOPNOTSUPP.
74672         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
74673         * modules/chown (Depends-on): Remove errno.
74675 2009-09-06  Bruno Haible  <bruno@clisp.org>
74677         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
74679 2009-09-06  Bruno Haible  <bruno@clisp.org>
74681         * lib/sys_stat.in.h: Fix preprocessor command indentation.
74683 2009-09-06  Ben Pfaff  <blp@gnu.org>
74684             Bruno Haible  <bruno@clisp.org>
74686         Work around a glibc bug in strtok_r.
74687         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
74688         Undefine if UNDEFINE_STRTOK_R is set.
74689         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
74690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74691         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
74692         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
74693         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
74694         UNDEFINE_STRTOK_R.
74695         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
74697 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
74699         exclude: minor fix
74700         * lib/exclude.c: Include wctype.h
74702 2009-09-06  Akim Demaille  <demaille@gostai.com>
74704         bootstrap: improve error message
74705         * build-aux/bootstrap (find_tool): Upon failure, report the list
74706         of candidates.
74707         Honor the initial value of the envvar.
74709 2009-09-05  Eric Blake  <ebb9@byu.net>
74711         symlinkat: new module
74712         * modules/symlinkat: New file.
74713         * lib/symlinkat.c: Likewise.
74714         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
74715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
74716         * modules/unistd (Makefile.am): Use them.
74717         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
74718         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
74719         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
74720         * MODULES.html.sh (File system functions): Mention module.
74721         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
74722         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
74723         * modules/symlinkat-tests: New test.
74724         * tests/test-symlinkat.c: Likewise.
74726         test-openat-safer: add more checks
74727         * tests/test-openat-safer.c (main): Check more code paths.
74729 2009-09-05  Jim Meyering  <meyering@redhat.com>
74731         syntax-check: detect unnecessary inclusion of openat.h
74732         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
74734 2009-09-05  Bruno Haible  <bruno@clisp.org>
74736         Support towlower, towupper.
74737         * doc/posix-functions/towlower.texi: Mention module wctype.
74738         * doc/posix-functions/towupper.texi: Likewise.
74739         * lib/wctype.in.h (towlower, towupper): New functions.
74740         * tests/test-wctype.c: Include stdio.h, stdlib.h.
74741         (ASSERT): New macro.
74742         (e): New variable.
74743         (main): Test also towlower, towupper. Test WEOF argument.
74744         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
74746 2009-09-05  Bruno Haible  <bruno@clisp.org>
74748         Fix conversion behaviour when the input is invalid.
74749         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
74750         mark occurring in first pass of indirect conversion.
74751         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
74752         input.
74753         Found by clang's static analyzer.
74755 2009-09-05  Bruno Haible  <bruno@clisp.org>
74757         * tests/test-striconveh.c (main): Test indirect conversion on platforms
74758         where direct conversion is possible.
74760 2009-09-04  Eric Blake  <ebb9@byu.net>
74762         openat: fail with ENOENT on empty name
74763         * lib/openat-proc.c (openat_proc_name): Special-case the empty
74764         buffer.
74766         link-follow: fix logic bug in prior patch
74767         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
74768         reversed sense of yes and no in prior patch.  Avoid confusing
74769         compilation failure with desired semantics.
74771         link-follow: accommodate mingw and cross-compilation
74772         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
74773         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
74774         cross-compilation results to -1, to make linkat easier to
74775         implement when cross-compiling.  Trivially support mingw.
74776         * modules/link-follow (configure.ac): Call new name.
74777         * NEWS: Mention this.
74779 2009-09-03  Eric Blake  <ebb9@byu.net>
74781         faccessat: compile replacement
74782         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
74783         needed.
74785         fts: fix compilation error
74786         * lib/fts.c (includes): Re-add "openat.h", for
74787         openat_needs_fchdir.
74789         faccessat: new module
74790         * modules/faccessat: New file.
74791         * lib/faccessat.c: Likewise.
74792         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
74793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74794         * modules/unistd (Makefile.am): Use it.
74795         * lib/unistd.in.h (faccessat): Declare it.
74796         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
74797         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
74798         * MODULES.html.sh (File system functions): Mention it.
74799         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
74800         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
74802         euidaccess: prefer POSIX over non-standard implementation
74803         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
74804         * lib/euidaccess.c (euidaccess): Use it if available.
74806         openat: make template easier to use
74807         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
74808         AT_FUNC_F2 to be undefined.
74809         (VALIDATE_FLAG): New macro; use it to reject bad flags.
74810         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
74811         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
74812         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
74813         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
74814         Likewise.
74815         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
74816         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
74817         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
74818         Likewise.
74820         openat: declare in POSIX headers
74821         * NEWS: Mention this.
74822         * modules/openat (configure.ac): Declare witnesses.
74823         (Depends-on): Add fcntl-h, sys_stat, unistd.
74824         (Include): Mention correct headers.
74825         * modules/fcntl-h (Depends-on): Add link-warning.
74826         (Files): Add openat.m4.
74827         (Makefile.am): Substitute witnesses.
74828         * modules/sys_stat (Files, Makefile.am): Likewise.
74829         * modules/unistd (Files, Makefile.am): Likewise.
74830         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
74831         (gl_OPENAT_DEFAULTS): New macro.
74832         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
74833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
74834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
74835         (SYS_STAT_H): Remove unused variable.
74836         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
74837         * lib/fcntl--.h (includes): Remove unneeded header.
74838         * lib/openat-safer.c (includes): Likewise.
74839         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
74840         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
74841         appropriate headers.
74842         (__OPENAT_PREFIX): Delete.
74843         * lib/fcntl.in.h (openat): Provide declaration.
74844         (AT_FDCWD): Fix Solaris bug.
74845         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
74846         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
74847         * lib/fchmodat.c (includes):  Adjust to find declaration.
74848         * lib/fchownat.c (includes): Likewise.
74849         * lib/mkdirat.c (includes): Likewise.
74850         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
74851         still visible.
74853 2009-09-02  Eric Blake  <ebb9@byu.net>
74855         errno: use consistently
74856         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
74857         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
74858         * lib/canonicalize.c (ELOOP): Likewise.
74859         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
74860         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
74861         * lib/lchown.c (EOPNOTSUPP): Likewise.
74862         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
74863         * lib/savewd.c (ESTALE): Likewise.
74864         * lib/settime.c (ENOSYS): Likewise.
74865         * lib/utimens.c (ENOSYS): Likewise.
74866         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
74867         * lib/chdir-safer.c (ELOOP): Likewise.
74868         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
74869         * modules/c-stack (Depends-on): Add errno.
74870         * modules/canonicalize (Depends-on): Likewise.
74871         * modules/chdir-safer (Depends-on): Likewise.
74872         * modules/fdopendir (Depends-on): Likewise.
74873         * modules/inet_ntop (Depends-on): Likewise.
74874         * modules/inet_pton (Depends-on): Likewise.
74875         * modules/lchown (Depends-on): Likewise.
74876         * modules/openat (Depends-on): Likewise.
74877         * modules/savewd (Depends-on): Likewise.
74878         * modules/settime (Depends-on): Likewise.
74879         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
74881         fts: avoid leaking fds
74882         * modules/fts (Depends-on): Add cloexec.
74883         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
74884         flag.
74886         fts: make directory fds more robust
74887         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
74888         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
74890         backupfile, chdir-long, fts, savedir: make safer
74891         * lib/backupfile.c (includes): Use "dirent--.h", since
74892         numbered_backup can write to stderr during readdir.
74893         * lib/savedir.c (includes): Likewise.
74894         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
74895         emulation can write to stderr on failure.
74896         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
74897         * lib/getcwd.c: Document why opendir_safer is unused.
74898         * lib/glob.c: Likewise.
74899         * lib/scandir.c: Likewise.
74900         * lib/openat-proc.c: Likewise, for open_safer.
74901         * modules/backupfile (Depends-on): Add dirent-safer.
74902         * modules/savedir (Depends-on): Likewise.
74903         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
74904         * modules/chdir-long (Depends-on): Add openat-safer.
74906         openat-safer: new module
74907         * modules/openat-safer: New file.
74908         * lib/openat-safer.c: Likewise.
74909         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
74910         * lib/fcntl-safer.h (openat_safer): Declare.
74911         * lib/fcntl--.h (openat): Override.
74912         * MODULES.html.sh (File descriptor based I/O): Mention it.
74913         * lib/openat.h: Add double-inclusion guards.
74914         * lib/openat.c (includes): Only include "fcntl-safer.h", not
74915         "fcntl--.h", so we can implement openat.
74916         * modules/openat-safer-tests: New test.
74917         * tests/test-openat-safer.c: New file.
74919         dirent-safer: new module
74920         * modules/dirent-safer: New file.
74921         * lib/dirent--.h: Likewise.
74922         * lib/dirent-safer.h: Likewise.
74923         * lib/opendir-safer.c: Likewise.
74924         * m4/dirent-safer.m4: Likewise.
74925         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
74926         * modules/dirent-safer-tests: New test.
74927         * tests/test-dirent-safer.c: New file.
74928         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
74930         fdopendir: optimize on mingw
74931         * lib/unistd.in.h (_gl_directory_name): New prototype.
74932         * lib/fchdir.c (_gl_directory_name): Implement it.
74933         (fchdir): Use it to simplify implementation.
74934         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
74935         fchdir, when available, to avoid calling [f]chdir().
74937         fdopendir: split into its own module
74938         * lib/openat.c (fdopendir): Move...
74939         * lib/fdopendir.c: ...into new file.
74940         * modules/fdopendir: New module.
74941         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
74942         * modules/openat (Depends-on): Add fdopendir.
74943         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
74944         fdopendir here.
74945         * modules/savedir (Depends-on): Only need fdopendir, not full
74946         openat.
74947         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
74948         * lib/openat.h (fdopendir): Drop prototype.
74949         * lib/dirent.in.h (fdopendir): Provide prototype.
74950         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
74951         * modules/dirent (Makefile.am): Substitute them.
74952         * MODULES.html.sh (File system functions): Mention it.
74953         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
74954         * modules/fdopendir-tests: New file.
74955         * tests/test-fdopendir.c: Likewise.
74957         fchdir: use more consistent macro convention
74958         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
74959         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
74960         REPLACE_FCHDIR, rather than relying on config.h macros.
74961         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
74962         inside a single make-time REPLACE_FCHDIR block, rather than using
74963         the config.h FCHDIR_REPLACEMENT.
74964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
74965         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
74966         Manage fstat replacement.
74967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
74968         REPLACE_FCHDIR.
74969         * modules/sys_stat (Files): Add m4/unistd_h.m4.
74970         (Makefile.am): Substitute REPLACE_FCHDIR.
74971         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
74972         FCHDIR_REPLACEMENT.
74973         * lib/dup-safer.c (dup_safer): Likewise.
74974         * lib/dup2.c (rpl_dup2): Likewise.
74975         * lib/dup3.c (rpl_dup3): Likewise.
74976         * lib/open.c (rpl_open): Likewise.
74978         fchdir: simplify error handling, and support dup3
74979         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
74980         stdbool, malloc-posix, realloc-posix.
74981         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
74982         (ensure_dirs_slot): Return false on allocation failure.
74983         (rpl_dup2): Delete.
74984         (_gl_register_dup): New function.
74985         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
74986         (_gl_register_fd): Close fd on allocation failure.
74987         * lib/fcntl.in.h (_gl_register_fd): Update signature.
74988         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
74989         prototype.
74990         (rpl_dup2_fchdir): Delete prototype.
74991         * lib/open.c (open): Update caller.
74992         * lib/dup2.c (dup2): Track fchdir metadata.
74993         * lib/dup3.c (dup3): Likewise.
74994         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
74995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
74997 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74999         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
75000         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
75001         don't pass arguments to AC_OUTPUT.
75003 2009-09-02  Bruno Haible  <bruno@clisp.org>
75005         * modules/mkdtemp (License): Relicense under LGPLv2+.
75006         Reported by Paolo Bonzini.
75008 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75010         Replace uses of obsolete autoconf macros in Jim's modules.
75011         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
75012         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
75013         can evoke a warning from autoconf when run with -Wobsolete
75014         enabled.  They were declared obsolete for good reasons (see
75015         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
75016         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
75017         should not continue using the deprecated macros.
75018         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
75019         obsolete Autoconf macros with modern counterparts.
75020         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75021         * m4/dos.m4 (gl_AC_DOS): Likewise.
75022         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
75023         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
75024         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
75025         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
75026         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
75027         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
75028         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
75029         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
75030         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75031         Likewise.
75032         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
75033         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
75034         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
75035         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
75036         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75037         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
75039 2009-09-01  Eric Blake  <ebb9@byu.net>
75041         fchdir: fix off-by-one bug in previous patch
75042         * lib/fchdir.c (rpl_fstat): Use correct bounds.
75043         (_gl_unregister_fd): Delete useless if.
75045 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
75047         maint.mk: sort the list of syntax-check rules
75048         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
75049         easier to get a sense of progress when the rules are run sequentially
75050         and take a long time.
75052 2009-09-01  Simon Josefsson  <simon@josefsson.org>
75054         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
75055         * modules/netinet_in: Likewise.
75056         * modules/sys_file: Likewise.
75057         * modules/sys_ioctl: Likewise.
75058         * modules/sys_select: Likewise.
75059         * modules/sys_socket: Likewise.
75060         * modules/sys_stat: Likewise.
75061         * modules/sys_time: Likewise.
75062         * modules/sys_times: Likewise.
75063         * modules/sys_utsname: Likewise.
75064         * modules/sys_wait: Likewise.
75066 2009-09-01  Jim Meyering  <meyering@redhat.com>
75068         fts: help ensure that return values are not ignored
75069         * lib/fts_.h (__GNUC_PREREQ): Define.
75070         (__attribute_warn_unused_result__): Define.
75071         (fts_children, fts_close, fts_open, fts_read): Declare with
75072         __attribute_warn_unused_result__.
75074         fts: fts_close now fails also when closing a dir file descriptor fails
75075         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
75076         and propagate to caller, along with errno.
75078         announce-gen: correct formatting in --help output
75079         * build-aux/announce-gen (usage): Move the one-line description in
75080         --help output "up", to where it belongs, just after Usage:.
75082 2009-08-31  Eric Blake  <ebb9@byu.net>
75084         fchdir: port to mingw
75085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
75086         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
75087         opened, then use a substitute.
75088         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
75089         replacement.
75090         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
75091         (_gl_register_fd): No need to check stat if open already filters
75092         all directories.
75093         (fchdir): Fix error condition to match POSIX.
75094         * modules/fchdir (Depends-on): Add sys_stat.
75095         * doc/posix-functions/open.texi (open): Document the limitation.
75096         * modules/fchdir-tests: New file.
75097         * tests/test-fchdir.c: Likewise.
75099         canonicalize: allow cross-testing from cygwin to mingw
75100         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
75101         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
75102         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
75103         Likewise.
75104         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
75105         target does not support symlinks.
75106         * tests/test-canonicalize-lgpl.sh: Likewise.
75108         chown: avoid compilation warning on mingw
75109         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
75110         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
75111         mingw.
75112         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
75113         * modules/chown (Depends-on): Add errno.
75115 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
75117         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
75118         command.
75120 2009-08-31  Jim Meyering  <meyering@redhat.com>
75122         canonicalize: remove useless initialization
75123         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
75124         initialization of local, "end".
75126 2009-08-30  Bruno Haible  <bruno@clisp.org>
75128         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
75129         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
75130         ENOSYS.
75132 2009-08-30  Bruno Haible  <bruno@clisp.org>
75134         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
75135         /usr/xpg4/bin/tr when it exists.
75136         * tests/test-pipe-filter-gi1.sh: Likewise.
75138 2009-08-30  Bruno Haible  <bruno@clisp.org>
75140         Work around deficient /usr/bin/id program on Solaris.
75141         * tests/test-file-has-acl.sh (ID): New variable.
75142         * tests/test-set-mode-acl.sh (ID): Likewise.
75143         * tests/test-copy-acl.sh (ID): Likewise.
75144         * tests/test-copy-file.sh (ID): Likewise.
75146 2009-08-30  Bruno Haible  <bruno@clisp.org>
75148         New module 'xstriconveh'.
75149         * lib/xstriconveh.h: New file.
75150         * lib/xstriconveh.c: New file.
75151         * modules/xstriconveh: New file.
75153 2009-08-30  Bruno Haible  <bruno@clisp.org>
75155         Make it easier to use mem_cd_iconveh.
75156         * lib/striconveh.h (iconveh_t): New type.
75157         (iconveh_open, iconveh_close): New declarations.
75158         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
75159         with a single 'const iconveh_t *' argument.
75160         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
75161         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
75162         with a single 'const iconveh_t *' argument.
75163         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
75164         * tests/test-striconveh.c (main): Update.
75165         * NEWS: Mention the change.
75167 2009-08-30  Bruno Haible  <bruno@clisp.org>
75169         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
75170         problem.
75172 2009-08-30  Bruno Haible  <bruno@clisp.org>
75174         Work around iconv_open problem on Solaris.
75175         * lib/iconv_open-solaris.gperf: New file.
75176         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
75177         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
75178         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
75179         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
75180         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
75181         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
75183 2009-08-29  Jim Meyering  <meyering@redhat.com>
75185         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
75186         * top/maint.mk (cvs-check): Remove target; it was just an alias
75187         to the better-named vc-diff-check.
75188         (maintainer-distcheck): Remove rule.  It was used only from
75189         the (alpha/beta/major) target, and all of its commands but one
75190         were coreutils-specific.
75191         (vc-dist): Remove rule.
75192         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
75193         Run vc-diff-check, not vc-dist.
75194         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
75196 2009-08-27  Bruno Haible  <bruno@clisp.org>
75198         * tests/test-bitrotate.c (main): Remove test that uses a shift count
75199         of 0.
75201 2009-08-27  Bruno Haible  <bruno@clisp.org>
75203         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
75204         compilers.
75205         * doc/func.texi: Document the SunPRO C bug.
75207 2009-08-27  Bruno Haible  <bruno@clisp.org>
75209         Fix link error on Solaris.
75210         * tests/test-parse-duration.c (xstrdup): Remove function.
75212 2009-08-26  Pádraig Brady  <P@draigbrady.com>
75214         ignore-value: handle pointer types, too
75215         * lib/ignore-value.h (__attribute__): Remove definition.
75216         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
75217         of a more concise and more-often effective "(void) i" statement.
75218         (ignore_ptr): New function to suppress warnings from functions that
75219         return pointers, and to make it explicit that one function doesn't
75220         handle all cases.
75222 2009-08-25  Bruno Haible  <bruno@clisp.org>
75224         dup2: work around a Linux bug.
75225         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
75226         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
75227         * doc/posix-functions/dup2.texi: Mention the Linux bug.
75228         Reported by Simon Josefsson.
75230 2009-08-25  Jim Meyering  <meyering@redhat.com>
75232         libguestfs uses gnulib
75233         * users.txt: Add libguestfs.
75235 2009-08-24  Eric Blake  <ebb9@byu.net>
75237         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
75238         * lib/pipe2.c (includes): Add binary-io.h.
75239         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
75241 2009-08-24  Bruno Haible  <bruno@clisp.org>
75243         Tolerate declared but missing accept4 syscall.
75244         * lib/accept4.c (accept4): Invoke original accept4 function first, if
75245         available.
75246         * lib/sys_socket.in.h (accept4): If the function is already present,
75247         override it.
75248         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
75249         * modules/accept4 (Makefile.am): Compile accept4.c always.
75250         Reported by Paolo Bonzini and Eric Blake.
75252 2009-08-23  Bruno Haible  <bruno@clisp.org>
75254         New module 'accept4'.
75255         * lib/sys_socket.in.h (accept4): New declaration.
75256         * lib/accept4.c: New file.
75257         * m4/accept4.m4: New file.
75258         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
75259         GNULIB_ACCEPT4, HAVE_ACCEPT4.
75260         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
75261         HAVE_ACCEPT4.
75262         * modules/accept4: New file.
75263         * doc/glibc-functions/accept4.texi: Mention the new module.
75265 2009-08-24  Jim Meyering  <meyering@redhat.com>
75267         progname: also set global program_invocation_name, when possible
75268         Before this change, a libtool-enabled program that calls glibc's
75269         error function would report the program name as
75270         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
75271         * modules/progname (configure.ac): Check for a declaration of
75272         program_invocation_name.
75273         * lib/progname.c:  Include <errno.h>.
75274         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
75275         Set program_invocation_name.
75277 2009-08-23  Bruno Haible  <bruno@clisp.org>
75279         * lib/dup3.c: Include <string.h>.
75281 2009-08-23  Bruno Haible  <bruno@clisp.org>
75283         * lib/dup3.c (dup3): Test only once whether the system actually exists.
75284         * lib/pipe2.c (pipe2): Likewise.
75285         Suggested by Eric Blake.
75287 2009-08-23  Bruno Haible  <bruno@clisp.org>
75289         Tolerate declared but missing dup3 syscall.
75290         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
75291         * lib/unistd.in.h (dup3): If the function is already present,
75292         override it.
75293         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
75294         * modules/dup3 (Makefile.am): Compile dup3.c always.
75295         Reported by Paolo Bonzini.
75297 2009-08-23  Bruno Haible  <bruno@clisp.org>
75299         Tolerate declared but missing pipe2 syscall.
75300         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
75301         available.
75302         * lib/unistd.in.h (pipe2): If the function is already present,
75303         override it.
75304         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
75305         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
75306         Reported by Paolo Bonzini.
75308 2009-08-23  Bruno Haible  <bruno@clisp.org>
75310         * lib/pipe2.c (pipe2): Move #ifs inside function.
75312 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75314         quotearg: document limitations of quote_these_too
75315         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
75316         those limitations are created.
75317         * lib/quotearg.h (set_char_quoting): Document that digits and
75318         letters that are special after backslash are not permitted.
75319         (quotearg_char): Cross-reference set_char_quoting documentation.
75321 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
75323         quotearg: implement custom_quoting_style
75324         * lib/quotearg.c: (struct quoting_options): Add left_quote and
75325         right_quote fields.
75326         (set_custom_quoting): New public function.
75327         (quotearg_buffer_restyled): Add left_quote and right_quote
75328         arguments, handle them very much like locale quoting, and update
75329         all uses.
75330         (quotearg_n_custom): New public function.
75331         (quotearg_n_custom_mem): New public function.
75332         (quotearg_custom): New public function.
75333         (quotearg_custom_mem): New public function.
75334         * lib/quotearg.h: Prototype and document new public functions.
75335         (enum quoting_style): For escape_quoting_style and
75336         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
75337         ignored even though they're otherwise like c_quoting_style.
75338         Add custom_quoting_style member and document with comparison to
75339         clocale_quoting_style.
75340         * tests/test-quotearg.c (custom_quotes): New array.
75341         (custom_results): New array.
75342         (main): Extend to test custom quoting.
75344 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75346         quotearg: fix right quote escaping when it's in quote_these_too
75347         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
75348         quote, be sure to prepend only one backslash.
75349         * tests/test-quotearg.c (use_quote_double_quotes): New function.
75350         (main): Test it.
75352 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
75354         quotearg-tests: test escaping of embedded locale quotes
75355         * tests/test-quotearg.c (struct result_strings): Add member for
75356         new input.
75357         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
75358         (inputs): Add new input.
75359         (results_g): Add expected results.
75360         (flag_results): Likewise.
75361         (locale_results): Likewise.
75362         (compare_strings): Check those.
75364 2009-08-23  Bruno Haible  <bruno@clisp.org>
75366         Tests for module 'dup3'.
75367         * modules/dup3-tests: New file.
75368         * tests/test-dup3.c: New file.
75370         New module 'dup3'.
75371         * lib/unistd.in.h (dup3): New declaration.
75372         * lib/dup3.c: New file.
75373         * m4/dup3.m4: New file.
75374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
75375         HAVE_DUP3.
75376         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
75377         * modules/dup3: New file.
75378         * doc/glibc-functions/dup3.texi: Mention the new module.
75380 2009-08-23  Bruno Haible  <bruno@clisp.org>
75382         Tweak the dup2 test.
75383         * tests/test-dup2.c (main): Create the test file empty. Verify that an
75384         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
75385         the test file is still empty. Fix argument order of lseek.
75387 2009-08-23  Bruno Haible  <bruno@clisp.org>
75389         Avoid test link errors when the modules getopt-gnu, gettext are used.
75390         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
75391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75393 2009-08-23  Bruno Haible  <bruno@clisp.org>
75395         Fix getdtablesize() on mingw.
75396         * lib/getdtablesize.c (getdtablesize): Implement differently.
75397         * lib/unistd.in.h (getdtablesize): Improve comment.
75399 2009-08-23  Bruno Haible  <bruno@clisp.org>
75401         New module 'mkostemp'.
75402         Based on Ulrich Drepper's 2007-08-10 change in glibc.
75403         * lib/stdlib.in.h (mksotemp): New declaration.
75404         * lib/mkostemp.c: New file, from glibc with modifications.
75405         * lib/tempname.h (GT_FILE): Remove outdated comment.
75406         (gen_tempname): Add flags argument.
75407         * lib/tempname.c (__GT_BIGFILE): Remove macro.
75408         (__GT_FILE): Map to 1.
75409         (small_open, large_open): Remove macros.
75410         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
75411         * lib/mkstemp.c (mkstemp): Update.
75412         * lib/mkdtemp.c (mkdtemp): Likewise.
75413         * m4/mkostemp.m4: New file.
75414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
75415         HAVE_MKOSTEMP.
75416         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
75417         HAVE_MKOSTEMP.
75418         * modules/mkostemp: New file, based on modules/mkstemp.
75419         * doc/glibc-functions/mkostemp.texi: Mention the new module.
75420         * NEWS: Mention the change.
75422 2009-08-23  Bruno Haible  <bruno@clisp.org>
75424         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
75425         Reported by Eric Blake.
75427 2009-08-23  Bruno Haible  <bruno@clisp.org>
75429         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
75430         Reported by Eric Blake.
75432 2009-08-23  Bruno Haible  <bruno@clisp.org>
75434         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
75435         * modules/pipe2 (Depends-on): Likewise.
75437 2009-08-23  Eric Blake  <ebb9@byu.net>
75439         fcntl-h: add O_TTY_INIT support
75440         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
75441         * tests/test-fcntl-h.c (o): Test it.
75442         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75444         fcntl-h: rename from fcntl, in preparation for fcntl(2)
75445         * modules/fcntl: Move <fcntl.h> header replacement...
75446         * modules/fcntl-h: ...to new name, so as not to collide with
75447         like-named function.
75448         * tests/test-fcntl.c: Rename...
75449         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
75450         * modules/fcntl-tests: Rename...
75451         * modules/fcntl-h-tests: ...to this.  Update test file name.
75452         * modules/chdir-long (Depends-on): Update clients.
75453         * modules/chdir-safer (Depends-on): Likewise.
75454         * modules/fcntl-safer (Depends-on): Likewise.
75455         * modules/fts (Depends-on): Likewise.
75456         * modules/mkancesdirs (Depends-on): Likewise.
75457         * modules/mkdir-p (Depends-on): Likewise.
75458         * modules/open (Depends-on): Likewise.
75459         * modules/savewd (Depends-on): Likewise.
75460         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
75461         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75463 2009-08-22  Bruno Haible  <bruno@clisp.org>
75465         * modules/binary-io (License): Relicense under LGPL.
75466         * modules/pipe2 (License): Likewise.
75468 2009-08-22  Bruno Haible  <bruno@clisp.org>
75470         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
75471         return value.
75472         * lib/pipe-filter-gi.c (filter_init): Likewise.
75473         Reported by Eric Blake.
75475 2009-08-22  Bruno Haible  <bruno@clisp.org>
75477         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
75478         * modules/pipe (Depends-on): Add pipe2.
75480 2009-08-22  Bruno Haible  <bruno@clisp.org>
75482         Tests for module 'pipe2'.
75483         * modules/pipe2-tests: New file.
75484         * tests/test-pipe2.c: New file.
75486         New module 'pipe2'.
75487         * lib/unistd.in.h (pipe2): New declaration.
75488         * lib/pipe2.c: New file.
75489         * m4/pipe2.m4: New file.
75490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
75491         HAVE_PIPE2.
75492         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
75493         * modules/pipe2: New file.
75494         * doc/glibc-functions/pipe2.texi: Mention the new module.
75496 2009-08-22  Bruno Haible  <bruno@clisp.org>
75498         Reference some new glibc functions.
75499         * doc/glibc-functions/accept4.texi: New file.
75500         * doc/glibc-functions/dup3.texi: New file.
75501         * doc/glibc-functions/mkostemp.texi: New file.
75502         * doc/glibc-functions/pipe2.texi: New file.
75503         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
75504         (Glibc sys/socket.h): Refer to accept4.
75505         (Glibc unistd.h): Refer to dup3, pipe2.
75506         Reported by Eric Blake.
75508 2009-08-22  Jim Meyering  <meyering@redhat.com>
75509             Bruno Haible  <bruno@clisp.org>
75511         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
75512         This makes it so packages using automake-1.11's silent-rules option
75513         can print e.g., a single "GEN    configmake.h" line, rather than
75514         the 30+ statements that perform the job.  If you want to see the
75515         actual commands, you can still run "make V=1".
75516         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
75517         so that make output is abbreviated when those variables are defined
75518         appropriately.
75519         * modules/argz: Likewise.
75520         * modules/arpa_inet: Likewise.
75521         * modules/byteswap: Likewise.
75522         * modules/configmake: Likewise.
75523         * modules/dirent: Likewise.
75524         * modules/errno: Likewise.
75525         * modules/fcntl: Likewise.
75526         * modules/float: Likewise.
75527         * modules/fnmatch: Likewise.
75528         * modules/getopt-posix: Likewise.
75529         * modules/glob: Likewise.
75530         * modules/iconv_open: Likewise.
75531         * modules/inttypes: Likewise.
75532         * modules/localcharset: Likewise.
75533         * modules/locale: Likewise.
75534         * modules/math: Likewise.
75535         * modules/netdb: Likewise.
75536         * modules/netinet_in: Likewise.
75537         * modules/poll: Likewise.
75538         * modules/posix_spawnp-tests: Likewise.
75539         * modules/sched: Likewise.
75540         * modules/search: Likewise.
75541         * modules/selinux-h: Likewise.
75542         * modules/signal: Likewise.
75543         * modules/spawn: Likewise.
75544         * modules/stdarg: Likewise.
75545         * modules/stdbool: Likewise.
75546         * modules/stddef: Likewise.
75547         * modules/stdint: Likewise.
75548         * modules/stdio: Likewise.
75549         * modules/stdlib: Likewise.
75550         * modules/string: Likewise.
75551         * modules/strings: Likewise.
75552         * modules/sys_file: Likewise.
75553         * modules/sys_ioctl: Likewise.
75554         * modules/sys_select: Likewise.
75555         * modules/sys_socket: Likewise.
75556         * modules/sys_stat: Likewise.
75557         * modules/sys_time: Likewise.
75558         * modules/sys_times: Likewise.
75559         * modules/sys_utsname: Likewise.
75560         * modules/sys_wait: Likewise.
75561         * modules/sysexits: Likewise.
75562         * modules/time: Likewise.
75563         * modules/unistd: Likewise.
75564         * modules/wchar: Likewise.
75565         * modules/wctype: Likewise.
75567 2009-08-22  Jim Meyering  <meyering@redhat.com>
75569         announce-gen: detect write failure
75570         * build-aux/announce-gen: Add Coda at end.
75571         Remove equivalent-but-more-verbose block at top.
75573 2009-08-19  Akim Demaille  <demaille@gostai.com>
75575         bootstrap: --help to stdout.
75576         * bootstrap (usage): Don't send --help to stderr.
75577         Use a here doc instead of a long string.
75579 2009-08-21  Eric Blake  <ebb9@byu.net>
75581         test-popen-safer: split from test-popen
75582         * tests/test-popen.c (main): Move...
75583         * tests/test-popen.h: ...into new file.
75584         * tests/test-popen-safer2.c: New file.
75585         * modules/popen-tests (Files): Add test-popen.h.
75586         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
75587         Suggested by Bruno Haible.
75589         test-fcntl-safer: split from test-open
75590         * tests/test-open.c (main): Move...
75591         * tests/test-open.h: ...into new file.
75592         * tests/test-fcntl-safer.c: New file.
75593         * modules/open-tests (Files): Add test-open.h.
75594         * modules/fcntl-safer-tests: New file.
75595         Suggested by Bruno Haible.
75597         test-fopen-safer: split from test-fopen
75598         * tests/test-fopen.c (main): Move...
75599         * tests/test-fopen.h: ...into new file.
75600         * tests/test-fopen-safer.c: New file.
75601         * modules/fopen-tests (Files): Add test-fopen.h.
75602         * modules/fopen-safer-tests: New file.
75603         Suggested by Bruno Haible.
75605 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
75607         popen-safer: test O_CLOEXEC at run-time.
75608         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
75610 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
75612         fcntl: move more flags to the header
75613         * lib/cloexec.c: Do not define FD_CLOEXEC here.
75614         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
75615         * lib/fcntl.in.h: Do both things here.
75617 2009-08-21  Jim Meyering  <meyering@redhat.com>
75619         consistently remove $@-t before redirecting to it
75620         * modules/argz: Remove $@-t and $@ before redirecting to the former.
75621         * modules/alloca-opt: Likewise.
75622         * modules/byteswap: Likewise.
75623         * modules/fnmatch: Likewise.
75624         * modules/getopt-posix: Likewise.
75625         * modules/glob: Likewise.
75626         * modules/poll: Likewise.
75627         * modules/posix_spawnp-tests: Likewise.
75628         * modules/sys_socket: Likewise.
75629         * modules/sysexits: Likewise.
75631 2009-08-21  Eric Blake  <ebb9@byu.net>
75633         popen: simplify access to original popen
75634         * lib/popen.c (rpl_popen): No need to worry about popen being a
75635         macro.
75636         Reported by Bruno Haible.
75638 2009-08-20  Eric Blake  <ebb9@byu.net>
75640         build: avoid some compiler warnings
75641         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
75642         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
75643         type.
75644         (new_exclude_segment, excluded_file_pattern_p)
75645         (excluded_file_name_p): Reduce scope.
75646         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
75647         old-style declaration.
75649 2009-08-20  Simon Josefsson  <simon@josefsson.org>
75651         * tests/test-exclude1.sh: Handle Windows EOL.
75652         * tests/test-exclude2.sh: Likewise.
75653         * tests/test-exclude3.sh: Likewise.
75654         * tests/test-exclude4.sh: Likewise.
75655         * tests/test-exclude5.sh: Likewise.
75656         * tests/test-exclude6.sh: Likewise.
75657         * tests/test-exclude7.sh: Likewise.
75659 2009-08-19  Akim Demaille  <demaille@gostai.com>
75661         bootstrap: find sha1sum when named gsha1sum.
75662         * bootstrap (find_tool): New.
75663         ($SHA1SUM): New.
75664         Use it.
75666 2009-08-20  Jim Meyering  <meyering@redhat.com>
75668         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
75669         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
75670         expression that converts "." in a file name to "\." in the resulting
75671         regexp.  Start with a dummy statement, so that prior shell variable
75672         definitions are expanded portably.  Reported by Simon Josefsson.
75674 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
75676         Fix polling for writeability of a screen buffer.
75677         * lib/poll.c: Distinguish input and screen buffers for the
75678         Win32 implementation.
75679         * lib/select.c: Likewise.
75681 2009-08-19  Eric Blake  <ebb9@byu.net>
75683         popen-safer: prevent popen from clobbering std descriptors
75684         * modules/popen-safer: New file.
75685         * lib/popen-safer.c: Likewise.
75686         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
75687         * lib/stdio--.h (popen): Provide override.
75688         * lib/stdio-safer.h (popen_safer): Provide declaration.
75689         * tests/test-popen.c (includes): Partially test this.
75690         * modules/popen-safer-tests: New file, for more tests.
75691         * tests/test-popen-safer.c: Likewise.
75692         * MODULES.html.sh (file stream based Input/Output): Mention it.
75694         tests: test some of the *-safer modules
75695         * modules/fopen-safer (Depends-on): Add fopen.
75696         * modules/fcntl-safer (Depends-on): Add fcntl.
75697         * modules/stdlib-safer (Depends-on): Add stdlib.
75698         (configure.ac): Set indicator.
75699         * modules/unistd-safer (configure.ac): Likewise.
75700         * modules/tmpfile-safer (configure.ac): Likewise.
75701         (Depends-on): Add tmpfile.
75702         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
75703         active.
75704         * tests/test-fopen.c (includes): Test safer versions when they are
75705         in use.
75706         * tests/test-open.c (includes): Likewise.
75708         popen: fix cygwin 1.5 bug when stdin closed
75709         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
75710         * modules/popen: New file.
75711         * modules/popen-tests: Likewise.
75712         * tests/test-popen.c: Likewise.
75713         * m4/popen.m4: Likewise.
75714         * lib/popen.c: Likewise.
75715         * lib/stdio.in.h (popen): New declaration.
75716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
75717         * modules/stdio (Makefile.am): Likewise.
75718         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
75720 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
75722         maint.mk: give full control over update-copyright exclusions
75723         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
75724         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
75725         (update-copyright): Don't force inclusion of top-level
75726         ChangeLog.  Don't force exclusion of all COPYING files, but make
75727         them the default exclusion instead.
75729 2009-08-16  Bruno Haible  <bruno@clisp.org>
75731         Fix test failures on Solaris 10.
75732         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
75733         tests when Solaris iconv() is used.
75734         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
75735         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
75736         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
75737         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
75738         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
75740 2009-08-16  Bruno Haible  <bruno@clisp.org>
75742         Fix test failures on Solaris 10.
75743         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
75744         'tr' program and pass it as first argument.
75745         * tests/test-pipe-filter-gi1.sh: Likewise.
75746         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
75747         program as first argument.
75748         * tests/test-pipe-filter-gi1.c (main): Likewise.
75750 2009-08-16  Eric Blake  <ebb9@byu.net>
75752         fpurge: fix previous commits
75753         * modules/fpurge (Makefile.am): Make replacement conditional,
75754         partially reverting 2007-04-29 change; missed in previous
75755         attempt.
75756         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
75757         is missing.
75759 2009-08-16  Bruno Haible  <bruno@clisp.org>
75761         Clarify fpurge's effect on the file position.
75762         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
75763         * tests/test-fpurge.c (main): Make a second pass for checking the file
75764         position.
75766 2009-08-16  Bruno Haible  <bruno@clisp.org>
75768         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
75769         declaration of fpurge is missing.
75770         * tests/test-fpurge.c (main): Check that the file has not more contents
75771         than expected. Close the file before removing it.
75773 2009-08-15  Eric Blake  <ebb9@byu.net>
75775         fpurge: don't wrap working cygwin implementation
75776         * lib/fpurge.c (fpurge): Fix comment typo.
75777         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
75778         1.7 to avoid replacement.
75779         * tests/test-fpurge.c (main): Enhance test.
75781 2009-08-15  Eric Blake  <ebb9@byu.net>
75782         and Jim Meyering  <meyering@redhat.com>
75784         test-update-copyright: skip if perl is insufficient
75785         * tests/test-update-copyright.sh: Failure to run maintainer tool
75786         should not cause testsuite failure on cygwin 1.5.
75788 2009-08-14  Eric Blake  <ebb9@byu.net>
75790         doc: mention more functions added in cygwin 1.7.0
75791         * doc/posix-headers/limits.texi (limits.h): Update for recent
75792         cygwin additions.
75793         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
75794         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
75795         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
75796         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
75797         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
75799 2009-08-14  Eric Blake  <ebb9@byu.net>
75801         maint.mk: simplify update-copyright rule
75802         * top/maint.mk (update-copyright-local): Delete, and document how
75803         to do it in cfg.mk instead.
75804         (update-copyright-exclude-regexp): Delete, and document how to do
75805         it in .x-update-copyright instead.
75806         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
75807         exclude ChangeLog.
75809 2009-08-14  Bruno Haible  <bruno@clisp.org>
75811         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
75813 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
75815         maint.mk: support update-copyright-env
75816         * top/maint.mk (update-copyright-env): Define place-holder.
75817         (update-copyright): Expand $(update-copyright-env) before
75818         invoking update-copyright.
75820 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
75822         update-copyright: implement forced reformatting
75823         * build-aux/update-copyright: Implement and document
75824         UPDATE_COPYRIGHT_FORCE.
75825         * tests/test-update-copyright.sh: Test it.
75827 2009-08-14  Eric Blake  <ebb9@byu.net>
75828         and Bruno Haible  <bruno@clisp.org>
75830         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
75831         * tests/test-locale.c: Revert previous patch related to NULL.
75832         * tests/test-stdio.c: Likewise.
75833         * tests/test-stdlib.c: Likewise.
75834         * tests/test-string.c: Likewise.
75835         * tests/test-unistd.c: Likewise.
75836         * modules/time-tests (Depends-on): Add verify.
75837         * modules/wchar-tests (Depends-on): Likewise.
75838         * tests/test-time.c: Test for NULL compliance.
75839         * tests/test-wchar.c: Likewise.
75840         * modules/locale (Depends-on): Add stddef.
75841         * modules/stdio (Depends-on): Likewise.
75842         * modules/stdlib (Depends-on): Likewise.
75843         * modules/string (Depends-on): Likewise.
75844         * modules/time (Depends-on): Likewise.
75845         * modules/unistd (Depends-on): Likewise.
75846         * modules/wchar (Depends-on): Likewise.
75847         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
75848         * lib/stdlib.in.h (includes): Likewise.
75849         * lib/string.in.h (includes): Likewise.
75850         * lib/time.in.h (includes): Likewise.
75851         * lib/unistd.in.h (includes): Likewise.
75852         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
75853         replaced.
75854         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
75855         * m4/stddef_h.m4: New file.
75856         * modules/stddef: Likewise.
75857         * lib/stddef.in.h: Likewise.
75858         * modules/stddef-tests: Likewise.
75859         * tests/test-stddef.c: Likewise.
75860         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
75861         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
75862         * doc/posix-headers/locale.texi (locale.h): Likewise.
75863         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
75864         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
75865         * doc/posix-headers/string.texi (string.h): Likewise.
75866         * doc/posix-headers/time.texi (time.h): Likewise.
75867         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
75868         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
75870 2009-08-14  Eric Blake  <ebb9@byu.net>
75872         doc: improve git diff of texinfo files
75873         * .gitattributes: Add rule for *.texi files, with hint on how to
75874         use it.
75875         Copied from m4, and based on a report by Bruno Haible.
75877 2009-08-14  Bruno Haible  <bruno@clisp.org>
75879         Disable multithread support by default on Cygwin 1.5.x for real.
75880         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
75882 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
75884         update-copyright: much ado about intervals
75885         * build-aux/update-copyright: Implement and document
75886         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
75887         of copyright year intervals.
75888         Also, document UPDATE_COPYRIGHT_YEAR.
75889         * tests/test-update-copyright.sh: Test it.
75891         update-copyright: convert 2-digit to 4-digit years
75892         * build-aux/update-copyright: Implement and document.
75893         * tests/test-update-copyright.sh: Update.
75895 2009-08-14  Jim Meyering  <meyering@redhat.com>
75897         test-exclude: avoid coreutils "make check" failure
75898         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
75899         just as in test-argmatch.c.
75901 2009-08-13  Eric Blake  <ebb9@byu.net>
75903         test-dup2: fix bad assumption
75904         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
75905         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
75907         test-version-etc: fix CRLF portability issue
75908         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
75909         recognize \r.
75910         * tests/test-argp-version-etc-1.sh: Likewise.
75912         getopt: update client modules
75913         * modules/argp (Depends-on): Use getopt-gnu.
75914         * modules/git-merge-changelog (Depends-on): Likewise.
75915         * modules/long-options (Depends-on): Likewise.
75916         * modules/xstrtol (Depends-on): Likewise.
75918 2009-08-13  Simon Josefsson  <simon@josefsson.org>
75920         * tests/test-version-etc.sh: Don't fail on different
75921         project/version.  Don't fail on CRLF differences.  Rewrite to use
75922         multiple -e instead of multiple sed forks, suggested by Eric Blake
75923         <ebb9@byu.net>.
75924         * tests/test-argp-version-etc-1.sh: Likewise.
75926 2009-08-13  Simon Josefsson  <simon@josefsson.org>
75928         * tests/test-version-etc.sh: Don't fail on different
75929         project/version.
75931 2009-08-12  Bruno Haible  <bruno@clisp.org>
75933         Tests for modules 'getopt-posix', 'getopt-gnu'.
75934         * modules/getopt-posix-tests: New file.
75935         * tests/test-getopt.c: New file.
75936         * tests/test-getopt.h: New file.
75937         * tests/test-getopt_long.h: New file.
75939         New modules 'getopt-posix', 'getopt-gnu'.
75940         * modules/getopt-gnu: New file, renamed from modules/getopt.
75941         * modules/getopt-posix: New file.
75942         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
75943         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
75944         (gl_GETOPT): Remove macro.
75945         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
75946         Disable the test against BSD systems that declare optreset. Test
75947         against mingw bug. Test against lack of support of optional arguments
75948         on many platforms.
75949         * doc/glibc-headers/getopt.texi: Update module name and list of
75950         relevant platforms.
75951         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
75952         'getopt-gnu' and more portability problems.
75953         * NEWS: Mention the changes.
75955 2009-08-12  Bruno Haible  <bruno@clisp.org>
75957         Ensure that optarg etc. get declared by <unistd.h>.
75958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
75959         AC_USE_SYSTEM_EXTENSIONS.
75960         * modules/getopt (Depends-on): Add 'extensions'.
75962 2009-08-12  Bruno Haible  <bruno@clisp.org>
75964         Avoid test link errors.
75965         * modules/pipe-filter-ii-tests (Makefile.am): Define
75966         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
75967         * modules/pipe-filter-gi-tests (Makefile.am): Define
75968         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
75969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75971 2009-08-12  Bruno Haible  <bruno@clisp.org>
75973         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
75974         gl_GETOPT_SUBSTITUTE before.
75975         (gl_GETOPT): Use it.
75976         * m4/argp.m4 (gl_ARGP): Update.
75977         Reported by Sergey Poznyakoff.
75979         * m4/getopt.m4: Reorder macros.
75980         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
75981         (gl_GETOPT_SUBSTITUTE): Remove macro.
75983 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75985         Minor improvement in gitlog-to-changelog
75987         * build-aux/gitlog-to-changelog: New option `--format' makes
75988         output format string configurable.
75990 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75992         Optimize exclude: use hash tables for non-wildcard patterns.
75994         * lib/exclude.c: Include hash.h and mbuiter.h
75995         (struct exclude_pattern, exclude_segment): New data types.
75996         (struct exclude): Rewrite.
75997         (fnmatch_pattern_has_wildcards): New function.
75998         (new_exclude_segment, free_exclude_segment): New functions.
75999         (excluded_file_pattern_p, excluded_file_name_p): New functions.
76000         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
76001         * lib/exclude.h (is_fnmatch_pattern): New prototype.
76002         * modules/exclude: Depend on hash and mbuiter.
76004         * modules/exclude-tests: New file.
76005         * tests/test-exclude.c: New file.
76006         * tests/test-exclude1.sh: New file.
76007         * tests/test-exclude2.sh: New file.
76008         * tests/test-exclude3.sh: New file.
76009         * tests/test-exclude4.sh: New file.
76010         * tests/test-exclude5.sh: New file.
76011         * tests/test-exclude6.sh: New file.
76012         * tests/test-exclude7.sh: New file.
76014 2009-08-12  Bruno Haible  <bruno@clisp.org>
76016         Ensure that getopt() gets declared by <unistd.h>.
76017         * lib/unistd.in.h: Conditionally include getopt.h.
76018         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
76019         Set GNULIB_UNISTD_H_GETOPT.
76020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76021         GNULIB_UNISTD_H_GETOPT.
76022         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
76024 2009-08-12  Bruno Haible  <bruno@clisp.org>
76026         Clarify logic.
76027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
76028         gl_replace_getopt instead of GETOPT_H.
76030 2009-08-12  Bruno Haible  <bruno@clisp.org>
76032         * m4/getopt.m4: Add comments.
76034 2009-08-12  Bruno Haible  <bruno@clisp.org>
76036         Disable multithread support by default on Cygwin 1.5.x.
76037         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
76038         set gl_use_threads=no if not specified otherwise.
76040 2009-08-11  Bruno Haible  <bruno@clisp.org>
76042         Avoid compilation error on NetBSD 5.0.
76043         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
76044         * tests/test-stdio.c: Likewise.
76045         * tests/test-stdlib.c: Likewise.
76046         * tests/test-string.c: Likewise.
76047         * tests/test-unistd.c: Likewise.
76048         Reported by Greg Troxel <gdt@ir.bbn.com>
76049         at <https://savannah.gnu.org/support/?106973>.
76051 2009-08-11  Bruno Haible  <bruno@clisp.org>
76053         * modules/dup2-tests (Depends-on): Remove close.
76055         Undo 2009-07-19 commit.
76056         * modules/acl-tests (Depends-on): Remove close.
76057         * modules/binary-io-tests (Depends-on): Likewise.
76058         * modules/closein-tests (Depends-on): Likewise.
76059         * modules/flock-tests (Depends-on): Likewise.
76060         * modules/fsync-tests (Depends-on): Likewise.
76061         * modules/lseek-tests (Depends-on): Likewise.
76062         * modules/pipe-tests (Depends-on): Likewise.
76063         * modules/posix_spawn-tests (Depends-on): Likewise.
76064         * modules/posix_spawnp-tests (Depends-on): Likewise.
76065         * modules/stat-time-tests (Depends-on): Likewise.
76066         * modules/yesno-tests (Depends-on): Likewise.
76068 2009-08-10  Bruno Haible  <bruno@clisp.org>
76070         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
76072 2009-08-10  Bruno Haible  <bruno@clisp.org>
76074         Fix a gcc warning.
76075         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
76077 2009-08-10  Bruno Haible  <bruno@clisp.org>
76079         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
76080         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
76081         not only the first time.
76082         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
76083         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
76084         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
76085         is 1, not only the first time.
76087 2009-08-10  Bruno Haible  <bruno@clisp.org>
76089         Make it possible to use module 'gethostname' without module 'close'.
76090         * lib/unistd.in.h (close): Evoke a link error only if
76091         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
76092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76093         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76094         * modules/unistd (Makefile.am): Substitute
76095         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76096         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
76097         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
76098         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
76099         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76100         * modules/sys_ioctl (Makefile.am): Substitute
76101         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76102         * modules/socket (configure.ac): On native Windows, set
76103         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
76104         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
76105         Reported by Sam Steingold <sds@gnu.org>.
76107 2009-08-10  Bruno Haible  <bruno@clisp.org>
76109         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
76110         * modules/ioctl (configure.ac): Likewise.
76112 2009-08-10  Bruno Haible  <bruno@clisp.org>
76114         Avoid collision between gnulib wrapper and libintl wrapper.
76115         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
76116         already defined in intl/printf.c.
76117         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
76118         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
76120 2009-08-09  Bruno Haible  <bruno@clisp.org>
76122         Make <sys/select.h> really self-contained, also on Solaris 10.
76123         * lib/sys_select.in.h: Include <string.h>.
76124         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
76125         Solaris 10 problem.
76126         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
76127         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
76128         Reported by Jim Meyering.
76130 2009-08-09  Bruno Haible  <bruno@clisp.org>
76132         Avoid warnings from 'aclocal' that are due to a use of macro name
76133         AM_XGETTEXT_OPTION that is not defined in automake.
76134         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
76135         automake.
76136         * modules/error (configure.ac): Likewise.
76137         * modules/propername (configure.ac): Likewise.
76138         * modules/vasprintf (configure.ac): Likewise.
76139         * modules/verror (configure.ac): Likewise.
76140         * modules/xprintf (configure.ac): Likewise.
76141         * modules/xvasprintf (configure.ac): Likewise.
76143 2009-08-08  Bruno Haible  <bruno@clisp.org>
76145         Avoid compilation error in C++ mode.
76146         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
76147         Reported by Sam Steingold <sds@gnu.org>.
76149 2009-08-08  Bruno Haible  <bruno@clisp.org>
76151         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
76152         for the various Unix platforms.
76153         * doc/posix-headers/limits.texi: Update platforms list regarding
76154         HOST_NAME_MAX.
76155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76157 2009-08-07  Jim Meyering  <meyering@redhat.com>
76159         selinux-at: fix typo in a comment
76160         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
76161         Spotted by Paolo Bonzini.
76163         selinux-at: remove redundant m4 code, add documentation
76164         * modules/selinux-at (configure.ac): Remove redundant code.
76165         LIB_SELINUX is already set via the dependent module, selinux-h.
76166         (Include): Add quotes around selinux-at.h.
76167         * lib/selinux-at.h: Add documentation.
76168         Reported by Bruno Haible in
76169         http://marc.info/?l=gnulib-bug&m=124958988300749
76171 2009-08-07  Bruno Haible  <bruno@clisp.org>
76173         Avoid link error on MacOS X 10.3 and 10.4.
76174         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
76175         on non-ELF systems.
76176         * lib/argp-pv.c (argp_program_version): Likewise.
76177         Reported by Simon Josefsson.
76179 2009-08-07  Simon Josefsson  <simon@josefsson.org>
76181         * tests/test-version-etc.sh: Use $EXEEXT.
76183 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
76185         update-copyright: update documentation to point to maint.mk
76186         * build-aux/update-copyright: Here.
76188 2009-08-06  Jim Meyering  <meyering@redhat.com>
76190         maint.mk: support update-copyright-local
76191         * top/maint.mk (update-copyright-local): Define place-holder.
76192         (update-copyright): Depend on $(update-copyright-local).
76194 2009-08-06  Jim Meyering  <meyering@redhat.com>
76196         selinux-at: new module
76197         Initially written for coreutils, this module will soon be
76198         used by findutils, too.
76199         * MODULES.html.sh [Misc]: Add selinux-at.
76200         * lib/selinux-at.h: New file, from coreutils.
76201         * lib/selinux-at.c: Likewise.
76202         * modules/selinux-at: Likewise.
76203         (License): Change from LGPL to GPL, since it depends
76204         on the GPL'd openat module.
76206         doc: update README
76207         * README: Remove references to cogito.
76208         Remove cvs-repo-updating instructions from 2007.
76209         Don't imply that CVS is better if you have limited disk space.
76211 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76213         update-copyright: support C-style comments
76214         * build-aux/update-copyright: Implement and document.
76215         * tests/test-update-copyright.sh: Test.
76217 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76219         update-copyright: support omitted "(C)"
76220         * build-aux/update-copyright: Implement and document.  Also,
76221         allow variable whitespace before "(C)".
76222         * tests/test-update-copyright.sh: Test.
76224 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76226         update-copyright: don't trip on non-FSF copyright statements
76227         * build-aux/update-copyright: Fix so that the first correctly
76228         formatted FSF copyright statement is recognized no matter what
76229         appears before it.  Update documentation.
76230         * tests/test-update-copyright.sh: Test that.
76232 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76234         update-copyright: clean up code a little
76235         * build-aux/update-copyright: Append "_re" to the name of any
76236         variable holding a regular expression.
76237         Replace "old" and "new" with "stmt" in variable names.
76238         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
76239         handled correctly.
76240         Format code more consistently.
76242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
76244         update-copyright-tests: improve portability
76245         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
76246         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
76248 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
76250         update-copyright: support @copyright{} and &copy;
76251         * build-aux/update-copyright: Implement and document.
76252         * tests/test-update-copyright.sh: Test.
76254 2009-08-04  Jim Meyering  <meyering@redhat.com>
76256         update-copyright-tests: correctly test EOL=\r\n handling
76257         * tests/test-update-copyright.sh: Put \r at the end of some lines
76258         for the dos-eol tests.  Based on a patch by Joel E. Denny.
76260         maint.mk: make update-copyright exclusion list more configurable
76261         * top/maint.mk (update-copyright): Default to excluding COPYING,
76262         but allow an override, in case someone does want to update that file.
76264         maint.mk: don't update copyright date in COPYING
76265         * top/maint.mk (update-copyright): Exclude COPYING.
76267         maint.mk: add a copyright-updating rule
76268         * top/maint.mk (update-copyright): New rule.
76269         Derived from coreutils/Makefile.am.
76271         update-copyright: rename some variables
76272         * build-aux/update-copyright: Rename a few variables for clarity.
76273         Tweak syntax.  List Joel E. Denny as coauthor.
76275 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
76277         update-copyright: fix bug for 2-digit last year and add tests
76278         * build-aux/update-copyright: Fix bug.
76279         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
76280         specified.
76281         * modules/update-copyright-tests: New
76282         * tests/test-update-copyright.sh: New.
76284 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76286         update-copyright: handle leading tabs in line prefix
76287         * build-aux/update-copyright: Count leading tabs as 8 spaces
76288         when computing margin.  This helps with the formatting of
76289         ChangeLogs, for example.
76290         Fix documentation a little.
76292 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76294         update-copyright: support EOL=\r\n
76295         * build-aux/update-copyright: Implement that.
76297 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
76299         update-copyright: automatically format copyright statements
76300         * build-aux/update-copyright: Implement that.
76301         Also, be a little more predictable and safer by always failing
76302         when the full copyright format is not perfectly recognized as an
76303         unbroken whole.  Discussed at
76304         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
76305         Rewrite documentation.
76307 2009-08-03  Bruno Haible  <bruno@clisp.org>
76309         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
76311 2009-08-02  Bruno Haible  <bruno@clisp.org>
76313         Tests for module 'uname'.
76314         * modules/uname-tests: New file.
76315         * tests/test-uname.c: New file.
76317         New module 'uname'.
76318         * lib/uname.c: New file.
76319         * m4/uname.m4: New file.
76320         * modules/uname: New file.
76321         * doc/posix-functions/uname.texi: Mention the new module.
76323 2009-08-02  Bruno Haible  <bruno@clisp.org>
76325         Tests for module 'sys_utsname'.
76326         * modules/sys_utsname-tests: New file.
76327         * tests/test-sys_utsname.c: New file.
76329         New module 'sys_utsname'.
76330         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
76331         * m4/sys_utsname_h.m4: New file.
76332         * modules/sys_utsname: New file.
76333         * doc/posix-headers/sys_utsname.texi: Mention the new module.
76335 2009-08-02  Bruno Haible  <bruno@clisp.org>
76337         Implicitly initialize the sockets library.
76338         * lib/gethostname.c: Include sockets.h.
76339         (rpl_gethostname): Invoke gl_sockets_startup.
76340         * lib/socket.c: Include sockets.h.
76341         (rpl_socket): Invoke gl_sockets_startup.
76342         * modules/gethostname (Depends-on): Add sockets.
76343         * modules/socket (Depends-on): Likewise.
76344         * tests/test-poll.c: Don't include sockets.h.
76345         (main): Don't invoke gl_sockets_startup.
76346         * tests/test-select.c: Don't include sockets.h.
76347         (main): Don't invoke gl_sockets_startup.
76349 2009-08-02  Bruno Haible  <bruno@clisp.org>
76351         Allow multiple calls to gl_sockets_startup.
76352         * lib/sockets.c (initialized_sockets_version): New variable.
76353         (gl_sockets_startup): Do nothing if already called for this or a higher
76354         version.
76355         (gl_sockets_cleanup): Reset initialized_sockets_version.
76357 2009-08-03  Simon Josefsson  <simon@josefsson.org>
76359         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
76360         different project/version.
76362 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
76363             Bruno Haible  <bruno@clisp.org>
76365         Tests for module 'pipe-filter-gi'.
76366         * modules/pipe-filter-gi-tests: New file.
76367         * tests/test-pipe-filter-gi1.sh: New file.
76368         * tests/test-pipe-filter-gi1.c: New file.
76369         * tests/test-pipe-filter-gi2.sh: New file.
76370         * tests/test-pipe-filter-gi2-main.c: New file.
76371         * tests/test-pipe-filter-gi2-child.c: New file.
76373         New module 'pipe-filter-gi'.
76374         * lib/pipe-filter-gi.c: New file.
76375         * modules/pipe-filter-gi: New file.
76377 2009-08-02  Bruno Haible  <bruno@clisp.org>
76378             Paolo Bonzini  <bonzini@gnu.org>
76380         Tests for module 'pipe-filter-ii'.
76381         * modules/pipe-filter-ii-tests: New file.
76382         * tests/test-pipe-filter-ii1.sh: New file.
76383         * tests/test-pipe-filter-ii1.c: New file.
76384         * tests/test-pipe-filter-ii2.sh: New file.
76385         * tests/test-pipe-filter-ii2-main.c: New file.
76386         * tests/test-pipe-filter-ii2-child.c: New file.
76388         New module 'pipe-filter-ii'.
76389         * lib/pipe-filter.h: New file.
76390         * lib/pipe-filter-ii.c: New file.
76391         * lib/pipe-filter-aux.h: New file.
76392         * modules/pipe-filter-ii: New file.
76394 2009-08-02  Simon Josefsson  <simon@josefsson.org>
76396         * lib/gc-libgcrypt.c: Change copyright to FSF.
76397         * lib/gc-gnulib.c: Likewise.
76399 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
76401         * lib/gethostname.c: Include limits.h.
76403 2009-08-02  Simon Josefsson  <simon@josefsson.org>
76404             Bruno Haible  <bruno@clisp.org>
76406         Ensure HOST_NAME_MAX as part of the gethostname module.
76407         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
76408         define also HOST_NAME_MAX.
76409         * tests/test-gethostname.c: Include <limits.h>.
76410         (main): Check also HOST_NAME_MAX.
76411         * doc/posix-headers/limits.texi: Document the mingw problem.
76413 2009-08-02  Bruno Haible  <bruno@clisp.org>
76415         * lib/gethostname.c (gethostname): Fix handling of large len argument.
76416         Add comments.
76418 2009-03-31  Simon Josefsson  <simon@josefsson.org>
76420         * lib/gethostname.c: Add Windows wrapper.
76421         * m4/gethostname.m4: Look for gethostname in -lws2_32.
76422         * modules/gethostname: Depend on sys_socket & errno, for also
76423         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
76424         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
76426 2009-07-31  Jim Meyering  <meyering@redhat.com>
76428         getloadavg: fix symbol name in comment
76429         * lib/getloadavg.c: Correct a typo I introduced when adding
76430         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
76431         Matt Kraai spotted the problem.
76433 2009-07-29  Matt Kraai  <mkraai@beckman.com>
76435         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
76436         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
76437         code also if ! defined N_NAME_POINTER.
76438         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
76439         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
76440         but the n_name member is a 12-byte array.
76442 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
76444         update-copyright: generalize comment handling
76445         * build-aux/update-copyright: Handle copyright statements
76446         within more comment styles.
76447         Document usage.
76448         Report any file with an external copyright holder or parse failure.
76450 2009-07-29  Jim Meyering  <meyering@redhat.com>
76452         mktime: correct setting of REPLACE_MKTIME
76453         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
76455         update-copyright: new module
76456         * modules/update-copyright: New file.
76457         * build-aux/update-copyright: New file.
76458         * MODULES.html.sh (maint+release support): Add update-copyright.
76460 2009-07-27  Bruno Haible  <bruno@clisp.org>
76462         Fix compilation error when <ctime> is used and mktime is replaced.
76463         * lib/time.in.h (mktime): New declaration.
76464         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
76465         REPLACE_MKTIME instead of defining mktime in config.h.
76466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
76467         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
76468         Reported by Ross McFarland <rwmcfa1@neces.com>.
76470 2009-07-27  Bruno Haible  <bruno@clisp.org>
76472         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
76473         Reported by Matt Kraai <mkraai@beckman.com>.
76475 2009-07-25  Jim Meyering  <meyering@redhat.com>
76477         maint.mk: avoid warnings about missing files
76478         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
76479         diagnostic when .prev-version does not exist.
76480         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
76481         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
76482         nonexistent cfg.mk.
76483         Suggestions from Simon Josefsson.
76485 2009-07-25  Bruno Haible  <bruno@clisp.org>
76487         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
76488         defined as macros. Needed on QNX 6.4.1.
76489         Reported by Matt Kraai <mkraai@beckman.com>.
76491 2009-07-23  Jim Meyering  <meyering@redhat.com>
76493         maint.mk: invoke "make dist" with a working value of XZ_OPT
76494         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
76496 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
76498         Make fseeko.c compile on QNX.
76499         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
76501 2009-07-22  Peter Simons  <simons@cryp.to>
76503         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
76504         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
76505         * lib/md4.h: Likewise.
76506         * lib/md5.h: Likewise.
76507         * lib/sha1.h: Likewise.
76508         * lib/sha256.h: Likewise.
76509         * lib/sha512.h: Likewise.
76511         tests-sha1: don't assign literal string to 'char *' variable
76512         * tests/test-sha1.c (main): Declare locals with "const" to match
76513         attributes of the right hand side.
76515 2009-07-21  Eric Blake  <ebb9@byu.net>
76517         dup2: fix more mingw problems
76518         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
76519         fd to itself.
76520         * doc/posix-functions/dup2.texi (dup2): Document the bug.
76521         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
76522         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
76523         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
76524         care of mingw bugs.
76526 2009-07-21  Jim Meyering  <meyering@redhat.com>
76528         vc-list-files: avoid failure when /bin/sh is dash
76529         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
76530         On some Debian based systems, /bin/sh is a symlink to dash, and running
76531         this command would omit the "/" following each 'tests' prefix:
76532           dash -x build-aux/vc-list-files -C . tests
76533         That is because bash and dash work differently:
76534           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
76535           bash ok
76536           dash odd
76538 2009-07-21  Eric Blake  <ebb9@byu.net>
76540         dup2-tests: test previous patch
76541         * modules/dup2-tests: New file.
76542         * tests/test-dup2.c: Likewise.
76543         * tests/test-open.c (main): Avoid unspecified behavior.
76544         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
76545         test.
76547         dup2: work around mingw and cygwin 1.5 bug
76548         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
76549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76550         * modules/unistd (Makefile.am): Substitute it.
76551         * lib/unistd.in.h (dup2): Declare the replacement.
76552         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
76553         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
76554         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
76555         * modules/execute (Depends-on): Add dup2.
76556         * modules/fseterr (Depends-on): Likewise.
76557         * modules/pipe (Depends-on): Likewise.
76558         * modules/posix_spawn-internal (Depends-on): Likewise.
76560 2009-07-21  Bruno Haible  <bruno@clisp.org>
76562         * modules/.gitattributes: New file.
76564 2009-07-20  Bruno Haible  <bruno@clisp.org>
76566         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
76567         (main): Use it.
76569 2009-07-20  Eric Blake  <ebb9@byu.net>
76571         test-pipe: make a bit more robust.
76572         * tests/test-pipe.c (myerr): Allow error messages regardless of
76573         what we do to stderr.
76574         (test_pipe): Rearrange to avoid deadlock.
76575         (child_main): Try a larger read, to ensure we avoided deadlock.
76576         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
76577         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
76578         if misused.
76580 2009-07-19  Jim Meyering  <meyering@redhat.com>
76582         fts: avoid false-positive cycle-detection
76583         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
76584         for each new command line argument.
76586 2009-07-19  Bruno Haible  <bruno@clisp.org>
76588         Fix build error on mingw with the modules sys_select and unistd.
76589         * modules/acl-tests (Depends-on): Add close.
76590         * modules/binary-io-tests (Depends-on): Likewise.
76591         * modules/closein-tests (Depends-on): Likewise.
76592         * modules/flock-tests (Depends-on): Likewise.
76593         * modules/fsync-tests (Depends-on): Likewise.
76594         * modules/lseek-tests (Depends-on): Likewise.
76595         * modules/pipe-tests (Depends-on): Likewise.
76596         * modules/posix_spawn-tests (Depends-on): Likewise.
76597         * modules/posix_spawnp-tests (Depends-on): Likewise.
76598         * modules/stat-time-tests (Depends-on): Likewise.
76599         * modules/yesno-tests (Depends-on): Likewise.
76601 2009-07-19  Bruno Haible  <bruno@clisp.org>
76603         Unify conditionals.
76604         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
76605         macros, not at the compiler macros.
76606         * lib/pipe.c: Likewise.
76607         * lib/execute.c: Likewise.
76608         * lib/spawni.c: Likewise.
76610 2009-07-19  Bruno Haible  <bruno@clisp.org>
76612         Fix handling of closed stdin/stdout/stderr on mingw.
76613         * lib/w32spawn.h: Include unistd.h.
76614         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
76615         file descriptor with O_NOINHERIT flag.
76616         (fd_safer_noinherit): New function, based on fd-safer.c.
76617         (dup_safer_noinherit): New function, based on dup-safer.c.
76618         (undup_safer_noinherit): New function.
76619         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
76620         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
76621         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
76622         instead of fd_safer.
76623         * tests/test-pipe.c: Include <windows.h>.
76624         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
76625         result.
76627         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
76628         from main.
76629         (test_pipe): Pass an extra argument for disambiguation.
76630         (main): Invoke parent_main or child_main.
76632         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
76633         consistently.
76635 2009-07-18  Eric Blake  <ebb9@byu.net>
76637         test-pipe: fix mingw build
76638         * tests/test-pipe.c (main): Avoid fcntl on mingw.
76640 2009-07-18  Bruno Haible  <bruno@clisp.org>
76642         * modules/pipe-tests (Makefile.am): Fix typo.
76644 2009-07-18  Eric Blake  <ebb9@byu.net>
76646         error: fix mingw build
76647         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
76648         Reported by Bruno Haible.
76650         error: avoid undefined use of stdout
76651         * lib/error.c (error, error_at_line): Check that fd 1 is open
76652         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
76653         is handling faults and the close_stdout module wants to report the
76654         detection of closed stdout as an error.
76656 2009-07-17  Eric Blake  <ebb9@byu.net>
76658         pipe: be robust in face of closed fds
76659         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
76660         should cause child to misbehave.
76661         * modules/pipe-tests: New module.
76662         * tests/test-pipe.c: New file.
76663         * tests/test-pipe.sh: New file.
76664         Reported by Akim Demaille.
76666 2009-07-14  Bruno Haible  <bruno@clisp.org>
76668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
76669         Reported by anonymous kc.
76671 2009-07-07  Jim Meyering  <meyering@redhat.com>
76673         maint.mk: don't look for translatable strings in *.m4 or *.mk
76674         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
76675         when searching for translatable strings.
76677 2009-07-05  Jim Meyering  <meyering@redhat.com>
76679         remove superfluous parentheses in STREQ definition
76680         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
76681         * lib/getugroups.c (STREQ): Likewise.
76682         * lib/fnmatch.c (STREQ): Likewise.
76683         Spotted by Bruno Haible.
76685 2009-07-04  Jim Meyering  <meyering@redhat.com>
76687         argv-iter: new module
76688         * MODULES.html.sh: Add argv-iter.
76689         * lib/argv-iter.c, lib/argv-iter.h: New files.
76690         * modules/argv-iter: New file.
76691         * modules/argv-iter-tests: New file.
76692         * tests/test-argv-iter.c: Test it.
76694 2009-07-04  Bruno Haible  <bruno@clisp.org>
76696         Fix assertion.
76697         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
76698         contains more exact copies of a given entry than file2, leave the extra
76699         copies unpaired rather than aborting.
76700         Reported by Eric Blake.
76702 2009-07-02  Bruno Haible  <bruno@clisp.org>
76704         Speedup git-merge-changelog for git cherry-pick.
76705         * lib/git-merge-changelog.c (struct entries_mapping): New type.
76706         (entries_mapping_get): New function, extracted from compute_mapping.
76707         (entries_mapping_reverse_get): New function.
76708         (compute_mapping): Add a 'full' argument. Return the result in a
76709         'struct entries_mapping'.
76710         (main): Update. Access the mappings through entries_mapping_get.
76711         Reported by Eric Blake.
76713 2009-07-02  Bruno Haible  <bruno@clisp.org>
76715         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
76716         best_i.
76718 2009-07-02  Bruno Haible  <bruno@clisp.org>
76720         Speed up approximate search for matching ChangeLog entries.
76721         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
76722         argument. Call fstrcmp_bounded instead of fstrcmp.
76723         (compute_mapping, try_split_merged_entry, main): Update callers.
76725 2009-07-02  Bruno Haible  <bruno@clisp.org>
76727         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
76729 2009-06-30  Bruno Haible  <bruno@clisp.org>
76731         Reduce the number of uc_is_cased calls.
76732         * lib/unicase.h (casing_suffix_context_t): Add
76733         'first_char_except_ignorable' field.
76734         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
76735         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
76736         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
76737         Update initializer.
76738         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
76739         case-ignorable characters.
76740         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
76741         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
76742         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
76743         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
76744         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
76746 2009-06-30  Bruno Haible  <bruno@clisp.org>
76748         Tests for module 'unicase/ignorable'.
76749         * modules/unicase/ignorable-tests: New file.
76750         * tests/unicase/test-ignorable.c: New file, generated by
76751         gen-uni-tables.
76753         Tests for module 'unicase/cased'.
76754         * modules/unicase/cased-tests: New file.
76755         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
76756         * tests/unicase/test-predicate-part1.h: New file, derived from
76757         tests/unictype/test-predicate-part1.h.
76758         * tests/unicase/test-predicate-part2.h: New file, same as
76759         tests/unictype/test-predicate-part2.h.
76761         Fix evaluation of "Before C" condition of FINAL_SIGMA.
76762         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
76763         (output_casing_properties): New function.
76764         (main): Call it.
76765         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
76766         * lib/unicase/cased.c: Include unictype/bitmap.h.
76767         (uc_is_cased): Define through a bitmap lookup.
76768         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
76769         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
76770         (uc_is_case_ignorable): Define through a bitmap lookup.
76771         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
76772         lib/unictype/bitmap.h.
76773         (Depends-on): Add inline. Clean up.
76774         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
76775         lib/unictype/bitmap.h.
76776         (Depends-on): Add inline. Clean up.
76777         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
76778         recognition.
76779         * tests/unicase/test-u16-tolower.c (main): Likewise.
76780         * tests/unicase/test-u32-tolower.c (main): Likewise.
76782 2009-06-30  Bruno Haible  <bruno@clisp.org>
76784         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
76785         * lib/unicase/u16-casemap.c: Likewise.
76786         * lib/unicase/u32-casemap.c: Likewise.
76788 2009-06-29  Bruno Haible  <bruno@clisp.org>
76790         Define u32_casefold as a wrapper around u32_ct_casefold.
76791         * lib/unicase/u32-casefold.c: Update.
76792         * modules/unicase/u32-casefold (Depends-on): Add
76793         unicase/u32-ct-casefold, unicase/empty-prefix-context,
76794         unicase/empty-suffix-context. Clean up.
76796         Define u16_casefold as a wrapper around u16_ct_casefold.
76797         * lib/unicase/u16-casefold.c: Update.
76798         * modules/unicase/u16-casefold (Depends-on): Add
76799         unicase/u16-ct-casefold, unicase/empty-prefix-context,
76800         unicase/empty-suffix-context. Clean up.
76802         Define u8_casefold as a wrapper around u8_ct_casefold.
76803         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
76804         * lib/unicase/u8-casefold.c: Update.
76805         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
76806         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
76808         Define u32_totitle as a wrapper around u32_ct_totitle.
76809         * lib/unicase/u32-totitle.c: Update.
76810         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
76811         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
76813         Define u16_totitle as a wrapper around u16_ct_totitle.
76814         * lib/unicase/u16-totitle.c: Update.
76815         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
76816         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
76818         Define u8_totitle as a wrapper around u8_ct_totitle.
76819         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
76820         functions.
76821         (FUNC): Delegate to U_CT_TOTITLE.
76822         * lib/unicase/u8-totitle.c: Update.
76823         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
76824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
76826         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
76827         invocation.
76828         * modules/unicase/u32-tolower (Depends-on): Add
76829         unicase/empty-prefix-context, unicase/empty-suffix-context.
76831         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
76832         invocation.
76833         * modules/unicase/u16-tolower (Depends-on): Add
76834         unicase/empty-prefix-context, unicase/empty-suffix-context.
76836         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
76837         * modules/unicase/u8-tolower (Depends-on): Add
76838         unicase/empty-prefix-context, unicase/empty-suffix-context.
76840         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
76841         invocation.
76842         * modules/unicase/u32-toupper (Depends-on): Add
76843         unicase/empty-prefix-context, unicase/empty-suffix-context.
76845         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
76846         invocation.
76847         * modules/unicase/u16-toupper (Depends-on): Add
76848         unicase/empty-prefix-context, unicase/empty-suffix-context.
76850         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
76851         * modules/unicase/u8-toupper (Depends-on): Add
76852         unicase/empty-prefix-context, unicase/empty-suffix-context.
76854         New module 'unicase/u32-ct-casefold'.
76855         * lib/unicase/u32-ct-casefold.c: New file.
76856         * modules/unicase/u32-ct-casefold: New file.
76858         New module 'unicase/u16-ct-casefold'.
76859         * lib/unicase/u16-ct-casefold.c: New file.
76860         * modules/unicase/u16-ct-casefold: New file.
76862         New module 'unicase/u8-ct-casefold'.
76863         * lib/unicase/u8-ct-casefold.c: New file.
76864         * lib/unicase/u-ct-casefold.h: New file, derived from
76865         lib/unicase/u-casefold.h.
76866         * modules/unicase/u8-ct-casefold: New file.
76868         New module 'unicase/u32-ct-totitle'.
76869         * lib/unicase/u32-ct-totitle.c: New file.
76870         * modules/unicase/u32-ct-totitle: New file.
76872         New module 'unicase/u16-ct-totitle'.
76873         * lib/unicase/u16-ct-totitle.c: New file.
76874         * modules/unicase/u16-ct-totitle: New file.
76876         New module 'unicase/u8-ct-totitle'.
76877         * lib/unicase/u8-ct-totitle.c: New file.
76878         * lib/unicase/u-ct-totitle.h: New file, derived from
76879         lib/unicase/u-totitle.h.
76880         * modules/unicase/u8-ct-totitle: New file.
76882         New module 'unicase/u32-ct-tolower'.
76883         * lib/unicase/u32-ct-tolower.c: New file.
76884         * modules/unicase/u32-ct-tolower: New file.
76886         New module 'unicase/u16-ct-tolower'.
76887         * lib/unicase/u16-ct-tolower.c: New file.
76888         * modules/unicase/u16-ct-tolower: New file.
76890         New module 'unicase/u8-ct-tolower'.
76891         * lib/unicase/u8-ct-tolower.c: New file.
76892         * modules/unicase/u8-ct-tolower: New file.
76894         New module 'unicase/u32-ct-toupper'.
76895         * lib/unicase/u32-ct-toupper.c: New file.
76896         * modules/unicase/u32-ct-toupper: New file.
76898         New module 'unicase/u16-ct-toupper'.
76899         * lib/unicase/u16-ct-toupper.c: New file.
76900         * modules/unicase/u16-ct-toupper: New file.
76902         New module 'unicase/u8-ct-toupper'.
76903         * lib/unicase/u8-ct-toupper.c: New file.
76904         * modules/unicase/u8-ct-toupper: New file.
76906         Add context arguments to u*_casemap functions.
76907         * lib/unicase/unicasemap.h: Include unicase.h.
76908         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
76909         suffix_context arguments.
76910         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
76911         functions.
76912         (FUNC): Add prefix_context and suffix_context arguments. Use
76913         uc_is_cased and uc_is_case_ignorable.
76914         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
76915         * lib/unicase/u16-casemap.c: Likewise.
76916         * lib/unicase/u32-casemap.c: Likewise.
76917         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
76918         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
76919         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
76920         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
76921         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
76922         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
76924         New module 'unicase/u32-suffix-context'.
76925         * lib/unicase/u32-suffix-context.c: New file.
76926         * modules/unicase/u32-suffix-context: New file.
76928         New module 'unicase/u16-suffix-context'.
76929         * lib/unicase/u16-suffix-context.c: New file.
76930         * modules/unicase/u16-suffix-context: New file.
76932         New module 'unicase/u8-suffix-context'.
76933         * lib/unicase/u8-suffix-context.c: New file.
76934         * lib/unicase/u-suffix-context.h: New file.
76935         * modules/unicase/u8-suffix-context: New file.
76937         New module 'unicase/empty-suffix-context'.
76938         * lib/unicase/empty-suffix-context.c: New file.
76939         * modules/unicase/empty-suffix-context: New file.
76941         New module 'unicase/u32-prefix-context'.
76942         * lib/unicase/u32-prefix-context.c: New file.
76943         * modules/unicase/u32-prefix-context: New file.
76945         New module 'unicase/u16-prefix-context'.
76946         * lib/unicase/u16-prefix-context.c: New file.
76947         * modules/unicase/u16-prefix-context: New file.
76949         New module 'unicase/u8-prefix-context'.
76950         * lib/unicase/u8-prefix-context.c: New file.
76951         * lib/unicase/u-prefix-context.h: New file.
76952         * lib/unicase/context.h: New file.
76953         * modules/unicase/u8-prefix-context: New file.
76955         New module 'unicase/empty-prefix-context'.
76956         * lib/unicase/empty-prefix-context.c: New file.
76957         * modules/unicase/empty-prefix-context: New file.
76959         New module 'unicase/ignorable'.
76960         * lib/unicase/ignorable.c: New file.
76961         * modules/unicase/ignorable: New file.
76963         New module 'unicase/cased'.
76964         * lib/unicase/caseprop.h: New file.
76965         * lib/unicase/cased.c: New file.
76966         * modules/unicase/cased: New file.
76968         New functions for case mapping of substrings.
76969         * lib/unicase.h (casing_prefix_context_t): New type.
76970         (unicase_empty_prefix_context): New variable.
76971         (u8_casing_prefix_context, u16_casing_prefix_context,
76972         u32_casing_prefix_context, u8_casing_prefixes_context,
76973         u16_casing_prefixes_context, u32_casing_prefixes_context): New
76974         declarations.
76975         (casing_suffix_context_t): New type.
76976         (unicase_empty_suffix_context): New variable.
76977         (u8_casing_suffix_context, u16_casing_suffix_context,
76978         u32_casing_suffix_context, u8_casing_suffixes_context,
76979         u16_casing_suffixes_context, u32_casing_suffixes_context,
76980         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
76981         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
76982         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
76983         declarations.
76985 2009-06-28  Jim Meyering  <meyering@redhat.com>
76987         boostrap: indent only with spaces
76988         * build-aux/bootstrap: Indent only with spaces, never TABs.
76990         bootstrap: split long lines
76991         * build-aux/bootstrap: Keep line length < 80.
76993         bootstrap: sync from coreutils
76994         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
76995         just as autoreconf does.  Verify a list of prerequisite
76996         package-name,version-number pairs if defined in bootstrap.conf.
76997         Refer to README-prereq, if prerequisites are not satisfied.
76999 2009-06-27  Eric Blake  <ebb9@byu.net>
77001         tests: add test for bogus NULL definition
77002         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
77003         * tests/test-stdlib.c: Likewise.
77004         * tests/test-string.c: Likewise.
77005         * tests/test-locale.c: Likewise.
77006         * tests/test-unistd.c: Likewise.
77007         * modules/stdio-tests (Depends-on): Add verify.
77008         * modules/stdlib-tests (Depends-on): Likewise.
77009         * modules/string-tests (Depends-on): Likewise.
77010         * modules/locale-tests (Depends-on): Likewise.
77011         * modules/unistd-tests (Depends-on): Likewise.
77013 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
77015         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
77016         self-explaining comment.
77017         * m4/selinux-selinux-h: Update serial.
77018         (gl_LIBSELINUX): New macro, adding a warning for missing development
77019         packages to code extracted from...
77020         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
77021         Add warning for missing development packages here, too.
77023 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
77025         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
77027 2009-06-25  Eric Blake  <ebb9@byu.net>
77029         version-etc: fix regression
77030         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
77031         gcc.
77032         (version_etc): Use it, to catch bugs with trailing NULL.
77033         * lib/version-etc.c (version_etc_arn): Delete unused argument.
77034         (version_etc_va): Fix logic bug.
77035         * modules/version-etc-tests: Add test.
77036         * tests/test-version-etc.c: New file.
77037         * tests/test-version-etc.sh: Likewise.
77039 2009-06-25  Sam Steingold  <sds@gnu.org>
77041         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
77042         mbtowc declaration.
77044 2009-06-25  Eric Blake  <ebb9@byu.net>
77046         fpurge: migrate into <stdio.h>
77047         * lib/fpurge.h: Delete...
77048         * lib/stdio.in.h (fpurge): ...and declare here, instead.
77049         * lib/fpurge.c (fpurge): Change declaring header.
77050         * modules/fpurge (Files): Drop deleted file.
77051         (Depends-on): Add stdio.
77052         (configure.ac): Set witness.
77053         * modules/stdio (Makefile.am): Support fpurge macros.
77054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77055         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
77056         * lib/fflush.c: Update client.
77057         * tests/test-fpurge.c: Likewise.
77058         * NEWS: Mention the change.
77060 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77062         * lib/argp-version-etc.c (program_authors): Add const
77063         qualifier.
77064         * lib/version-etc.c: Fix typos in the comments.
77065         * modules/argp-version-etc: Depends on version-etc.
77067 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77069         argp-version-etc: new module.
77071         * lib/argp-version-etc.c: New file.
77072         * lib/argp-version-etc.h: New file.
77073         * modules/argp-version-etc: New file.
77074         * modules/argp-version-etc-tests: New file.
77075         * tests/test-argp-version-etc.c: New test.
77076         * tests/test-argp-version-etc-1.sh: New test.
77078 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77080         Provide additional interfaces and documentation for version-etc
77081         module.
77083         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
77084         interfaces.
77085         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
77086         prototypes.
77088 2009-06-24  Bruno Haible  <bruno@clisp.org>
77090         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
77091         HAVE_LIB${NAME} macro.
77092         Reported by Sam Steingold <sds@gnu.org>.
77094 2009-06-23  Simon Josefsson  <simon@josefsson.org>
77096         * modules/hash-tests (test_hash_LDADD): Link to libintl when
77097         needed.
77099 2009-06-21  Bruno Haible  <bruno@clisp.org>
77101         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
77102         work.
77103         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
77104         together with LIB${NAME}, LTLIB${NAME}.
77105         Reported by Sam Steingold <sds@gnu.org>.
77107 2009-06-20  Jim Meyering  <meyering@redhat.com>
77109         tests: make sc_require_test_exit_idiom more generic
77110         * top/maint.mk (Exit_witness_file): New overridable variable.
77111         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
77112         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
77114 2009-06-19  Jim Meyering  <meyering@redhat.com>
77116         hash: reverse order of src/dst parameters in an internal interface
77117         * lib/hash.c (transfer_entries): Reverse order of parameters to
77118         put DST before SRC.  Adjust callers.
77120         tests: test-hash: avoid wholesale duplication
77121         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
77122         Instead, use a loop and add a single conditional.
77124         tests: test-hash: allow seed selection via a command line argument
77125         * tests/test-hash.c (get_seed): New function.
77126         (main): Use it.
77128 2009-06-19  Eric Blake  <ebb9@byu.net>
77130         hash: avoid memory leak on allocation failure
77131         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
77132         failure.  Factor repeated algorithm...
77133         (transfer_entries): ...into new helper routine.
77134         (hash_delete): React to hash_rehash return value.
77136         hash: reduce memory pressure in hash_rehash no-op case
77137         * lib/hash.c (next_prime): Avoid overflow.
77138         (hash_initialize): Factor bucket size computation...
77139         (compute_bucket_size): ...into new helper function.
77140         (hash_rehash): Use new function and open coding to reduce memory
77141         pressure, and avoid a memory leak in USE_OBSTACK code.
77142         Reported by Jim Meyering.
77144 2009-06-18  Eric Blake  <ebb9@byu.net>
77146         hash: make rotation more obvious
77147         * modules/hash (Depends-on): Add bitrotate and stdint.
77148         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
77149         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
77150         (SIZE_MAX): Rely on headers for definition.
77151         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
77152         (raw_hasher): Use rotr_sz.
77153         Suggested by Jim Meyering.
77155         hash: fix memory leak in last patch
77156         * lib/hash.c (hash_rehash): Avoid memory leak.
77158         hash: avoid no-op rehashing
77159         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
77161         hash: provide default callback functions
77162         * lib/hash.c (raw_hasher, raw_comparator): New functions.
77163         (hash_initialize): Use them as defaults.
77164         * tests/test-hash.c (main): Test this.
77166         hash: minor optimization
77167         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
77168         when possible.
77169         (hash_initialize): Document this promise.
77170         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
77171         * tests/test-hash.c (hash_compare_strings): Test this.
77173 2009-06-18  Bruno Haible  <bruno@clisp.org>
77175         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
77176         going to be replaced anyway.
77178 2009-06-18  Bruno Haible  <bruno@clisp.org>
77180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
77181         in one place.
77182         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
77183         be replaced anyway.
77185 2009-06-18  Eric Blake  <ebb9@byu.net>
77187         hash: check for resize before insertion
77188         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
77189         threshold before insertion, so that a pathological hash_rehash
77190         that fills every bucket can still trigger another rehash.
77192 2009-06-18  Jim Meyering  <meyering@redhat.com>
77194         hash-tests: add a loop around the small tests
77195         * tests/test-hash.c (main): Repeat small tests with selected
77196         small initial table sizes.
77198 2009-06-17  Eric Blake  <ebb9@byu.net>
77200         hash: minor cleanups
77201         * lib/hash.h (hash_entry): Make opaque, by moving...
77202         * lib/hash.c (hash_entry): ...here.
77203         (hash_insert): Clarify restrictions on what can be inserted.
77204         (hash_get_next): Clarify when it is safe to remove an element
77205         during traversal.
77206         (check_tuning): Skip verification when tuning is known safe.
77207         (hash_initialize): Clarify restrictions on tuning.
77209 2009-06-17  Jim Meyering  <jim@meyering.net>
77210         and Eric Blake  <ebb9@byu.net>
77212         hash-tests: new module
77213         * modules/hash-tests: New file.
77214         * tests/test-hash.c: New file.
77216 2009-06-17  Eric Blake  <ebb9@byu.net>
77218         strstr-simple: document new module
77219         * MODULES.html.sh: Document new module.
77221         strstr, strcasestr: replace on platforms with broken memchr
77222         * modules/strstr: Split into...
77223         * modules/strstr-simple: ...new module that does not care about
77224         performance, but does care about glibc bug.
77225         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
77226         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
77227         if platform memchr is broken, per Debian bug 521737.
77228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
77229         memchr.
77230         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
77231         * doc/posix-functions/strstr.texi (strstr): Document the fix.
77232         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
77233         * modules/mountlist (Depends-on): Add strstr-simple.
77234         * modules/gen-uni-tables (Depends-on): Likewise.
77235         * modules/argz (Depends-on): Add strstr.
77237 2009-06-17  Bruno Haible  <bruno@clisp.org>
77239         * modules/posix_spawn-internal (Depends-on): Add errno.
77241 2009-06-17  Bruno Haible  <bruno@clisp.org>
77243         Define missing ESTALE on Interix 3.5.
77244         * lib/errno.in.h (ESTALE): Assign a value if missing.
77245         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
77246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
77247         missing.
77248         * doc/posix-headers/errno.texi: Mention the Interix bug.
77249         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
77251 2009-06-15  Eric Blake  <ebb9@byu.net>
77253         memchr, memchr2: add valgrind exception
77254         * lib/memchr.valgrind: New file.
77255         * lib/memchr2.valgrind: New file.
77256         * modules/memchr (Files): Distribute valgrind file.
77257         * modules/memchr2 (Files): Likewise.
77259         docs: memchr is no longer obsolete
77260         * MODULES.html.sh: Move memchr from obsolete to string.h section.
77261         * lib/string.in.h (memchr): Simplify logic.
77263 2009-06-14  Jim Meyering  <meyering@redhat.com>
77265         link-follow: fix the "checking..." message to not mention trailing slash
77266         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
77267         never considered trailing slashes.
77269 2009-06-14  Bruno Haible  <bruno@clisp.org>
77271         * m4/memchr.m4: Mention also the bug on IA-64.
77272         * doc/posix-functions/memchr.texi: Likewise.
77274 2009-06-12  Eric Blake  <ebb9@byu.net>
77276         memchr: detect broken x86_64 and alpha implementations
77277         * modules/memchr-tests (Depends-on): Move mmap detection...
77278         * modules/memchr (Depends-on): ...here.
77279         (configure.ac): Set indicator.
77280         * lib/string.in.h (memchr): Declare replacement.
77281         * modules/string (Makefile.am): Trigger replacement.
77282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
77283         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
77284         bugs.
77285         * doc/posix-functions/memchr.texi (memchr): Document the bug.
77286         * modules/getpagesize (License): Relax license.
77288 2009-06-11  Bruno Haible  <bruno@clisp.org>
77290         * lib/idpriv.h: Add more references.
77292 2009-06-08  Bruno Haible  <bruno@clisp.org>
77294         Tests for module 'idpriv-droptemp'.
77295         * modules/idpriv-droptemp-tests: New file.
77296         * tests/test-idpriv-droptemp.sh: New file.
77297         * tests/test-idpriv-droptemp.su.sh: New file.
77298         * tests/test-idpriv-droptemp.c: New file.
77300         New module 'idpriv-droptemp'.
77301         * lib/idpriv-droptemp.c: New file.
77302         * modules/idpriv-droptemp: New file.
77304 2009-06-08  Bruno Haible  <bruno@clisp.org>
77306         Tests for module 'idpriv-drop'.
77307         * modules/idpriv-drop-tests: New file.
77308         * tests/test-idpriv-drop.sh: New file.
77309         * tests/test-idpriv-drop.su.sh: New file.
77310         * tests/test-idpriv-drop.c: New file.
77312         New module 'idpriv-drop'.
77313         * lib/idpriv.h: New file.
77314         * lib-idpriv-drop.c: New file.
77315         * m4/idpriv.m4: New file.
77316         * modules/idpriv-drop: New file.
77318 2009-06-08  Bruno Haible  <bruno@clisp.org>
77320         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
77321         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77322         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77323         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77324         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77325         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77326         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77328 2009-06-08  Eric Blake  <ebb9@byu.net>
77330         test-strstr: use memory fence, when possible
77331         * tests/test-strstr.c (main): Use memory fence, in order to be
77332         more likely to trigger Debian bug 521737.
77333         * modules/strstr-tests (Files): Pull in additional files.
77335         memchr: no longer obsolete, for wider field testing
77336         * modules/memchr (Status, Notice): Delete, this module is no
77337         longer obsolete.
77338         * modules/vasnprintf (Depends-on): Add memchr.
77340 2009-06-07  Jim Meyering  <meyering@redhat.com>
77342         hash: declare some functions with the warn_unused_result attribute
77343         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
77345 2009-06-07  Bruno Haible  <bruno@clisp.org>
77347         * tests/test-alignof.c: Don't test int64_t if it does not exist.
77348         Reported by Eric Blake.
77350 2009-06-06  Eric Blake  <ebb9@byu.net>
77352         test-alignof: fix typo with long double
77353         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
77354         compiler error.
77356 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
77358         Escape non-texinfo { and }s.
77359         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
77360         markup error.
77362 2009-06-04  Jim Meyering  <meyering@redhat.com>
77364         gitlog-to-changelog: don't infloop on an empty commit log
77365         * build-aux/gitlog-to-changelog: Warn about an empty log message.
77366         Reported by Boris Petersen <transacid@centerim.org>.
77368 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
77370         version-etc: extend for packagers
77371         Add three new configure options, intended for packagers:
77372           --with-packager="packager name"
77373           --with-packager-version="packager-specific version"
77374           --with-packager-bug-reports="packager bug reporting"
77375         An example with coreutils:
77376           $ ./configure \
77377             --with-packager=Gentoo \
77378             --with-packager-bug-report=http://bugs.gentoo.org/ \
77379             --with-packager-version="patchset 1.6"
77380           $ ./src/ls --version | head -n2
77381           ls (GNU coreutils) 7.1-dirty
77382           Packaged by Gentoo (patchset 1.6)
77383         Note that the bug reporting info via --help doesn't show up because
77384         coreutils uses its own custom emit_bug_reporting_address() implementation
77385         in src/system.h.  If it didn't, it'd look like:
77386           $ ./src/ls --help | tail -n4
77387           Report bugs to <bug-coreutils@gnu.org>.
77388           Report Gentoo bugs to <http://bugs.gentoo.org/>.
77389           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
77390           General help using GNU software: <http://www.gnu.org/gethelp/>.
77391         * lib/version-etc.c: Print new information, if provided.
77392         * m4/version-etc.m4: New file.
77393         * modules/version-etc (Files): Add m4/version-etc.m4.
77394         (configure.ac): Add gl_VERSION_ETC.
77396 2009-05-31  Bruno Haible  <bruno@clisp.org>
77398         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
77399         and 'int64_t'.
77400         * modules/alignof-tests (Dependencies): Add stdint.
77401         Reported by Eric Blake.
77403 2009-05-31  Bruno Haible  <bruno@clisp.org>
77405         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
77406         restriction due to compiler bugs.
77407         Reported by Eric Blake.
77409 2009-05-31  Simon Josefsson  <simon@josefsson.org>
77410             Bruno Haible  <bruno@clisp.org>
77412         Fix test-alignof failure.
77413         * lib/alignof.h (alignof_slot): New macro.
77414         (alignof_type): New macro, with the same semantics as the previous
77415         'alignof'.
77416         (alignof): Alias to alignof_slot.
77417         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
77418         check that the results are usable as constant expressions.
77420 2009-05-31  Bruno Haible  <bruno@clisp.org>
77422         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
77423         * tests/test-memchr.c (main): Check that memchr does not read past the
77424         first occurrence of the byte.
77425         * tests/test-strstr.c (main): Update comment.
77426         Suggested by Eric Blake.
77428 2009-05-30  Bruno Haible  <bruno@clisp.org>
77430         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
77431         detail how to use dumpbin.
77432         Reported by David Byron <dbyron@dbyron.com>.
77434 2009-06-02  Simon Josefsson  <simon@josefsson.org>
77436         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
77438 2009-06-02  Simon Josefsson  <simon@josefsson.org>
77440         * m4/manywarnings.m4: Add GCC 4.4 warnings.
77442 2009-05-28  Bruno Haible  <bruno@clisp.org>
77444         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
77445         build-aux/ files.
77447 2009-05-28  Simon Josefsson  <simon@josefsson.org>
77449         * gnulib-tool (func_import): Transform license on build-aux/ files too.
77451 2009-05-27  Simon Josefsson  <simon@josefsson.org>
77453         * gnulib-tool (sed_transform_main_lib_file)
77454         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
77455         regexps.
77457 2009-05-26  Simon Josefsson  <simon@josefsson.org>
77459         * tests/test-strstr.c: Add another self-test.
77460         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
77461         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
77463 2009-05-23  Bruno Haible  <bruno@clisp.org>
77465         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
77466         change.
77468 2009-05-21  Bruno Haible  <bruno@clisp.org>
77470         Simplify use of mode_t varargs.
77471         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
77472         uses 'mode_t' or 'int'.
77473         * lib/openat.c (openat): Likewise.
77474         * lib/open-safer.c (open_safer): Likewise.
77475         * m4/mode_t.m4: New file.
77476         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
77477         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
77478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
77479         * modules/open (Files): Add m4/mode_t.m4.
77480         * modules/openat (Files): Likewise.
77481         * modules/fcntl-safer (Files): Likewise.
77482         Suggested by Eric Blake.
77484 2009-05-21  Pádraig Brady  <P@draigbrady.com>
77486         * doc/glibc-functions/fallocate.texi: New file.
77487         * doc/gnulib.texi: Include it.
77489 2009-05-21  Eric Blake  <ebb9@byu.net>
77490             Bruno Haible  <bruno@clisp.org>
77492         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
77493         invocations.
77494         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77496 2009-05-21  Eric Blake  <ebb9@byu.net>
77497             Bruno Haible  <bruno@clisp.org>
77499         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
77500         include_next. Fix of 2008-11-20 commit.
77501         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
77502         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
77503         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
77504         NEXT_MATH_H.
77505         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
77506         instead of NEXT_MATH_H.
77508 2009-05-21  Bruno Haible  <bruno@clisp.org>
77510         Avoid redefinition warnings for SIZE_MAX.
77511         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
77512         Reported by Simon Josefsson.
77514 2009-05-21  Bruno Haible  <bruno@clisp.org>
77516         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
77517         AC_CACHE_VAL.
77519 2009-05-20  Bruno Haible  <bruno@clisp.org>
77521         Make zeroptr.h work on mingw.
77522         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
77523         mprotect.
77524         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
77525         * modules/memchr2-tests (configure.ac): Likewise.
77526         * modules/memcmp-tests (configure.ac): Likewise.
77527         * modules/memmem-tests (configure.ac): Likewise.
77528         * modules/memrchr-tests (configure.ac): Likewise.
77529         Reported by Simon Josefsson.
77531 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77533         * tests/test-glob.c: Include string.h for strcmp prototype.
77535 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77537         * modules/getdelim (Depends-on): Add explicit stdint, although it
77538         was implicitly already pulled in via realloc-posix.
77539         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
77541 2009-05-20  Simon Josefsson  <simon@josefsson.org>
77543         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
77544         G. Christensen" <tgc@jupiterrise.com>.
77545         * m4/sys_socket_h.m4: Check for sa_family_t.
77546         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
77547         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
77548         * tests/test-sys_socket.c: Check that sa_family_t works.
77550 2009-05-18  Eric Blake  <ebb9@byu.net>
77552         maint.mk: allow gnulib_dir in VPATH build
77553         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
77555 2009-05-15  Jim Meyering  <meyering@redhat.com>
77557         maint.mk: Give gnulib_dir a default definition.
77558         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
77559         Thus, most packages no longer need to specify this variable in cfg.mk
77561 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
77563         rename.m4: fix typos that would make non-mingw cross-configure fail
77564         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
77566 2009-05-13  Eric Blake  <ebb9@byu.net>
77568         mmap-anon: avoid out-of-order autoconf expansion
77569         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
77570         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
77571         * modules/memchr-tests (Depends-on): Add extensions.
77572         * modules/memchr2-tests (Depends-on): Add extensions.
77573         * modules/memcmp-tests (Depends-on): Add extensions.
77574         * modules/memmem-tests (Depends-on): Add extensions.
77575         * modules/memrchr-tests (Depends-on): Add extensions.
77577 2009-05-13  Bruno Haible  <bruno@clisp.org>
77579         Make some tests ISO C 99 compliant.
77580         * tests/zerosize-ptr.h: New file.
77581         * tests/test-memchr.c: Include zerosize-ptr.h.
77582         (main): Use a zero-size object pointer instead of NULL.
77583         * tests/test-memchr2.c: Include zerosize-ptr.h.
77584         (main): Use a zero-size object pointer instead of NULL.
77585         * tests/test-memcmp.c: Include zerosize-ptr.h.
77586         (main): Use a zero-size object pointer instead of NULL.
77587         * tests/test-memmem.c: Include zerosize-ptr.h.
77588         (main): Use a zero-size object pointer instead of NULL.
77589         * tests/test-memrchr.c: Include zerosize-ptr.h.
77590         (main): Use a zero-size object pointer instead of NULL.
77591         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
77592         m4/mmap-anon.m4.
77593         (Depends-on): Add getpagesize.
77594         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77595         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
77596         m4/mmap-anon.m4.
77597         (Depends-on): Add getpagesize.
77598         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77599         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
77600         m4/mmap-anon.m4.
77601         (Depends-on): Add getpagesize.
77602         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77603         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
77604         m4/mmap-anon.m4.
77605         (Depends-on): Add getpagesize.
77606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77607         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
77608         m4/mmap-anon.m4.
77609         (Depends-on): Add getpagesize.
77610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
77612 2009-05-12  Bruno Haible  <bruno@clisp.org>
77614         Tests for module 'alignof'.
77615         * modules/alignof-tests: New file.
77616         * tests/test-alignof.c: New file.
77618 2009-05-12  Bruno Haible  <bruno@clisp.org>
77620         Fix alignof macro.
77621         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
77622         vendor compilers that are always correct.
77624 2009-05-12  Bruno Haible  <bruno@clisp.org>
77626         Make the MAP_ANONYMOUS detection work on HP-UX 11.
77627         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
77628         not whether its fully works.
77630 2009-05-12  Bruno Haible  <bruno@clisp.org>
77632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
77634 2009-05-12  Jim Meyering  <meyering@redhat.com>
77636         * top/maint.mk: Adjust backslash alignment.
77638 2009-05-11  Simon Josefsson  <simon@josefsson.org>
77640         * top/maint.mk: Make $(srcdir)/build-aux configurable.
77642 2009-05-11  Eric Blake  <ebb9@byu.net>
77644         argp: avoid undefined behavior
77645         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
77646         macros.
77648 2009-05-08  Simon Josefsson  <simon@josefsson.org>
77650         * tests/test-vc-list-files-git.sh: Do git config of user.email and
77651         user.name to prevent git commit from complaining.
77653 2009-05-10  Bruno Haible  <bruno@clisp.org>
77655         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
77656         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
77657         it rewrites every file name only once.
77658         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
77660 2009-05-08  Bruno Haible  <bruno@clisp.org>
77662         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
77663         instead of 'max'.
77665 2009-05-08  Simon Josefsson  <simon@josefsson.org>
77667         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
77668         sockaddr_storage test.
77670 2009-05-07  Simon Josefsson  <simon@josefsson.org>
77672         * modules/sys_socket (Makefile.am): Substitute
77673         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
77674         * m4/sys_socket_h.m4: Check for sockaddr_storage.
77675         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
77676         * tests/test-sys_socket.c: Check sockaddr_storage.
77678 2009-05-08  Bruno Haible  <bruno@clisp.org>
77680         New module 'alignof'.
77681         * lib/alignof.h: New file.
77682         * modules/alignof: New file.
77684 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77685             Bruno Haible  <bruno@clisp.org>
77687         Fix test-file-has-acl on FreeBSD.
77688         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
77689         mask is implicitly added.
77690         * tests/test-file-has-acl.c: Include <signal.h>.
77691         (main): Terminate the test after 5 seconds.
77692         * modules/acl-tests (configure.ac): Check for alarm function.
77694 2009-05-04  Bruno Haible  <bruno@clisp.org>
77696         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
77697         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
77698         * modules/errno (configure.ac): Drop AC_REQUIRE.
77699         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
77700         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
77702 2009-05-04  Simon Josefsson  <simon@josefsson.org>
77704         * modules/glob-tests: New module.
77705         * tests/test-glob.c: Add.
77707 2009-05-04  Simon Josefsson  <simon@josefsson.org>
77709         * modules/fnmatch-tests: New module.
77710         * tests/test-fnmatch.c: Add.
77712 2009-05-04  Eric Blake  <ebb9@byu.net>
77714         maint: make the new no-submodule-changes rule VPATH-safe
77715         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
77717 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77718             Bruno Haible  <bruno@clisp.org>
77720         acl: Fix infinite loop on FreeBSD.
77721         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
77722         of return value from acl_get_entry.
77723         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
77724         Likewise.
77726 2009-05-03  Bruno Haible  <bruno@clisp.org>
77728         * lib/acl-internal.h (acl_entries): Clarify return value.
77729         * lib/acl_entries.c (acl_entries): Likewise.
77731 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77733         Bug fix in acl module.
77734         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
77736 2009-05-03  Bruno Haible  <bruno@clisp.org>
77738         Create gperf-generated file in the source dir, not in the build dir.
77739         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
77740         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
77741         * modules/unicase/locale-language (unicase/locale-languages.h):
77742         Likewise.
77743         * modules/unicase/special-casing (unicase/special-casing-table.h):
77744         Likewise.
77745         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
77746         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
77747         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
77748         Reported by Ralf Wildenhues.
77750 2009-05-03  Bruno Haible  <bruno@clisp.org>
77752         * modules/fnmatch (Description, configure.ac): Taken from
77753         fnmatch-posix.
77754         * modules/fnmatch-posix: Turn into a symbolic reference to the
77755         'fnmatch' module, and deprecate.
77756         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
77758 2009-05-03  Bruno Haible  <bruno@clisp.org>
77760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
77761         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
77762         Reported by Ralf Wildenhues.
77764 2009-05-04  Simon Josefsson  <simon@josefsson.org>
77766         * m4/fnmatch.m4: Fix fnmatch re-define.
77768 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
77770         priv-set: new module and tests; adapt write-any-file
77771         * lib/priv-set.c: New file.
77772         * lib/priv-set.h: New file.
77773         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
77774         * lib/write-any-file.c: Simplify by using priv-set module.
77775         * m4/priv-set.m4: New file.
77776         * modules/priv-set: New file.
77777         * modules/unlinkdir: Add dependency on priv-set module.
77778         * modules/write-any-file: Likewise.
77780         Tests for module 'priv-set'.
77781         * modules/priv-set-tests: New file.
77782         * tests/test-priv-set.c: New file.
77784 2009-05-03  Jim Meyering  <meyering@redhat.com>
77785             Bruno Haible  <bruno@clisp.org>
77787         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
77788         use the converted UTF-8 variant of the name instead.
77790 2009-05-03  Jim Meyering  <meyering@redhat.com>
77792         tests: tighten some getdate tests
77793         * tests/test-getdate.c (main): Tighten tests: require equality,
77794         not just greater than.  Set TZ envvar to UTC0.
77796 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
77798         getdate: correctly interpret "next monday" when run on a Monday
77799         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
77800         that e.g., "next tues" (when run on a tuesday) results in a date
77801         that is one week in the future, and not today's date.
77802         I.e., add a week when the wday is the same as the current one.
77803         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
77804         and earlier by Martin Bernreuther and Jan Minář.
77805         * tests/test-getdate.c (main): Check that "next DAY" is always in
77806         the future and that "last DAY" is always in the past.
77808 2009-05-02  Jim Meyering  <meyering@redhat.com>
77810         build: ensure that a release build fails when a submodule is unclean
77811         * top/maint.mk (no-submodule-changes): New rule.
77812         (alpha beta major): Depend on it.
77814 2009-05-02  Bruno Haible  <bruno@clisp.org>
77816         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
77817         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
77818         shell variable gl_fnmatch_required to detect which variant is
77819         requested.
77820         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
77821         gl_FUNC_FNMATCH_POSIX.
77822         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
77823         exclude fnmatch-posix.
77825 2009-05-02  Bruno Haible  <bruno@clisp.org>
77827         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
77828         * modules/mbsrtowcs (License): Change to LGPLv2+.
77829         * modules/strnlen1 (License): Likewise.
77830         Reported by Simon Josefsson.
77832 2009-05-02  Bruno Haible  <bruno@clisp.org>
77834         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
77835         "cross".
77836         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
77837         gnulib-tool was called with option --source-base=lib.
77839 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77841         Use automake *-local hooks without commands, for extensibility.
77842         * modules/localcharset (Makefile.am): Rename install-exec-local
77843         rule to install-exec-localcharset, and make it a prerequisite of
77844         install-exec-local.  Likewise, rename the uninstall-local rule to
77845         uninstall-localcharset, and make it a prerequisite of the former.
77847 2009-05-01  Bruno Haible  <bruno@clisp.org>
77849         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
77850         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
77851         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
77852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
77853         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
77854         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
77855         m4/locale-zh.m4, m4/codeset.m4.
77857         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
77858         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
77859         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
77860         m4/locale-zh.m4.
77862         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
77863         REPLACE_WCRTOMB if mbstate_t must be replaced.
77864         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
77865         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
77867 2009-05-01  Bruno Haible  <bruno@clisp.org>
77869         Avoid compiler warnings when redefining macros defined by <libintl.h>.
77870         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
77871         dngettext, dcngettext, textdomain, bindtextdomain,
77872         bind_textdomain_codeset): Undefine before redefining.
77874 2009-04-30  Bruno Haible  <bruno@clisp.org>
77876         Fix bug introduced on 2009-04-25.
77877         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
77878         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
77879         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
77880         is defined.
77881         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
77882         is defined.
77883         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
77884         is defined.
77885         Reported by Elbert_Pol <elbert.pol@gmail.com>.
77887 2009-04-28  Bruno Haible  <bruno@clisp.org>
77889         Comment tweaks.
77890         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
77891         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
77892         * lib/unicase.h (u*_casexfrm): Likewise.
77893         Reported by Paolo Bonzini.
77895 2009-04-28  Bruno Haible  <bruno@clisp.org>
77897         Fix a compilation error.
77898         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
77899         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
77900         Reported by Jim Meyering.
77902 2009-04-27  Bruno Haible  <bruno@clisp.org>
77904         New module 'libunistring'.
77905         * modules/libunistring: New file.
77906         * m4/libunistring.m4: New file.
77907         * MODULES.html.sh (Unicode string functions): Add it.
77909 2009-04-27  Eric Blake  <ebb9@byu.net>
77911         maint.mk: allow package-specific header to provide <config.h>
77912         * top/maint.mk (sc_require_config_h): New variable.
77913         (sc_require_config_h, sc_require_config_h_first): Use it.
77915 2009-04-27  Simon Josefsson  <simon@josefsson.org>
77917         * top/maint.mk (sc_avoid_if_before_free): Except
77918         useless-if-before-free script.
77920 2009-04-27  Eric Blake  <ebb9@byu.net>
77922         maintainer-makefile: depend on all required helper scripts
77923         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
77924         useless-if-before-free.
77925         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
77926         version, rather than assuming gnulib checkout is available.
77927         Reported by Simen Josefsson.
77929 2009-04-26  Bruno Haible  <bruno@clisp.org>
77931         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
77932         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
77933         "../" or "..".
77935 2009-04-26  Bruno Haible  <bruno@clisp.org>
77937         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
77938         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
77939         AC_LIB_HAVE_LINKFLAGS.
77941 2009-04-26  Bruno Haible  <bruno@clisp.org>
77943         Simplify calling convention of u*_conv_from_encoding.
77944         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
77945         u32_conv_from_encoding): Expect a resultbuf argument and return the
77946         result directly as a pointer.
77947         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
77948         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
77949         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
77950         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
77951         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
77952         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
77953         Update.
77954         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
77955         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
77956         * lib/vasnprintf.c (VASNPRINTF): Update.
77957         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
77958         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
77959         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
77960         * NEWS: Mention the change.
77962 2009-04-26  Bruno Haible  <bruno@clisp.org>
77964         Simplify calling convention of u*_conv_to_encoding.
77965         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
77966         u32_conv_to_encoding): Expect a resultbuf argument and return the
77967         result directly as a pointer.
77968         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
77969         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
77970         freeing scaled_offsets if mem_iconveha failed.
77971         * lib/unicase/u-casexfrm.h (FUNC): Update.
77972         * lib/uninorm/u-normxfrm.h (FUNC): Update.
77973         * lib/vasnprintf.c (VASNPRINTF): Update.
77974         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
77975         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
77976         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
77977         * NEWS: Mention the change.
77979 2009-04-26  Bruno Haible  <bruno@clisp.org>
77981         Avoid test failures on AIX and OSF/1.
77982         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
77983         malloc(0).
77984         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
77985         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
77986         Likewise.
77987         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
77988         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
77989         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
77990         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
77991         * doc/posix-functions/malloc.texi: Document the portability problem
77992         related to malloc(0).
77994 2009-04-26  Bruno Haible  <bruno@clisp.org>
77996         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
77997         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
77998         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
78000 2009-04-25  Bruno Haible  <bruno@clisp.org>
78002         Avoid link error when creating a namespace clean library.
78003         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
78004         as macro with arguments if already defined as an alias.
78005         * lib/signbitf.c (gl_signbitf): Don't undefine.
78006         * lib/signbitd.c (gl_signbitd): Don't undefine.
78007         * lib/signbitl.c (gl_signbitl): Don't undefine.
78009 2009-04-25  Jim Meyering  <meyering@redhat.com>
78011         vc-list-files: fix another quoting bug
78012         * build-aux/vc-list-files: Avoid sed backslash expansion
78013         of pathological directory names.
78015 2009-04-25  Eric Blake  <ebb9@byu.net>
78017         vc-list-files: fix shell quoting error
78018         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
78019         timestamp.
78021 2009-04-25  Jim Meyering  <meyering@redhat.com>
78023         vc-list-files: restore lost functionality with subdir argument
78024         * build-aux/vc-list-files: When given a non-"." sub-directory
78025         argument, substitute the $dir/ prefix back onto each resulting name.
78026         Otherwise, coreutils' root_tests check would fail.
78028 2009-04-24  Eric Blake  <ebb9@byu.net>
78030         vc-list-files: ignore git symlinks
78031         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
78032         than ls-files, to ignore git symlinks.
78034         maint.mk: import improvements from m4
78035         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
78036         (move_if_change): Delete unused macro.
78037         (news-date-check, vc-diff-check): Support VPATH builds.
78038         (announcement): Likewise.  Split --bootstrap-tools list...
78039         (boostrap-tools): ...into separate list, which can be overridden
78040         in cfg.mk.
78041         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
78042         requiring dependency on useless-if-before-free module.
78043         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
78044         Support VPATH builds.
78046 2009-04-24  Jim Meyering  <meyering@redhat.com>
78048         maint.mk: remove coreutils-specific rules and variables
78049         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
78050         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
78051         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
78053         maint.mk: remove obsolete rule
78054         * top/maint.mk (rel-check): Remove rule.
78055         (WGET, WGETFLAGS): Remove now-unused variables.
78057 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78059         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
78060         consistency.
78062         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
78063         '$(PATH_SEPARATOR)' instead of ':'.
78065 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78067         * lib/getopt1.c (main): Use 'const' for static array.
78069 2009-04-24  Simon Josefsson  <simon@josefsson.org>
78071         * top/maint.mk: Sync with coreutils.
78072         * NEWS: Explain incompatibilities.
78074 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78075             Bruno Haible  <bruno@clisp.org>
78077         Fix cross-compilation results.
78078         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
78079         statement, as third argument of AC_TRY_RUN.
78080         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
78081         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
78082         Likewise.
78083         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
78084         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
78085         Likewise.
78086         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
78087         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
78088         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
78090 2009-04-20  Bruno Haible  <bruno@clisp.org>
78092         Avoid test failure on mingw.
78093         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
78095 2009-04-20  Bruno Haible  <bruno@clisp.org>
78097         Avoid compilation error on mingw.
78098         * modules/localename-tests (Depends-on): Add locale.
78100 2009-04-19  Bruno Haible  <bruno@clisp.org>
78102         Support for building a shared library on Windows platforms.
78103         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
78104         (main): Test the presence of UNINORM_NFC here.
78105         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
78106         (main): Test the presence of UNINORM_NFD here.
78107         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
78108         (main): Test the presence of UNINORM_NFKC here.
78109         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
78110         (main): Test the presence of UNINORM_NFKD here.
78112 2009-04-19  Bruno Haible  <bruno@clisp.org>
78114         Avoid a compiler warning.
78115         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
78116         Change type of variable 'sequence'.
78118 2009-04-19  Bruno Haible  <bruno@clisp.org>
78120         * modules/configmake (Makefile.am): When the contents of configmake.h
78121         does not change, arrange to preserve its modification time.
78123 2009-04-17  Simon Josefsson  <simon@josefsson.org>
78125         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
78126         gettext domain.
78128 2009-04-16  Jim Meyering  <meyering@redhat.com>
78130         useless-if-before-free: improve conversion code
78131         * build-aux/useless-if-before-free: Adjust code-in-comment to match
78132         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
78134 2009-04-14  Bruno Haible  <bruno@clisp.org>
78136         * modules/fcntl (Depends-on): Add extensions.
78137         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
78139 2009-04-12  Ben Pfaff  <blp@gnu.org>
78141         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
78142         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
78144 2009-03-20  Ben Pfaff  <blp@gnu.org>
78146         Make rename replace existing destinations on Windows.
78147         * m4/rename.m4: Add test for Mingw.
78148         * lib/rename.c: Add rename replacement that uses MoveFileEx with
78149         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
78150         * doc/posix-functions/rename.texi: Document.
78152 2009-04-10  Bruno Haible  <bruno@clisp.org>
78154         New include file "iconveh.h".
78155         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
78156         * lib/striconveh.h: Include it.
78157         (enum iconv_ilseq_handler): Remove definition.
78158         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
78159         striconveh.h.
78160         * lib/striconveha.c: Include striconveh.h.
78161         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
78162         * modules/striconveh (Files): Add lib/iconveh.h.
78163         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
78164         lib/striconveh.h.
78166 2009-04-10  Bruno Haible  <bruno@clisp.org>
78168         * lib/uniconv.h: Update comment.
78170 2009-04-10  Bruno Haible  <bruno@clisp.org>
78172         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
78173         always.
78174         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
78175         * lib/unistr/u16-mbtouc-aux.c: Likewise.
78176         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
78177         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
78178         "unistring-notinline.h", so that the function gets defined always.
78179         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
78180         * lib/unistr/u8-uctomb.c: Likewise.
78181         * lib/unistr/u16-mbtouc.c: Likewise.
78182         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
78183         * lib/unistr/u16-uctomb.c: Likewise.
78184         * lib/unistr/u32-mbtouc.c: Likewise.
78185         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
78186         * lib/unistr/u32-uctomb.c: Likewise.
78188 2009-04-10  Bruno Haible  <bruno@clisp.org>
78190         Mark 'utime' obsolete.
78191         * modules/utime (Status, Notice): New sections.
78192         Suggested by Jim Meyering.
78194         Fix cross-compile guess for utime test.
78195         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
78196         autoconf.
78197         * doc/posix-functions/utime.texi: Give more precisions.
78198         Reported by Jan <ipif@ymail.com>.
78200 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
78202         filevercmp: correct today's change
78203         * lib/filevercmp.c: Also handle coreutils' test inputs.
78204         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
78206         Fix regression in 'filevercmp' module. Thanks Sven Joachim
78207         for reporting it.
78208         * lib/filevercmp.c: Special handle for "", "." and "..".
78209         * tests/test-filevercmp.c: Enlarge the set suite.
78211 2009-04-07  Jim Meyering  <meyering@redhat.com>
78213         useless-if-before-free: show how to remove braced useless free, too
78214         * build-aux/useless-if-before-free: still only in a comment, though.
78216 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
78218         maint.mk: import changes to syntax-check macros from coreutils
78219         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
78220         Use them in the relevant macros.
78222 2009-04-06  Bruno Haible  <bruno@clisp.org>
78224         Fix unportable use of bit-fields.
78225         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
78226         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
78227         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
78229 2009-04-06  Bruno Haible  <bruno@clisp.org>
78231         Avoid test failures on AIX and OSF/1.
78232         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
78233         that malloc(0) = NULL.
78234         * tests/unicase/test-u8-tolower.c (check): Likewise.
78235         * tests/unicase/test-u8-totitle.c (check): Likewise.
78236         * tests/unicase/test-u8-toupper.c (check): Likewise.
78237         * tests/unicase/test-u16-casefold.c (check): Likewise.
78238         * tests/unicase/test-u16-tolower.c (check): Likewise.
78239         * tests/unicase/test-u16-totitle.c (check): Likewise.
78240         * tests/unicase/test-u16-toupper.c (check): Likewise.
78241         * tests/unicase/test-u32-casefold.c (check): Likewise.
78242         * tests/unicase/test-u32-tolower.c (check): Likewise.
78243         * tests/unicase/test-u32-totitle.c (check): Likewise.
78244         * tests/unicase/test-u32-toupper.c (check): Likewise.
78245         * tests/uninorm/test-u8-nfc.c (check): Likewise.
78246         * tests/uninorm/test-u8-nfd.c (check): Likewise.
78247         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
78248         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
78249         * tests/uninorm/test-u16-nfc.c (check): Likewise.
78250         * tests/uninorm/test-u16-nfd.c (check): Likewise.
78251         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
78252         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
78253         * tests/uninorm/test-u32-nfc.c (check): Likewise.
78254         * tests/uninorm/test-u32-nfd.c (check): Likewise.
78255         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
78256         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
78258 2009-04-05  Bruno Haible  <bruno@clisp.org>
78260         Work around an autoconf limitation.
78261         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
78262         comment line if it would be longer than 3 KB.
78264 2009-04-05  Bruno Haible  <bruno@clisp.org>
78266         Avoid test failure with libiconv-1.13.
78267         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
78268         of the expected test results.
78270 2009-04-05  Bruno Haible  <bruno@clisp.org>
78272         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
78273         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
78274         that it should be installed.
78276 2009-04-05  Bruno Haible  <bruno@clisp.org>
78278         * gnulib-tool: New option --copy-file.
78279         (func_usage): Document it.
78280         (func_dest_tmpfilename): Moved out of func_import.
78281         (func_add_file, func_update_file): New functions, extracted from
78282         func_import.
78283         (func_import): Update.
78285 2009-04-05  Karl Berry  <karl@gnu.org>
78287         * README: prominently mention gnulib-tool.
78288         Rearrange sections so getting the code is near the top.
78290 2009-04-05  Bruno Haible  <bruno@clisp.org>
78292         * lib/unicase.h: Mention u*_cmp2.
78293         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
78294         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
78295         * lib/unicase/ulc-casecmp.c: Likewise.
78296         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
78297         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
78298         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
78299         unistr/u8-cmp.
78300         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
78301         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
78302         unistr/u16-cmp.
78303         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
78304         unistr/u32-cmp.
78306         * lib/uninorm.h: Mention u*_cmp2.
78307         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
78308         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
78309         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
78310         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
78311         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
78312         unistr/u8-cmp.
78313         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
78314         unistr/u16-cmp.
78315         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
78316         unistr/u32-cmp.
78318         New module 'unistr/u32-cmp2'.
78319         * lib/unistr/u32-cmp2.c: New file.
78320         * modules/unistr/u32-cmp2: New file.
78322         New module 'unistr/u16-cmp2'.
78323         * lib/unistr/u16-cmp2.c: New file.
78324         * modules/unistr/u16-cmp2: New file.
78326         New module 'unistr/u8-cmp2'.
78327         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
78328         * lib/unistr/u8-cmp2.c: New file.
78329         * lib/unistr/u-cmp2.h: New file.
78330         * modules/unistr/u8-cmp2: New file.
78332 2009-04-05  Bruno Haible  <bruno@clisp.org>
78334         * lib/unictype.h (uc_property_is_valid): New macro.
78335         * tests/unictype/test-pr_byname.c (main): Use it.
78337         * lib/unistr.h: Doc fixes.
78338         * lib/uniconv.h: Doc fixes.
78339         * lib/unictype.h: Doc fixes.
78341 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
78343         Port coreutils 7.2 to Solaris 8.
78345         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
78346         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
78347         for Solaris 8.  This is a bit of a hack, as it means it's the
78348         caller's responsibility to add -lnsl if needed, but most likely it
78349         won't be needed since only getaddrinfo uses this and getaddrinfo
78350         isn't needed on Solaris 8.
78352         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
78353         problem to Solaris 8 encountered with coreutils 7.2, which
78354         resulted in a message "fnmatch.c:292: warning: passing argument 4
78355         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
78356         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
78358 2009-04-03  Simon Josefsson  <simon@josefsson.org>
78360         * m4/ld-version-script.m4: Add FIXME comment.
78362 2009-04-02  Simon Josefsson  <simon@josefsson.org>
78364         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
78365         SOVERSION variable.
78367 2009-04-02  Bruno Haible  <bruno@clisp.org>
78369         * Makefile (info, html, dvi, pdf): Combine the rules.
78370         Suggested by Jim Meyering.
78372 2009-04-01  Bruno Haible  <bruno@clisp.org>
78374         * Makefile (info, html, dvi, pdf): New targets.
78375         Reported by Reuben Thomas <rrt@sc3d.org>.
78377 2009-04-01  Bruno Haible  <bruno@clisp.org>
78379         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
78380         can be put into PATH.
78381         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
78383 2009-04-01  Bruno Haible  <bruno@clisp.org>
78385         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
78387 2009-04-01  Bruno Haible  <bruno@clisp.org>
78389         Rename module 'visibility'.
78390         * modules/lib-symbol-visibility: Renamed from modules/visibility.
78391         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
78392         * doc/gnulib.texi: Update.
78393         * MODULES.html.sh (Misc): Update.
78394         * NEWS: Mention the change.
78396 2009-04-01  Simon Josefsson  <simon@josefsson.org>
78398         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
78399         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
78400         Eric Blake <ebb9@byu.net> for review.
78401         * MODULES.html.sh: Add lib-msvc-compat.
78402         * doc/gnulib.texi: Link to new section.
78403         * m4/ld-output-def.m4: New file.
78404         * doc/ld-output-def.texi: New file.
78406 2009-04-01  Simon Josefsson  <simon@josefsson.org>
78408         Rename ld-version-script to lib-symbol-versions.  Suggested by
78409         Bruno Haible <bruno@clisp.org>.
78410         * modules/ld-version-script: Renamed to lib-symbol-versions.
78411         * doc/ld-version-script.texi: Fix module name.
78412         * MODULES.html.sh: Add lib-symbol-versions.
78414 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78416         * modules/u64-tests: New file.
78417         * tests/test-u64.c: New file.
78419 2009-03-04  Simon Josefsson  <simon@josefsson.org>
78421         * MODULES.html.sh: Mention u64.
78422         * modules/u64: New module.
78423         * modules/crypto/sha512: Depend on u64 module instead of providing
78424         u64.h.
78426 2009-03-27  Eric Blake  <ebb9@byu.net>
78428         test-strerror: make debugging EAI_SYSTEM easier
78429         * modules/getaddrinfo-tests (Depends-on): Add strerror.
78430         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
78431         failure was EAI_SYSTEM.
78433 2009-03-25  Bruno Haible  <bruno@clisp.org>
78435         Fix a problem with --enable-relocatable on Solaris 7.
78436         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
78437         since 2008-02-24.
78439 2009-03-25  Eric Blake  <ebb9@byu.net>
78441         test-sockets: avoid gcc warning
78442         * tests/test-sockets.c (main): Silence compiler warning.
78444 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78446         New modules nproc, pthread, contributed by Glen Lenker.
78448         * MODULES.html.sh: Add pthread, nproc.
78449         * lib/nproc.c: New file.
78450         * lib/nproc.h: New file.
78451         * lib/pthread.in.h: New file.
78452         * m4/pthread.m4: New file.
78453         * modules/nproc: New file.
78454         * modules/pthread: New file.
78456 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78458         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
78459         New variable.
78461 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
78463         filevercmp: handle simple~ and numbered.~3~ backup suffixes
78464         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
78465         * tests/test-filevercmp.c: Add tests for backup suffixes.
78467 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78469         * modules/stdlib (Depends-on): Add stdint, needed when defining
78470         struct random_data on, for example, HP-UX 10.20.  Reported by
78471         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
78473 2009-03-24  Simon Josefsson  <simon@josefsson.org>
78475         * lib/readline.c (readline): Call fflush on stdout after printing
78476         prompt.
78478 2009-03-20  Bruno Haible  <bruno@clisp.org>
78480         Remove dependency from 'close' module to -lws2_32 on native Windows.
78481         * lib/close-hook.h: New file.
78482         * lib/close-hook.c: New file.
78483         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
78484         w32sock.h.
78485         (_gl_close_fd_maybe_socket): Remove function.
78486         (rpl_close): Invoke execute_all_close_hooks instead of
78487         _gl_close_fd_maybe_socket.
78488         * lib/sockets.c: Include close-hook.h, w32sock.h.
78489         (close_fd_maybe_socket): New function, essentially from lib/close.c.
78490         (close_sockets_hook): New variable.
78491         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
78492         (gl_sockets_cleanup): Unregister it.
78493         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
78494         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
78495         * modules/close-hook: New file.
78496         * modules/close (Files): Remove lib/w32sock.h.
78497         (Depends-on): Add close-hook.
78498         (Link): Remove section.
78499         * modules/sockets (Files): Add lib/w32sock.h.
78500         (Depends-on): Add close-hook.
78501         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
78502         invocation.
78503         * NEWS: Mention that LIB_CLOSE is gone.
78505 2009-03-23  Eric Blake  <ebb9@byu.net>
78507         signal-tests: test previous patch
78508         * tests/test-signal.c: New file.
78509         * modules/signal-tests: Likewise.
78511         signal.h: always support 'volatile sig_atomic_t'
78512         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
78513         (gl_SIGNAL_H_DEFAULTS): Add a default.
78514         * modules/signal (Makefile.am): Substitute if needed.
78515         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
78516         users can blindly add volatile.
78517         * doc/posix-headers/signal.texi (signal.h): Document it.
78518         Reported by Matthew Woehlke.
78520 2009-03-23  Jim Meyering  <meyering@redhat.com>
78522         pathmax: PATH_MAX: use pathconf only when available
78523         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
78524         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
78525         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
78526         This avoids a link failure in a PSP cross-compilation environment
78527         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
78529         * lib/vasnprintf.c (divide): Fix typo in comment.
78531 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78533         * gnulib-tool (func_filter_filelist): Fix comment.
78535 2009-03-20  Bruno Haible  <bruno@clisp.org>
78537         Make sockets.h self-contained.
78538         * lib/sockets.c: Include sockets.h first.
78539         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
78541 2009-03-19  Eric Blake  <ebb9@byu.net>
78543         doc: mention more functions added in cygwin 1.7.0
78544         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
78545         addition.
78546         * doc/posix-functions/log2f.texi: Likewise.
78548 2009-03-19  Jim Meyering  <meyering@redhat.com>
78550         fsusage: avoid syntax error due to statement-before-declaration
78551         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
78552         after all declarations.  Reported by Matthew Woehlke in
78553         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
78555 2009-03-18  Eric Blake  <ebb9@byu.net>
78557         build-aux/compile: sync from automake
78558         * build-aux/compile: New file, from automake.
78559         * config/srclist.txt: Mention build-aux/compile.
78561 2009-03-17  Bruno Haible  <bruno@clisp.org>
78563         * lib/git-merge-changelog.c: Fix typo in comment.
78564         Reported by Reuben Thomas <rrt@sc3d.org>.
78566 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
78568         * m4/regex.m4: update and improve help for
78569         --without-included-regex.
78571 2009-03-17  Simon Josefsson  <simon@josefsson.org>
78573         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
78574         failure on missing include files.
78576 2009-03-17  Eric Blake  <ebb9@byu.net>
78578         doc: mention more functions added in cygwin 1.7.0
78579         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
78580         addition.
78581         * doc/posix-functions/fwscanf.texi: Likewise.
78582         * doc/posix-functions/swprintf.texi: Likewise.
78583         * doc/posix-functions/swscanf.texi: Likewise.
78584         * doc/posix-functions/vfwprintf.texi: Likewise.
78585         * doc/posix-functions/vfwscanf.texi: Likewise.
78586         * doc/posix-functions/vswprintf.texi: Likewise.
78587         * doc/posix-functions/vswscanf.texi: Likewise.
78588         * doc/posix-functions/vwprintf.texi: Likewise.
78589         * doc/posix-functions/vwscanf.texi: Likewise.
78590         * doc/posix-functions/wcscasecmp.texi: Likewise.
78591         * doc/posix-functions/wcsdup.texi: Likewise.
78592         * doc/posix-functions/wcsftime.texi: Likewise.
78593         * doc/posix-functions/wcsncasecmp.texi: Likewise.
78594         * doc/posix-functions/wprintf.texi: Likewise.
78595         * doc/posix-functions/wscanf.texi: Likewise.
78596         * doc/glibc-functions/gethostbyname2.texi: Likewise.
78598 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78600         maint.mk: really add $(AM_MAKEFLAGS)
78601         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
78602         was inadvertently omitted in the last commit.
78603         Spotted by Bruno Haible.
78605         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
78606         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
78607         $(AM_MAKEFLAGS)' rather than plain `make'.
78609         gnulib-tool: execute $MAKE not make
78610         * gnulib-tool: Default $MAKE to 'make'.
78611         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
78612         than make.  Initialize $MAKE in the do-autobuild script.
78614         gnulib-tool: use $MAKE not make in generated files
78615         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
78616         make, in generated files.  Initialize $MAKE in the do-autobuild
78617         script.
78619         * top/GNUmakefile (_have-git-version-gen): Fix typo.
78621         GNUmakefile: disable parallelism only for multiple, recursive targets
78622         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
78623         additions in the Makefile.
78624         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
78625         by Automake.
78626         (.NOTPARALLEL): Only disable parallel builds if multiple targets
78627         are listed on the command line and at least one of them is
78628         listed in $(ALL_RECURSIVE_TARGETS).
78630 2009-03-14  Bruno Haible  <bruno@clisp.org>
78632         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
78633         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
78634         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
78635         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
78636         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
78637         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
78638         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
78639         unistr/u8-uctomb.
78640         * modules/unistr/u8-strchr (Depends-on): Likewise.
78641         * modules/unistr/u8-strrchr (Depends-on): Likewise.
78642         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
78643         unistr/u16-uctomb.
78644         * modules/unistr/u16-strchr (Depends-on): Likewise.
78645         * modules/unistr/u16-strrchr (Depends-on): Likewise.
78647 2009-03-12  Bruno Haible  <bruno@clisp.org>
78649         Work around select() bug on Interix 3.5.
78650         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
78651         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
78652         * m4/select.m4: New file.
78653         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
78654         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
78655         * modules/select (Files): Add m4/select.m4.
78656         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
78657         * modules/nanosleep (Depends-on): Add select.
78658         * modules/poll (Depends-on): Likewise.
78659         * doc/posix-functions/select.texi: Mention the Interix bug.
78660         Reported by Markus Duft <mduft@gentoo.org>.
78662         * lib/select.c: Renamed from lib/winsock-select.c.
78663         * modules/select (Files): Add lib/select.c, remove
78664         lib/winsock-select.c.
78665         (configure.ac): Update.
78667 2009-03-12  Jim Meyering  <meyering@redhat.com>
78669         avoid gcc warnings about unused macro definitions
78670         * lib/readtokens.c (STREQ): Remove unused definition.
78671         * lib/xmalloc.c (SIZE_MAX): Likewise.
78672         * lib/openat-die.c (N_): Likewise.
78673         * lib/mountlist.c (SIZE_MAX): Remove definition.
78674         Instead, include <stdint.h>.
78675         * lib/readutmp.c: Likewise.
78676         * modules/readutmp (Depends-on): Add stdint.
78677         * modules/mountlist (Depends-on): Add stdint.
78678         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
78680 2009-03-10  Bruno Haible  <bruno@clisp.org>
78682         Tests for module 'mbmemcasecoll'.
78683         * modules/mbmemcasecoll-tests: New file.
78684         * tests/test-mbmemcasecoll1.sh: New file.
78685         * tests/test-mbmemcasecoll2.sh: New file.
78686         * tests/test-mbmemcasecoll3.sh: New file.
78687         * tests/test-mbmemcasecoll.c: New file.
78689         New module 'mbmemcasecoll'.
78690         * lib/mbmemcasecoll.h: New file.
78691         * lib/mbmemcasecoll.c: New file.
78692         * modules/mbmemcasecoll: New file.
78694         * tests/test-mbmemcasecmp.h: New file, extracted from
78695         tests/test-mbmemcasecmp.c.
78696         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
78697         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
78698         (main): Update.
78699         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
78701 2009-03-09  Bruno Haible  <bruno@clisp.org>
78703         Tests for module 'mbmemcasecmp'.
78704         * modules/mbmemcasecmp-tests: New file.
78705         * tests/test-mbmemcasecmp1.sh: New file.
78706         * tests/test-mbmemcasecmp2.sh: New file.
78707         * tests/test-mbmemcasecmp3.sh: New file.
78708         * tests/test-mbmemcasecmp.c: New file.
78710         New module 'mbmemcasecmp'.
78711         * lib/mbmemcasecmp.h: New file.
78712         * lib/mbmemcasecmp.c: New file.
78713         * modules/mbmemcasecmp: New file.
78715 2009-03-09  Bruno Haible  <bruno@clisp.org>
78717         Tests for module 'unicase/ulc-casecoll'.
78718         * modules/unicase/ulc-casecoll-tests: New file.
78719         * tests/unicase/test-ulc-casecoll1.sh: New file.
78720         * tests/unicase/test-ulc-casecoll2.sh: New file.
78721         * tests/unicase/test-ulc-casecoll.c: New file.
78723         New module 'unicase/ulc-casecoll'.
78724         * lib/unicase.h (ulc_casecoll): New declaration.
78725         * lib/unicase/ulc-casecoll.c: New file.
78726         * modules/unicase/ulc-casecoll: New file.
78728         New module 'unicase/ulc-casexfrm'.
78729         * lib/unicase.h (ulc_casexfrm): New declaration.
78730         * lib/unicase/ulc-casexfrm.c: New file.
78731         * modules/unicase/ulc-casexfrm: New file.
78733 2009-03-09  Bruno Haible  <bruno@clisp.org>
78735         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
78736         invocations.
78738         * m4/mbscasecmp.m4: Remove file.
78739         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
78740         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
78742         * m4/mbscasestr.m4: Remove file.
78743         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
78744         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
78746         * m4/mbschr.m4: Remove file.
78747         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
78748         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
78750         * m4/mbscspn.m4: Remove file.
78751         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
78752         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
78754         * m4/mbslen.m4: Remove file.
78755         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
78756         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
78758         * m4/mbsncasecmp.m4: Remove file.
78759         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
78760         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
78762         * m4/mbsnlen.m4: Remove file.
78763         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
78764         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
78766         * m4/mbspbrk.m4: Remove file.
78767         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
78768         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
78770         * m4/mbspcasecmp.m4: Remove file.
78771         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
78772         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
78774         * m4/mbsrchr.m4: Remove file.
78775         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
78776         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
78778         * m4/mbssep.m4: Remove file.
78779         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
78780         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
78782         * m4/mbsspn.m4: Remove file.
78783         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
78784         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
78786         * m4/mbsstr.m4: Remove file.
78787         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
78788         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
78790         * m4/mbstok_r.m4: Remove file.
78791         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
78792         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
78794         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
78796         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
78797         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
78799         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
78801 2009-03-08  Bruno Haible  <bruno@clisp.org>
78803         Tests for module 'unicase/ulc-casecmp'.
78804         * modules/unicase/ulc-casecmp-tests: New file.
78805         * tests/unicase/test-ulc-casecmp1.sh: New file.
78806         * tests/unicase/test-ulc-casecmp2.sh: New file.
78807         * tests/unicase/test-ulc-casecmp.c: New file.
78809         New module 'unicase/ulc-casecmp'.
78810         * lib/unicase.h (ulc_casecmp): New declaration.
78811         * lib/unicase/ulc-casecmp.c: New file.
78812         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
78813         'const SRC_UNIT *'.
78814         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
78815         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
78816         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
78817         * modules/unicase/ulc-casecmp: New file.
78819         Tests for module 'unicase/u32-is-cased'.
78820         * modules/unicase/u32-is-cased-tests: New file.
78821         * tests/unicase/test-u32-is-cased.c: New file.
78823         Tests for module 'unicase/u16-is-cased'.
78824         * modules/unicase/u16-is-cased-tests: New file.
78825         * tests/unicase/test-u16-is-cased.c: New file.
78827         Tests for module 'unicase/u8-is-cased'.
78828         * modules/unicase/u8-is-cased-tests: New file.
78829         * tests/unicase/test-u8-is-cased.c: New file.
78830         * tests/unicase/test-is-cased.h: New file.
78832         New module 'unicase/u32-is-cased'.
78833         * lib/unicase/u32-is-cased.c: New file.
78834         * modules/unicase/u32-is-cased: New file.
78836         New module 'unicase/u16-is-cased'.
78837         * lib/unicase/u16-is-cased.c: New file.
78838         * modules/unicase/u16-is-cased: New file.
78840         New module 'unicase/u8-is-cased'.
78841         * lib/unicase/u8-is-cased.c: New file.
78842         * lib/unicase/u-is-cased.h: New file.
78843         * modules/unicase/u8-is-cased: New file.
78845         Tests for module 'unicase/u32-is-casefolded'.
78846         * modules/unicase/u32-is-casefolded-tests: New file.
78847         * tests/unicase/test-u32-is-casefolded.c: New file.
78849         Tests for module 'unicase/u16-is-casefolded'.
78850         * modules/unicase/u16-is-casefolded-tests: New file.
78851         * tests/unicase/test-u16-is-casefolded.c: New file.
78853         Tests for module 'unicase/u8-is-casefolded'.
78854         * modules/unicase/u8-is-casefolded-tests: New file.
78855         * tests/unicase/test-u8-is-casefolded.c: New file.
78856         * tests/unicase/test-is-casefolded.h: New file.
78858         New module 'unicase/u32-is-casefolded'.
78859         * lib/unicase/u32-is-casefolded.c: New file.
78860         * modules/unicase/u32-is-casefolded: New file.
78862         New module 'unicase/u16-is-casefolded'.
78863         * lib/unicase/u16-is-casefolded.c: New file.
78864         * modules/unicase/u16-is-casefolded: New file.
78866         New module 'unicase/u8-is-casefolded'.
78867         * lib/unicase/u8-is-casefolded.c: New file.
78868         * modules/unicase/u8-is-casefolded: New file.
78870         Tests for module 'unicase/u32-is-titlecase'.
78871         * modules/unicase/u32-is-titlecase-tests: New file.
78872         * tests/unicase/test-u32-is-titlecase.c: New file.
78874         Tests for module 'unicase/u16-is-titlecase'.
78875         * modules/unicase/u16-is-titlecase-tests: New file.
78876         * tests/unicase/test-u16-is-titlecase.c: New file.
78878         Tests for module 'unicase/u8-is-titlecase'.
78879         * modules/unicase/u8-is-titlecase-tests: New file.
78880         * tests/unicase/test-u8-is-titlecase.c: New file.
78881         * tests/unicase/test-is-titlecase.h: New file.
78883         New module 'unicase/u32-is-titlecase'.
78884         * lib/unicase/u32-is-titlecase.c: New file.
78885         * modules/unicase/u32-is-titlecase: New file.
78887         New module 'unicase/u16-is-titlecase'.
78888         * lib/unicase/u16-is-titlecase.c: New file.
78889         * modules/unicase/u16-is-titlecase: New file.
78891         New module 'unicase/u8-is-titlecase'.
78892         * lib/unicase/u8-is-titlecase.c: New file.
78893         * modules/unicase/u8-is-titlecase: New file.
78895         Tests for module 'unicase/u32-is-lowercase'.
78896         * modules/unicase/u32-is-lowercase-tests: New file.
78897         * tests/unicase/test-u32-is-lowercase.c: New file.
78899         Tests for module 'unicase/u16-is-lowercase'.
78900         * modules/unicase/u16-is-lowercase-tests: New file.
78901         * tests/unicase/test-u16-is-lowercase.c: New file.
78903         Tests for module 'unicase/u8-is-lowercase'.
78904         * modules/unicase/u8-is-lowercase-tests: New file.
78905         * tests/unicase/test-u8-is-lowercase.c: New file.
78906         * tests/unicase/test-is-lowercase.h: New file.
78908         New module 'unicase/u32-is-lowercase'.
78909         * lib/unicase/u32-is-lowercase.c: New file.
78910         * modules/unicase/u32-is-lowercase: New file.
78912         New module 'unicase/u16-is-lowercase'.
78913         * lib/unicase/u16-is-lowercase.c: New file.
78914         * modules/unicase/u16-is-lowercase: New file.
78916         New module 'unicase/u8-is-lowercase'.
78917         * lib/unicase/u8-is-lowercase.c: New file.
78918         * modules/unicase/u8-is-lowercase: New file.
78920         Tests for module 'unicase/u32-is-uppercase'.
78921         * modules/unicase/u32-is-uppercase-tests: New file.
78922         * tests/unicase/test-u32-is-uppercase.c: New file.
78924         Tests for module 'unicase/u16-is-uppercase'.
78925         * modules/unicase/u16-is-uppercase-tests: New file.
78926         * tests/unicase/test-u16-is-uppercase.c: New file.
78928         Tests for module 'unicase/u8-is-uppercase'.
78929         * modules/unicase/u8-is-uppercase-tests: New file.
78930         * tests/unicase/test-u8-is-uppercase.c: New file.
78931         * tests/unicase/test-is-uppercase.h: New file.
78933         New module 'unicase/u32-is-uppercase'.
78934         * lib/unicase/u32-is-uppercase.c: New file.
78935         * modules/unicase/u32-is-uppercase: New file.
78937         New module 'unicase/u16-is-uppercase'.
78938         * lib/unicase/u16-is-uppercase.c: New file.
78939         * modules/unicase/u16-is-uppercase: New file.
78941         New module 'unicase/u8-is-uppercase'.
78942         * lib/unicase/u8-is-uppercase.c: New file.
78943         * modules/unicase/u8-is-uppercase: New file.
78945         New module 'unicase/u32-is-invariant'.
78946         * lib/unicase/u32-is-invariant.c: New file.
78947         * modules/unicase/u32-is-invariant: New file.
78949         New module 'unicase/u16-is-invariant'.
78950         * lib/unicase/u16-is-invariant.c: New file.
78951         * modules/unicase/u16-is-invariant: New file.
78953         New module 'unicase/u8-is-invariant'.
78954         * lib/unicase/u8-is-invariant.c: New file.
78955         * lib/unicase/invariant.h: New file.
78956         * lib/unicase/u-is-invariant.h: New file.
78957         * modules/unicase/u8-is-invariant: New file.
78959         Tests for module 'unicase/u32-casecoll'.
78960         * modules/unicase/u32-casecoll-tests: New file.
78961         * tests/unicase/test-u32-casecoll.c: New file.
78963         Tests for module 'unicase/u16-casecoll'.
78964         * modules/unicase/u16-casecoll-tests: New file.
78965         * tests/unicase/test-u16-casecoll.c: New file.
78967         Tests for module 'unicase/u8-casecoll'.
78968         * modules/unicase/u8-casecoll-tests: New file.
78969         * tests/unicase/test-u8-casecoll.c: New file.
78971         New module 'unicase/u32-casecoll'.
78972         * lib/unicase/u32-casecoll.c: New file.
78973         * modules/unicase/u32-casecoll: New file.
78975         New module 'unicase/u16-casecoll'.
78976         * lib/unicase/u16-casecoll.c: New file.
78977         * modules/unicase/u16-casecoll: New file.
78979         New module 'unicase/u8-casecoll'.
78980         * lib/unicase/u8-casecoll.c: New file.
78981         * lib/unicase/u-casecoll.h: New file.
78982         * modules/unicase/u8-casecoll: New file.
78984         New module 'unicase/u32-casexfrm'.
78985         * lib/unicase/u32-casexfrm.c: New file.
78986         * modules/unicase/u32-casexfrm: New file.
78988         New module 'unicase/u16-casexfrm'.
78989         * lib/unicase/u16-casexfrm.c: New file.
78990         * modules/unicase/u16-casexfrm: New file.
78992         New module 'unicase/u8-casexfrm'.
78993         * lib/unicase/u8-casexfrm.c: New file.
78994         * lib/unicase/u-casexfrm.h: New file.
78995         * modules/unicase/u8-casexfrm: New file.
78997         Tests for module 'unicase/u32-casecmp'.
78998         * modules/unicase/u32-casecmp-tests: New file.
78999         * tests/unicase/test-u32-casecmp.c: New file.
79001         Tests for module 'unicase/u16-casecmp'.
79002         * modules/unicase/u16-casecmp-tests: New file.
79003         * tests/unicase/test-u16-casecmp.c: New file.
79005         Tests for module 'unicase/u8-casecmp'.
79006         * modules/unicase/u8-casecmp-tests: New file.
79007         * tests/unicase/test-u8-casecmp.c: New file.
79008         * tests/unicase/test-casecmp.h: New file.
79010         New module 'unicase/u32-casecmp'.
79011         * lib/unicase/u32-casecmp.c: New file.
79012         * modules/unicase/u32-casecmp: New file.
79014         New module 'unicase/u16-casecmp'.
79015         * lib/unicase/u16-casecmp.c: New file.
79016         * modules/unicase/u16-casecmp: New file.
79018         New module 'unicase/u8-casecmp'.
79019         * lib/unicase/u8-casecmp.c: New file.
79020         * lib/unicase/u-casecmp.h: New file.
79021         * modules/unicase/u8-casecmp: New file.
79023         Tests for module 'unicase/u32-casefold'.
79024         * modules/unicase/u32-casefold-tests: New file.
79025         * tests/unicase/test-u32-casefold.c: New file.
79027         Tests for module 'unicase/u16-casefold'.
79028         * modules/unicase/u16-casefold-tests: New file.
79029         * tests/unicase/test-u16-casefold.c: New file.
79031         Tests for module 'unicase/u8-casefold'.
79032         * modules/unicase/u8-casefold-tests: New file.
79033         * tests/unicase/test-u8-casefold.c: New file.
79035         New module 'unicase/u32-casefold'.
79036         * lib/unicase/u32-casefold.c: New file.
79037         * modules/unicase/u32-casefold: New file.
79039         New module 'unicase/u16-casefold'.
79040         * lib/unicase/u16-casefold.c: New file.
79041         * modules/unicase/u16-casefold: New file.
79043         New module 'unicase/u8-casefold'.
79044         * lib/unicase/u8-casefold.c: New file.
79045         * lib/unicase/u-casefold.h: New file.
79046         * modules/unicase/u8-casefold: New file.
79048         New module 'unicase/tocasefold'.
79049         * lib/unicase/casefold.h: New file.
79050         * lib/unicase/tocasefold.c: New file.
79051         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
79052         * modules/unicase/tocasefold: New file.
79054         Tests for module 'unicase/u32-totitle'.
79055         * modules/unicase/u32-totitle-tests: New file.
79056         * tests/unicase/test-u32-totitle.c: New file.
79058         Tests for module 'unicase/u16-totitle'.
79059         * modules/unicase/u16-totitle-tests: New file.
79060         * tests/unicase/test-u16-totitle.c: New file.
79062         Tests for module 'unicase/u8-totitle'.
79063         * modules/unicase/u8-totitle-tests: New file.
79064         * tests/unicase/test-u8-totitle.c: New file.
79066         New module 'unicase/u32-totitle'.
79067         * lib/unicase/u32-totitle.c: New file.
79068         * modules/unicase/u32-totitle: New file.
79070         New module 'unicase/u16-totitle'.
79071         * lib/unicase/u16-totitle.c: New file.
79072         * modules/unicase/u16-totitle: New file.
79074         New module 'unicase/u8-totitle'.
79075         * lib/unicase/u8-totitle.c: New file.
79076         * lib/unicase/u-totitle.h: New file.
79077         * modules/unicase/u8-totitle: New file.
79079         Tests for module 'unicase/u32-tolower'.
79080         * modules/unicase/u32-tolower-tests: New file.
79081         * tests/unicase/test-u32-tolower.c: New file.
79083         Tests for module 'unicase/u16-tolower'.
79084         * modules/unicase/u16-tolower-tests: New file.
79085         * tests/unicase/test-u16-tolower.c: New file.
79087         Tests for module 'unicase/u8-tolower'.
79088         * modules/unicase/u8-tolower-tests: New file.
79089         * tests/unicase/test-u8-tolower.c: New file.
79091         New module 'unicase/u32-tolower'.
79092         * lib/unicase/u32-tolower.c: New file.
79093         * modules/unicase/u32-tolower: New file.
79095         New module 'unicase/u16-tolower'.
79096         * lib/unicase/u16-tolower.c: New file.
79097         * modules/unicase/u16-tolower: New file.
79099         New module 'unicase/u8-tolower'.
79100         * lib/unicase/u8-tolower.c: New file.
79101         * modules/unicase/u8-tolower: New file.
79103         Tests for module 'unicase/u32-toupper'.
79104         * modules/unicase/u32-toupper-tests: New file.
79105         * tests/unicase/test-u32-toupper.c: New file.
79107         Tests for module 'unicase/u16-toupper'.
79108         * modules/unicase/u16-toupper-tests: New file.
79109         * tests/unicase/test-u16-toupper.c: New file.
79111         Tests for module 'unicase/u8-toupper'.
79112         * modules/unicase/u8-toupper-tests: New file.
79113         * tests/unicase/test-u8-toupper.c: New file.
79115         New module 'unicase/u32-toupper'.
79116         * lib/unicase/u32-toupper.c: New file.
79117         * modules/unicase/u32-toupper: New file.
79119         New module 'unicase/u16-toupper'.
79120         * lib/unicase/u16-toupper.c: New file.
79121         * modules/unicase/u16-toupper: New file.
79123         New module 'unicase/u8-toupper'.
79124         * lib/unicase/u8-toupper.c: New file.
79125         * modules/unicase/u8-toupper: New file.
79127         New module 'unicase/u32-casemap'.
79128         * lib/unicase/u32-casemap.c: New file.
79129         * modules/unicase/u32-casemap: New file.
79131         New module 'unicase/u16-casemap'.
79132         * lib/unicase/u16-casemap.c: New file.
79133         * modules/unicase/u16-casemap: New file.
79135         New module 'unicase/u8-casemap'.
79136         * lib/unicase/unicasemap.h: New file.
79137         * lib/unicase/u8-casemap.c: New file.
79138         * lib/unicase/u-casemap.h: New file.
79139         * modules/unicase/u8-casemap: New file.
79141         New module 'unicase/special-casing'.
79142         * lib/unicase/special-casing.h: New file.
79143         * lib/unicase/special-casing.c: New file.
79144         * lib/unicase/special-casing-table.gperf: New file, generated by
79145         gen-uni-tables.c.
79146         * modules/unicase/special-casing: New file.
79148         Tests for module 'unicase/locale-language'.
79149         * modules/unicase/locale-language-tests: New file.
79150         * tests/unicase/test-locale-language.sh: New file.
79151         * tests/unicase/test-locale-language.c: New file.
79153         New module 'unicase/locale-language'.
79154         * lib/unicase/locale-language.c: New file.
79155         * lib/unicase/locale-languages.gperf: New file.
79156         * modules/unicase/locale-language: New file.
79158         Generate more tables for case conversion and case folding.
79159         * lib/gen-uni-tables.c (SCC_*): New enum items.
79160         (struct special_casing_rule): New type.
79161         (casing_rules, num_casing_rules, allocated_casing_rules): New
79162         variables.
79163         (add_casing_rule, fill_casing_rules): New functions.
79164         (struct casefold_rule): New type.
79165         (casefolding_rules, num_casefolding_rules,
79166         allocated_casefolding_rules): New variables.
79167         (fill_casefolding_rules): New function.
79168         (unicode_casefold): New variable.
79169         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
79170         sort_casing_rules, output_casing_rules): New functions.
79171         (main): Accept to more arguments: SpecialCasing.txt and
79172         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
79173         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
79174         Output mapping for casefolding.
79176         * lib/unicase.h: Include stdbool.h, uninorm.h.
79177         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
79178         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
79179         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
79180         arguments.
79181         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
79182         resultp arguments.
79183         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
79184         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
79185         resultp arguments.
79186         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
79187         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
79188         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
79189         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
79190         declarations.
79191         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
79193 2009-03-08  Bruno Haible  <bruno@clisp.org>
79195         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
79196         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
79197         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
79198         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
79200 2009-03-07  Bruno Haible  <bruno@clisp.org>
79202         Adjust u*_normcmp, u*_normcoll API.
79203         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
79204         u16_normcoll, u32_normcoll): Change failure conventions.
79205         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
79206         errno and return -1.
79207         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
79209 2009-03-07  Bruno Haible  <bruno@clisp.org>
79211         Tests for module 'uninorm/u32-normcoll'.
79212         * modules/uninorm/u32-normcoll-tests: New file.
79213         * tests/uninorm/test-u32-normcoll.c: New file.
79215         Tests for module 'uninorm/u16-normcoll'.
79216         * modules/uninorm/u16-normcoll-tests: New file.
79217         * tests/uninorm/test-u16-normcoll.c: New file.
79219         Tests for module 'uninorm/u8-normcoll'.
79220         * modules/uninorm/u8-normcoll-tests: New file.
79221         * tests/uninorm/test-u8-normcoll.c: New file.
79223 2009-03-07  Bruno Haible  <bruno@clisp.org>
79225         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
79226         tests/uninorm/test-u32-normcmp.c.
79227         * tests/uninorm/test-u32-normcmp.c: Include it.
79228         (test_nonascii): New function, extracted from main. Add some more
79229         tests.
79230         (main): Invoke test_ascii and test_nonascii.
79231         * modules/uninorm/u32-normcmp-tests (Files): Add
79232         tests/uninorm/test-u32-normcmp.h.
79233         (Depends-on): Remove uninorm/u32-normcmp.
79235         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
79236         tests/uninorm/test-u16-normcmp.c.
79237         * tests/uninorm/test-u16-normcmp.c: Include it.
79238         (test_nonascii): New function, extracted from main. Add some more
79239         tests.
79240         (main): Invoke test_ascii and test_nonascii.
79241         * modules/uninorm/u16-normcmp-tests (Files): Add
79242         tests/uninorm/test-u16-normcmp.h.
79243         (Depends-on): Remove uninorm/u16-normcmp.
79245         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
79246         tests/uninorm/test-u8-normcmp.c.
79247         * tests/uninorm/test-u8-normcmp.c: Include it.
79248         (test_nonascii): New function, extracted from main. Add some more
79249         tests.
79250         (main): Invoke test_ascii and test_nonascii.
79251         * modules/uninorm/u8-normcmp-tests (Files): Add
79252         tests/uninorm/test-u8-normcmp.h.
79253         (Depends-on): Remove uninorm/u8-normcmp.
79255 2009-03-07  Bruno Haible  <bruno@clisp.org>
79257         New module 'uninorm/u32-normcoll'.
79258         * lib/uninorm/u32-normcoll.c: New file.
79259         * modules/uninorm/u32-normcoll: New file.
79261         New module 'uninorm/u16-normcoll'.
79262         * lib/uninorm/u16-normcoll.c: New file.
79263         * modules/uninorm/u16-normcoll: New file.
79265         New module 'uninorm/u8-normcoll'.
79266         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
79267         declarations.
79268         * lib/uninorm/u8-normcoll.c: New file.
79269         * lib/uninorm/u-normcoll.h: New file.
79270         * modules/uninorm/u8-normcoll: New file.
79272         New module 'uninorm/u32-normxfrm'.
79273         * lib/uninorm/u32-normxfrm.c: New file.
79274         * modules/uninorm/u32-normxfrm: New file.
79276         New module 'uninorm/u16-normxfrm'.
79277         * lib/uninorm/u16-normxfrm.c: New file.
79278         * modules/uninorm/u16-normxfrm: New file.
79280         New module 'uninorm/u8-normxfrm'.
79281         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
79282         declarations.
79283         * lib/uninorm/u8-normxfrm.c: New file.
79284         * lib/uninorm/u-normxfrm.h: New file.
79285         * modules/uninorm/u8-normxfrm: New file.
79287 2009-03-07  Bruno Haible  <bruno@clisp.org>
79289         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
79290         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
79291         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
79293 2009-03-07  Bruno Haible  <bruno@clisp.org>
79295         New module 'memxfrm'.
79296         * lib/memxfrm.h: New file.
79297         * lib/memxfrm.c: New file.
79298         * modules/memxfrm: New file.
79300 2009-03-07  Bruno Haible  <bruno@clisp.org>
79302         New module 'memcmp2'.
79303         * lib/memcmp2.h: New file.
79304         * lib/memcmp2.c: New file.
79305         * modules/memcmp2: New file.
79307 2009-03-07  Bruno Haible  <bruno@clisp.org>
79309         Tests for module 'uninorm/decomposing-form'.
79310         * modules/uninorm/decomposing-form-tests: New file.
79311         * tests/uninorm/test-decomposing-form.c: New file.
79313         New module 'uninorm/decomposing-form'.
79314         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
79315         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
79316         Add 'decomposing_variant' field.
79317         * lib/uninorm/decomposing-form.c: New file.
79318         * lib/uninorm/nfc.c (uninorm_nfc): Update.
79319         * lib/uninorm/nfd.c (uninorm_nfd): Update.
79320         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
79321         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
79322         * modules/uninorm/decomposing-form: New file.
79323         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
79324         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
79326 2009-03-07  Bruno Haible  <bruno@clisp.org>
79328         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
79329         strings.
79331 2009-03-06  Bruno Haible  <bruno@clisp.org>
79333         Tests for module 'uninorm/u32-normcmp'.
79334         * tests/uninorm/test-u32-normcmp.c: New file.
79335         * modules/uninorm/u32-normcmp-tests: New file.
79337         Tests for module 'uninorm/u16-normcmp'.
79338         * tests/uninorm/test-u16-normcmp.c: New file.
79339         * modules/uninorm/u16-normcmp-tests: New file.
79341         Tests for module 'uninorm/u8-normcmp'.
79342         * tests/uninorm/test-u8-normcmp.c: New file.
79343         * modules/uninorm/u8-normcmp-tests: New file.
79345         New module 'uninorm/u32-normcmp'.
79346         * lib/uninorm/u32-normcmp.c: New file.
79347         * modules/uninorm/u32-normcmp: New file.
79349         New module 'uninorm/u16-normcmp'.
79350         * lib/uninorm/u16-normcmp.c: New file.
79351         * modules/uninorm/u16-normcmp: New file.
79353         New module 'uninorm/u8-normcmp'.
79354         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
79355         declarations.
79356         * lib/uninorm/u8-normcmp.c: New file.
79357         * lib/uninorm/u-normcmp.h: New file.
79358         * modules/uninorm/u8-normcmp: New file.
79360 2009-03-06  Bruno Haible  <bruno@clisp.org>
79362         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
79363         Reported by Eric Blake.
79365 2009-03-06  Eric Blake  <ebb9@byu.net>
79366             Bruno Haible  <bruno@clisp.org>
79368         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
79369         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
79370         condition.
79371         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
79372         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
79373         condition.
79374         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
79376 2009-03-06  Eric Blake  <ebb9@byu.net>
79378         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
79379         to avoid compiler warnings.
79380         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
79382 2009-03-05  Bruno Haible  <bruno@clisp.org>
79384         * tests/test-ftell.c (main): Disable test beyond end of file on
79385         FreeMiNT.
79386         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
79388 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
79390         * lib/filevercmp.c: Move hidden files up in ordering.
79391         * tests/test-filevercmp.c: Add tests for hidden files.
79393 2009-03-04  Bruno Haible  <bruno@clisp.org>
79395         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
79396         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
79397         AM_CFLAGS.
79398         Reported by Simon Josefsson.
79400 2009-03-03  Bruno Haible  <bruno@clisp.org>
79402         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
79403         Reported by Simon Josefsson.
79405         * doc/ld-version-script.texi: Update node reference.
79407 2009-03-03  Bruno Haible  <bruno@clisp.org>
79409         * modules/visibility (License): Change to 'unlimited'.
79410         Suggested by Simon Josefsson.
79412 2009-03-03  Jim Meyering  <meyering@redhat.com>
79414         unlinkdir: cannot_unlink_dir may modify process state
79415         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
79416         it's neither thread-safe nor appropriate for use in a library.
79418 2009-03-03  Eric Blake  <ebb9@byu.net>
79420         test-closein: silence test under Darwin
79421         * tests/test-closein.sh: Ignore stderr from cat, since we don't
79422         care if it dies from EPIPE or EBADF.
79424 2009-03-03  Bruno Haible  <bruno@clisp.org>
79426         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
79427         earlier.
79428         * doc/visibility.texi: Fix @node and @section.
79430 2009-03-03  Simon Josefsson  <simon@josefsson.org>
79432         * doc/gnulib.texi: Link to sections for ld version script and
79433         visibility.
79434         * doc/visibility.texi: Add @node and @section.
79435         * modules/ld-version-script: New module.
79436         * m4/ld-version-script.m4: New file.
79437         * doc/ld-version-script.texi: New file.
79439 2009-03-02  David Lutterkort  <lutter@redhat.com>
79441         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
79442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79444 2009-03-02  Bruno Haible  <bruno@clisp.org>
79446         * doc/visibility.texi: Mention libtool's -export-symbols option.
79448 2009-03-02  Jim Meyering  <meyering@redhat.com>
79450         announce-gen: new option: --no-print-checksums
79451         * build-aux/announce-gen (usage): Describe it.
79452         (print_checksums): Print a newline here, not in the [*] footnote.
79453         (main): Honor it.
79455 2009-03-01  Bruno Haible  <bruno@clisp.org>
79457         Use socklen_t in the native Windows replacements prototypes.
79458         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
79459         instead of 'int'.
79460         * lib/getsockopt.c (rpl_getsockopt): Likewise.
79461         * lib/setsockopt.c (rpl_setsockopt): Likewise.
79462         * modules/getsockopt (Depends-on): Add socklen.
79463         * modules/setsockopt (Depends-on): Add socklen.
79465 2009-03-01  Bruno Haible  <bruno@clisp.org>
79467         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
79468         least 4.2.
79470 2009-03-01  Eric Blake  <ebb9@byu.net>
79471             Bruno Haible  <bruno@clisp.org>
79473         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
79474         error messages.
79475         * lib/wait-process.c (wait_subprocess): Omit error message about
79476         deadly signal sent to the child of termsigp != NULL.
79478 2009-03-01  Eric Blake  <ebb9@byu.net>
79480         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
79482 2009-03-01  Bruno Haible  <bruno@clisp.org>
79484         Avoid a gcc warning.
79485         * tests/test-sched.c (b): Make global.
79486         Reported by Eric Blake.
79488 2009-01-19  Martin Lambers  <marlam@marlam.de>
79490         Provide POSIX semantics for socket timeout options on W32.
79491         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
79492         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
79493         * modules/setsockopt: Depend on sys_time module for struct timeval.
79494         * modules/getsockopt: Depend on sys_time module for struct timeval.
79496 2009-03-01  Simon Josefsson  <simon@josefsson.org>
79498         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
79499         __USE_GNU, for consistency with netdb.in.h.
79500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79502 2009-03-01  Bruno Haible  <bruno@clisp.org>
79504         More support for FreeMiNT.
79505         * lib/fseeko.c (rpl_fseeko): Complete last commit.
79506         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79508 2009-03-01  Bruno Haible  <bruno@clisp.org>
79510         More support for FreeMiNT.
79511         * lib/fpurge.c (fpurge): Correct last commit.
79512         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79514 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79516         Fix unportable awk script in vc-list-files.
79517         * build-aux/vc-list-files: In the replacement awk script, use
79518         substr with a second argument of 1, not zero.
79519         Report by Simon Josefsson.
79521 2009-02-28  Bruno Haible  <bruno@clisp.org>
79523         More support for FreeMiNT.
79524         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
79525         to FreeMiNT today.
79526         * lib/fwriting.c (fwriting): Likewise.
79527         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
79529 2009-02-28  Bruno Haible  <bruno@clisp.org>
79531         * tests/test-freadseek.c (main): Disable test beyond end of file on
79532         FreeMiNT.
79533         * tests/test-ftello.c (main): Likewise.
79534         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
79536 2009-02-28  Bruno Haible  <bruno@clisp.org>
79538         Add tentative support for FreeMiNT.
79539         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
79540         * lib/fpurge.c (fpurge): Likewise.
79541         * lib/freadable.c (freadable): Likewise.
79542         * lib/freading.c (freading): Likewise.
79543         * lib/freadptr.c (freadptr): Likewise.
79544         * lib/freadseek.c (freadptrinc): Likewise.
79545         * lib/fseeko.c (rpl_fseeko): Likewise.
79546         * lib/fseterr.c (fseterr): Likewise.
79547         * lib/fwritable.c (fwritable): Likewise.
79548         * lib/fwriting.c (fwriting): Likewise.
79549         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
79550         Hourihane.
79551         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79553 2009-02-28  Bruno Haible  <bruno@clisp.org>
79555         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
79556         SIGCHLD.
79557         Reported by Jim Meyering.
79559 2009-02-28  Bruno Haible  <bruno@clisp.org>
79561         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
79562         Mention the results of these tests on various platforms.
79563         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
79564         order.
79565         * doc/posix-functions/printf.texi: Likewise.
79566         * doc/posix-functions/snprintf.texi: Likewise.
79567         * doc/posix-functions/sprintf.texi: Likewise.
79568         * doc/posix-functions/vfprintf.texi: Likewise.
79569         * doc/posix-functions/vprintf.texi: Likewise.
79570         * doc/posix-functions/vsnprintf.texi: Likewise.
79571         * doc/posix-functions/vsprintf.texi: Likewise.
79572         * doc/glibc-functions/obstack_printf.texi: Likewise.
79573         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
79575 2009-02-28  Bruno Haible  <bruno@clisp.org>
79577         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
79578         Reported by Loïc Minier <lool@dooz.org>.
79580 2009-02-27  Bruno Haible  <bruno@clisp.org>
79582         * gnulib-tool (func_import): Make the sed expression used to create the
79583         sed script for updating the .gitignore file POSIX compliant.
79584         Reported by Eric Blake.
79586 2009-02-27  Bruno Haible  <bruno@clisp.org>
79588         * gnulib-tool (sed): Don't alias as "sed --posix".
79589         Reported by Eric Blake.
79591 2009-02-27  Bruno Haible  <bruno@clisp.org>
79593         Avoid test link errors.
79594         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
79595         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
79596         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
79597         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
79598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79600 2009-02-27  Bruno Haible  <bruno@clisp.org>
79602         Avoid spurious "(cached)" in configure output.
79603         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
79604         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
79605         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
79606         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
79607         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
79608         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
79609         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
79610         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
79611         Reported by Eric Blake.
79613 2009-02-27  Eric Blake  <ebb9@byu.net>
79615         printf: fix regression in previous patch
79616         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
79618 2009-02-27  Bruno Haible  <bruno@clisp.org>
79620         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
79621         value.
79622         * lib/stdint.in.h: Likewise.
79623         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
79625 2009-02-27  Eric Blake  <ebb9@byu.net>
79627         doc: mention more functions added in cygwin 1.7.0
79628         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
79629         addition.
79630         * doc/posix-functions/open_wmemstream.texi: Likewise.
79631         * doc/posix-functions/wcsnlen.texi: Likewise.
79632         * doc/posix-functions/wcsnrtombs.texi: Likewise.
79633         * doc/posix-functions/wcstod.texi: Likewise.
79634         * doc/posix-functions/wcstof.texi: Likewise.
79635         * doc/posix-functions/wcstoimax.texi: Likewise.
79636         * doc/posix-functions/wcstok.texi: Likewise.
79637         * doc/posix-functions/wcstoumax.texi: Likewise.
79639         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
79640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
79641         * doc/posix-functions/fprintf.texi: Update.
79642         * doc/posix-functions/printf.texi: Update.
79643         * doc/posix-functions/snprintf.texi: Update.
79644         * doc/posix-functions/sprintf.texi: Update.
79645         * doc/posix-functions/vfprintf.texi: Update.
79646         * doc/posix-functions/vprintf.texi: Update.
79647         * doc/posix-functions/vsnprintf.texi: Update.
79648         * doc/posix-functions/vsprintf.texi: Update.
79649         * doc/glibc-functions/obstack_printf.texi: Update.
79650         * doc/glibc-functions/obstack_vprintf.texi: Update.
79652 2009-02-26  Eric Blake  <ebb9@byu.net>
79654         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
79655         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
79656         compilation bug by using runtime conversion.
79657         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
79658         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
79659         * modules/ceill-tests (Files): Use nan.h.
79660         * modules/floorl-tests (Files): Likewise.
79661         * modules/frexpl-tests (Files): Likewise.
79662         * modules/isnanl-tests (Files): Likewise.
79663         * modules/ldexpl-tests (Files): Likewise.
79664         * modules/roundl-tests (Files): Likewise.
79665         * modules/truncl-tests (Files): Likewise.
79666         * tests/test-ceill.c (main): Use a working NaN.
79667         * tests/test-floorl.c (main): Likewise.
79668         * tests/test-frexpl.c (main): Likewise.
79669         * tests/test-isnan.c (test_long_double): Likewise.
79670         * tests/test-isnanl.h (main): Likewise.
79671         * tests/test-ldexpl.h (main): Likewise.
79672         * tests/test-roundl.h (main): Likewise.
79673         * tests/test-truncl.h (main): Likewise.
79674         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
79676 2009-02-26  Eric Blake  <ebb9@byu.net>
79677             Bruno Haible  <bruno@clisp.org>
79679         Work around a *printf bug with %ls on Solaris.
79680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
79681         precision is specified, sprintf stops converting the wide string
79682         argument when the number of bytes that have been produced by this
79683         conversion equals or exceeds the precision.
79684         * doc/posix-functions/fprintf.texi: Update.
79685         * doc/posix-functions/printf.texi: Update.
79686         * doc/posix-functions/snprintf.texi: Update.
79687         * doc/posix-functions/sprintf.texi: Update.
79688         * doc/posix-functions/vfprintf.texi: Update.
79689         * doc/posix-functions/vprintf.texi: Update.
79690         * doc/posix-functions/vsnprintf.texi: Update.
79691         * doc/posix-functions/vsprintf.texi: Update.
79692         * doc/glibc-functions/obstack_printf.texi: Update.
79693         * doc/glibc-functions/obstack_vprintf.texi: Update.
79695 2009-02-26  Eric Blake  <ebb9@byu.net>
79697         stdlib: favor compiler check of random.h
79698         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
79699         to avoid an ObjC random.h installed by Swarm.
79701 2009-02-26  Bruno Haible  <bruno@clisp.org>
79703         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
79704         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
79705         Reported by Gary V. Vaughan <gary@gnu.org>.
79707 2009-02-26  Bruno Haible  <bruno@clisp.org>
79709         Fix *printf behaviour regarding the %ls directive.
79710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
79711         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
79712         NEED_PRINTF_DIRECTIVE_LS.
79713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
79714         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
79715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
79716         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
79717         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
79718         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
79719         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
79720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
79721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
79722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
79723         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
79724         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
79725         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
79726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79727         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
79728         * doc/posix-functions/fprintf.texi: Update.
79729         * doc/posix-functions/printf.texi: Update.
79730         * doc/posix-functions/snprintf.texi: Update.
79731         * doc/posix-functions/sprintf.texi: Update.
79732         * doc/posix-functions/vfprintf.texi: Update.
79733         * doc/posix-functions/vprintf.texi: Update.
79734         * doc/posix-functions/vsnprintf.texi: Update.
79735         * doc/posix-functions/vsprintf.texi: Update.
79736         * doc/glibc-functions/obstack_printf.texi: Update.
79737         * doc/glibc-functions/obstack_vprintf.texi: Update.
79738         Reported by Eric Blake.
79740 2009-02-25  Bruno Haible  <bruno@clisp.org>
79742         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
79743         with known value.
79744         Reported by Gary V. Vaughan <gary@gnu.org>.
79746 2009-02-25  Bruno Haible  <bruno@clisp.org>
79748         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
79749         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
79750         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
79751         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
79752         Reported by Gary V. Vaughan <gary@gnu.org>.
79754 2009-02-25  Bruno Haible  <bruno@clisp.org>
79756         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
79757         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
79758         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
79759         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
79760         Reported by Gary V. Vaughan <gary@gnu.org>.
79762 2009-02-25  Eric Blake  <ebb9@byu.net>
79764         tests: skip fseek/ftell tests if ungetc is broken
79765         * m4/ungetc.m4: New file.
79766         * modules/fseek-tests: Split test, so ungetc dependency is
79767         separate from rest of test.
79768         * modules/fseeko-tests: Likewise.
79769         * modules/ftell-tests: Likewise.
79770         * modules/ftello-tests: Likewise.
79771         * tests/test-fseek.c (main): Isolate ungetc dependency.
79772         * tests/test-fseeko.c (main): Likewise.
79773         * tests/test-ftell.c (main): Likewise.
79774         * tests/test-ftello.c (main): Likewise.
79775         * tests/test-fseek2.sh: New file.
79776         * tests/test-fseeko2.sh: Likewise.
79777         * tests/test-ftell2.sh: Likewise.
79778         * tests/test-ftello2.sh: Likewise.
79780 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
79782         test-getaddrinfo: fix usage of skip return code 77
79783         * tests/test-gettaddrinfo.c: Return skip code 77 only
79784         for first occurrence of skip (4x77 is not 77)
79786 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
79788         strtod: avoid C99 decl-after-statement
79789         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
79791 2009-02-24  Eric Blake  <ebb9@byu.net>
79793         strtod: detect HP-UX 11.31 bug
79794         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
79795         Reported by Gary V. Vaughan.
79797 2009-02-23  Bruno Haible  <bruno@clisp.org>
79799         Fix invalid read past end of memory block.
79800         * lib/vasnprintf.c (DCHAR_SET): Define.
79801         (local_wcslen): Define only when needed.
79802         (local_strnlen, local_wcsnlen): New functions.
79803         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
79804         directives that involve a conversion ourselves.
79805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
79806         wcsnlen, mbrtowc, wcrtomb.
79807         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
79808         * tests/test-vasprintf-posix.c (test_function): Likewise.
79809         * tests/test-snprintf-posix.h (test_function): Likewise.
79810         * tests/test-sprintf-posix.h (test_function): Likewise.
79811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79813 2009-02-22  Bruno Haible  <bruno@clisp.org>
79815         Implement new clarified decomposition of Hangul syllables.
79816         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
79817         of type LTV, return only a pairwise decomposition.
79818         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
79819         Likewise.
79820         * tests/uninorm/test-decomposition.c (main): Updated expected result.
79821         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
79822         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
79824 2009-02-22  Bruno Haible  <bruno@clisp.org>
79826         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
79827         zero-length results and shrink excess allocated memory.
79828         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
79829         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
79830         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
79831         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
79832         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
79833         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
79834         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
79835         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
79836         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
79837         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
79838         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
79839         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
79841 2009-02-21  Bruno Haible  <bruno@clisp.org>
79843         * doc/gnulib.texi: Include safe-alloc.texi earlier.
79844         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
79845         spaces after a period. Put a space between a macro name and its
79846         argument list. Trivial rewordings.
79847         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
79848         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
79849         (main): Return 0 explicitly.
79851 2009-02-21  Bruno Haible  <bruno@clisp.org>
79853         Tests for module 'uninorm/filter'.
79854         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
79855         * modules/uninorm/filter-tests: New file.
79857         New module 'uninorm/filter'.
79858         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
79859         uninorm_filter_flush, uninorm_filter_free): New declarations.
79860         * lib/uninorm/uninorm-filter.c: New file.
79861         * modules/uninorm/filter: New file.
79863 2009-02-21  Bruno Haible  <bruno@clisp.org>
79865         Tests for module 'uninorm/nfkc'.
79866         * tests/uninorm/test-nfkc.c: New file.
79867         * tests/uninorm/test-u8-nfkc.c: New file.
79868         * tests/uninorm/test-u16-nfkc.c: New file.
79869         * tests/uninorm/test-u32-nfkc.c: New file.
79870         * tests/uninorm/test-u32-nfkc-big.sh: New file.
79871         * tests/uninorm/test-u32-nfkc-big.c: New file.
79872         * modules/uninorm/nfkc-tests: New file.
79874         New module 'uninorm/nfkc'.
79875         * lib/uninorm/nfkc.c: New file.
79876         * modules/uninorm/nfkc: New file.
79878         Tests for module 'uninorm/nfkd'.
79879         * tests/uninorm/test-nfkd.c: New file.
79880         * tests/uninorm/test-u8-nfkd.c: New file.
79881         * tests/uninorm/test-u16-nfkd.c: New file.
79882         * tests/uninorm/test-u32-nfkd.c: New file.
79883         * tests/uninorm/test-u32-nfkd-big.sh: New file.
79884         * tests/uninorm/test-u32-nfkd-big.c: New file.
79885         * modules/uninorm/nfkd-tests: New file.
79887         New module 'uninorm/nfkd'.
79888         * lib/uninorm/nfkd.c: New file.
79889         * modules/uninorm/nfkd: New file.
79891         Tests for module 'uninorm/nfc'.
79892         * tests/uninorm/test-nfc.c: New file.
79893         * tests/uninorm/test-u8-nfc.c: New file.
79894         * tests/uninorm/test-u16-nfc.c: New file.
79895         * tests/uninorm/test-u32-nfc.c: New file.
79896         * tests/uninorm/test-u32-nfc-big.sh: New file.
79897         * tests/uninorm/test-u32-nfc-big.c: New file.
79898         * modules/uninorm/nfc-tests: New file.
79900         New module 'uninorm/nfc'.
79901         * lib/uninorm/nfc.c: New file.
79902         * modules/uninorm/nfc: New file.
79904         Tests for module 'uninorm/nfd'.
79905         * tests/uninorm/test-nfd.c: New file.
79906         * tests/uninorm/test-u8-nfd.c: New file.
79907         * tests/uninorm/test-u16-nfd.c: New file.
79908         * tests/uninorm/test-u32-nfd.c: New file.
79909         * tests/uninorm/test-u32-nfd-big.sh: New file.
79910         * tests/uninorm/test-u32-nfd-big.c: New file.
79911         * tests/uninorm/test-u32-normalize-big.h: New file.
79912         * tests/uninorm/test-u32-normalize-big.c: New file.
79913         * tests/uninorm/NormalizationTest.txt: New file, created from
79914         Unicode 5.1.0 NormalizationTest.txt.
79915         * modules/uninorm/nfd-tests: New file.
79917         New module 'uninorm/nfd'.
79918         * lib/uninorm/nfd.c: New file.
79919         * modules/uninorm/nfd: New file.
79921         New module 'uninorm/u32-normalize'.
79922         * lib/uninorm/u32-normalize.c: New file.
79923         * modules/uninorm/u32-normalize: New file.
79925         New module 'uninorm/u16-normalize'.
79926         * lib/uninorm/u16-normalize.c: New file.
79927         * modules/uninorm/u16-normalize: New file.
79929         New module 'uninorm/u8-normalize'.
79930         * lib/uninorm/u8-normalize.c: New file.
79931         * lib/uninorm/normalize-internal.h: New file.
79932         * lib/uninorm/u-normalize-internal.h: New file.
79933         * modules/uninorm/u8-normalize: New file.
79935         New module 'uninorm/decompose-internal'.
79936         * lib/uninorm/decompose-internal.c: New file.
79937         * modules/uninorm/decompose-internal: New file.
79939         Tests for module 'uninorm/composition'.
79940         * tests/uninorm/test-composition.c: New file.
79941         * modules/uninorm/composition-tests: New file.
79943         New module 'uninorm/composition'.
79944         * lib/uninorm/composition.c: New file.
79945         * lib/uninorm/composition-table.gperf: New file, generated by
79946         gen-uni-tables.
79947         * modules/uninorm/composition: New file.
79949         Tests for module 'uninorm/compat-decomposition'.
79950         * tests/uninorm/test-compat-decomposition.c: New file.
79951         * modules/uninorm/compat-decomposition-tests: New file.
79953         New module 'uninorm/compat-decomposition'.
79954         * lib/uninorm/decompose-internal.h: New file.
79955         * lib/uninorm/compat-decomposition.c: New file.
79956         * modules/uninorm/compat-decomposition: New file.
79958         Tests for module 'uninorm/canonical-decomposition'.
79959         * tests/uninorm/test-canonical-decomposition.c: New file.
79960         * modules/uninorm/canonical-decomposition-tests: New file.
79962         New module 'uninorm/canonical-decomposition'.
79963         * lib/uninorm/canonical-decomposition.c: New file.
79964         * modules/uninorm/canonical-decomposition: New file.
79966         Tests for module 'uninorm/decomposition'.
79967         * tests/uninorm/test-decomposition.c: New file.
79968         * modules/uninorm/decomposition-tests: New file.
79970         New module 'uninorm/decomposition'.
79971         * lib/uninorm/decomposition.c: New file.
79972         * modules/uninorm/decomposition: New file.
79974         New module 'uninorm/decomposition-table'.
79975         * lib/uninorm/decomposition-table.h: New file.
79976         * lib/uninorm/decomposition-table.c: New file.
79977         * lib/uninorm/decomposition-table1.h: New file, generated by
79978         gen-uni-tables.
79979         * lib/uninorm/decomposition-table2.h: New file, generated by
79980         gen-uni-tables.
79981         * modules/uninorm/decomposition-table: New file.
79983         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
79984         (UC_DECOMP_*): New enumeration items.
79985         (get_decomposition): New function.
79986         (struct decomp_table): New type.
79987         (output_decomposition, output_decomposition_tables): New functions.
79988         (unicode_composition_exclusions): New variable.
79989         (fill_composition_exclusions, debug_output_composition_tables): New
79990         functions.
79991         (main): Accept one more argument. Invoke fill_composition_exclusions.
79992         Output decomposition and composition tables.
79994         New module 'uninorm/base'.
79995         * lib/uninorm.h: New file.
79996         * lib/unictype.h: Update comment.
79997         * modules/uninorm/base: New file.
79999 2009-02-21  David Lutterkort  <lutter@redhat.com>
80001         Tests for module 'safe-alloc'.
80002         * tests/test-safe-alloc.c: New file.
80003         * modules/safe-alloc-tests: New file.
80005         New module 'safe-alloc'.
80006         * lib/safe-alloc.h: New file.
80007         * lib/safe-alloc.c: New file.
80008         * m4/safe-alloc.m4: New file.
80009         * modules/safe-alloc: New file.
80010         * doc/safe-alloc.texi: New file.
80011         * doc/gnulib.texi: Include it.
80012         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
80013         safe-alloc.
80015 2009-02-18  Bruno Haible  <bruno@clisp.org>
80017         Fix link error on non-glibc systems.
80018         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
80019         variable.
80020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80022 2009-02-18  Jim Meyering  <meyering@redhat.com>
80024         fts: avoid used-uninitialized error due to recent change
80025         * lib/fts.c (fts_read): Guard uses of the new member,
80026         parent->fts_n_dirs_remaining, since it's not relevant for
80027         the parent of a directory specified on the command-line.
80029 2009-02-17  James Youngman  <jay@gnu.org>
80030             Bruno Haible  <bruno@clisp.org>
80032         * m4/include_next.m4: Reformulate comment.
80034 2009-02-16  Jim Meyering  <meyering@redhat.com>
80036         fts: add #if guards so that the fts_lgpl module still builds
80037         * lib/fts.c: Guard just-added hash-table-using parts with
80038         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
80039         Reported by Simon Josefsson.
80041 2009-02-15  Bruno Haible  <bruno@clisp.org>
80043         * modules/array-mergesort-tests: New file.
80044         * tests/test-array-mergesort.c: New file.
80046         New module 'array-mergesort'.
80047         * modules/array-mergesort: New file.
80048         * lib/array-mergesort.h: New file.
80050 2009-02-15  Bruno Haible  <bruno@clisp.org>
80052         Fix 2009-02-07 commit.
80053         * lib/gen-uni-tables.c (output_predicate, output_category,
80054         output_combclass, output_bidi_category, output_decimal_digit,
80055         output_digit, output_numeric, output_mirror, output_scripts,
80056         output_ident_category, output_simple_mapping): Fix format directives.
80057         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
80059 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
80061         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
80062         fixes are available from IBM.
80064 2009-02-13  Jim Meyering  <meyering@redhat.com>
80066         fts: arrange not to stat non-directories in more cases
80067         This makes GNU find (when it doesn't need to stat each file)
80068         *much* more efficient at traversing reiserfs file systems.
80069         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
80070         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
80071         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
80072         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
80073         (leaf_optimization_applies): New function.
80074         (LCO_hash, LCO_compare): New helper functions.
80075         (link_count_optimize_ok): New function.
80076         (fts_stat): Initialize new member (if dir).
80077         (fts_read): Decrement parent's fts_n_dirs_remaining count if
80078         we've just stat'ed a directory.  Skip the stat call when possible.
80079         ---
80080         Note this AFS-related exchange:
80081         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
80082         and note find's pioctl call in find/fstype.c.
80083         But that is necessary only if you want to enable the
80084         optimization for AFS, and for now, I don't.
80086         fts: move a function definition "up" (no semantic change)
80087         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
80088         "up" to precede upcoming use of a related function.
80090 2009-02-11  Jim Meyering  <meyering@redhat.com>
80092         fts: correct internal computation of nlinks (optimization-related)
80093         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
80094         whether the current entry is a directory, so don't test it.
80096 2009-02-10  Bruno Haible  <bruno@clisp.org>
80098         Tests for module 'uniwbrk/ulc-wordbreaks'.
80099         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
80100         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
80101         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
80103         Tests for module 'uniwbrk/u32-wordbreaks'.
80104         * modules/uniwbrk/u32-wordbreaks-tests: New file.
80105         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
80107         Tests for module 'uniwbrk/u16-wordbreaks'.
80108         * modules/uniwbrk/u16-wordbreaks-tests: New file.
80109         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
80111         Tests for module 'uniwbrk/u8-wordbreaks'.
80112         * modules/uniwbrk/u8-wordbreaks-tests: New file.
80113         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
80115 2009-02-10  Bruno Haible  <bruno@clisp.org>
80117         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
80118         property.
80119         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
80120         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
80121         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
80123 2009-02-10  Simon Josefsson  <simon@josefsson.org>
80125         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
80126         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
80128 2009-02-10  Bruno Haible  <bruno@clisp.org>
80130         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
80131         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
80132         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
80133         * lib/unilbrk/u8-possible-linebreaks.c: Update.
80134         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
80135         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
80137 2009-02-09  Simon Josefsson  <simon@josefsson.org>
80139         * lib/sockets.h (gl_fd_to_handle): New function.
80141         * tests/test-sockets.c: Call gl_fd_to_handle.
80143 2009-02-09  Bruno Haible  <bruno@clisp.org>
80145         * doc/havelib.texi: Document the conventions on bi-arch systems.
80147 2009-02-08  Bruno Haible  <bruno@clisp.org>
80149         Document the AC_LIB_LINKFLAGS macro.
80150         * doc/havelib.texi: New file, mostly written on 2005-05-24.
80151         * doc/gnulib.texi: Include it.
80153 2009-02-08  Bruno Haible  <bruno@clisp.org>
80155         Fix wrong order of sections, compared to TOC.
80156         * doc/gnulib.texi: Include relocatable-maint.texi after the
80157         "Regular expressions" node, not before.
80159 2009-02-08  Bruno Haible  <bruno@clisp.org>
80161         Tests for module 'unicase/totitle'.
80162         * modules/unicase/totitle-tests: New file.
80164         Tests for module 'unicase/tolower'.
80165         * modules/unicase/tolower-tests: New file.
80167         Tests for module 'unicase/toupper'.
80168         * modules/unicase/toupper-tests: New file.
80169         * tests/unicase/test-mapping-part1.h: New file.
80170         * tests/unicase/test-mapping-part2.h: New file.
80172         New module 'unicase/totitle'.
80173         * modules/unicase/totitle: New file.
80174         * lib/unicase/totitle.c: New file.
80176         New module 'unicase/tolower'.
80177         * modules/unicase/tolower: New file.
80178         * lib/unicase/tolower.c: New file.
80180         New module 'unicase/toupper'.
80181         * modules/unicase/toupper: New file.
80182         * lib/unicase/toupper.c: New file.
80183         * lib/unicase/simple-mapping.h: New file.
80185         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
80186         (mapping_table): New structure.
80187         (output_simple_mapping): New function.
80188         (main): Invoke output_simple_mapping_test and output_simple_mapping.
80189         * modules/gen-uni-tables (Description): Update.
80190         * lib/unicase/toupper.h: New file, automatically generated by
80191         gen-uni-tables.
80192         * lib/unicase/tolower.h: New file, automatically generated by
80193         gen-uni-tables.
80194         * lib/unicase/totitle.h: New file, automatically generated by
80195         gen-uni-tables.
80196         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
80197         gen-uni-tables.
80198         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
80199         gen-uni-tables.
80200         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
80201         gen-uni-tables.
80203         New module 'unicase/base'.
80204         * modules/unicase/base: New file.
80205         * lib/unicase.h: New file.
80207 2009-02-08  Bruno Haible  <bruno@clisp.org>
80209         New module 'uniwbrk/ulc-wordbreaks'.
80210         * modules/uniwbrk/ulc-wordbreaks: New file.
80211         * lib/uniwbrk/ulc-wordbreaks.c: New file.
80213         New module 'uniwbrk/u32-wordbreaks'.
80214         * modules/uniwbrk/u32-wordbreaks: New file.
80215         * lib/uniwbrk/u32-wordbreaks.c: New file.
80217         New module 'uniwbrk/u16-wordbreaks'.
80218         * modules/uniwbrk/u16-wordbreaks: New file.
80219         * lib/uniwbrk/u16-wordbreaks.c: New file.
80221         New module 'uniwbrk/u8-wordbreaks'.
80222         * modules/uniwbrk/u8-wordbreaks: New file.
80223         * lib/uniwbrk/u8-wordbreaks.c: New file.
80224         * lib/uniwbrk/u-wordbreaks.h: New file.
80226         New module 'uniwbrk/table'.
80227         * modules/uniwbrk/table: New file.
80228         * lib/uniwbrk/wbrktable.h: New file.
80229         * lib/uniwbrk/wbrktable.c: New file.
80231         New module 'uniwbrk/wordbreak-property'.
80232         * modules/uniwbrk/wordbreak-property: New file.
80233         * lib/uniwbrk/wordbreak-property.c: New file.
80235         * lib/gen-uni-tables.c (WBP_*): New enum items.
80236         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
80237         (unicode_org_wbp): New variable.
80238         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
80239         New functions.
80240         (wbp_table): New structure.
80241         (output_wbp, output_wbrk_tables): New functions.
80242         (main): Accept additional argument. Invoke fill_org_wbp,
80243         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
80244         output_wbrk_tables.
80245         * modules/gen-uni-tables (Description): Update.
80246         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
80247         gen-uni-tables.
80249         New module 'uniwbrk/base'.
80250         * modules/uniwbrk/base: New file.
80251         * lib/uniwbrk.h: New file.
80253 2009-02-08  Bruno Haible  <bruno@clisp.org>
80255         Update to Unicode 5.1.0.
80256         * lib/gen-uni-tables.c (is_property_alphabetic): Include
80257         U+2185..U+2188.
80258         (is_property_default_ignorable_code_point): Don't include characters
80259         of category Cc or Cs and not-a-characters.
80260         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
80261         U+0D79, U+109E, U+109F, U+A60C.
80262         * lib/unictype/bidi_of.h: Regenerated.
80263         * lib/unictype/blocks.h: Regenerated.
80264         * lib/unictype/categ_C.h: Regenerated.
80265         * lib/unictype/categ_Cf.h: Regenerated.
80266         * lib/unictype/categ_Cn.h: Regenerated.
80267         * lib/unictype/categ_L.h: Regenerated.
80268         * lib/unictype/categ_Ll.h: Regenerated.
80269         * lib/unictype/categ_Lm.h: Regenerated.
80270         * lib/unictype/categ_Lo.h: Regenerated.
80271         * lib/unictype/categ_Lu.h: Regenerated.
80272         * lib/unictype/categ_M.h: Regenerated.
80273         * lib/unictype/categ_Mc.h: Regenerated.
80274         * lib/unictype/categ_Me.h: Regenerated.
80275         * lib/unictype/categ_Mn.h: Regenerated.
80276         * lib/unictype/categ_N.h: Regenerated.
80277         * lib/unictype/categ_Nd.h: Regenerated.
80278         * lib/unictype/categ_Nl.h: Regenerated.
80279         * lib/unictype/categ_No.h: Regenerated.
80280         * lib/unictype/categ_P.h: Regenerated.
80281         * lib/unictype/categ_Pd.h: Regenerated.
80282         * lib/unictype/categ_Pe.h: Regenerated.
80283         * lib/unictype/categ_Pf.h: Regenerated.
80284         * lib/unictype/categ_Pi.h: Regenerated.
80285         * lib/unictype/categ_Po.h: Regenerated.
80286         * lib/unictype/categ_Ps.h: Regenerated.
80287         * lib/unictype/categ_S.h: Regenerated.
80288         * lib/unictype/categ_Sk.h: Regenerated.
80289         * lib/unictype/categ_Sm.h: Regenerated.
80290         * lib/unictype/categ_So.h: Regenerated.
80291         * lib/unictype/categ_of.h: Regenerated.
80292         * lib/unictype/combining.h: Regenerated.
80293         * lib/unictype/ctype_alnum.h: Regenerated.
80294         * lib/unictype/ctype_alpha.h: Regenerated.
80295         * lib/unictype/ctype_graph.h: Regenerated.
80296         * lib/unictype/ctype_lower.h: Regenerated.
80297         * lib/unictype/ctype_print.h: Regenerated.
80298         * lib/unictype/ctype_punct.h: Regenerated.
80299         * lib/unictype/ctype_upper.h: Regenerated.
80300         * lib/unictype/decdigit.h: Regenerated.
80301         * lib/unictype/digit.h: Regenerated.
80302         * lib/unictype/mirror.h: Regenerated.
80303         * lib/unictype/numeric.h: Regenerated.
80304         * lib/unictype/pr_alphabetic.h: Regenerated.
80305         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
80306         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
80307         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
80308         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
80309         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
80310         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
80311         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
80312         * lib/unictype/pr_combining.h: Regenerated.
80313         * lib/unictype/pr_dash.h: Regenerated.
80314         * lib/unictype/pr_decimal_digit.h: Regenerated.
80315         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
80316         * lib/unictype/pr_deprecated.h: Regenerated.
80317         * lib/unictype/pr_diacritic.h: Regenerated.
80318         * lib/unictype/pr_extender.h: Regenerated.
80319         * lib/unictype/pr_format_control.h: Regenerated.
80320         * lib/unictype/pr_grapheme_base.h: Regenerated.
80321         * lib/unictype/pr_grapheme_extend.h: Regenerated.
80322         * lib/unictype/pr_grapheme_link.h: Regenerated.
80323         * lib/unictype/pr_id_continue.h: Regenerated.
80324         * lib/unictype/pr_id_start.h: Regenerated.
80325         * lib/unictype/pr_ideographic.h: Regenerated.
80326         * lib/unictype/pr_ignorable_control.h: Regenerated.
80327         * lib/unictype/pr_lowercase.h: Regenerated.
80328         * lib/unictype/pr_math.h: Regenerated.
80329         * lib/unictype/pr_numeric.h: Regenerated.
80330         * lib/unictype/pr_other_alphabetic.h: Regenerated.
80331         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
80332         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
80333         * lib/unictype/pr_other_id_continue.h: Regenerated.
80334         * lib/unictype/pr_other_lowercase.h: Regenerated.
80335         * lib/unictype/pr_other_math.h: Regenerated.
80336         * lib/unictype/pr_punctuation.h: Regenerated.
80337         * lib/unictype/pr_sentence_terminal.h: Regenerated.
80338         * lib/unictype/pr_soft_dotted.h: Regenerated.
80339         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
80340         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
80341         * lib/unictype/pr_unified_ideograph.h: Regenerated.
80342         * lib/unictype/pr_uppercase.h: Regenerated.
80343         * lib/unictype/pr_xid_continue.h: Regenerated.
80344         * lib/unictype/pr_xid_start.h: Regenerated.
80345         * lib/unictype/pr_zero_width.h: Regenerated.
80346         * lib/unictype/scripts.h: Regenerated.
80347         * lib/unictype/scripts_byname.gperf: Regenerated.
80348         * lib/unictype/sy_java_ident.h: Regenerated.
80349         * lib/unilbrk/lbrkprop1.h: Regenerated.
80350         * lib/unilbrk/lbrkprop2.h: Regenerated.
80351         * tests/unictype/test-categ_C.c: Regenerated.
80352         * tests/unictype/test-categ_Cf.c: Regenerated.
80353         * tests/unictype/test-categ_Cn.c: Regenerated.
80354         * tests/unictype/test-categ_L.c: Regenerated.
80355         * tests/unictype/test-categ_Ll.c: Regenerated.
80356         * tests/unictype/test-categ_Lm.c: Regenerated.
80357         * tests/unictype/test-categ_Lo.c: Regenerated.
80358         * tests/unictype/test-categ_Lu.c: Regenerated.
80359         * tests/unictype/test-categ_M.c: Regenerated.
80360         * tests/unictype/test-categ_Mc.c: Regenerated.
80361         * tests/unictype/test-categ_Me.c: Regenerated.
80362         * tests/unictype/test-categ_Mn.c: Regenerated.
80363         * tests/unictype/test-categ_N.c: Regenerated.
80364         * tests/unictype/test-categ_Nd.c: Regenerated.
80365         * tests/unictype/test-categ_Nl.c: Regenerated.
80366         * tests/unictype/test-categ_No.c: Regenerated.
80367         * tests/unictype/test-categ_P.c: Regenerated.
80368         * tests/unictype/test-categ_Pd.c: Regenerated.
80369         * tests/unictype/test-categ_Pe.c: Regenerated.
80370         * tests/unictype/test-categ_Pf.c: Regenerated.
80371         * tests/unictype/test-categ_Pi.c: Regenerated.
80372         * tests/unictype/test-categ_Po.c: Regenerated.
80373         * tests/unictype/test-categ_Ps.c: Regenerated.
80374         * tests/unictype/test-categ_S.c: Regenerated.
80375         * tests/unictype/test-categ_Sk.c: Regenerated.
80376         * tests/unictype/test-categ_Sm.c: Regenerated.
80377         * tests/unictype/test-categ_So.c: Regenerated.
80378         * tests/unictype/test-ctype_alnum.c: Regenerated.
80379         * tests/unictype/test-ctype_alpha.c: Regenerated.
80380         * tests/unictype/test-ctype_graph.c: Regenerated.
80381         * tests/unictype/test-ctype_lower.c: Regenerated.
80382         * tests/unictype/test-ctype_print.c: Regenerated.
80383         * tests/unictype/test-ctype_punct.c: Regenerated.
80384         * tests/unictype/test-ctype_upper.c: Regenerated.
80385         * tests/unictype/test-decdigit.h: Regenerated.
80386         * tests/unictype/test-digit.h: Regenerated.
80387         * tests/unictype/test-numeric.h: Regenerated.
80388         * tests/unictype/test-pr_alphabetic.c: Regenerated.
80389         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
80390         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
80391         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
80392         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
80393         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
80394         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
80395         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
80396         * tests/unictype/test-pr_combining.c: Regenerated.
80397         * tests/unictype/test-pr_dash.c: Regenerated.
80398         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
80399         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
80400         * tests/unictype/test-pr_deprecated.c: Regenerated.
80401         * tests/unictype/test-pr_diacritic.c: Regenerated.
80402         * tests/unictype/test-pr_extender.c: Regenerated.
80403         * tests/unictype/test-pr_format_control.c: Regenerated.
80404         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
80405         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
80406         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
80407         * tests/unictype/test-pr_id_continue.c: Regenerated.
80408         * tests/unictype/test-pr_id_start.c: Regenerated.
80409         * tests/unictype/test-pr_ideographic.c: Regenerated.
80410         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
80411         * tests/unictype/test-pr_lowercase.c: Regenerated.
80412         * tests/unictype/test-pr_math.c: Regenerated.
80413         * tests/unictype/test-pr_numeric.c: Regenerated.
80414         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
80415         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
80416         Regenerated.
80417         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
80418         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
80419         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
80420         * tests/unictype/test-pr_other_math.c: Regenerated.
80421         * tests/unictype/test-pr_punctuation.c: Regenerated.
80422         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
80423         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
80424         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
80425         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
80426         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
80427         * tests/unictype/test-pr_uppercase.c: Regenerated.
80428         * tests/unictype/test-pr_xid_continue.c: Regenerated.
80429         * tests/unictype/test-pr_xid_start.c: Regenerated.
80430         * tests/unictype/test-pr_zero_width.c: Regenerated.
80432         Update to Unicode 5.1.0.
80433         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
80434         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
80435         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
80436         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
80437         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
80438         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
80439         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
80440         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
80441         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
80442         (nonspacing_table_ind): Update.
80443         * tests/uniwidth/test-uc_width2.sh: Update expected result.
80445         Update to Unicode 5.1.0.
80446         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
80447         code transform.
80448         * lib/uniname/uniname.c (unicode_character_name,
80449         unicode_name_character): Add the range 0x1Fxxx to the code transform.
80450         * lib/uniname/uninames.h: Regenerated.
80451         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
80453 2009-02-07  Bruno Haible  <bruno@clisp.org>
80455         Merge gen-ctype and gen-lbrk into a single program.
80456         * lib/gen-uni-tables.c: New file, incorporating
80457         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
80458         Add directory prefixes to the names of the generated files.
80459         * lib/unictype/gen-ctype.c: Remove file.
80460         * lib/unilbrk/gen-lbrk.c: Remove file.
80461         * modules/gen-uni-tables: New file.
80462         * modules/unictype/gen-ctype: Remove file.
80463         * modules/unilbrk/gen-lbrk: Remove file.
80465 2009-02-07  Bruno Haible  <bruno@clisp.org>
80467         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
80469         New module 'unistr/u32-strcoll'.
80470         * modules/unistr/u32-strcoll: New file.
80471         * lib/unistr/u32-strcoll.c: New file.
80473         New module 'unistr/u16-strcoll'.
80474         * modules/unistr/u16-strcoll: New file.
80475         * lib/unistr/u16-strcoll.c: New file.
80477         New module 'unistr/u8-strcoll'.
80478         * modules/unistr/u8-strcoll: New file.
80479         * lib/unistr/u8-strcoll.c: New file.
80480         * lib/unistr/u-strcoll.h: New file.
80482 2009-02-07  Bruno Haible  <bruno@clisp.org>
80484         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
80485         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
80486         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
80487         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
80488         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
80489         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
80491 2009-02-07  Bruno Haible  <bruno@clisp.org>
80493         Make 64-bit clean.
80494         * lib/unictype/gen-ctype.c (output_predicate, output_category,
80495         output_combclass, output_bidi_category, output_decimal_digit,
80496         output_digit, output_numeric, output_mirror, output_scripts,
80497         output_ident_category): Use proper width specifier in format strings.
80499 2009-02-07  Bruno Haible  <bruno@clisp.org>
80501         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
80502         failure behaviour.
80504 2009-02-07  Jim Meyering  <meyering@redhat.com>
80506         regex: avoid compilation failure with upcoming gcc-4.4
80507         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
80508         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
80509         "... error: integer overflow in preprocessor expression".
80511 2009-02-05  Ben Pfaff  <blp@gnu.org>
80513         Fix link errors on Windows when close module is used.
80514         * modules/close: Add $(LIB_CLOSE) to Link section.
80515         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
80516         $(LIB_CLOSE) on Windows.
80518 2009-02-05  Jim Meyering  <meyering@redhat.com>
80520         still avoid unused-parameter warnings, but do it cleanly
80521         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
80522         (get_fs_usage): Cast to void instead.
80523         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
80524         (dev_from_mount_options, read_file_system_list): Cast to void.
80525         Prompted by Bruno Haible.
80527 2009-02-04  Jim Meyering  <meyering@redhat.com>
80529         fsusage.c: correct copyright year
80530         * lib/fsusage.c: Reflect year in which the change is pushed into
80532         avoid misc. warnings
80533         * lib/fsusage.c (UNUSED_PARAM): Define.
80534         (get_fs_usage): Mark parameter "disk" as unused.
80535         * lib/getugroups.c (getgrent): Use "void" in prototype.
80536         * lib/mountlist.c: Mark unused parameters.
80537         (read_file_system_list): Declare a local with "const".
80538         * lib/nanosleep.c (getnow): Declare static.
80539         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
80541         dirfd: set errno upon failure
80542         * lib/dirfd.c: Include <errno.h>.
80543         Set errno to ENOTSUP when returning -1.
80544         * modules/dirfd (Depends-on): Add errno.
80545         Suggested by John Kodis <kodis@comcast.net>.
80547 2009-02-01  Bruno Haible  <bruno@clisp.org>
80549         Don't assume sizeof (long) >= sizeof (void *).
80550         * lib/memcmp.c: Include stdint.h.
80551         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
80552         srcp2 to 'const byte *'.
80553         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
80554         types to uintptr_t.
80555         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
80556         * modules/memcmp (Depends-on): Add stdint.
80557         Reported by Ozkan Sezer <sezeroz@gmail.com>.
80559 2009-01-30  Eric Blake  <ebb9@byu.net>
80561         fix more require-before-expand issues
80562         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
80563         expand, AC_PROG_AWK.
80564         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
80566 2009-01-28  Eric Blake  <ebb9@byu.net>
80568         version-etc: use consistent URL formatting
80569         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
80570         Improve formatting.  Use fputs for string without %.
80572 2009-01-28  Jim Meyering  <meyering@redhat.com>
80574         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
80575         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
80576         "underquoted definition of NAME" from autoconf-2.59.
80578 2009-01-28  Bruno Haible  <bruno@clisp.org>
80580         * doc/gnulib.texi: Add "Obsolete modules" to index.
80582 2009-01-28  Jim Meyering  <meyering@redhat.com>
80584         useless-if-before-free: recognize more variants
80585         * build-aux/useless-if-before-free: Also recognize e.g.,
80586         if (NULL != p) free (p);
80588 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
80590         test-getaddrinfo: skip (don't fail) this test when there's no network
80591         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
80592         on the presumption that it means you lack network access.
80594 2009-01-26  Jim Meyering  <meyering@redhat.com>
80596         fflush: avoid warnings on modern systems
80597         * lib/fflush.c (rpl_fflush): Move declarations of locals,
80598         pos and result, into scopes where they're used.
80600 2009-01-26  Eric Blake  <ebb9@byu.net>
80602         Silence warning reintroduced by recent extensions patch.
80603         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
80604         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
80605         autoconf.
80607         Backport improved autoconf semantics of AC_DEFUN_ONCE.
80608         * m4/00gnulib.m4: New file.
80609         * gnulib-tool (func_get_filelist): Always use it.
80610         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
80611         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
80613 2009-01-25  Bruno Haible  <bruno@clisp.org>
80615         Make test-quotearg work on MacOS X and AIX.
80616         * tests/test-quotearg.sh: New file.
80617         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
80618         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
80619         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
80620         include <libintl.h>.
80621         (fake_locale): Remove variable.
80622         (gettext, dgettext, dcgettext): Remove functions.
80623         (main): Instead of setting a fake locale, set a real locale. Call
80624         textdomain and bindtextdomain.
80625         * modules/quotearg-tests (Files): Add the new files.
80626         (Depends-on): Add gettext, setenv, unsetenv.
80627         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
80628         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
80629         Augment TESTS_ENVIRONMENT.
80631 2009-01-25  Bruno Haible  <bruno@clisp.org>
80633         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
80634         fr_FR.ISO8859-1 locale on MacOS X.
80635         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
80636         ja_JP.eucJP locale on MacOS X.
80637         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
80638         zh_CN.GB18030 locale on MacOS X.
80640 2009-01-25  Bruno Haible  <bruno@clisp.org>
80642         Avoid link errors on MacOS X 10.3.
80643         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
80644         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80646 2009-01-25  Bruno Haible  <bruno@clisp.org>
80648         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
80649         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
80650         * modules/pipe (Files): Remove m4/posix_spawn.m4.
80651         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
80652         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
80653         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
80654         posix_spawnattr_init, posix_spawnattr_setsigmask,
80655         posix_spawnattr_setflags, posix_spawnattr_destroy.
80657         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
80658         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
80659         * modules/execute (Files): Remove m4/posix_spawn.m4.
80660         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
80661         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
80662         posix_spawnattr_init, posix_spawnattr_setsigmask,
80663         posix_spawnattr_setflags, posix_spawnattr_destroy.
80665 2009-01-25  Bruno Haible  <bruno@clisp.org>
80667         * lib/glthread/threadlib.c: Include <stdlib.h>.
80669 2009-01-25  Bruno Haible  <bruno@clisp.org>
80671         * lib/glthread/threadlib.c (dummy): New declaration.
80673 2009-01-25  Bruno Haible  <bruno@clisp.org>
80675         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
80676         multibyte characters also for the GB18030 encoding. Don't crash when
80677         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
80679 2009-01-25  Bruno Haible  <bruno@clisp.org>
80681         Avoid redefining 'struct random_data' on OSF/1 5.1.
80682         * lib/stdlib.in.h: Include <random.h> if it exists.
80683         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
80684         HAVE_RANDOM_H. Include <random.h> when testing whether
80685         'struct random_data' exists.
80686         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
80688 2009-01-25  Bruno Haible  <bruno@clisp.org>
80690         Don't install charset.alias on MacOS X >= 10.3.
80691         * lib/localcharset.c (DARWIN7): New macro.
80692         (get_charset_aliases): Hardcode the result for Darwin7.
80693         * modules/localcharset (install-exec-local): Don't install
80694         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
80696 2009-01-25  Bruno Haible  <bruno@clisp.org>
80698         Don't install charset.alias on mingw and Cygwin.
80699         * modules/localcharset (install-exec-local): Don't install
80700         charset.alias on mingw and Cygwin, if the file does not yet exist.
80701         The result for these platforms is hardcoded in localcharset.c.
80703 2009-01-25  Bruno Haible  <bruno@clisp.org>
80705         Make it possible again to use AC_GNU_SOURCE together with gnulib.
80706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
80707         before requiring AC_USE_SYSTEM_EXTENSIONS.
80709 2009-01-25  Jim Meyering  <meyering@redhat.com>
80711         c-strtod: avoid warnings
80712         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
80713         "assignment discards qualifiers from pointer target type" warnings.
80715 2009-01-24  Bruno Haible  <bruno@clisp.org>
80717         Add support for non-UTF-8 locales on MacOS X.
80718         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
80719         canonical encodings. For Darwin 7 and newer, don't map traditional
80720         encodings to UTF-8.
80721         Reported by Vincent Lefevre <vincent@vinc17.org>
80722         at <http://savannah.gnu.org/bugs/?25235>.
80724 2009-01-24  Bruno Haible  <bruno@clisp.org>
80726         * doc/gnulib.texi (Obsolete modules): New section.
80727         Reported by Mike Frysinger <vapier@gentoo.org>.
80729 2009-01-24  Bruno Haible  <bruno@clisp.org>
80731         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
80732         (%.dvi): New rule.
80734 2009-01-24  Bruno Haible  <bruno@clisp.org>
80736         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
80737         Reported by Eric Blake.
80739 2009-01-24  Bruno Haible  <bruno@clisp.org>
80741         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
80742         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
80743         Reported by Gary V. Vaughan <gary@gnu.org>.
80745 2009-01-24  Bruno Haible  <bruno@clisp.org>
80747         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
80749 2009-01-23  Bruno Haible  <bruno@clisp.org>
80751         Make c-strtod, c-strtold usable in libraries.
80752         * lib/c-strtod.c: Include string.h instead of xalloc.h.
80753         (C_STRTOD): Call strdup instead of xstrdup.
80754         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
80755         * modules/c-strtold (Depends-on): Likewise.
80756         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
80757         * NEWS: Mention the change.
80758         Reported by Michael Gold <mgold@ncf.ca>.
80760 2009-01-23  Jim Meyering  <meyering@redhat.com>
80762         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
80763         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
80764         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
80766 2009-01-23  Simon Josefsson  <simon@josefsson.org>
80768         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
80769         GNU CoreUtils.
80770         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
80771         * modules/version-etc (Description): Update.
80773 2009-01-22  Bruno Haible  <bruno@clisp.org>
80775         Cache the C locale object.
80776         * lib/c-strtod.c (c_locale_cache): New variable.
80777         (c_locale): New function.
80778         (C_STRTOD): Use it, and don't call freelocale.
80779         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
80780         Suggested by Paolo Bonzini.
80782 2009-01-21  Bruno Haible  <bruno@clisp.org>
80784         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
80785         conditions other than overflow.
80787 2009-01-21  Bruno Haible  <bruno@clisp.org>
80789         * lib/c-strtod.c: Include errno.h.
80790         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
80791         value from STRTOD_L and STRTOD.
80793 2009-01-21  Bruno Haible  <bruno@clisp.org>
80794         and Jim Meyering  <meyering@redhat.com>
80796         nanosleep: skip configure test (fail it) for apple universal builds
80797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
80798         universal builds, assume that nanosleep does not work.
80799         * modules/nanosleep (Depends-on): Add multiarch.
80801         mktime: skip configure test (fail it) for apple universal builds
80802         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
80803         universal builds, assume that mktime does not work.
80804         * modules/mktime (Depends-on): Add multiarch.
80806 2009-01-21  Eric Blake  <ebb9@byu.net>
80808         multiarch: avoid expand-before-require warning
80809         * modules/multiarch (configure.ac): Require, rather than expand,
80810         gl_MULTIARCH.
80811         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
80812         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
80813         enforce that all clients require it.  Partial reversion of
80814         2008-12-29 patch.
80816         error: avoid expand-before-require warning
80817         * modules/errno (configure.ac): Require, rather than expand,
80818         gl_HEADER_ERRNO_H.
80819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
80820         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
80821         enforce that all clients require it.
80823         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
80824         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
80825         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
80826         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
80828 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
80830         Revert:
80831         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
80833         regex: do not depend on obsolete modules.
80834         * modules/regex: Remove memcmp and memmove.
80836 2009-01-20  Bruno Haible  <bruno@clisp.org>
80838         Make the 'link' module link on Windows NT 4.
80839         * lib/link.c (_WIN32_WINNT): Don't define.
80840         (CreateHardLinkFuncType): New type.
80841         (CreateHardLinkFunc, initialized): New variables.
80842         (initialize): New function.
80843         (link): Invoke CreateHardLink indirectly through the function pointer.
80845 2009-01-20  Bruno Haible  <bruno@clisp.org>
80847         Fix compilation failure on mingw.
80848         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
80850 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
80852         * doc/c-strtod.texi: Mention a couple of restrictions.
80854 2009-01-20  Jim Meyering  <meyering@redhat.com>
80856         gettimeofday: move more declarations out of functions
80857         * lib/gettimeofday.c: Move extern declarations of tzset and
80858         gmtime out of containing functions.  Prompted by Bruno Haible.
80860 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
80862         regex: do not depend on obsolete modules.
80863         * modules/regex: Remove memcmp and memmove.
80865 2009-01-19  Bruno Haible  <bruno@clisp.org>
80867         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
80868         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
80869         gl_BIGENDIAN, not AC_C_BIGENDIAN.
80870         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
80871         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
80873 2009-01-19  Bruno Haible  <bruno@clisp.org>
80875         * tests/test-link.c: Include <errno.h>.
80876         (main): Exit with code 77 when a hard link cannot be created due to
80877         the file system.
80878         * tests/test-link.sh: Skip test when a hard link cannot be created due
80879         to the file system.
80880         Suggested by Eric Blake.
80882 2009-01-19  Martin Lambers  <marlam@marlam.de>
80884         * modules/link-tests: New file.
80885         * tests/test-link.sh: New file.
80886         * tests/test-link.c: New file.
80888 2009-01-19  Eric Blake  <ebb9@byu.net>
80890         doc: mention another function added in cygwin 1.7.0
80891         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
80892         Another new function in cygwin 1.7.
80894 2009-01-19  Bruno Haible  <bruno@clisp.org>
80896         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
80897         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
80898         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
80899         gl_BIGENDIAN, not AC_C_BIGENDIAN.
80900         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80901         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
80902         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
80903         * m4/md4.m4 (gl_MD4): Likewise.
80904         * m4/md5.m4 (gl_MD5): Likewise.
80905         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
80906         * m4/sha1.m4 (gl_SHA1): Likewise.
80907         * m4/sha256.m4 (gl_SHA256): Likewise.
80908         * m4/sha512.m4 (gl_SHA512): Likewise.
80910 2009-01-19  Bruno Haible  <bruno@clisp.org>
80912         * modules/uniname/uniname-tests (Depends-on): Add progname.
80913         * tests/uniname/test-uninames.c: Include progname.h.
80914         (main): Call set_program_name.
80916         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
80917         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
80918         (main): Call set_program_name.
80920         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
80921         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
80922         (main): Call set_program_name.
80924         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
80925         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
80926         (main): Call set_program_name.
80928         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
80929         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
80930         (main): Call set_program_name.
80932         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
80933         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
80934         (main): Call set_program_name.
80936         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
80937         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
80938         (main): Call set_program_name.
80940         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
80941         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
80942         (main): Call set_program_name.
80944         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
80945         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
80946         (main): Call set_program_name.
80948 2009-01-19  Eric Blake  <ebb9@byu.net>
80950         test-unistd: test previous patch
80951         * tests/test-unistd.c: Test *_FILENO macros.
80953         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
80954         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
80955         Guarantee a definition.
80956         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
80957         * modules/unistd-safer (Depends-on): Add dependency on unistd.
80958         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
80959         * lib/dup-safer.c (STDERR_FILENO): Likewise.
80960         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
80961         Likewise.
80962         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
80963         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
80964         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
80965         Likewise.
80966         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
80967         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
80968         (STDERR_FILENO): Likewise.
80969         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
80970         (STDERR_FILENO): Likewise.
80971         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
80972         (STDERR_FILENO): Likewise.
80973         Reported by Elbert Pol.
80975 2009-01-19  Eric Blake  <ebb9@byu.net>
80977         doc: mention more functions added in cygwin 1.7.0
80978         * doc/posix-functions/abort.texi (abort): Update wording related
80979         to cygwin.
80980         * doc/posix-functions/daylight.texi (daylight): Likewise.
80981         * doc/posix-functions/optarg.texi (optarg): Likewise.
80982         * doc/posix-functions/optarg.texi (opterr): Likewise.
80983         * doc/posix-functions/optarg.texi (optind): Likewise.
80984         * doc/posix-functions/optarg.texi (optopt): Likewise.
80985         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
80986         worked in 1.5.x, and was withdrawn in 1.7.
80987         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
80988         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
80989         cygwin versions.
80990         * doc/posix-functions/perror.texi (perror): Likewise.
80991         * doc/posix-functions/printf.texi (printf): Likewise.
80992         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
80993         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
80994         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
80995         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
80996         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
80997         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
80998         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
80999         Likewise.
81000         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
81001         Likewise.
81002         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
81003         this function.
81004         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
81005         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
81006         Likewise.
81007         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
81008         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
81009         * doc/posix-functions/confstr.texi (confstr): Likewise.
81010         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
81011         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
81012         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
81013         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
81014         * doc/posix-functions/fputws.texi (fputws): Likewise.
81015         * doc/posix-functions/fwide.texi (fwide): Likewise.
81016         * doc/posix-functions/getwc.texi (getwc): Likewise.
81017         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
81018         * doc/posix-functions/putwc.texi (putwc): Likewise.
81019         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
81020         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
81021         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
81022         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
81023         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
81024         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
81025         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
81026         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
81027         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
81028         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
81029         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
81031 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
81033         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
81034         * lib/ioctl.c: Include <sys/ioctl.h>.
81036 2009-01-19  Simon Josefsson  <simon@josefsson.org>
81038         * modules/getdate-tests (Depends-on): Add progname.
81039         * tests/test-getdate.c: Use progname module, to avoid link errors
81040         on non-glibc systems.
81042 2009-01-18  Simon Josefsson  <simon@josefsson.org>
81044         * modules/filenamecat-tests (Depends-on): Add progname.
81045         * modules/fstrcmp-tests (Depends-on): Likewise.
81047         * tests/test-filenamecat.c: Use progname module, to avoid link
81048         errors on non-glibc systems.
81049         * tests/test-fstrcmp.c: Likewise.
81051 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
81053         gettimeofday: avoid warning: nested extern declaration of 'localtime'
81054         * lib/gettimeofday.c: Move extern declaration out of function.
81056 2009-01-18  Bruno Haible  <bruno@clisp.org>
81058         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
81059         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
81060         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
81062 2009-01-18  Bruno Haible  <bruno@clisp.org>
81064         * lib/strftime.c (MEMPCPY): Remove unused macro.
81065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
81067 2009-01-18  Martin Lambers  <marlam@marlam.de>
81069         New module 'link'.
81070         * lib/unistd.in.h (link): New declaration.
81071         * lib/link.c: New file.
81072         * m4/link.m4: New file.
81073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
81074         HAVE_LINK.
81075         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
81076         * modules/link: New file.
81077         * doc/posix-functions/link.texi: Mention the new module.
81079 2009-01-18  Bruno Haible  <bruno@clisp.org>
81081         * tests/test-avltree_list.c (main): Call set_program_name.
81082         * tests/test-avltree_oset.c (main): Likewise.
81083         * tests/test-obstack-printf.c: Include progname.h.
81084         (main): Call set_program_name.
81085         * tests/test-quotearg.c: Include progname.h.
81086         (main): Call set_program_name.
81087         * tests/test-xmemdup0.c: Include progname.h.
81088         (main): Call set_program_name.
81090 2009-01-18  Bruno Haible  <bruno@clisp.org>
81092         New module 'alphasort'.
81093         * lib/dirent.in.h (alphasort): New declaration.
81094         * lib/alphasort.c: New file, from glibc with modifications.
81095         * m4/alphasort.m4: New file.
81096         * modules/alphasort: New file.
81097         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
81098         HAVE_ALPHASORT.
81099         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
81100         HAVE_ALPHASORT.
81101         * doc/posix-functions/alphasort.texi: Mention the new module and the
81102         portability problems.
81104 2009-01-18  Bruno Haible  <bruno@clisp.org>
81106         New module 'scandir'.
81107         * lib/dirent.in.h (scandir): New declaration.
81108         * lib/scandir.c: New file, from glibc with modifications.
81109         * m4/scandir.m4: New file.
81110         * modules/scandir: New file.
81111         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
81112         HAVE_SCANDIR.
81113         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
81114         HAVE_SCANDIR.
81115         * doc/posix-functions/scandir.texi: Mention the new module and the
81116         portability problems.
81118 2009-01-17  Bruno Haible  <bruno@clisp.org>
81120         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
81121         Update documentation.
81122         (func_remove_suffix): Escape all dots in the suffix. Update
81123         documentation.
81124         (func_filter_filelist): Update documentation.
81125         Reported by Ralf Wildenhues.
81127 2009-01-17  Bruno Haible  <bruno@clisp.org>
81129         * modules/dprintf-posix-tests: New file.
81130         * tests/test-dprintf-posix.sh: New file.
81131         * tests/test-dprintf-posix.c: New file.
81133         New modules 'dprintf', 'dprintf-posix'.
81134         * lib/stdio.in.h (dprintf): New declaration.
81135         * lib/dprintf.c: New file.
81136         * m4/dprintf.m4: New file.
81137         * m4/dprintf-posix.m4: New file.
81138         * modules/dprintf: New file.
81139         * modules/dprintf-posix: New file.
81140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
81141         HAVE_DPRINTF, REPLACE_DPRINTF.
81142         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
81143         HAVE_DPRINTF, REPLACE_DPRINTF.
81144         * doc/posix-functions/dprintf.texi: Mention the new modules.
81146 2009-01-17  Bruno Haible  <bruno@clisp.org>
81148         * modules/vdprintf-posix-tests: New file.
81149         * tests/test-vdprintf-posix.sh: New file.
81150         * tests/test-vdprintf-posix.c: New file.
81152         New modules 'vdprintf', 'vdprintf-posix'.
81153         * lib/stdio.in.h (vdprintf): New declaration.
81154         * lib/vdprintf.c: New file.
81155         * m4/vdprintf.m4: New file.
81156         * m4/vdprintf-posix.m4: New file.
81157         * modules/vdprintf: New file.
81158         * modules/vdprintf-posix: New file.
81159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
81160         HAVE_VDPRINTF, REPLACE_VDPRINTF.
81161         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
81162         HAVE_VDPRINTF, REPLACE_VDPRINTF.
81163         * doc/posix-functions/vdprintf.texi: Mention the new modules.
81165 2009-01-17  Bruno Haible  <bruno@clisp.org>
81167         Fix replacement of fopen on mingw.
81168         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
81169         mingw.
81171 2009-01-17  Bruno Haible  <bruno@clisp.org>
81173         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
81174         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
81176 2009-01-17  Bruno Haible  <bruno@clisp.org>
81178         Avoid test-fflush2.sh failure on mingw.
81179         * tests/test-fflush2.c: Include binary-io.h.
81180         (main): Put standard input into binary mode.
81181         * modules/fflush-tests (Depends-on): Add binary-io.
81183 2009-01-17  Bruno Haible  <bruno@clisp.org>
81185         * lib/wchar.in.h: In another particular situation, include only the
81186         system's <wchar.h> file.
81187         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
81188         Reported by Albert Chin-A-Young <china@thewrittenword.com>
81189         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
81191 2009-01-17  Bruno Haible  <bruno@clisp.org>
81193         Support for stripping executables in --enable-relocatable.
81194         * build-aux/install-reloc: Expect one more argument, or an environment
81195         variable RELOC_STRIP_PROG. If set, strip the destination program and
81196         its wrapper.
81197         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
81198         RELOC_STRIP_PROG.
81199         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
81200         to set RELOCATABLE_STRIP.
81201         * NEWS: Mention the new Makefile requirement.
81203 2009-01-17  Bruno Haible  <bruno@clisp.org>
81205         * build-aux/install-reloc: Remove debugging information left over by
81206         C compiler on MacOS X.
81208 2009-01-17  Bruno Haible  <bruno@clisp.org>
81210         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
81211         * lib/progreloc.c (find_executable): Fix type of pointer passed to
81212         _NSGetExecutablePath.
81214 2009-01-16  Jim Meyering  <meyering@redhat.com>
81216         strerror: avoid warnings about discarding "const"
81217         * lib/strerror.c (rpl_strerror): Instead of returning a const
81218         string from each and every "case", use a variable, and add a single
81219         cast after the switch.
81221 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
81223         * lib/arpa_inet.in.h: Add extern "C" block for C++.
81225 2009-01-16  Bruno Haible  <bruno@clisp.org>
81227         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
81228         array initializer syntax that also works in C++ mode.
81229         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81231 2009-01-16  Jim Meyering  <meyering@redhat.com>
81233         poll: suppress a warning
81234         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
81235         to ignore "...unsigned expression < 0 is always false" warnings.
81237 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
81239         poll: remove declarations of unused variables
81240         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
81241         sockbuf and optlen.
81243 2009-01-15  Bruno Haible  <bruno@clisp.org>
81245         Make fflush-after-ungetc POSIX compliant on BSD systems.
81246         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
81247         (clear_ungetc_buffer): Implement also for other systems.
81248         (rpl_fflush): On glibc systems, invoke
81249         clear_ungetc_buffer_preserving_position. Otherwise, invoke
81250         clear_ungetc_buffer after fetching the stream's position, not before.
81252 2009-01-15  Bruno Haible  <bruno@clisp.org>
81254         Make fflush-after-ungetc POSIX compliant on glibc systems.
81255         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
81256         after ungetc.
81257         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
81258         (rpl_fflush): On glibc systems, simply call the system's fflush
81259         function after clearing the ungetc buffer.
81260         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
81261         Instead, lseek only to the end of file, then use the system's fseeko
81262         for the rest. On glibc systems, reset the EOF indicator bit.
81264 2009-01-15  Jim Meyering  <meyering@redhat.com>
81266         openmp.m4: revert quote-adding change, for portability to older autoconf
81267         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
81268         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
81269         Simon Josefsson noticed the problem when using autoconf-2.61.
81271 2009-01-15  Bruno Haible  <bruno@clisp.org>
81273         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
81274         * tests/test-fflush2.c (ASSERT): Always fail.
81275         (main): Add two tests for fflush() after ungetc(), taking into account
81276         the Austin Group's clarification.
81277         Suggested by Eric Blake.
81279 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
81281         mktime.m4: remove K&R-style function prototypes
81282         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
81283         for the Sun C++ compiler.
81285 2009-01-14  Bruno Haible  <bruno@clisp.org>
81287         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
81288         while including <wchar.h>.
81289         * lib/wchar.in.h: In two particular situations on HP-UX, include only
81290         the system's <wchar.h> file.
81291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81293 2009-01-14  Bruno Haible  <bruno@clisp.org>
81295         * m4/csharp.m4: Don't mention gettext on the serial number line.
81296         * m4/csharpexec.m4: Likewise.
81297         * m4/eaccess.m4: Likewise.
81298         * m4/javaexec.m4: Likewise.
81299         * m4/sig_atomic_t.m4: Likewise.
81300         * m4/tmpdir.m4: Likewise.
81301         * m4/intldir.m4: Bump gettext version.
81302         * m4/lib-ld.m4: Likewise.
81304 2009-01-14  Bruno Haible  <bruno@clisp.org>
81306         * lib/progname.c (set_program_name): Add more comments.
81307         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
81309 2009-01-14  Simon Josefsson  <simon@josefsson.org>
81311         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
81312         were sys/stat.h does not define it.
81314 2009-01-14  Jim Meyering  <meyering@redhat.com>
81316         many *.m4 files: improve m4 quoting
81317         99% of this change was performed by running the following commands:
81318         git ls-files | grep '\.m4$' | xargs perl -pi \
81319           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
81320           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
81321           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
81322           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
81323         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
81324         The remainder were to add Copyright dates, increment serial numbers,
81325         undo some changes in comments, exclude m4/intl.m4, and add quotes
81326         around the "1" in ",1" where the unusual spacing prohibited the
81327         above regexps from doing the job.  For more details, see
81328         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
81329         * m4/acl.m4: Modified.
81330         * m4/afs.m4: Likewise.
81331         * m4/alloca.m4: Likewise.
81332         * m4/argp.m4: Likewise.
81333         * m4/argz.m4: Likewise.
81334         * m4/atexit.m4: Likewise.
81335         * m4/bison-i18n.m4: Likewise.
81336         * m4/bison.m4: Likewise.
81337         * m4/byteswap.m4: Likewise.
81338         * m4/c-stack.m4: Likewise.
81339         * m4/c-strtod.m4: Likewise.
81340         * m4/calloc.m4: Likewise.
81341         * m4/canonicalize-lgpl.m4: Likewise.
81342         * m4/chown.m4: Likewise.
81343         * m4/clock_time.m4: Likewise.
81344         * m4/codeset.m4: Likewise.
81345         * m4/copy-file.m4: Likewise.
81346         * m4/csharp.m4: Likewise.
81347         * m4/csharpcomp.m4: Likewise.
81348         * m4/csharpexec.m4: Likewise.
81349         * m4/d-ino.m4: Likewise.
81350         * m4/d-type.m4: Likewise.
81351         * m4/dirfd.m4: Likewise.
81352         * m4/double-slash-root.m4: Likewise.
81353         * m4/eaccess.m4: Likewise.
81354         * m4/eealloc.m4: Likewise.
81355         * m4/environ.m4: Likewise.
81356         * m4/errno_h.m4: Likewise.
81357         * m4/euidaccess.m4: Likewise.
81358         * m4/execute.m4: Likewise.
81359         * m4/fatal-signal.m4: Likewise.
81360         * m4/fchdir.m4: Likewise.
81361         * m4/fcntl_h.m4: Likewise.
81362         * m4/fileblocks.m4: Likewise.
81363         * m4/filenamecat.m4: Likewise.
81364         * m4/findprog.m4: Likewise.
81365         * m4/flexmember.m4: Likewise.
81366         * m4/fnmatch.m4: Likewise.
81367         * m4/fopen.m4: Likewise.
81368         * m4/fpending.m4: Likewise.
81369         * m4/fprintf-posix.m4: Likewise.
81370         * m4/free.m4: Likewise.
81371         * m4/frexp.m4: Likewise.
81372         * m4/frexpl.m4: Likewise.
81373         * m4/fsusage.m4: Likewise.
81374         * m4/ftruncate.m4: Likewise.
81375         * m4/gc-camellia.m4: Likewise.
81376         * m4/gc-random.m4: Likewise.
81377         * m4/gc.m4: Likewise.
81378         * m4/getaddrinfo.m4: Likewise.
81379         * m4/getcwd-abort-bug.m4: Likewise.
81380         * m4/getcwd-path-max.m4: Likewise.
81381         * m4/getdate.m4: Likewise.
81382         * m4/getdomainname.m4: Likewise.
81383         * m4/getgroups.m4: Likewise.
81384         * m4/gethostname.m4: Likewise.
81385         * m4/gethrxtime.m4: Likewise.
81386         * m4/getline.m4: Likewise.
81387         * m4/getloadavg.m4: Likewise.
81388         * m4/getndelim2.m4: Likewise.
81389         * m4/getpass.m4: Likewise.
81390         * m4/gettext.m4: Likewise.
81391         * m4/gettime.m4: Likewise.
81392         * m4/gettimeofday.m4: Likewise.
81393         * m4/gnulib-common.m4: Likewise.
81394         * m4/group-member.m4: Likewise.
81395         * m4/host-os.m4: Likewise.
81396         * m4/iconv.m4: Likewise.
81397         * m4/iconv_open.m4: Likewise.
81398         * m4/inet_ntop.m4: Likewise.
81399         * m4/inet_pton.m4: Likewise.
81400         * m4/inline.m4: Likewise.
81401         * m4/intldir.m4: Likewise.
81402         * m4/intlmacosx.m4: Likewise.
81403         * m4/intmax.m4: Likewise.
81404         * m4/intmax_t.m4: Likewise.
81405         * m4/inttypes.m4: Likewise.
81406         * m4/inttypes_h.m4: Likewise.
81407         * m4/inttypes-pri.m4: Likewise.
81408         * m4/isapipe.m4: Likewise.
81409         * m4/isnand.m4: Likewise.
81410         * m4/isnanf.m4: Likewise.
81411         * m4/isnanl.m4: Likewise.
81412         * m4/javacomp.m4: Likewise.
81413         * m4/javaexec.m4: Likewise.
81414         * m4/jm-winsz1.m4: Likewise.
81415         * m4/jm-winsz2.m4: Likewise.
81416         * m4/lchown.m4: Likewise.
81417         * m4/lcmessage.m4: Likewise.
81418         * m4/ldexpl.m4: Likewise.
81419         * m4/lib-ld.m4: Likewise.
81420         * m4/lib-link.m4: Likewise.
81421         * m4/libsigsegv.m4: Likewise.
81422         * m4/link-follow.m4: Likewise.
81423         * m4/localcharset.m4: Likewise.
81424         * m4/locale-fr.m4: Likewise.
81425         * m4/locale-ja.m4: Likewise.
81426         * m4/locale-tr.m4: Likewise.
81427         * m4/locale-zh.m4: Likewise.
81428         * m4/lock.m4: Likewise.
81429         * m4/longlong.m4: Likewise.
81430         * m4/ls-mntd-fs.m4: Likewise.
81431         * m4/lstat.m4: Likewise.
81432         * m4/malloc.m4: Likewise.
81433         * m4/mathl.m4: Likewise.
81434         * m4/mbrtowc.m4: Likewise.
81435         * m4/mbstate_t.m4: Likewise.
81436         * m4/mbswidth.m4: Likewise.
81437         * m4/memchr.m4: Likewise.
81438         * m4/memcmp.m4: Likewise.
81439         * m4/memcpy.m4: Likewise.
81440         * m4/memmem.m4: Likewise.
81441         * m4/memmove.m4: Likewise.
81442         * m4/mempcpy.m4: Likewise.
81443         * m4/memrchr.m4: Likewise.
81444         * m4/memset.m4: Likewise.
81445         * m4/minmax.m4: Likewise.
81446         * m4/mkdir-slash.m4: Likewise.
81447         * m4/mkdtemp.m4: Likewise.
81448         * m4/mktime.m4: Likewise.
81449         * m4/mmap-anon.m4: Likewise.
81450         * m4/mountlist.m4: Likewise.
81451         * m4/nanosleep.m4: Likewise.
81452         * m4/nls.m4: Likewise.
81453         * m4/nocrash.m4: Likewise.
81454         * m4/open.m4: Likewise.
81455         * m4/openat.m4: Likewise.
81456         * m4/openmp.m4: Likewise.
81457         * m4/pathmax.m4: Likewise.
81458         * m4/perl.m4: Likewise.
81459         * m4/physmem.m4: Likewise.
81460         * m4/pipe.m4: Likewise.
81461         * m4/po.m4: Likewise.
81462         * m4/poll.m4: Likewise.
81463         * m4/posixtm.m4: Likewise.
81464         * m4/posixver.m4: Likewise.
81465         * m4/printf-frexp.m4: Likewise.
81466         * m4/printf-frexpl.m4: Likewise.
81467         * m4/printf-posix.m4: Likewise.
81468         * m4/printf-posix-rpl.m4: Likewise.
81469         * m4/printf.m4: Likewise.
81470         * m4/progtest.m4: Likewise.
81471         * m4/putenv.m4: Likewise.
81472         * m4/readline.m4: Likewise.
81473         * m4/readlink.m4: Likewise.
81474         * m4/readutmp.m4: Likewise.
81475         * m4/realloc.m4: Likewise.
81476         * m4/regex.m4: Likewise.
81477         * m4/relocatable.m4: Likewise.
81478         * m4/relocatable-lib.m4: Likewise.
81479         * m4/rename-dest-slash.m4: Likewise.
81480         * m4/rename.m4: Likewise.
81481         * m4/rmdir-errno.m4: Likewise.
81482         * m4/rmdir.m4: Likewise.
81483         * m4/roundf.m4: Likewise.
81484         * m4/roundl.m4: Likewise.
81485         * m4/rpmatch.m4: Likewise.
81486         * m4/save-cwd.m4: Likewise.
81487         * m4/selinux-selinux-h.m4: Likewise.
81488         * m4/setenv.m4: Likewise.
81489         * m4/settime.m4: Likewise.
81490         * m4/sig2str.m4: Likewise.
81491         * m4/sig_atomic_t.m4: Likewise.
81492         * m4/signalblocking.m4: Likewise.
81493         * m4/signbit.m4: Likewise.
81494         * m4/sigpipe.m4: Likewise.
81495         * m4/sockets.m4: Likewise.
81496         * m4/sockpfaf.m4: Likewise.
81497         * m4/st_dm_mode.m4: Likewise.
81498         * m4/stat-time.m4: Likewise.
81499         * m4/stdbool.m4: Likewise.
81500         * m4/stdint.m4: Likewise.
81501         * m4/stdint_h.m4: Likewise.
81502         * m4/stpcpy.m4: Likewise.
81503         * m4/stpncpy.m4: Likewise.
81504         * m4/strcase.m4: Likewise.
81505         * m4/strchrnul.m4: Likewise.
81506         * m4/strcspn.m4: Likewise.
81507         * m4/strdup.m4: Likewise.
81508         * m4/strftime.m4: Likewise.
81509         * m4/strndup.m4: Likewise.
81510         * m4/strnlen.m4: Likewise.
81511         * m4/strpbrk.m4: Likewise.
81512         * m4/strptime.m4: Likewise.
81513         * m4/strsep.m4: Likewise.
81514         * m4/strtod.m4: Likewise.
81515         * m4/strtoimax.m4: Likewise.
81516         * m4/strtok_r.m4: Likewise.
81517         * m4/strtol.m4: Likewise.
81518         * m4/strtoll.m4: Likewise.
81519         * m4/strtoul.m4: Likewise.
81520         * m4/strtoull.m4: Likewise.
81521         * m4/strtoumax.m4: Likewise.
81522         * m4/strverscmp.m4: Likewise.
81523         * m4/threadlib.m4: Likewise.
81524         * m4/timegm.m4: Likewise.
81525         * m4/tm_gmtoff.m4: Likewise.
81526         * m4/tmpdir.m4: Likewise.
81527         * m4/tmpfile.m4: Likewise.
81528         * m4/tzset.m4: Likewise.
81529         * m4/uintmax_t.m4: Likewise.
81530         * m4/unlinkdir.m4: Likewise.
81531         * m4/unlocked-io.m4: Likewise.
81532         * m4/uptime.m4: Likewise.
81533         * m4/userspec.m4: Likewise.
81534         * m4/utimbuf.m4: Likewise.
81535         * m4/utime.m4: Likewise.
81536         * m4/utimes-null.m4: Likewise.
81537         * m4/utimes.m4: Likewise.
81538         * m4/vararrays.m4: Likewise.
81539         * m4/vasnprintf.m4: Likewise.
81540         * m4/vfprintf-posix.m4: Likewise.
81541         * m4/vprintf-posix.m4: Likewise.
81542         * m4/wait-process.m4: Likewise.
81543         * m4/wchar_t.m4: Likewise.
81544         * m4/wint_t.m4: Likewise.
81545         * m4/write-any-file.m4: Likewise.
81546         * m4/yield.m4: Likewise.
81548 2009-01-13  Bruno Haible  <bruno@clisp.org>
81550         Avoid test-copy-file.sh failures when ACL support insufficient.
81551         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
81552         TESTS_ENVIRONMENT.
81553         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
81554         Reported by Jim Meyering.
81556 2009-01-13  Bruno Haible  <bruno@clisp.org>
81558         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
81559         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
81560         * modules/unistdio/u8-printf-parse (Files): Likewise.
81561         * modules/unistdio/u32-printf-parse (Files): Likewise.
81562         * modules/unistdio/ulc-printf-parse (Files): Likewise.
81564 2009-01-13  Simon Josefsson  <simon@josefsson.org>
81566         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
81567         and m4/inttypes_h.m4 too.
81569 2009-01-12  Eric Blake  <ebb9@byu.net>
81571         tests: IRIX 6.2 cc can't compile -0.0 into .data
81572         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
81573         rather than at compile-time.
81574         * tests/test-floorl.c (minus_zero): Likewise.
81575         * tests/test-frexpl.c (minus_zero): Likewise.
81576         * tests/test-isnan.c (minus_zerol): Likewise.
81577         * tests/test-isnanl.h (minus_zero): Likewise.
81578         * tests/test-ldexpl.c (minus_zero): Likewise.
81579         * tests/test-roundl.c (minus_zero): Likewise.
81580         * tests/test-signbit.c (minus_zerol): Likewise.
81581         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
81582         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
81583         * tests/test-truncl.c (minus_zero): Likewise.
81584         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
81585         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
81586         Reported by Tom G. Christensen and Nelson H. F. Beebe.
81588 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81590         regex: fix glibc bug 9697
81591         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
81592         handling.
81594 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81596         regex: fix glibc bug 697
81597         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
81598         being NULL also if there are no backreferences.
81600 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
81602         regex: merge glibc changes
81603         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
81604         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
81605         re_string_skip_chars, re_string_reconstruct): Likewise.
81606         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
81608 2009-01-07  Jim Meyering  <meyering@redhat.com>
81610         poll: filter through cppi
81611         * lib/poll.c: Indent cpp directives to reflect nesting.
81613 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
81615         poll: don't return uninitialized
81616         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
81618 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
81620         avoid compile failure on AIX 6.1
81621         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
81622         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
81624 2009-01-04  Jim Meyering  <meyering@redhat.com>
81626         remove duplicate inclusion of <stdio.h>
81627         * tests/test-fprintf-posix.c: Likewise.
81628         * tests/test-printf-posix.c: Likewise.
81629         * tests/test-snprintf-posix.c: Likewise.
81630         * tests/test-sprintf-posix.c: Likewise.
81631         * tests/test-vasprintf-posix.c: Likewise.
81632         * tests/test-vfprintf-posix.c: Likewise.
81633         * tests/test-vprintf-posix.c: Likewise.
81634         * tests/test-vsnprintf-posix.c: Likewise.
81635         * tests/test-vsprintf-posix.c: Likewise.
81637 2009-01-03  Jim Meyering  <meyering@redhat.com>
81639         gnulib-tool: fix sed-based filtering
81640         * gnulib-tool (func_filter_filelist): Remove extra backslash
81641         in sed_fff_filter definition.
81643 2009-01-02  Jim Meyering  <meyering@redhat.com>
81645         strftime: avoid compilation failure on Solaris 2.6
81646         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
81647         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
81648         Don't #define mbrlen or mbsinit, since now they're guaranteed to
81649         be available.  Reported by Tom G. Christensen.  Details in
81650         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
81652 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81653             Bruno Haible  <bruno@clisp.org>
81655         Speed up gnulib-tool by doing more string processing through shell
81656         built-ins.
81657         * gnulib-tool (fast_func_append): New variable.
81658         (func_remove_prefix, func_remove_suffix): New functions.
81659         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
81660         (func_filter_filelist): New function.
81661         (func_get_dependencies): Use func_remove_suffix instead of sed.
81662         (func_get_automake_snippet): Use func_filter_filelist instead of a
81663         subshell and sed invocation.
81665 2009-01-01  Bruno Haible  <bruno@clisp.org>
81667         Fix a security bug.
81668         * gnulib-tool (func_import, import, update): Don't allow the characters
81669         '"', '$', '`', '\' in macro arguments that become part of commands that
81670         are evaluated.
81672 2009-01-01  Bruno Haible  <bruno@clisp.org>
81674         * gnulib-tool (func_reset_sigpipe): Add more comments.
81676 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81678         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
81679         func_emit_tests_Makefile_am, func_import): Abort loops early if we
81680         already know the answer.
81682 2009-01-01  Jim Meyering  <meyering@redhat.com>
81684         * lib/version-etc.c (version_etc_va): Update copyright year.
81686 2008-12-30  Bruno Haible  <bruno@clisp.org>
81688         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
81689         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
81690         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
81692 2008-12-29  Eric Blake  <ebb9@byu.net>
81694         multiarch: avoid autoconf AC_REQUIRE bug
81695         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
81696         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
81697         2.63 and older.
81698         Reported by Bruno Haible, and analyzed in
81699         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
81701 2008-12-29  Bruno Haible  <bruno@clisp.org>
81703         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
81704         files in subdirectories correctly.
81705         Reported by Ralf Wildenhues.
81707 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81709         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
81710         rather than 'join FILE -', for Solaris join.
81712 2008-12-29  Bruno Haible  <bruno@clisp.org>
81714         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
81715         quoting.
81716         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81717         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
81718         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
81719         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
81720         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
81721         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
81722         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
81723         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
81724         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
81725         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
81726         * m4/nls.m4 (AM_NLS): Likewise.
81727         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
81728         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
81729         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81730         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
81731         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
81732         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
81733         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
81734         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
81735         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
81736         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
81737         * m4/xsize.m4 (gl_XSIZE): Likewise.
81738         Suggested by Jim Meyering.
81740 2008-11-17  Bruce Korb  <bkorb@gnu.org>
81742         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
81743         * lib/parse-duration.c: use a switch instead of cascading if's.
81745 2008-12-29  Eric Blake  <ebb9@byu.net>
81747         wchar.h: supply WEOF on Irix 5.3
81748         * lib/wchar.in.h (wint_t): Also supply WEOF.
81749         * lib/wctype.in.h (wint_t): Likewise.
81750         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
81751         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
81752         Reported by Tom G. Christensen.
81754 2008-12-26  Bruno Haible  <bruno@clisp.org>
81756         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
81757         i486, i586, i686.
81759 2008-12-26  Bruno Haible  <bruno@clisp.org>
81761         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
81763 2008-12-26  Bruno Haible  <bruno@clisp.org>
81765         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
81766         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
81767         not __STDC_CONSTANT_MACROS.
81768         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
81770 2008-12-25  Bruno Haible  <bruno@clisp.org>
81772         Add support for universal builds to vasnprintf.
81773         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
81774         universal builds, guess no.
81775         * modules/vasnprintf-posix (Depends-on): Add multiarch.
81776         * modules/vasprintf-posix (Depends-on): Likewise.
81777         * modules/fprintf-posix (Depends-on): Likewise.
81778         * modules/vfprintf-posix (Depends-on): Likewise.
81779         * modules/snprintf-posix (Depends-on): Likewise.
81780         * modules/vsnprintf-posix (Depends-on): Likewise.
81781         * modules/sprintf-posix (Depends-on): Likewise.
81782         * modules/vsprintf-posix (Depends-on): Likewise.
81783         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81784         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81785         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81786         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81787         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81788         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81789         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81791         Add support for universal builds to <inttypes.h>.
81792         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
81793         _SCNu64_PREFIX): In Apple
81794         universal builds, define directly, using _LP64.
81795         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
81796         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
81797         * modules/inttypes (Depends-on): Add multiarch.
81798         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
81800         Add support for universal builds to <stdint.h>.
81801         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
81802         universal builds, define directly, using _LP64.
81803         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
81804         Apple universal builds, don't test for the size and suffix of ptrdiff_t
81805         and size_t.
81806         * modules/stdint (Depends-on): Add multiarch.
81807         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
81809         New module 'multiarch'.
81810         * modules/multiarch: New file.
81811         * m4/multiarch.m4: New file.
81813 2008-12-25  Bruno Haible  <bruno@clisp.org>
81815         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
81817 2008-12-25  Bruno Haible  <bruno@clisp.org>
81819         * modules/btowc (License): Relicense under LGPLv2+.
81820         * modules/mbsinit (License): Likewise.
81821         * modules/mbrtowc (License): Likewise.
81822         * modules/wcrtomb (License): Likewise.
81823         * modules/streq (License): Likewise.
81824         Reported by David Lutterkort <lutter@redhat.com>.
81826 2008-12-23  Bruno Haible  <bruno@clisp.org>
81828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
81830 2008-12-23  Bruno Haible  <bruno@clisp.org>
81832         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
81833         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
81834         GETADDRINFO_LIB, not in LIBS.
81835         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
81836         * modules/canon-host (Link): Likewise.
81837         * NEWS: Mention the change.
81838         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
81839         GETADDRINFO_LIB.
81841 2008-12-22  Bruno Haible  <bruno@clisp.org>
81843         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
81844         * doc/posix-functions/iswalpha_l.texi: Likewise.
81845         * doc/posix-functions/iswblank_l.texi: Likewise.
81846         * doc/posix-functions/iswcntrl_l.texi: Likewise.
81847         * doc/posix-functions/iswctype_l.texi: Likewise.
81848         * doc/posix-functions/iswdigit_l.texi: Likewise.
81849         * doc/posix-functions/iswgraph_l.texi: Likewise.
81850         * doc/posix-functions/iswlower_l.texi: Likewise.
81851         * doc/posix-functions/iswprint_l.texi: Likewise.
81852         * doc/posix-functions/iswpunct_l.texi: Likewise.
81853         * doc/posix-functions/iswspace_l.texi: Likewise.
81854         * doc/posix-functions/iswupper_l.texi: Likewise.
81855         * doc/posix-functions/iswxdigit_l.texi: Likewise.
81856         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
81857         * doc/posix-functions/open_wmemstream.texi: Likewise.
81858         * doc/posix-functions/swscanf.texi: Likewise.
81859         * doc/posix-functions/towctrans_l.texi: Likewise.
81860         * doc/posix-functions/towlower.texi: Likewise.
81861         * doc/posix-functions/towlower_l.texi: Likewise.
81862         * doc/posix-functions/towupper.texi: Likewise.
81863         * doc/posix-functions/towupper_l.texi: Likewise.
81864         * doc/posix-functions/vfwprintf.texi: Likewise.
81865         * doc/posix-functions/vfwscanf.texi: Likewise.
81866         * doc/posix-functions/vswscanf.texi: Likewise.
81867         * doc/posix-functions/vwprintf.texi: Likewise.
81868         * doc/posix-functions/vwscanf.texi: Likewise.
81869         * doc/posix-functions/wcpcpy.texi: Likewise.
81870         * doc/posix-functions/wcpncpy.texi: Likewise.
81871         * doc/posix-functions/wcscasecmp.texi: Likewise.
81872         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
81873         * doc/posix-functions/wcscoll_l.texi: Likewise.
81874         * doc/posix-functions/wcsdup.texi: Likewise.
81875         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81876         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
81877         * doc/posix-functions/wcsnlen.texi: Likewise.
81878         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81879         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
81880         * doc/posix-functions/wctrans_l.texi: Likewise.
81881         * doc/posix-functions/wctype_l.texi: Likewise.
81882         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
81883         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
81884         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
81885         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
81886         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
81887         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
81888         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
81889         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
81890         * doc/glibc-functions/wcschrnul.texi: Likewise.
81891         * doc/glibc-functions/wcsftime_l.texi: Likewise.
81892         * doc/glibc-functions/wcstod_l.texi: Likewise.
81893         * doc/glibc-functions/wcstof_l.texi: Likewise.
81894         * doc/glibc-functions/wcstol_l.texi: Likewise.
81895         * doc/glibc-functions/wcstold_l.texi: Likewise.
81896         * doc/glibc-functions/wcstoll_l.texi: Likewise.
81897         * doc/glibc-functions/wcstoq.texi: Likewise.
81898         * doc/glibc-functions/wcstoul_l.texi: Likewise.
81899         * doc/glibc-functions/wcstoull_l.texi: Likewise.
81900         * doc/glibc-functions/wcstouq.texi: Likewise.
81901         * doc/glibc-functions/wmempcpy.texi: Likewise.
81903 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
81904             Eric Blake  <ebb9@byu.net>
81905             Paolo Bonzini  <bonzini@gnu.org>
81906             Bruno Haible  <bruno@clisp.org>
81908         Make c-stack work on Haiku.
81909         * lib/c-stack.c (SA_ONSTACK): Define fallback.
81910         (c_stack_action): Use SA_ONSTACK flag.
81912 2008-12-22  Bruno Haible  <bruno@clisp.org>
81914         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
81916 2008-12-22  Bruno Haible  <bruno@clisp.org>
81918         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
81919         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
81920         being overridden.
81921         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
81922         New macros.
81923         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
81924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
81925         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
81926         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
81928 2008-12-22  Bruno Haible  <bruno@clisp.org>
81930         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
81931         from test code.
81933 2008-12-22  Eric Blake  <ebb9@byu.net>
81935         Avoid gcc warnings on cygwin.
81936         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
81937         Avoid unused variable.
81938         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
81939         Likewise.
81941 2008-12-22  Bruno Haible  <bruno@clisp.org>
81943         Remove HAVE_MBRTOWC conditionals.
81944         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
81945         (mbscasecmp): Assume mbrtowc function.
81946         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
81947         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
81948         * lib/mbschr.c: Include mbuiter.h unconditionally.
81949         (mbschr): Assume mbrtowc function.
81950         * lib/mbscspn.c: Include mbuiter.h unconditionally.
81951         (mbscspn): Assume mbrtowc function.
81952         * lib/mbslen.c: Include mbuiter.h unconditionally.
81953         (mbslen): Assume mbrtowc function.
81954         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
81955         (mbsncasecmp): Assume mbrtowc function.
81956         * lib/mbsnlen.c: Include mbiter.h unconditionally.
81957         (mbsnlen): Assume mbrtowc function.
81958         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
81959         (mbspbrk): Assume mbrtowc function.
81960         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
81961         (mbspcasecmp): Assume mbrtowc function.
81962         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
81963         (mbsrchr): Assume mbrtowc function.
81964         * lib/mbssep.c: Include mbuiter.h unconditionally.
81965         (mbssep): Assume mbrtowc function.
81966         * lib/mbsspn.c: Include mbuiter.h unconditionally.
81967         (mbsspn): Assume mbrtowc function.
81968         * lib/mbsstr.c: Include mbuiter.h unconditionally.
81969         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
81970         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
81971         (mbstok_r): Assume mbrtowc function.
81972         * lib/propername.c: Include mbuiter.h unconditionally.
81973         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
81974         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
81975         (trim2): Assume mbrtowc function.
81976         * lib/mbswidth.c (mbsinit): Remove fallback definition.
81977         (mbsnwidth): Assume mbrtowc function.
81978         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
81979         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
81980         fallback definitions.
81981         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
81983 2008-12-22  Bruno Haible  <bruno@clisp.org>
81985         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
81987 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
81989         * modules/regex: Request emulations for the mb*/wc* functions we need.
81990         * m4/regex.m4: Don't look for those functions here.
81991         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
81993 2008-12-22  Bruno Haible  <bruno@clisp.org>
81995         * modules/fnmatch (Depends-on): Remove duplicated dependency.
81997 2008-12-21  Bruno Haible  <bruno@clisp.org>
81999         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
82000         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
82001         (Include): Remove conditionalization.
82002         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
82003         (Include): Remove conditionalization.
82004         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
82005         (Include): Remove conditionalization.
82006         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
82007         * m4/mbfile.m4 (gl_MBFILE): Likewise.
82008         * NEWS: Mention the change.
82009         Reported by Alan Hourihane <alanh@fairlite.co.uk>
82010         via Sergey Poznyakoff <gray@gnu.org.ua>.
82012 2008-12-21  Bruno Haible  <bruno@clisp.org>
82014         * MODULES.html.sh (Extended multibyte and wide character utilities
82015         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
82016         wcrtomb, wcsrtombs.
82017         (Support for systems lacking POSIX:2008): Add accept, bind, close,
82018         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
82019         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
82020         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
82022 2008-12-21  Bruno Haible  <bruno@clisp.org>
82024         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
82026 2008-12-21  Bruno Haible  <bruno@clisp.org>
82028         * modules/wcsnrtombs-tests: New file.
82029         * tests/test-wcsnrtombs1.sh: New file.
82030         * tests/test-wcsnrtombs2.sh: New file.
82031         * tests/test-wcsnrtombs3.sh: New file.
82032         * tests/test-wcsnrtombs4.sh: New file.
82033         * tests/test-wcsnrtombs.c: New file.
82035         New module 'wcsnrtombs'.
82036         * lib/wchar.in.h (wcsnrtombs): New declaration.
82037         * lib/wcsnrtombs.c: New file.
82038         * lib/wcsrtombs-state.c: New file.
82039         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
82040         (internal_state): Remove variable.
82041         * m4/wcsnrtombs.m4: New file.
82042         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
82043         compilation units.
82044         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
82045         HAVE_WCSNRTOMBS.
82046         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
82047         HAVE_WCSNRTOMBS.
82048         * modules/wcsnrtombs: New file.
82049         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
82050         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
82052 2008-12-21  Bruno Haible  <bruno@clisp.org>
82054         * modules/wcsrtombs-tests: New file.
82055         * tests/test-wcsrtombs1.sh: New file.
82056         * tests/test-wcsrtombs2.sh: New file.
82057         * tests/test-wcsrtombs3.sh: New file.
82058         * tests/test-wcsrtombs4.sh: New file.
82059         * tests/test-wcsrtombs.c: New file.
82061         New module 'wcsrtombs'.
82062         * lib/wchar.in.h (wcsrtombs): New declaration.
82063         * lib/wcsrtombs.c: New file.
82064         * m4/wcsrtombs.m4: New file.
82065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
82066         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
82067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
82068         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
82069         * modules/wcsrtombs: New file.
82070         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
82071         bugs.
82073 2008-12-21  Bruno Haible  <bruno@clisp.org>
82075         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
82076         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
82077         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
82078         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
82079         if not correct.
82080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
82081         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
82082         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82083         m4/locale-zh.m4, m4/codeset.m4.
82084         * doc/posix-functions/wcrtomb.texi: Document the bug.
82086 2008-12-21  Bruno Haible  <bruno@clisp.org>
82088         Work around a btowc() bug on IRIX 6.5.
82089         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
82090         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
82091         REPLACE_WTOBC if not.
82092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
82093         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
82094         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
82096 2008-12-21  Bruno Haible  <bruno@clisp.org>
82098         * modules/wcrtomb-tests: New file.
82099         * tests/test-wcrtomb.sh: New file.
82100         * tests/test-wcrtomb.c: New file.
82102         New module 'wcrtomb'.
82103         * lib/wchar.in.h (wcrtomb): New declaration.
82104         * lib/wcrtomb.c: New file.
82105         * m4/wcrtomb.m4: New file.
82106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
82107         HAVE_WCRTOMB.
82108         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
82109         HAVE_WCRTOMB.
82110         * modules/wcrtomb: New file.
82111         * doc/posix-functions/wcrtomb.texi: Mention the new module.
82113 2008-12-21  Bruno Haible  <bruno@clisp.org>
82115         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
82116         * modules/mbsrtowcs (Files): Likewise.
82117         * modules/wctob (Files): Likewise.
82118         * modules/c-strcase-tests (Files): Likewise.
82119         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
82120         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
82121         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
82122         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
82123         * modules/vasnprintf-posix-tests (Files): Likewise.
82125 2008-12-21  William Pursell  <bill.pursell@gmail.com>
82127         gitlog-to-changelog: pass all command-line arguments to git-log
82128         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
82129         it is sometimes convenient to filter the commits in various ways.
82130         gitlog-to-changelog only allows --since to specify a start date,
82131         but git-log itself supports many other filtering mechanisms.
82132         At the moment, I want to filter by branch name.  Rather than
82133         adding a --branch option to gitlog-to-changelog, it seems more
82134         flexible to simply pass all options directly to git-log and let
82135         git do the work.  Notice that this effectively makes --since a
82136         redundant option for gitlog-to-changelog, but removing it would
82137         require current usage to change since calls would then require
82138         an additional '--'.
82140 2008-12-21  Bruno Haible  <bruno@clisp.org>
82142         * modules/mbsnrtowcs-tests: New file.
82143         * tests/test-mbsnrtowcs1.sh: New file.
82144         * tests/test-mbsnrtowcs2.sh: New file.
82145         * tests/test-mbsnrtowcs3.sh: New file.
82146         * tests/test-mbsnrtowcs4.sh: New file.
82147         * tests/test-mbsnrtowcs.c: New file.
82149         New module 'mbsnrtowcs'.
82150         * lib/wchar.in.h (mbsnrtowcs): New declaration.
82151         * lib/mbsnrtowcs.c: New file.
82152         * lib/mbsrtowcs-state.c: New file.
82153         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
82154         (internal_state): Remove variable.
82155         * m4/mbsnrtowcs.m4: New file.
82156         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
82157         compilation units.
82158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
82159         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
82160         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
82161         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
82162         * modules/mbsnrtowcs: New file.
82163         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
82164         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
82165         portability problem.
82167 2008-12-21  Bruno Haible  <bruno@clisp.org>
82169         Work around mbsrtowcs bug.
82170         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
82171         (gl_FUNC_MBSRTOWCS): Invoke it.
82172         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82173         m4/locale-zh.m4.
82174         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
82176 2008-12-21  Bruno Haible  <bruno@clisp.org>
82178         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
82180 2008-12-21  Bruno Haible  <bruno@clisp.org>
82182         Update doc for AIX.
82183         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
82184         16-bit wchar_t type.
82185         * doc/posix-functions/btowc.texi: Likewise.
82186         * doc/posix-functions/fgetwc.texi: Likewise.
82187         * doc/posix-functions/fgetws.texi: Likewise.
82188         * doc/posix-functions/fputwc.texi: Likewise.
82189         * doc/posix-functions/fputws.texi: Likewise.
82190         * doc/posix-functions/fwide.texi: Likewise.
82191         * doc/posix-functions/fwprintf.texi: Likewise.
82192         * doc/posix-functions/fwscanf.texi: Likewise.
82193         * doc/posix-functions/getwchar.texi: Likewise.
82194         * doc/posix-functions/getwc.texi: Likewise.
82195         * doc/posix-functions/iswalnum.texi: Likewise.
82196         * doc/posix-functions/iswalpha.texi: Likewise.
82197         * doc/posix-functions/iswblank.texi: Likewise.
82198         * doc/posix-functions/iswcntrl.texi: Likewise.
82199         * doc/posix-functions/iswctype.texi: Likewise.
82200         * doc/posix-functions/iswdigit.texi: Likewise.
82201         * doc/posix-functions/iswgraph.texi: Likewise.
82202         * doc/posix-functions/iswlower.texi: Likewise.
82203         * doc/posix-functions/iswprint.texi: Likewise.
82204         * doc/posix-functions/iswpunct.texi: Likewise.
82205         * doc/posix-functions/iswspace.texi: Likewise.
82206         * doc/posix-functions/iswupper.texi: Likewise.
82207         * doc/posix-functions/iswxdigit.texi: Likewise.
82208         * doc/posix-functions/mbrtowc.texi: Likewise.
82209         * doc/posix-functions/mbsrtowcs.texi: Likewise.
82210         * doc/posix-functions/mbstowcs.texi: Likewise.
82211         * doc/posix-functions/mbtowc.texi: Likewise.
82212         * doc/posix-functions/putwchar.texi: Likewise.
82213         * doc/posix-functions/putwc.texi: Likewise.
82214         * doc/posix-functions/swprintf.texi: Likewise.
82215         * doc/posix-functions/tolower.texi: Likewise.
82216         * doc/posix-functions/toupper.texi: Likewise.
82217         * doc/posix-functions/towctrans.texi: Likewise.
82218         * doc/posix-functions/ungetwc.texi: Likewise.
82219         * doc/posix-functions/vswprintf.texi: Likewise.
82220         * doc/posix-functions/wcrtomb.texi: Likewise.
82221         * doc/posix-functions/wcscat.texi: Likewise.
82222         * doc/posix-functions/wcschr.texi: Likewise.
82223         * doc/posix-functions/wcscmp.texi: Likewise.
82224         * doc/posix-functions/wcscoll.texi: Likewise.
82225         * doc/posix-functions/wcscpy.texi: Likewise.
82226         * doc/posix-functions/wcscspn.texi: Likewise.
82227         * doc/posix-functions/wcsftime.texi: Likewise.
82228         * doc/posix-functions/wcslen.texi: Likewise.
82229         * doc/posix-functions/wcsncat.texi: Likewise.
82230         * doc/posix-functions/wcsncmp.texi: Likewise.
82231         * doc/posix-functions/wcsncpy.texi: Likewise.
82232         * doc/posix-functions/wcspbrk.texi: Likewise.
82233         * doc/posix-functions/wcsrchr.texi: Likewise.
82234         * doc/posix-functions/wcsrtombs.texi: Likewise.
82235         * doc/posix-functions/wcsspn.texi: Likewise.
82236         * doc/posix-functions/wcsstr.texi: Likewise.
82237         * doc/posix-functions/wcstod.texi: Likewise.
82238         * doc/posix-functions/wcstof.texi: Likewise.
82239         * doc/posix-functions/wcstoimax.texi: Likewise.
82240         * doc/posix-functions/wcstok.texi: Likewise.
82241         * doc/posix-functions/wcstold.texi: Likewise.
82242         * doc/posix-functions/wcstoll.texi: Likewise.
82243         * doc/posix-functions/wcstol.texi: Likewise.
82244         * doc/posix-functions/wcstombs.texi: Likewise.
82245         * doc/posix-functions/wcstoull.texi: Likewise.
82246         * doc/posix-functions/wcstoul.texi: Likewise.
82247         * doc/posix-functions/wcstoumax.texi: Likewise.
82248         * doc/posix-functions/wcswidth.texi: Likewise.
82249         * doc/posix-functions/wcsxfrm.texi: Likewise.
82250         * doc/posix-functions/wctob.texi: Likewise.
82251         * doc/posix-functions/wctomb.texi: Likewise.
82252         * doc/posix-functions/wctrans.texi: Likewise.
82253         * doc/posix-functions/wctype.texi: Likewise.
82254         * doc/posix-functions/wcwidth.texi: Likewise.
82255         * doc/posix-functions/wmemchr.texi: Likewise.
82256         * doc/posix-functions/wmemcmp.texi: Likewise.
82257         * doc/posix-functions/wmemcpy.texi: Likewise.
82258         * doc/posix-functions/wmemmove.texi: Likewise.
82259         * doc/posix-functions/wmemset.texi: Likewise.
82260         * doc/posix-functions/wprintf.texi: Likewise.
82261         * doc/posix-functions/wscanf.texi: Likewise.
82263 2008-12-21  Bruno Haible  <bruno@clisp.org>
82265         Update doc for HP-UX 11.11.
82266         * doc/posix-functions/btowc.texi: Clarify that the function is missing
82267         in HP-UX version 11.00, not in all versions of HP-UX 11.
82268         * doc/posix-functions/fwide.texi: Likewise.
82269         * doc/posix-functions/fwprintf.texi: Likewise.
82270         * doc/posix-functions/fwscanf.texi: Likewise.
82271         * doc/posix-functions/inet_ntop.texi: Likewise.
82272         * doc/posix-functions/inet_pton.texi: Likewise.
82273         * doc/posix-functions/mbrlen.texi: Likewise.
82274         * doc/posix-functions/mbrtowc.texi: Likewise.
82275         * doc/posix-functions/mbsinit.texi: Likewise.
82276         * doc/posix-functions/mbsrtowcs.texi: Likewise.
82277         * doc/posix-functions/swprintf.texi: Likewise.
82278         * doc/posix-functions/swscanf.texi: Likewise.
82279         * doc/posix-functions/towctrans.texi: Likewise.
82280         * doc/posix-functions/vfwprintf.texi: Likewise.
82281         * doc/posix-functions/vswprintf.texi: Likewise.
82282         * doc/posix-functions/vwprintf.texi: Likewise.
82283         * doc/posix-functions/wcrtomb.texi: Likewise.
82284         * doc/posix-functions/wcsrtombs.texi: Likewise.
82285         * doc/posix-functions/wcsstr.texi: Likewise.
82286         * doc/posix-functions/wctob.texi: Likewise.
82287         * doc/posix-functions/wctrans.texi: Likewise.
82288         * doc/posix-functions/wmemchr.texi: Likewise.
82289         * doc/posix-functions/wmemcmp.texi: Likewise.
82290         * doc/posix-functions/wmemcpy.texi: Likewise.
82291         * doc/posix-functions/wmemmove.texi: Likewise.
82292         * doc/posix-functions/wmemset.texi: Likewise.
82293         * doc/posix-functions/wprintf.texi: Likewise.
82294         * doc/posix-functions/wscanf.texi: Likewise.
82296 2008-12-21  Bruno Haible  <bruno@clisp.org>
82298         Work around a portability problem.
82299         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
82300         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
82302 2008-12-20  Bruno Haible  <bruno@clisp.org>
82304         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
82305         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
82306         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
82307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
82308         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
82310         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
82311         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
82312         set.
82313         (GNULIB_defined_mbstate_t): New macro.
82314         (mbsinit): Redefine if REPLACE_MBSINIT is set.
82315         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
82316         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
82317         reuses the system's mbrtowc function but works around the bugs.
82318         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
82319         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
82320         macros.
82321         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
82322         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
82323         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
82324         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
82325         REPLACE_MBSINIT if mbsinit needs to be overridden.
82326         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
82327         REPLACE_MBSINIT, REPLACE_MBRTOWC.
82328         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
82329         REPLACE_MBSINIT, REPLACE_MBRTOWC.
82330         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
82331         m4/locale-zh.m4.
82332         (Depends): Add mbsinit.
82333         * modules/mbsinit (Depends): Add mbrtowc.
82334         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
82336 2008-12-20  Bruno Haible  <bruno@clisp.org>
82338         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
82339         so that there are no conversion errors on AIX.
82340         * tests/test-mbsrtowcs.c (main): LIkewise.
82342 2008-12-20  Bruno Haible  <bruno@clisp.org>
82344         Work around wctob bug on Solaris <= 9.
82345         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
82346         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
82347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
82348         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
82349         * modules/wctob (Files): Add m4/locale-fr.m4.
82350         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
82352 2008-12-20  Bruno Haible  <bruno@clisp.org>
82354         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
82355         /dev/null.
82356         * tests/test-select-in.sh: Likewise.
82357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82359 2008-12-20  Bruno Haible  <bruno@clisp.org>
82361         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
82362         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
82363         Cygwin 1.5.x.
82365 2008-12-20  Bruno Haible  <bruno@clisp.org>
82367         Ensure mbstate_t is defined on HP-UX 11.11.
82368         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
82369         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
82370         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
82371         AC_USE_SYSTEM_EXTENSIONS.
82372         * modules/fnmatch (Depends-on): Add extensions.
82373         * modules/mbrlen (Depends-on): Likewise.
82374         * modules/mbrtowc (Depends-on): Likewise.
82375         * modules/mbsinit (Depends-on): Likewise.
82376         * modules/mbsrtowcs (Depends-on): Likewise.
82377         * modules/mbswidth (Depends-on): Likewise.
82378         * modules/quotearg (Depends-on): Likewise.
82379         * modules/strftime (Depends-on): Likewise.
82381 2008-12-20  Bruno Haible  <bruno@clisp.org>
82383         Ensure wctob is declared on IRIX 6.5.
82384         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
82385         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
82386         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
82387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
82388         of HAVE_WCTOB.
82389         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
82390         HAVE_WCTOB.
82391         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
82393 2008-12-19  Bruno Haible  <bruno@clisp.org>
82395         * modules/mbsrtowcs-tests: New file.
82396         * tests/test-mbsrtowcs1.sh: New file.
82397         * tests/test-mbsrtowcs2.sh: New file.
82398         * tests/test-mbsrtowcs3.sh: New file.
82399         * tests/test-mbsrtowcs4.sh: New file.
82400         * tests/test-mbsrtowcs.c: New file.
82402         New module 'mbsrtowcs'.
82403         * lib/wchar.in.h (mbsrtowcs): New declaration.
82404         * lib/mbsrtowcs.c: New file.
82405         * m4/mbsrtowcs.m4: New file.
82406         * modules/mbsrtowcs: New file.
82407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
82408         HAVE_MBSRTOWCS.
82409         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
82410         HAVE_MBSRTOWCS.
82411         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
82413 2008-12-19  Bruno Haible  <bruno@clisp.org>
82415         New module 'mbrlen'.
82416         * lib/wchar.in.h (mbrlen): New declaration.
82417         * lib/mbrlen.c: New file.
82418         * m4/mbrlen.m4: New file.
82419         * modules/mbrlen: New file.
82420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
82421         HAVE_MBRLEN.
82422         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
82423         HAVE_MBRLEN.
82424         * doc/posix-functions/mbrlen.texi: Document the new module.
82426 2008-12-19  Bruno Haible  <bruno@clisp.org>
82428         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
82429         * modules/mbrtowc (Depends-on): Add verify.
82430         Suggested by Paul Eggert.
82432 2008-12-18  Bruno Haible  <bruno@clisp.org>
82434         * modules/mbsinit-tests: New file.
82435         * tests/test-mbsinit.sh: New file.
82436         * tests/test-mbsinit.c: New file.
82438 2008-12-18  Bruno Haible  <bruno@clisp.org>
82440         * modules/mbrtowc-tests: New file.
82441         * tests/test-mbrtowc1.sh: New file.
82442         * tests/test-mbrtowc2.sh: New file.
82443         * tests/test-mbrtowc3.sh: New file.
82444         * tests/test-mbrtowc4.sh: New file.
82445         * tests/test-mbrtowc.c: New file.
82447         New module 'mbrtowc'.
82448         * lib/wchar.in.h (mbstate_t): Override when the system does not have
82449         mbsinit and mbrtowc.
82450         (mbrtowc): New declaration.
82451         * lib/mbrtowc.c: New file.
82452         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
82453         * modules/mbrtowc: New file.
82454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
82455         HAVE_MBRTOWC.
82456         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
82457         HAVE_MBRTOWC.
82458         * doc/posix-functions/mbrtowc.texi: Document the new module.
82460 2008-12-18  Bruno Haible  <bruno@clisp.org>
82462         New module 'wctob'.
82463         * lib/wchar.in.h (wctob): New declaration.
82464         * lib/wctob.c: New file.
82465         * m4/wctob.m4: New file.
82466         * modules/wctob: New file.
82467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
82468         HAVE_WCTOB.
82469         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
82470         * doc/posix-functions/wctob.texi: Document the new module.
82472 2008-12-18  Bruno Haible  <bruno@clisp.org>
82474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
82475         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
82477 2008-12-18  Simon Josefsson  <simon@josefsson.org>
82479         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
82480         G. Christensen" <tgc@jupiterrise.com>.
82482         * lib/flock.c: Need to include errno.h.  Reported by "Tom
82483         G. Christensen" <tgc@jupiterrise.com>.
82485         * lib/flock.c: Need to include string.h.  Reported by "Tom
82486         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
82487         <ebb9@byu.net>.
82489 2008-12-18  Bruno Haible  <bruno@clisp.org>
82491         * m4/locale-ja.m4: New file, from GNU gettext.
82493 2008-12-17  Bruno Haible  <bruno@clisp.org>
82495         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
82496         Suggested by Eric Blake.
82498 2008-12-17  Bruno Haible  <bruno@clisp.org>
82500         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
82502 2008-12-17  Bruno Haible  <bruno@clisp.org>
82504         * lib/mbsinit.c: Include verify.h. Verify an assumption.
82505         * modules/mbsinit (Depends-on): Add verify.
82506         Suggested by Paul Eggert.
82508 2008-12-17  Bruno Haible  <bruno@clisp.org>
82510         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
82511         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
82512         gl_FUNC_MBRTOWC.
82513         * m4/mbiter.m4 (gl_MBITER): LIkewise.
82514         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
82515         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
82516         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
82517         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
82518         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
82519         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
82520         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
82521         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
82522         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
82523         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
82524         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
82525         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
82526         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
82527         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
82528         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
82529         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
82530         * modules/trim (configure.ac): Likewise.
82532 2008-12-17  Bruno Haible  <bruno@clisp.org>
82534         * modules/btowc-tests: New file.
82535         * tests/test-btowc1.sh: New file.
82536         * tests/test-btowc2.sh: New file.
82537         * tests/test-btowc.c: New file.
82539         New module 'btowc'.
82540         * lib/wchar.in.h (btowc): New declaration.
82541         * lib/btowc.c: New file.
82542         * m4/btowc.m4: New file.
82543         * modules/btowc: New file.
82544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
82545         HAVE_BTOWC.
82546         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
82547         * doc/posix-functions/btowc.texi: Document the new module.
82549 2008-12-17  Bruno Haible  <bruno@clisp.org>
82551         New module 'mbsinit'.
82552         * lib/wchar.in.h (mbsinit): New declaration.
82553         * lib/mbsinit.c: New file.
82554         * m4/mbsinit.m4: New file.
82555         * modules/mbsinit: New file.
82556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
82557         HAVE_MBSINIT.
82558         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
82559         HAVE_MBSINIT.
82560         * doc/posix-functions/mbsinit.texi: Document the new module.
82562 2008-12-16  Bruno Haible  <bruno@clisp.org>
82564         * lib/unistd.in.h: Add comment.
82565         * tests/test-environ.c: Don't include <stdlib.h>.
82567 2008-12-16  Bruno Haible  <bruno@clisp.org>
82569         * lib/parse-duration.h (parse_duration): Document return value
82570         convention.
82571         * lib/parse-duration.c: Include specification header first. Add
82572         comments.
82573         (_): Remove macro.
82574         (parse_year_month_day, parse_hour_minute_second): Move side effects
82575         outside of strchr call.
82576         (parse_non_iso8601): Move side effects outside of isspace call.
82577         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
82578         call.
82580 2008-12-16  Bruno Haible  <bruno@clisp.org>
82582         * tests/test-parse-duration.sh: Produce no output when the test
82583         succeeds.
82585 2008-12-16  Bruno Haible  <bruno@clisp.org>
82587         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
82588         expressions.
82590 2008-12-15  Bruno Haible  <bruno@clisp.org>
82592         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
82593         * doc/glibc-functions/flistxattr.texi: Likewise.
82594         * doc/glibc-functions/fopencookie.texi: Likewise.
82595         * doc/glibc-functions/fremovexattr.texi: Likewise.
82596         * doc/glibc-functions/fsetxattr.texi: Likewise.
82597         * doc/glibc-functions/getxattr.texi: Likewise.
82598         * doc/glibc-functions/lgetxattr.texi: Likewise.
82599         * doc/glibc-functions/listxattr.texi: Likewise.
82600         * doc/glibc-functions/llistxattr.texi: Likewise.
82601         * doc/glibc-functions/lremovexattr.texi: Likewise.
82602         * doc/glibc-functions/lsetxattr.texi: Likewise.
82603         * doc/glibc-functions/removexattr.texi: Likewise.
82604         * doc/glibc-functions/setxattr.texi: Likewise.
82605         * doc/posix-functions/open_memstream.texi: Likewise.
82607 2008-12-15  Eric Blake  <ebb9@byu.net>
82609         Update doc for cygwin 1.7.
82610         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
82611         functions.
82612         * doc/posix-functions/fchmodat.texi: Likewise.
82613         * doc/posix-functions/fchownat.texi: Likewise.
82614         * doc/posix-functions/fdopendir.texi: Likewise.
82615         * doc/posix-functions/fmemopen.texi: Likewise.
82616         * doc/posix-functions/freeaddrinfo.texi: Likewise.
82617         * doc/posix-functions/fstatat.texi: Likewise.
82618         * doc/posix-functions/futimens.texi: Likewise.
82619         * doc/posix-functions/gai_strerror.texi: Likewise.
82620         * doc/posix-functions/getaddrinfo.texi: Likewise.
82621         * doc/posix-functions/getnameinfo.texi: Likewise.
82622         * doc/posix-functions/if_freenameindex.texi: Likewise.
82623         * doc/posix-functions/if_indextoname.texi: Likewise.
82624         * doc/posix-functions/if_nameindex.texi: Likewise.
82625         * doc/posix-functions/if_nametoindex.texi: Likewise.
82626         * doc/posix-functions/insque.texi: Likewise.
82627         * doc/posix-functions/linkat.texi: Likewise.
82628         * doc/posix-functions/llrint.texi: Likewise.
82629         * doc/posix-functions/llrintf.texi: Likewise.
82630         * doc/posix-functions/llrintl.texi: Likewise.
82631         * doc/posix-functions/lockf.texi: Likewise.
82632         * doc/posix-functions/lrintl.texi: Likewise.
82633         * doc/posix-functions/mkdirat.texi: Likewise.
82634         * doc/posix-functions/mkfifoat.texi: Likewise.
82635         * doc/posix-functions/mknodat.texi: Likewise.
82636         * doc/posix-functions/mq_close.texi: Likewise.
82637         * doc/posix-functions/mq_getattr.texi: Likewise.
82638         * doc/posix-functions/mq_notify.texi: Likewise.
82639         * doc/posix-functions/mq_open.texi: Likewise.
82640         * doc/posix-functions/mq_receive.texi: Likewise.
82641         * doc/posix-functions/mq_send.texi: Likewise.
82642         * doc/posix-functions/mq_setattr.texi: Likewise.
82643         * doc/posix-functions/mq_timedreceive.texi: Likewise.
82644         * doc/posix-functions/mq_timedsend.texi: Likewise.
82645         * doc/posix-functions/mq_unlink.texi: Likewise.
82646         * doc/posix-functions/open_memstream.texi: Likewise.
82647         * doc/posix-functions/openat.texi: Likewise.
82648         * doc/posix-functions/posix_fadvise.texi: Likewise.
82649         * doc/posix-functions/posix_fallocate.texi: Likewise.
82650         * doc/posix-functions/posix_madvise.texi: Likewise.
82651         * doc/posix-functions/posix_memalign.texi: Likewise.
82652         * doc/posix-functions/posix_openpt.texi: Likewise.
82653         * doc/posix-functions/readlinkat.texi: Likewise.
82654         * doc/posix-functions/remque.texi: Likewise.
82655         * doc/posix-functions/renameat.texi: Likewise.
82656         * doc/posix-functions/rintl.texi: Likewise.
82657         * doc/posix-functions/sem_unlink.texi: Likewise.
82658         * doc/posix-functions/shm_open.texi: Likewise.
82659         * doc/posix-functions/shm_unlink.texi: Likewise.
82660         * doc/posix-functions/signgam.texi: Likewise.
82661         * doc/posix-functions/sigset.texi: Likewise.
82662         * doc/posix-functions/stpcpy.texi: Likewise.
82663         * doc/posix-functions/stpncpy.texi: Likewise.
82664         * doc/posix-functions/strerror.texi: Likewise.
82665         * doc/posix-functions/strtod.texi: Likewise.
82666         * doc/posix-functions/symlinkat.texi: Likewise.
82667         * doc/posix-functions/unlinkat.texi: Likewise.
82668         * doc/posix-functions/utimensat.texi: Likewise.
82669         * doc/glibc-functions/bindresvport.texi: Likewise.
82670         * doc/glibc-functions/dn_expand.texi: Likewise.
82671         * doc/glibc-functions/exp10.texi: Likewise.
82672         * doc/glibc-functions/exp10f.texi: Likewise.
82673         * doc/glibc-functions/fgetxattr.texi: Likewise.
82674         * doc/glibc-functions/flistxattr.texi: Likewise.
82675         * doc/glibc-functions/fopencookie.texi: Likewise.
82676         * doc/glibc-functions/freeifaddrs.texi: Likewise.
82677         * doc/glibc-functions/fremovexattr.texi: Likewise.
82678         * doc/glibc-functions/fsetxattr.texi: Likewise.
82679         * doc/glibc-functions/getifaddrs.texi: Likewise.
82680         * doc/glibc-functions/getxattr.texi: Likewise.
82681         * doc/glibc-functions/lgetxattr.texi: Likewise.
82682         * doc/glibc-functions/listxattr.texi: Likewise.
82683         * doc/glibc-functions/llistxattr.texi: Likewise.
82684         * doc/glibc-functions/lremovexattr.texi: Likewise.
82685         * doc/glibc-functions/lsetxattr.texi: Likewise.
82686         * doc/glibc-functions/pow10.texi: Likewise.
82687         * doc/glibc-functions/pow10f.texi: Likewise.
82688         * doc/glibc-functions/rcmd_af.texi: Likewise.
82689         * doc/glibc-functions/removexattr.texi: Likewise.
82690         * doc/glibc-functions/res_init.texi: Likewise.
82691         * doc/glibc-functions/res_mkquery.texi: Likewise.
82692         * doc/glibc-functions/res_query.texi: Likewise.
82693         * doc/glibc-functions/res_querydomain.texi: Likewise.
82694         * doc/glibc-functions/res_send.texi: Likewise.
82695         * doc/glibc-functions/rresvport_af.texi: Likewise.
82696         * doc/glibc-functions/setxattr.texi: Likewise.
82697         * doc/glibc-functions/strcasestr.texi: Likewise.
82699 2008-12-15  Bruno Haible  <bruno@clisp.org>
82701         Fix compilation error on OSF/1 4.0.
82702         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
82703         <sys/time.h>, simply delegate to the system header.
82704         Reported by Daniel Richard G. <oss@teragram.com>.
82706 2008-12-15  Bruno Haible  <bruno@clisp.org>
82708         * doc/posix-functions/openat.texi: Mention the 'openat' module.
82709         * doc/posix-functions/fchmodat.texi: Likewise.
82710         * doc/posix-functions/fchownat.texi: Likewise.
82711         * doc/posix-functions/fdopendir.texi: Likewise.
82712         * doc/posix-functions/fstatat.texi: Likewise.
82713         * doc/posix-functions/mkdirat.texi: Likewise.
82714         * doc/posix-functions/unlinkat.texi: Likewise.
82716 2008-12-14  Bruno Haible  <bruno@clisp.org>
82718         Update doc for POSIX:2008.
82719         * doc/posix-functions/faccessat.texi: New file.
82720         * doc/posix-functions/fchmodat.texi: New file.
82721         * doc/posix-functions/fchownat.texi: New file.
82722         * doc/posix-functions/fdopendir.texi: New file.
82723         * doc/posix-functions/fstatat.texi: New file.
82724         * doc/posix-functions/futimens.texi: New file.
82725         * doc/posix-functions/linkat.texi: New file.
82726         * doc/posix-functions/mkdirat.texi: New file.
82727         * doc/posix-functions/mkfifoat.texi: New file.
82728         * doc/posix-functions/mknodat.texi: New file.
82729         * doc/posix-functions/open_wmemstream.texi: New file.
82730         * doc/posix-functions/openat.texi: New file.
82731         * doc/posix-functions/psiginfo.texi: New file.
82732         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
82733         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
82734         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
82735         * doc/posix-functions/readlinkat.texi: New file.
82736         * doc/posix-functions/renameat.texi: New file.
82737         * doc/posix-functions/strerror_l.texi: New file.
82738         * doc/posix-functions/symlinkat.texi: New file.
82739         * doc/posix-functions/unlinkat.texi: New file.
82740         * doc/posix-functions/utimensat.texi: New file.
82741         * doc/gnulib.texi (Function Substitutes): Add these subsections.
82743 2008-12-14  Bruno Haible  <bruno@clisp.org>
82745         Update doc for POSIX:2008.
82746         * doc/posix-functions/alphasort.texi: Renamed from
82747         doc/glibc-functions/alphasort.texi.
82748         * doc/posix-functions/dirfd.texi: Renamed from
82749         doc/glibc-functions/dirfd.texi.
82750         * doc/posix-functions/dprintf.texi: Renamed from
82751         doc/glibc-functions/dprintf.texi.
82752         * doc/posix-functions/duplocale.texi: Renamed from
82753         doc/glibc-functions/duplocale.texi.
82754         * doc/posix-functions/fexecve.texi: Renamed from
82755         doc/glibc-functions/fexecve.texi.
82756         * doc/posix-functions/fmemopen.texi: Renamed from
82757         doc/glibc-functions/fmemopen.texi.
82758         * doc/posix-functions/freelocale.texi: Renamed from
82759         doc/glibc-functions/freelocale.texi.
82760         * doc/posix-functions/getdate_err.texi: Renamed from
82761         doc/glibc-functions/getdate_err.texi.
82762         * doc/posix-functions/isalnum_l.texi: Renamed from
82763         doc/glibc-functions/isalnum_l.texi.
82764         * doc/posix-functions/isalpha_l.texi: Renamed from
82765         doc/glibc-functions/isalpha_l.texi.
82766         * doc/posix-functions/isblank_l.texi: Renamed from
82767         doc/glibc-functions/isblank_l.texi.
82768         * doc/posix-functions/iscntrl_l.texi: Renamed from
82769         doc/glibc-functions/iscntrl_l.texi.
82770         * doc/posix-functions/isdigit_l.texi: Renamed from
82771         doc/glibc-functions/isdigit_l.texi.
82772         * doc/posix-functions/isgraph_l.texi: Renamed from
82773         doc/glibc-functions/isgraph_l.texi.
82774         * doc/posix-functions/islower_l.texi: Renamed from
82775         doc/glibc-functions/islower_l.texi.
82776         * doc/posix-functions/isprint_l.texi: Renamed from
82777         doc/glibc-functions/isprint_l.texi.
82778         * doc/posix-functions/ispunct_l.texi: Renamed from
82779         doc/glibc-functions/ispunct_l.texi.
82780         * doc/posix-functions/isspace_l.texi: Renamed from
82781         doc/glibc-functions/isspace_l.texi.
82782         * doc/posix-functions/isupper_l.texi: Renamed from
82783         doc/glibc-functions/isupper_l.texi.
82784         * doc/posix-functions/iswalnum_l.texi: Renamed from
82785         doc/glibc-functions/iswalnum_l.texi.
82786         * doc/posix-functions/iswalpha_l.texi: Renamed from
82787         doc/glibc-functions/iswalpha_l.texi.
82788         * doc/posix-functions/iswblank_l.texi: Renamed from
82789         doc/glibc-functions/iswblank_l.texi.
82790         * doc/posix-functions/iswcntrl_l.texi: Renamed from
82791         doc/glibc-functions/iswcntrl_l.texi.
82792         * doc/posix-functions/iswctype_l.texi: Renamed from
82793         doc/glibc-functions/iswctype_l.texi.
82794         * doc/posix-functions/iswdigit_l.texi: Renamed from
82795         doc/glibc-functions/iswdigit_l.texi.
82796         * doc/posix-functions/iswgraph_l.texi: Renamed from
82797         doc/glibc-functions/iswgraph_l.texi.
82798         * doc/posix-functions/iswlower_l.texi: Renamed from
82799         doc/glibc-functions/iswlower_l.texi.
82800         * doc/posix-functions/iswprint_l.texi: Renamed from
82801         doc/glibc-functions/iswprint_l.texi.
82802         * doc/posix-functions/iswpunct_l.texi: Renamed from
82803         doc/glibc-functions/iswpunct_l.texi.
82804         * doc/posix-functions/iswspace_l.texi: Renamed from
82805         doc/glibc-functions/iswspace_l.texi.
82806         * doc/posix-functions/iswupper_l.texi: Renamed from
82807         doc/glibc-functions/iswupper_l.texi.
82808         * doc/posix-functions/iswxdigit_l.texi: Renamed from
82809         doc/glibc-functions/iswxdigit_l.texi.
82810         * doc/posix-functions/isxdigit_l.texi: Renamed from
82811         doc/glibc-functions/isxdigit_l.texi.
82812         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
82813         doc/glibc-functions/mbsnrtowcs.texi.
82814         * doc/posix-functions/mkdtemp.texi: Renamed from
82815         doc/glibc-functions/mkdtemp.texi.
82816         * doc/posix-functions/newlocale.texi: Renamed from
82817         doc/glibc-functions/newlocale.texi.
82818         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
82819         doc/glibc-functions/nl_langinfo_l.texi.
82820         * doc/posix-functions/open_memstream.texi: Renamed from
82821         doc/glibc-functions/open_memstream.texi.
82822         * doc/posix-functions/opterr.texi: Renamed from
82823         doc/glibc-functions/opterr.texi.
82824         * doc/posix-functions/optind.texi: Renamed from
82825         doc/glibc-functions/optind.texi.
82826         * doc/posix-functions/optopt.texi: Renamed from
82827         doc/glibc-functions/optopt.texi.
82828         * doc/posix-functions/psignal.texi: Renamed from
82829         doc/glibc-functions/psignal.texi.
82830         * doc/posix-functions/scandir.texi: Renamed from
82831         doc/glibc-functions/scandir.texi.
82832         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
82833         doc/glibc-functions/sched_get_priority_min.texi.
82834         * doc/posix-functions/signgam.texi: Renamed from
82835         doc/glibc-functions/signgam.texi.
82836         * doc/posix-functions/stpcpy.texi: Renamed from
82837         doc/glibc-functions/stpcpy.texi.
82838         * doc/posix-functions/stpncpy.texi: Renamed from
82839         doc/glibc-functions/stpncpy.texi.
82840         * doc/posix-functions/strcasecmp_l.texi: Renamed from
82841         doc/glibc-functions/strcasecmp_l.texi.
82842         * doc/posix-functions/strcoll_l.texi: Renamed from
82843         doc/glibc-functions/strcoll_l.texi.
82844         * doc/posix-functions/strfmon_l.texi: Renamed from
82845         doc/glibc-functions/strfmon_l.texi.
82846         * doc/posix-functions/strftime_l.texi: Renamed from
82847         doc/glibc-functions/strftime_l.texi.
82848         * doc/posix-functions/strncasecmp_l.texi: Renamed from
82849         doc/glibc-functions/strncasecmp_l.texi.
82850         * doc/posix-functions/strndup.texi: Renamed from
82851         doc/glibc-functions/strndup.texi.
82852         * doc/posix-functions/strnlen.texi: Renamed from
82853         doc/glibc-functions/strnlen.texi.
82854         * doc/posix-functions/strsignal.texi: Renamed from
82855         doc/glibc-functions/strsignal.texi.
82856         * doc/posix-functions/strxfrm_l.texi: Renamed from
82857         doc/glibc-functions/strxfrm_l.texi.
82858         * doc/posix-functions/timer_gettime.texi: Renamed from
82859         doc/glibc-functions/timer_gettime.texi.
82860         * doc/posix-functions/tolower_l.texi: Renamed from
82861         doc/glibc-functions/tolower_l.texi.
82862         * doc/posix-functions/toupper_l.texi: Renamed from
82863         doc/glibc-functions/toupper_l.texi.
82864         * doc/posix-functions/towctrans_l.texi: Renamed from
82865         doc/glibc-functions/towctrans_l.texi.
82866         * doc/posix-functions/towlower_l.texi: Renamed from
82867         doc/glibc-functions/towlower_l.texi.
82868         * doc/posix-functions/towupper_l.texi: Renamed from
82869         doc/glibc-functions/towupper_l.texi.
82870         * doc/posix-functions/uselocale.texi: Renamed from
82871         doc/glibc-functions/uselocale.texi.
82872         * doc/posix-functions/vdprintf.texi: Renamed from
82873         doc/glibc-functions/vdprintf.texi.
82874         * doc/posix-functions/wcpcpy.texi:
82875         Renamed from doc/glibc-functions/wcpcpy.texi.
82876         * doc/posix-functions/wcpncpy.texi: Renamed from
82877         doc/glibc-functions/wcpncpy.texi.
82878         * doc/posix-functions/wcscasecmp.texi: Renamed from
82879         doc/glibc-functions/wcscasecmp.texi.
82880         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
82881         doc/glibc-functions/wcscasecmp_l.texi.
82882         * doc/posix-functions/wcscoll_l.texi: Renamed from
82883         doc/glibc-functions/wcscoll_l.texi.
82884         * doc/posix-functions/wcsdup.texi: Renamed from
82885         doc/glibc-functions/wcsdup.texi.
82886         * doc/posix-functions/wcsncasecmp.texi: Renamed from
82887         doc/glibc-functions/wcsncasecmp.texi.
82888         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
82889         doc/glibc-functions/wcsncasecmp_l.texi.
82890         * doc/posix-functions/wcsnlen.texi: Renamed from
82891         doc/glibc-functions/wcsnlen.texi.
82892         * doc/posix-functions/wcsnrtombs.texi: Renamed from
82893         doc/glibc-functions/wcsnrtombs.texi.
82894         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
82895         doc/glibc-functions/wcsxfrm_l.texi.
82896         * doc/posix-functions/wctrans_l.texi: Renamed from
82897         doc/glibc-functions/wctrans_l.texi.
82898         * doc/posix-functions/wctype_l.texi: Renamed from
82899         doc/glibc-functions/wctype_l.texi.
82900         * doc/gnulib.texi (Function Substitutes): Add these subsections.
82901         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
82902         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
82903         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
82904         these subsections.
82905         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
82906         Remove sections.
82908 2008-12-14  Bruno Haible  <bruno@clisp.org>
82910         Update doc for POSIX:2008.
82911         * doc/posix-functions/*.texi: Update URL of POSIX specification.
82913 2008-12-14  Bruno Haible  <bruno@clisp.org>
82915         Update doc for POSIX:2008.
82916         * doc/pastposix-functions/bcmp.texi: Renamed from
82917         doc/posix-functions/bcmp.texi.
82918         * doc/pastposix-functions/bcopy.texi: Renamed from
82919         doc/posix-functions/bcopy.texi.
82920         * doc/pastposix-functions/bsd_signal.texi: Renamed from
82921         doc/posix-functions/bsd_signal.texi.
82922         * doc/pastposix-functions/bzero.texi: Renamed from
82923         doc/posix-functions/bzero.texi.
82924         * doc/pastposix-functions/ecvt.texi: Renamed from
82925         doc/posix-functions/ecvt.texi.
82926         * doc/pastposix-functions/fcvt.texi: Renamed from
82927         doc/posix-functions/fcvt.texi.
82928         * doc/pastposix-functions/ftime.texi: Renamed from
82929         doc/posix-functions/ftime.texi.
82930         * doc/pastposix-functions/gcvt.texi: Renamed from
82931         doc/posix-functions/gcvt.texi.
82932         * doc/pastposix-functions/getcontext.texi: Renamed from
82933         doc/posix-functions/getcontext.texi.
82934         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
82935         doc/posix-functions/gethostbyaddr.texi.
82936         * doc/pastposix-functions/gethostbyname.texi: Renamed from
82937         doc/posix-functions/gethostbyname.texi.
82938         * doc/pastposix-functions/getwd.texi: Renamed from
82939         doc/posix-functions/getwd.texi.
82940         * doc/pastposix-functions/h_errno.texi: Renamed from
82941         doc/posix-functions/h_errno.texi.
82942         * doc/pastposix-functions/index.texi: Renamed from
82943         doc/posix-functions/index.texi.
82944         * doc/pastposix-functions/makecontext.texi: Renamed from
82945         doc/posix-functions/makecontext.texi.
82946         * doc/pastposix-functions/mktemp.texi: Renamed from
82947         doc/posix-functions/mktemp.texi.
82948         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
82949         doc/posix-functions/pthread_attr_getstackaddr.texi.
82950         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
82951         doc/posix-functions/pthread_attr_setstackaddr.texi.
82952         * doc/pastposix-functions/rindex.texi: Renamed from
82953         doc/posix-functions/rindex.texi.
82954         * doc/pastposix-functions/scalb.texi: Renamed from
82955         doc/posix-functions/scalb.texi.
82956         * doc/pastposix-functions/setcontext.texi: Renamed from
82957         doc/posix-functions/setcontext.texi.
82958         * doc/pastposix-functions/swapcontext.texi: Renamed from
82959         doc/posix-functions/swapcontext.texi.
82960         * doc/pastposix-functions/ualarm.texi: Renamed from
82961         doc/posix-functions/ualarm.texi.
82962         * doc/pastposix-functions/usleep.texi: Renamed from
82963         doc/posix-functions/usleep.texi.
82964         * doc/pastposix-functions/vfork.texi: Renamed from
82965         doc/posix-functions/vfork.texi.
82966         * doc/pastposix-functions/wcswcs.texi: Renamed from
82967         doc/posix-functions/wcswcs.texi.
82968         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
82969         (Function Substitutes): Update.
82971 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82973         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
82974         m4/strerror.m4.
82976 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82977             Bruno Haible  <bruno@clisp.org>
82979         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
82981 2008-12-13  Bruno Haible  <bruno@clisp.org>
82983         * modules/strtoull (Depends-on): Remove unistd.
82985 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82987         * modules/strtoull (Depends-on): Add stdlib.
82989 2008-12-11  Simon Josefsson  <simon@josefsson.org>
82991         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
82993 2008-12-10  Jim Meyering  <meyering@redhat.com>
82995         gl_ASSERT: don't say assertions are disabled when they're not
82996         * m4/assert.m4 (gl_ASSERT): Do not make configure report
82997         "checking whether to enable assertions... no", when they are in
82998         fact enabled.  This is solely a bug in the output of configure.
82999         In spite of saying "no", NDEBUG was not defined in that case.
83000         Also, as noted by Eric Blake, leave assertions enabled upon
83001         --enable-assert=INVALID.
83003 2008-12-10  Bruno Haible  <bruno@clisp.org>
83005         Change MODULES.html to refer to POSIX:2008 where possible.
83006         * MODULES.html.sh (POSIX2008_URL): New variable.
83007         (posix_headers): Remove sys/timeb, ucontext.
83008         (posix2001_headers): New variable.
83009         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
83010         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
83011         index, makecontext, mktemp, pthread_attr_getstackaddr,
83012         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
83013         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
83014         (posix2001_functions): New variable.
83015         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
83016         otherwise.
83018 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83020         add missing include to parse-duration.c
83021         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
83022         * modules/parse-duration (Depends-on): Add xalloc.
83024         fix sed script reading maint.mk
83025         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
83026         (syntax-check-rules): Use it.
83028 2008-12-09  Bruno Haible  <bruno@clisp.org>
83030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
83031         MacOS X 10.4/PowerPC.
83032         Reported by Simon Josefsson.
83034 2008-12-08  Jim Meyering  <meyering@redhat.com>
83036         work around mingw's lack of some S_IF definitions
83037         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
83038         Reported by Simon Josefsson.
83040 2008-12-08  Bruno Haible  <bruno@clisp.org>
83042         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
83043         applied to variables. Needed on MacOS X 10.4/PowerPC.
83044         Reported by Simon Josefsson.
83046 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
83047         and Eric Blake  <ebb9@byu.net>
83049         assert: honor --enable-assert
83050         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
83051         order to honor --enable-assert, rather than treating it as a
83052         synonym for --disable-assert.
83054 2008-12-08  Jim Meyering  <meyering@redhat.com>
83056         * lib/posixtm.c: Remove now-useless declaration of mktime.
83058         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
83060 2008-12-07  Bruno Haible  <bruno@clisp.org>
83062         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
83063         test_once): Mark functions as static.
83064         * tests/test-tls.c (test_tls): Likewise.
83066 2008-12-07  Bruno Haible  <bruno@clisp.org>
83068         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
83069         iconv_register_autodetect.
83071 2008-12-07  Jim Meyering  <meyering@redhat.com>
83073         posixtm.c: avoid a warning
83074         * lib/posixtm.c (posixtime): Don't initialize tm0.
83075         It's no longer needed to placate gcc4's -Wuninitialized,
83076         and the attempt to placate would elicit a new warning.
83078         unicodeio.c: mark unused parameters
83079         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
83080         (fallback_failure_callback): Likewise.
83082 2008-12-07  Bruno Haible  <bruno@clisp.org>
83084         * gnulib-tool (func_create_testdir): When building the tests
83085         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
83086         Reported by Simon Josefsson.
83088 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83090         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
83092 2008-12-06  Bruno Haible  <bruno@clisp.org>
83094         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
83095         Suggested by Eric Blake.
83097 2008-12-06  Bruno Haible  <bruno@clisp.org>
83099         Fix a c-stack test failure on MacOS X.
83100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
83101         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
83102         handler for SIGBUS as well.
83103         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
83104         install a signal handler for SIGBUS as well.
83105         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
83107 2008-12-06  Bruno Haible  <bruno@clisp.org>
83109         Advocacy documentation.
83110         * doc/gnulib-intro.texi (Benefits): New section.
83111         * doc/gnulib.texi: Update.
83113 2008-12-06  Bruno Haible  <bruno@clisp.org>
83115         Document the 'manywarnings' module.
83116         * doc/manywarnings.texi: New file.
83117         * doc/gnulib.texi: Include it.
83119 2008-12-05  Eric Blake  <ebb9@byu.net>
83121         tests: silence some gcc warnings
83122         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
83123         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
83124         type mismatches.
83126 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83127             Bruno Haible  <bruno@clisp.org>
83129         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
83131 2008-11-29  Jim Meyering  <meyering@redhat.com>
83133         unicodeio.c: mark unused parameters
83134         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
83135         (fallback_failure_callback): Likewise.
83137         fts: fix a thinko
83138         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
83139         (set_stat_type): Return S_IF*-valued "type" directly.
83140         Prompted by James Youngman's spotting a related bug.
83141         Confirmed by further testing through find.
83143         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
83144         * lib/fts.c (D_TYPE): Define.
83145         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
83146         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
83147         (s_ifmt_shift_bits): New function.
83148         (set_stat_type): New function.
83149         (fts_build): When not calling fts_stat, call set_stat_type
83150         to propagate dirent.d_type info to fts_read caller.
83151         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
83152         fts_statp->st_mode type information may be valid.
83154 2008-11-28  Simon Josefsson  <simon@josefsson.org>
83156         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
83157         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
83158         <sds@gnu.org>.
83160 2008-11-20  Bruno Haible  <bruno@clisp.org>
83162         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
83163         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
83164         INCLUDE_NEXT.
83165         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
83166         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
83167         * modules/math (Makefile.am): Substitute
83168         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
83169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83171 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
83172             Bruno Haible  <bruno@clisp.org>
83174         * lib/stdint.in.h: Define all type macros so that their expansion is
83175         a single typedef'ed token. Fixes a compilation failure in Boost which
83176         does "using ::int8_t;".
83178 2008-11-18  Simon Josefsson  <simon@josefsson.org>
83180         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
83181         gl_MANYWARN_ALL_GCC.
83182         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
83183         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
83184         * modules/manywarnings: New file.
83185         * MODULES.html.sh: Mention manywarnings module.
83187 2008-11-18  Bruno Haible  <bruno@clisp.org>
83189         * doc/gnulib-tool.texi (Unit tests): New section.
83191 2008-11-18  Simon Josefsson  <simon@josefsson.org>
83193         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
83194         paths like 'lib/po/foo.po'.
83196 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83198         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
83199         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
83201 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83203         * m4/warnings.m4: Use CPPFLAGS to really check whether the
83204         parameter works.
83206 2008-11-17  Simon Josefsson  <simon@josefsson.org>
83208         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
83210 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83212         * modules/parse-duration-tests: New file.
83213         * tests/test-parse-duration.sh: New file.
83214         * tests/test-parse-duration.c: New file.
83216         New module 'parse-duration'.
83217         * lib/parse-duration.h: New file.
83218         * lib/parse-duration.c: New file.
83219         * modules/parse-duration: New file.
83221 2008-11-17  Bruno Haible  <bruno@clisp.org>
83223         * tests/test-select-out.sh: Comment out the first pipe test.
83224         Reported by Simon Josefsson.
83226 2008-11-17  Bruno Haible  <bruno@clisp.org>
83228         * modules/getaddrinfo (Depends-on): Add servent, hostent.
83229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
83230         gl_HOSTENT.
83232 2008-11-17  Bruno Haible  <bruno@clisp.org>
83234         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
83235         -lnetwork and -lnet. Needed for Haiku and BeOS.
83237 2008-11-16  Bruno Haible  <bruno@clisp.org>
83239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
83241 2008-11-16  Bruno Haible  <bruno@clisp.org>
83243         Avoid test failure on Haiku.
83244         * tests/test-fsync.c: Include <errno.h>.
83245         (main): Don't require that fsync (0) fails.
83247 2008-11-15  Bruno Haible  <bruno@clisp.org>
83249         New module 'hostent'.
83250         * modules/hostent: New file.
83251         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
83253 2008-11-15  Bruno Haible  <bruno@clisp.org>
83255         New module 'servent'.
83256         * modules/servent: New file.
83257         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
83259 2008-11-15  Bruno Haible  <bruno@clisp.org>
83261         Avoid generating same test program with two different rules.
83262         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
83263         test-frexp to test-frexp-nolibm.
83264         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
83265         test-frexpl to test-frexpl-nolibm.
83267 2008-11-15  Bruno Haible  <bruno@clisp.org>
83269         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
83270         $(FREXPL_LIBM).
83272 2008-11-15  Bruno Haible  <bruno@clisp.org>
83274         * lib/netdb.in.h: Activate the definitions also when the system's
83275         <netdb.h> has 'struct addrinfo'.
83276         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
83277         EAI_OVERFLOW or AI_NUMERICSERV.
83278         * doc/posix-headers/netdb.texi: Document the problem.
83280 2008-11-15  Bruno Haible  <bruno@clisp.org>
83282         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
83284         Make the 'sched' module work on platforms where <sched.h> exists but
83285         is incomplete (such as Haiku).
83286         * lib/sched.in.h; Include the system's <sched.h> if it exists.
83287         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
83288         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
83289         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
83290         HAVE_STRUCT_SCHED_PARAM.
83291         * modules/sched (Depends-on): Add include_next.
83292         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
83293         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
83294         * doc/posix-headers/sched.texi: Document the issue.
83296 2008-11-13  Jim Meyering  <meyering@redhat.com>
83298         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
83299         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
83300         test would fail due to the difference in the Report bugs to ...
83301         line.  The expected address is empty, "<>", while the actual
83302         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
83304 2008-11-12  Bruno Haible  <bruno@clisp.org>
83306         lstat: don't compile lstat.c on systems lacking lstat
83307         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
83308         which don't have lstat; this is handled by lib/sys_stat.in.h already.
83309         Reported by Daniel P. Berrange via Jim Meyering.
83311 2008-11-12  Jim Meyering  <meyering@redhat.com>
83313         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
83315 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83317         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
83318         instead.
83320 2008-11-12  Bruno Haible  <bruno@clisp.org>
83322         * lib/unicodeio.c: Include unistr.h.
83323         (utf8_wctomb): Remove function.
83324         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
83326 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83328         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
83329         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
83330         <bruno@clisp.org>.
83331         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
83333 2008-11-12  Simon Josefsson  <simon@josefsson.org>
83335         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
83336         * doc/gnulib.texi: Add section for warnings.
83338 2008-11-11  Bruno Haible  <bruno@clisp.org>
83340         * lib/sockets.h: Add a comment.
83342 2008-11-11  Karl Berry  <karl@gnu.org>
83344         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
83346 2008-11-11  Eric Blake  <ebb9@byu.net>
83348         fdl.texi: avoid git symlinks
83349         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
83351 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83353         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
83355 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83357         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
83358         (gl_WARN_ADD): Substitute $2 if literal.
83360 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83362         * m4/warning.m4: Remove.
83364 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
83366         * m4/warnings.m4: Almost complete rewrite. :-)
83368 2008-11-10  Simon Josefsson  <simon@josefsson.org>
83370         * modules/warnings: New module.
83371         * m4/warnings.m4: New file.
83372         * MODULES.html.sh: Mention warnings module.
83373         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
83374         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83376 2008-11-10  Eric Blake  <ebb9@byu.net>
83378         fdl.texi: make a symlink to the latest version
83379         * doc/standards.texi: Revert today's earlier change.
83380         * doc/fdl-1.2.texi: Rename from old fdl.texi...
83381         * doc/fdl.texi: ...and replace this with a symlink to the newer
83382         fdl-1.3.texi.
83384 2008-11-10  Bruno Haible  <bruno@clisp.org>
83386         * tests/test-select-fd.c (main): Accept the result file name as fourth
83387         argument.
83388         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
83389         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
83391 2008-11-10  Bruno Haible  <bruno@clisp.org>
83393         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
83394         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
83395         as autoconf-substituted macros.
83396         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
83397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
83398         gl_NETDB_H_DEFAULTS. Set these variables.
83399         * modules/netdb (Makefile.am): Substitute these variables.
83401 2008-11-10  Eric Blake  <ebb9@byu.net>
83403         standards.texi: include correct file for FDL 1.3
83404         * doc/standards.texi (GNU Free Documentation License): Change
83405         include file to pull in FDL 1.3, not 1.2.
83407         fdl.texi: revert accidental change to license
83408         * doc/fdl.texi: This is FDL 1.2, not 1.3.
83410 2008-11-10  Bruno Haible  <bruno@clisp.org>
83412         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
83413         cross-compiling guesses also when the native compile gives no result.
83415 2008-11-10  Bruno Haible  <bruno@clisp.org>
83417         * lib/spawni.c (__spawni): Force variable into the stack.
83419 2008-11-10  Bruno Haible  <bruno@clisp.org>
83421         Add support for Haiku.
83422         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
83423         glibc and BeOS, but also on Haiku.
83424         * lib/fpurge.c (fpurge): Likewise.
83425         * lib/freadable.c (freadable): Likewise.
83426         * lib/freadahead.c (freadahead): Likewise.
83427         * lib/freading.c (freading): Likewise.
83428         * lib/freadptr.c (freadptr): Likewise.
83429         * lib/freadseek.c (freadptrinc): Likewise.
83430         * lib/fseeko.c (rpl_fseeko): Likewise.
83431         * lib/fseterr.c (fseterr): Likewise.
83432         * lib/fwritable.c (fwritable): Likewise.
83433         * lib/fwriting.c (fwriting): Likewise.
83434         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
83436 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
83438         * lib/config.charset: Treat Haiku like BeOS.
83440 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
83442         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
83443         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
83445 2008-11-08  Bruno Haible  <bruno@clisp.org>
83447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
83448         AC_CACHE_CHECK.
83450 2008-11-08  Bruno Haible  <bruno@clisp.org>
83452         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
83454 2008-11-08  Bruno Haible  <bruno@clisp.org>
83456         * tests/test-select-fd.c: New file.
83457         * tests/test-select-in.sh: New file.
83458         * tests/test-select-out.sh: New file.
83459         * tests/test-select-stdin.c: New file.
83460         * modules/select-tests (Files): Add the new files.
83461         (Depends-on): Add gettimeofday.
83462         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
83463         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
83464         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
83466 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
83467             Bruno Haible  <bruno@clisp.org>
83469         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
83471 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
83473         * build-aux/pmccabe2html: Added support for C++ source files.
83475 2008-11-05  Ben Pfaff  <blp@gnu.org>
83477         Fix lib/close.c build on Windows.
83478         * modules/close (Files): Add lib/w32sock.h.
83480 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
83482         Accept Bison's NEWS format.
83483         * build-aux/announce-gen (print_news_deltas): Tweak
83484         $re_prefix.
83486 2008-11-04  Bruno Haible  <bruno@clisp.org>
83488         * modules/random_r (Maintainer): Add glibc.
83490 2008-11-04  Simon Josefsson  <simon@josefsson.org>
83492         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
83493         by karl@freefriends.org (Karl Berry).
83494         * doc/alloca.texi: Likewise.
83495         * doc/c-ctype.texi: Likewise.
83496         * doc/c-strcase.texi: Likewise.
83497         * doc/c-strcaseeq.texi: Likewise.
83498         * doc/c-strcasestr.texi: Likewise.
83499         * doc/c-strstr.texi: Likewise.
83500         * doc/c-strtod.texi: Likewise.
83501         * doc/c-strtold.texi: Likewise.
83502         * doc/ctime.texi: Likewise.
83503         * doc/error.texi: Likewise.
83504         * doc/fdl.texi: Likewise.
83505         * doc/gcd.texi: Likewise.
83506         * doc/getdate.texi: Likewise.
83507         * doc/gnulib-intro.texi: Likewise.
83508         * doc/gnulib-tool.texi: Likewise.
83509         * doc/gnulib.texi: Likewise.
83510         * doc/inet_ntoa.texi: Likewise.
83511         * doc/maintain.texi: Likewise.
83512         * doc/make-stds.texi: Likewise.
83513         * doc/quote.texi: Likewise.
83514         * doc/regexprops-generic.texi: Likewise.
83515         * doc/standards.texi: Likewise.
83516         * doc/verify.texi: Likewise.
83517         * doc/visibility.texi: Likewise.
83518         * doc/gnulib.texi (GNU Free Documentation License): Include
83519         fdl-1.3.texi instead of fdl.texi.
83521 2008-11-04  Simon Josefsson  <simon@josefsson.org>
83523         * doc/fdl-1.3.texi: New file, from
83524         <http://www.gnu.org/licenses/fdl-1.3.texi>.
83525         * modules/fdl-1.3: Add.
83526         * MODULES.html.sh: Add fdl-1.3.
83528 2008-11-03  Bruno Haible  <bruno@clisp.org>
83530         Make determination of absolute name of header file work with AIX xlc.
83531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
83532         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
83533         preprocessing.
83534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83535         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
83537 2008-11-03  Simon Josefsson  <simon@josefsson.org>
83539         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
83540         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
83541         <ludo@gnu.org>.
83543 2008-11-02  Bruno Haible  <bruno@clisp.org>
83545         Mark 'strpbrk' obsolete.
83546         * modules/strpbrk (Status, Notice): New sections.
83547         * modules/strtok_r (Depends-on): Add strpbrk.
83549 2008-11-02  Bruno Haible  <bruno@clisp.org>
83551         Mark 'strdup' obsolete.
83552         * modules/strdup (Status, Notice): New sections.
83553         * modules/findprog (Depends-on): Add strdup.
83554         * modules/getaddrinfo (Depends-on): Likewise.
83555         * modules/localename (Depends-on): Likewise.
83556         * modules/relocatable-lib (Depends-on): Likewise.
83557         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
83558         * modules/relocatable-prog (Depends-on): Likewise.
83559         * modules/trim (Depends-on): Likewise.
83560         * modules/unictype/gen-ctype (Depends-on): Likewise.
83561         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
83563 2008-11-02  Bruno Haible  <bruno@clisp.org>
83565         Mark 'strcspn' obsolete.
83566         * modules/strcspn (Status, Notice): New sections.
83568 2008-11-02  Bruno Haible  <bruno@clisp.org>
83570         Mark 'rmdir' obsolete.
83571         * modules/rmdir (Status, Notice): New sections.
83572         * modules/clean-temp (Depends-on): Add rmdir.
83573         * modules/openat (Depends-on): Likewise.
83575 2008-11-02  Bruno Haible  <bruno@clisp.org>
83577         Mark 'raise' obsolete.
83578         * modules/raise (Status, Notice): New sections.
83579         (Include): Specify <signal.h>.
83580         * modules/stdio (Depends-on): Add raise.
83581         * modules/write (Depends-on): Likewise.
83583 2008-11-02  Bruno Haible  <bruno@clisp.org>
83585         Mark 'memset' obsolete.
83586         * modules/memset (Status, Notice): New sections.
83588 2008-11-02  Bruno Haible  <bruno@clisp.org>
83590         Mark 'memmove' obsolete.
83591         * modules/memmove (Status, Notice): New sections.
83592         * modules/argp (Depends-on): Add memmove.
83593         * modules/argz (Depends-on): Likewise.
83594         * modules/canonicalize (Depends-on): Likewise.
83595         * modules/canonicalize-lgpl (Depends-on): Likewise.
83596         * modules/fts (Depends-on): Likewise.
83597         * modules/getcwd (Depends-on): Likewise.
83598         * modules/human (Depends-on): Likewise.
83599         * modules/regex (Depends-on): Likewise.
83600         * modules/striconveh (Depends-on): Likewise.
83601         * modules/trim (Depends-on): Likewise.
83602         * modules/unistr/u8-move (Depends-on): Likewise.
83603         * modules/unistr/u16-move (Depends-on): Likewise.
83604         * modules/unistr/u32-move (Depends-on): Likewise.
83606 2008-11-02  Bruno Haible  <bruno@clisp.org>
83608         Mark 'memcpy' obsolete.
83609         * modules/memcpy (Status, Notice): New sections.
83611 2008-11-02  Bruno Haible  <bruno@clisp.org>
83613         Mark 'memcmp' obsolete.
83614         * modules/memcmp (Status, Notice): New sections.
83615         * modules/argmatch (Depends-on): Add memchr.
83616         * modules/backupfile (Depends-on): Likewise.
83617         * modules/c-strcasestr (Depends-on): Likewise.
83618         * modules/crypto/des (Depends-on): Likewise.
83619         * modules/csharpcomp (Depends-on): Likewise.
83620         * modules/fnmatch (Depends-on): Likewise.
83621         * modules/git-merge-changelog (Depends-on): Likewise.
83622         * modules/isnand (Depends-on): Likewise.
83623         * modules/isnand-nolibm (Depends-on): Likewise.
83624         * modules/isnanf (Depends-on): Likewise.
83625         * modules/isnanf-nolibm (Depends-on): Likewise.
83626         * modules/isnanl (Depends-on): Likewise.
83627         * modules/isnanl-nolibm (Depends-on): Likewise.
83628         * modules/mbchar (Depends-on): Likewise.
83629         * modules/memcoll (Depends-on): Likewise.
83630         * modules/quotearg (Depends-on): Likewise.
83631         * modules/regex (Depends-on): Likewise.
83632         * modules/relocatable-prog (Depends-on): Likewise.
83633         * modules/same (Depends-on): Likewise.
83634         * modules/signbit (Depends-on): Likewise.
83635         * modules/strcasestr-simple (Depends-on): Likewise.
83636         * modules/unictype/gen-ctype (Depends-on): Likewise.
83637         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
83638         * modules/uniname/uniname (Depends-on): Likewise.
83639         * modules/unistr/u8-cmp (Depends-on): Likewise.
83641 2008-11-02  Bruno Haible  <bruno@clisp.org>
83643         Mark 'memchr' obsolete.
83644         * modules/memchr (Status, Notice): New sections.
83645         * modules/argp (Depends-on): Add memchr.
83646         * modules/base64 (Depends-on): Likewise.
83647         * modules/c-strcasestr (Depends-on): Likewise.
83648         * modules/chdir-long (Depends-on): Likewise.
83649         * modules/fnmatch (Depends-on): Likewise.
83650         * modules/getsubopt (Depends-on): Likewise.
83651         * modules/git-merge-changelog (Depends-on): Likewise.
83652         * modules/glob (Depends-on): Likewise.
83653         * modules/strcasestr-simple (Depends-on): Likewise.
83654         * modules/strnlen (Depends-on): Likewise.
83656 2008-11-02  Bruno Haible  <bruno@clisp.org>
83658         Mark 'atexit' obsolete.
83659         * modules/atexit (Status, Notice): New sections.
83660         * modules/chdir-long (Depends-on): Add atexit.
83661         * modules/wait-process (Depends-on): Likewise.
83663 2008-11-02  Bruno Haible  <bruno@clisp.org>
83665         * gnulib-tool: New option --with-obsolete.
83666         (func_usage): Document it.
83667         (func_modules_transitive_closure): Drop obsolete dependencies if
83668         incobsolete is not true.
83669         (func_import): Read and save the incobsolete variable to the cache.
83671 2008-11-02  Bruno Haible  <bruno@clisp.org>
83673         * modules/TEMPLATE-EXTENDED: New field 'Status'.
83674         * gnulib-tool: New option --extract-status.
83675         (func_usage): Document it.
83676         (sed_extract_prog): Recognize it.
83677         (func_get_status): New function.
83679 2008-10-30  Simon Josefsson  <simon@josefsson.org>
83681         * modules/sockets (License): Change from LGPL to LGPLv2+.
83683 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83685         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
83687 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83689         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83690         Mention times and sys_times.
83691         * modules/sys_times, modules/sys_times-tests: New modules.
83692         * modules/times, modules/times-tests: Likewise
83693         * m4/sys_times_h.m4: New file.
83694         * lib/sys_times.in.h: Likewise
83695         * lib/times.c: Likewise.
83696         * tests/test-sys_times.c: Likewise.
83697         * tests/test-times.c: Likewise.
83698         * doc/posix-headers/sys_times.texi: Update.
83699         * doc/posix-functions/times.texi: Update.
83701 2008-10-28  Jim Meyering  <meyering@redhat.com>
83703         * modules/tempname (Depends-on): Add lstat.
83705         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
83707 2008-10-28  Simon Josefsson  <simon@josefsson.org>
83709         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
83710         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
83711         using idiom used elsewhere in gnulib.
83713 2008-10-27  Jim Meyering  <meyering@redhat.com>
83715         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
83717 2008-10-27  Simon Josefsson  <simon@josefsson.org>
83719         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
83720         TESTS_ENVIRONMENT, for shell scripts that needs to call built
83721         programs.
83722         * tests/test-argp-2.sh: Use $EXEEXT when needed.
83724 2008-10-27  Simon Josefsson  <simon@josefsson.org>
83726         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
83728 2008-10-27  Bruno Haible  <bruno@clisp.org>
83730         * tests/test-lstat.c: Include <stdio.h>.
83732 2008-10-27  Simon Josefsson  <simon@josefsson.org>
83734         * modules/lstat-tests: New module.
83735         * tests/test-lstat.c: New file.
83737 2008-10-26  Jim Meyering  <meyering@redhat.com>
83739         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
83741 2008-10-26  Simon Josefsson  <simon@josefsson.org>
83742             Bruno Haible  <bruno@clisp.org>
83744         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
83745         * modules/configmake (Include): Add a note that the include must come
83746         after all system headers.
83747         * lib/javaversion.c: Include configmake.h after all other includes.
83749 2008-10-26  Bruno Haible  <bruno@clisp.org>
83751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
83752         HAVE_STRUCT_RANDOM_DATA to 1.
83753         (gl_STDLIB_H): Simplify.
83755 2008-10-26  Simon Josefsson  <simon@josefsson.org>
83757         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
83758         substitute HAVE_STRUCT_RANDOM_DATA.
83759         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
83760         random_data.
83761         * modules/stdlib (Makefile.am): Substitute
83762         HAVE_STRUCT_RANDOM_DATA.
83764 2008-10-26  Simon Josefsson  <simon@josefsson.org>
83766         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
83767         * doc/gnulib-intro.texi (Copyright): Likewise.
83769 2008-10-26  Simon Josefsson  <simon@josefsson.org>
83771         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
83772         findings.
83774 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
83775             Bruno Haible  <bruno@clisp.org>
83777         * lib/unistd.in.h: Include <winsock2.h>.
83778         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
83779         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
83780         Provide dummy declarations.
83781         (gethostname): Override.
83782         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
83783         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
83784         gl_PREREQ_SYS_H_WINSOCK2.
83785         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
83786         * doc/posix-functions/gethostname.texi: More details.
83788 2008-10-25  Bruno Haible  <bruno@clisp.org>
83790         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
83791         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
83792         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
83794         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
83795         here ...
83796         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
83797         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
83798         gl_UNISTD_H_DEFAULTS.
83800 2008-10-25  Eric Blake  <ebb9@byu.net>
83802         signbit: avoid spurious compiler failure
83803         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
83804         declarations inside function.
83806 2008-10-24  Simon Josefsson  <simon@josefsson.org>
83807             Bruno Haible  <bruno@clisp.org>
83809         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
83810         * modules/random_r (Depends-on): Add stdint.
83812 2008-10-24  Bruno Haible  <bruno@clisp.org>
83814         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
83815         Eggert.
83816         * modules/strerror (License): Likewise.
83818 2008-10-24  Jim Meyering  <meyering@redhat.com>
83820         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
83821         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
83823 2008-10-24  Eric Blake  <ebb9@byu.net>
83825         getgroups: fix compilation when getgroups is available
83826         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
83827         but with <config.h> override of getgroups disabled.
83829 2008-10-24  Simon Josefsson  <simon@josefsson.org>
83831         * doc/gnulib.texi (Header files): Add note about C++ problems.
83832         Explained by Bruno Haible <bruno@clisp.org>.
83834 2008-10-23  Bruno Haible  <bruno@clisp.org>
83836         Define a dummy SA_NODEFER macro on Interix.
83837         * lib/signal.in.h (SA_NODEFER): Define fallback.
83838         Reported by Aleksey Cheusov <cheusov@tut.by> via
83839         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
83841 2008-10-23  Bruno Haible  <bruno@clisp.org>
83843         * modules/freadahead (License): Change to LGPLv2+.
83844         Suggested by Simon Josefsson.
83846 2008-10-23  Jim Meyering  <meyering@redhat.com>
83848         random_r: new module
83849         * modules/random_r: New file.
83850         * m4/random_r.m4: New file.
83851         * lib/random_r.c: New file, from glibc.
83852         * modules/random_r-tests: New file.
83853         * tests/test-random_r.c: New file.
83854         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
83855          Declare.
83856         (RAND_MAX): Define.
83857         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
83858         * modules/stdlib: Substitute them, too.
83859         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
83860         * doc/glibc-functions/initstate_r.texi: Mention the new module.
83861         * doc/glibc-functions/random_r.texi: Likewise.
83862         * doc/glibc-functions/setstate_r.texi: Likewise.
83863         * doc/glibc-functions/srandom_r.texi: Likewise.
83864         * config/srclist.txt: Mention it.
83866 2008-10-23  David Lutterkort  <lutter@redhat.com>
83868         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
83869         link requirement
83871 2008-10-23  Jim Meyering  <meyering@redhat.com>
83873         selinux-h: mark parameters of stub functions as intentionally unused
83874         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
83875         * lib/se-context.in.h: Likewise.
83877 2008-10-22  Simon Josefsson  <simon@josefsson.org>
83879         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
83881 2008-10-22  Simon Josefsson  <simon@josefsson.org>
83883         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
83885 2008-10-22  Eric Blake  <ebb9@byu.net>
83887         glthread/thread: avoid compiler warning
83888         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
83889         Add unreachable abort to silence compiler.
83891 2008-10-22  Eric Blake  <ebb9@byu.net>
83893         netdb: also supply struct addrinfo for cygwin 1.5.x
83894         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
83895         older cygwin.
83896         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
83897         cygwin.
83898         * doc/posix-headers/netdb.texi (netdb.h): Document this.
83900 2008-10-22  Bruno Haible  <bruno@clisp.org>
83902         * users.txt: Update entry about pspp.
83904 2008-10-21  Bruno Haible  <bruno@clisp.org>
83906         Simplification.
83907         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
83908         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
83910         Simplification.
83911         * lib/ioctl.c (ioctl): Don't undefine.
83912         * lib/socket.c (socket): Don't undefine.
83914         Remove unused module indicator macros.
83915         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
83916         GNULIB_$1 as a C macro.
83918         * doc/posix-functions/close.texi: Undo last change.
83919         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
83920         Windows platforms.
83922 2008-10-21  Bruno Haible  <bruno@clisp.org>
83924         Add gethostname() declaration to <unistd.h>.
83925         * lib/unistd.in.h (gethostname): New declaration.
83926         * lib/gethostname.c: Include <unistd.h>.
83927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
83928         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
83929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
83930         and HAVE_GETHOSTNAME.
83931         * modules/gethostname (Depends-on): Add unistd.
83932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83933         (Include): Specify <unistd.h>.
83934         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
83935         HAVE_GETHOSTNAME.
83936         * tests/test-gethostname.c: Include <unistd.h> first.
83938 2008-10-21  Bruno Haible  <bruno@clisp.org>
83940         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
83941         * modules/select-tests (Depends-on): Likewise.
83942         Reported by Simon Josefsson.
83944 2008-10-21  Simon Josefsson  <simon@josefsson.org>
83946         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
83947         * lib/accept.c: New file, based on winsock.c.
83948         * lib/bind.c: New file, based on winsock.c.
83949         * lib/connect.c: New file, based on winsock.c.
83950         * lib/getpeername.c: New file, based on winsock.c.
83951         * lib/getsockname.c: New file, based on winsock.c.
83952         * lib/getsockopt.c: New file, based on winsock.c.
83953         * lib/ioctl.c: New file, based on winsock.c.
83954         * lib/listen.c: New file, based on winsock.c.
83955         * lib/recv.c: New file, based on winsock.c.
83956         * lib/recvfrom.c: New file, based on winsock.c.
83957         * lib/send.c: New file, based on winsock.c.
83958         * lib/sendto.c: New file, based on winsock.c.
83959         * lib/setsockopt.c: New file, based on winsock.c.
83960         * lib/shutdown.c: New file, based on winsock.c.
83961         * lib/socket.c: New file, based on winsock.c.
83962         * lib/w32sock.h: New file, based on winsock.c.
83963         * lib/winsock.c: Remove file.
83964         * modules/accept: Likewise.
83965         * modules/bind: Likewise.
83966         * modules/connect: Likewise.
83967         * modules/getpeername: Likewise.
83968         * modules/getsockname: Likewise.
83969         * modules/getsockopt: Likewise.
83970         * modules/ioctl: Likewise.
83971         * modules/listen: Likewise.
83972         * modules/recv: Likewise.
83973         * modules/recvfrom: Likewise.
83974         * modules/send: Likewise.
83975         * modules/sendto: Likewise.
83976         * modules/setsockopt: Likewise.
83977         * modules/shutdown: Likewise.
83978         * modules/socket: Use socket.c instead of winsock.c.
83979         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
83980         * doc/posix-functions/accept.texi: Doc fix.
83981         * doc/posix-functions/bind.texi: Doc fix.
83982         * doc/posix-functions/close.texi: Doc fix.
83983         * doc/posix-functions/connect.texi: Doc fix.
83984         * doc/posix-functions/getpeername.texi: Doc fix.
83985         * doc/posix-functions/getsockname.texi: Doc fix.
83986         * doc/posix-functions/getsockopt.texi: Doc fix.
83987         * doc/posix-functions/ioctl.texi: Doc fix.
83988         * doc/posix-functions/listen.texi: Doc fix.
83989         * doc/posix-functions/recv.texi: Doc fix.
83990         * doc/posix-functions/recvfrom.texi: Doc fix.
83991         * doc/posix-functions/send.texi: Doc fix.
83992         * doc/posix-functions/sendto.texi: Doc fix.
83993         * doc/posix-functions/setsockopt.texi: Doc fix.
83994         * doc/posix-functions/shutdown.texi: Doc fix.
83995         * doc/posix-functions/socket.texi: Doc fix.
83997 2008-10-20  Bruno Haible  <bruno@clisp.org>
83999         Take into account the role of SIGABRT_COMPAT on Windows 2008.
84000         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
84001         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
84002         as an alias for SIGABRT.
84003         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
84004         (sigaction): Map it to SIGABRT.
84005         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
84007 2008-10-20  Bruno Haible  <bruno@clisp.org>
84009         * lib/fts.c: Don't include lstat.h.
84010         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
84012         Move the lstat() declaration to <sys/stat.h>.
84013         * lib/lstat.h: Remove file.
84014         * lib/sys_stat.in.h: Add special invocation convention.
84015         (lstat): New declaration.
84016         * lib/lstat.c (orig_lstat): New function.
84017         (rpl_lstat): Use orig_lstat instead of lstat.
84018         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
84019         AC_C_INLINE. Set REPLACE_LSTAT.
84020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
84021         and REPLACE_LSTAT.
84022         * modules/lstat (Files): Remove lib/lstat.h.
84023         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
84024         (Include): Specify <sys/stat.h> instead of lstat.h.
84025         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
84026         REPLACE_LSTAT.
84027         * NEWS: Mention the change.
84029 2008-10-20  Bruno Haible  <bruno@clisp.org>
84031         * modules/posix_spawn-tests: New file.
84032         * tests/test-posix_spawn3.c: New file.
84034 2008-10-20  Bruno Haible  <bruno@clisp.org>
84036         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
84037         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
84038         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
84039         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
84040         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
84042 2008-10-20  Bruno Haible  <bruno@clisp.org>
84044         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
84045         of posix_spawn on AIX 5.3.
84047 2008-10-20  Bruno Haible  <bruno@clisp.org>
84049         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
84051 2008-10-20  Bruno Haible  <bruno@clisp.org>
84053         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
84054         of AC_LANG_PROGRAM.
84056 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84058         * lib/netdb.in.h: Don't define GNU specific constants until they
84059         are supported or needed.  Reported by Bruno Haible
84060         <bruno@clisp.org>.
84062 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84064         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
84066 2008-10-20  Simon Josefsson  <simon@josefsson.org>
84068         * lib/getaddrinfo.h: Remove file.
84069         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
84070         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
84071         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
84072         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
84073         * modules/netdb: Substitute GNULIB_GETADDRINFO.
84074         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
84075         * tests/test-getaddrinfo.c: Likewise.
84076         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
84077         * NEWS: Mention change.
84079 2008-10-19  Bruno Haible  <bruno@clisp.org>
84081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
84083 2008-10-19  Bruno Haible  <bruno@clisp.org>
84085         * lib/wait-process.c: Include simply <sys/wait.h>.
84086         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
84087         WIFSTOPPED): Remove fallback definitions.
84088         * modules/wait-process (Depends-on): Add sys_wait.
84090         New module 'sys_wait'.
84091         * modules/sys_wait: New file.
84092         * lib/sys_wait.in.h: New file, partially copied from
84093         lib/wait-process.c.
84094         * m4/sys_wait_h.m4: New file.
84095         * doc/posix-headers/sys_wait.texi: Mention the new module.
84097 2008-10-19  Bruno Haible  <bruno@clisp.org>
84099         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
84101 2008-10-19  Bruno Haible  <bruno@clisp.org>
84103         Assume that waitpid() fills an 'int' status, not a 'union wait'.
84104         * lib/wait-process.c (WAIT_T): Remove type.
84105         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
84106         (wait_subprocess): Update.
84108 2008-10-19  Bruno Haible  <bruno@clisp.org>
84110         New module 'atoll'.
84111         * modules/atoll: New file.
84112         * lib/stdlib.in.h (atoll): New declaration.
84113         * lib/atoll.c: New file, from glibc with modifications.
84114         * m4/atoll.m4: New file.
84115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
84116         HAVE_ATOLL.
84117         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
84118         * doc/posix-functions/atoll.texi: Mention the new module.
84120 2008-10-19  Bruno Haible  <bruno@clisp.org>
84122         Add strtoull() declaration to <stdlib.h>.
84123         * lib/stdlib.in.h (strtoull): New declaration.
84124         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
84125         Set HAVE_STRTOULL.
84126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
84127         HAVE_STRTOULL.
84128         * modules/strtoull (Depends-on): Add stdlib.
84129         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84130         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
84131         HAVE_STRTOULL.
84133 2008-10-19  Bruno Haible  <bruno@clisp.org>
84135         Add strtoll() declaration to <stdlib.h>.
84136         * lib/stdlib.in.h (strtoll): New declaration.
84137         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
84138         Set HAVE_STRTOLL.
84139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
84140         HAVE_STRTOLL.
84141         * modules/strtoll (Depends-on): Add stdlib.
84142         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84143         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
84145 2008-10-19  Bruno Haible  <bruno@clisp.org>
84147         * modules/bcopy (Depends-on): Add strings.
84148         (Include): Specify <strings.h>.
84150 2008-10-19  Bruno Haible  <bruno@clisp.org>
84152         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
84154 2008-10-19  Bruno Haible  <bruno@clisp.org>
84156         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
84157         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
84158         mingw.
84160 2008-10-19  Bruno Haible  <bruno@clisp.org>
84162         * lib/atanl.c: Don't include isnanl.h.
84163         * lib/cosl.c: Likewise.
84164         * lib/ldexpl.c: Likewise.
84165         * lib/logl.c: Likewise.
84166         * lib/sinl.c: Likewise.
84167         * lib/sqrtl.c: Likewise.
84168         * lib/tanl.c: Likewise.
84170         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
84171         * lib/isnanf.h: Remove file.
84172         * lib/isnand.h: Remove file.
84173         * lib/isnanl.h: Remove file.
84174         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
84175         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
84176         macros.
84177         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
84178         HAVE_ISNANF, don't define it as a C macro.
84179         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
84180         HAVE_ISNAND, don't define it as a C macro.
84181         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
84182         HAVE_ISNANL, don't define it as a C macro.
84183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
84184         HAVE_ISNAN[FDL].
84185         * modules/isnanf (Files): Remove lib/isnanf.h.
84186         (Depends-on): Add math.
84187         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84188         (Include): Specify <math.h> instead of isnanf.h.
84189         * modules/isnand (Files): Remove lib/isnand.h.
84190         (Depends-on): Add math.
84191         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84192         (Include): Specify <math.h> instead of isnand.h.
84193         * modules/isnanl (Files): Remove lib/isnanl.h.
84194         (Depends-on): Add math.
84195         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
84196         (Include): Specify <math.h> instead of isnanl.h.
84197         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
84198         HAVE_ISNAN[FDL].
84199         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
84200         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
84201         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
84202         * NEWS: Mention the change.
84204 2008-10-18  Bruno Haible  <bruno@clisp.org>
84206         Add getusershell(), setusershell(), endusershell() declarations to
84207         <unistd.h>.
84208         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
84209         declarations.
84210         * lib/getusershell.c: Include unistd.h.
84211         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
84212         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
84213         HAVE_GETUSERSHELL.
84214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
84215         and HAVE_GETUSERSHELL.
84216         * modules/getusershell (Depends-on): Add unistd, extensions.
84217         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84218         (Include): Specify <unistd.h>.
84219         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
84220         HAVE_GETUSERSHELL.
84222 2008-10-18  Bruno Haible  <bruno@clisp.org>
84224         Add a getloadavg() declaration to <stdlib.h>.
84225         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
84226         getloadavg declaration.
84227         (getloadavg): New declaration.
84228         * lib/getloadavg.c: Include <stdlib.h> first.
84229         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
84230         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
84231         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
84232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
84233         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
84234         * modules/getloadavg (Depends-on): Add stdlib, extensions.
84235         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84236         (Include): Specify <stdlib.h>.
84237         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
84238         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
84240 2008-10-18  Bruno Haible  <bruno@clisp.org>
84242         * lib/dirchownmod.c: Don't include lchmod.h.
84244         Move the lchmod() declaration to <sys/stat.h>.
84245         * lib/lchmod.h: Remove file.
84246         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
84247         (lchmod): New declaration, moved here from lib/lchown.h.
84248         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
84249         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
84250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
84251         and HAVE_LCHMOD.
84252         * modules/lchmod (Files): Remove lib/lchmod.h.
84253         (Depends-on): Add sys_stat, extensions.
84254         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
84255         (Include): Specify <sys/stat.h> instead of lchmod.h.
84256         * modules/sys_stat (Depends-on): Add link-warning.
84257         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
84258         definition of GL_LINK_WARNING.
84259         * NEWS: Mention the change.
84261 2008-10-18  Bruno Haible  <bruno@clisp.org>
84263         * lib/fchdir.c: Don't include dirfd.h.
84264         * lib/fts.c: Likewise.
84265         * lib/getcwd.c: Likewise.
84266         * lib/glob.c: Likewise.
84268         Move the dirfd() declaration to <dirent.h>.
84269         * lib/dirfd.h: Remove file.
84270         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
84271         (dirfd): New declaration.
84272         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
84273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
84274         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
84275         HAVE_DECL_DIRFD.
84276         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
84277         HAVE_DECL_DIRFD.
84278         * modules/dirfd (Files): Remove lib/dirfd.h.
84279         (Depends-on): Add dirent, extensions.
84280         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
84281         (Include): Specify <dirent.h> instead of dirfd.h.
84282         * modules/dirent (Depends-on): Add link-warning.
84283         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
84284         definition of GL_LINK_WARNING.
84285         * NEWS: Mention the change.
84287 2008-10-18  Bruno Haible  <bruno@clisp.org>
84289         Move the euidaccess() declaration to <unistd.h>.
84290         * lib/euidaccess.h: Remove file.
84291         * lib/unistd.in.h (euidaccess): New declaration.
84292         * lib/euidaccess.c: Don't include euidaccess.h.
84293         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
84294         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
84295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
84296         and HAVE_EUIDACCESS.
84297         * modules/euidaccess (Files): Remove lib/euidaccess.h.
84298         (Depends-on): Add unistd.
84299         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84300         (Include): Specify <unistd.h> instead of euidaccess.h.
84301         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
84302         HAVE_EUIDACCESS.
84303         * NEWS: Mention the change.
84305 2008-10-18  Bruno Haible  <bruno@clisp.org>
84307         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
84309         Move the getdomainname() declaration to <unistd.h>.
84310         * lib/getdomainname.h: Remove file.
84311         * lib/unistd.in.h (getdomainname): New declaration.
84312         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
84313         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
84314         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
84315         HAVE_GETDOMAINNAME.
84316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
84317         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
84318         * modules/getdomainname (Files): Remove lib/getdomainname.h.
84319         (Depends-on): Add unistd, extensions.
84320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
84321         (Includes): Specify <unistd.h> instead of getdomainname.h.
84322         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
84323         HAVE_GETDOMAINNAME.
84324         * NEWS: Mention the change.
84326 2008-10-18  Bruno Haible  <bruno@clisp.org>
84328         * modules/dirent: New file.
84329         * m4/dirent_h.m4: New file.
84330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
84331         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
84332         * modules/fchdir (Files): Remove lib/dirent.in.h.
84333         (Depends-on): Add dirent.
84334         (Makefile.am): Move rules to modules/dirent.
84335         * doc/posix-headers/dirent.texi: Mention the new module.
84337 2008-10-18  Bruno Haible  <bruno@clisp.org>
84339         Avoid -Wunused-parameter warnings in public gnulib header files.
84340         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
84341         macro.
84342         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
84344 2008-10-18  Bruno Haible  <bruno@clisp.org>
84346         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
84347         * doc/glibc-functions/error.texi: Mention the module 'error'.
84348         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
84349         * doc/glibc-functions/getdomainname.texi: Mention the module
84350         'getdomainname'.
84351         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
84352         * doc/glibc-functions/getpagesize.texi: Mention the module
84353         'getpagesize'.
84354         * doc/glibc-functions/getusershell.texi: Mention the module
84355         'getusershell'.
84356         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
84357         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
84358         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
84359         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
84360         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
84361         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
84362         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
84363         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
84364         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
84365         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
84366         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
84367         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
84368         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
84369         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
84371 2008-10-17  Bruno Haible  <bruno@clisp.org>
84373         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
84374         HP-UX and IRIX, use -0.0L.
84375         * tests/test-ceill.c (minus_zero): Likewise.
84376         * tests/test-floorl.c (minus_zero): Likewise.
84377         * tests/test-frexpl.c (minus_zero): Likewise.
84378         * tests/test-isnan.c (minus_zerol): Likewise.
84379         * tests/test-isnanl.h (minus_zero): Likewise.
84380         * tests/test-ldexpl.c (minus_zero): Likewise.
84381         * tests/test-roundl.c (minus_zero): Likewise.
84382         * tests/test-signbit.c (minus_zerol): Likewise.
84383         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84384         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84385         * tests/test-truncl.c (minus_zero): Likewise.
84386         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84387         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84388         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
84389         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84391 2008-10-17  Bruno Haible  <bruno@clisp.org>
84393         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
84394         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
84395         that it gets activated only for gcc >= 3.0.
84396         * lib/dirent.in.h: Likewise.
84397         * lib/errno.in.h: Likewise.
84398         * lib/fcntl.in.h: Likewise.
84399         * lib/float.in.h: Likewise.
84400         * lib/iconv.in.h: Likewise.
84401         * lib/inttypes.in.h: Likewise.
84402         * lib/locale.in.h: Likewise.
84403         * lib/math.in.h: Likewise.
84404         * lib/netdb.in.h: Likewise.
84405         * lib/netinet_in.in.h: Likewise.
84406         * lib/search.in.h: Likewise.
84407         * lib/signal.in.h: Likewise.
84408         * lib/spawn.in.h: Likewise.
84409         * lib/stdarg.in.h: Likewise.
84410         * lib/stdint.in.h: Likewise.
84411         * lib/stdio.in.h: Likewise.
84412         * lib/stdlib.in.h: Likewise.
84413         * lib/string.in.h: Likewise.
84414         * lib/strings.in.h: Likewise.
84415         * lib/sys_file.in.h: Likewise.
84416         * lib/sys_ioctl.in.h: Likewise.
84417         * lib/sys_select.in.h: Likewise.
84418         * lib/sys_socket.in.h: Likewise.
84419         * lib/sys_stat.in.h: Likewise.
84420         * lib/sys_time.in.h: Likewise.
84421         * lib/sysexits.in.h: Likewise.
84422         * lib/time.in.h: Likewise.
84423         * lib/unistd.in.h: Likewise.
84424         * lib/wchar.in.h: Likewise.
84425         * lib/wctype.in.h: Likewise.
84426         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84428 2008-10-17  Jim Meyering  <meyering@redhat.com>
84430         ignore-value: don't depend on inline module
84431         * modules/ignore-value (Depends-on): Remove 'inline'.
84432         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
84433         Suggestion from Bruno Haible.
84435 2008-10-17  Bruno Haible  <bruno@clisp.org>
84437         New implementation of condition variables for Win32.
84438         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
84439         (gl_linked_waitqueue_t): New type.
84440         (gl_cond_t): Use it.
84441         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
84442         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
84443         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
84444         (glthread_cond_init_func, glthread_cond_wait_func,
84445         glthread_cond_timedwait_func, glthread_cond_signal_func,
84446         glthread_cond_broadcast_func, glthread_cond_destroy_func):
84447         Reimplemented on the basis of gl_linked_waitqueue_t.
84448         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
84449         gl_waitqueue_t.
84450         (gl_rwlock_t): Update.
84451         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
84453 2008-10-17  Simon Josefsson  <simon@josefsson.org>
84455         * modules/recvfrom (Depends-on): Add dependency on getpeername.
84456         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84458 2008-10-17  Jim Meyering  <meyering@redhat.com>
84460         ignore-value: new module
84461         * modules/ignore-value: New file.
84462         * lib/ignore-value.h: New file.
84463         * MODULES.html.sh (Compiler warning management): New section,
84464         just for this module.  More to come.
84466 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84468         open-safer.c: avoid 'signed and unsigned in conditional...' warning
84469         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
84470         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
84472 2008-10-16  Jim Meyering  <meyering@redhat.com>
84474         openat-die.c: avoid 'no previous prototype' warning
84475         * lib/openat-die.c: Include "openat.h".
84476         Reported by Reuben Thomas <rrt@sc3d.org>.
84478 2008-10-16  Simon Josefsson  <simon@josefsson.org>
84480         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
84481         * lib/netdb.in.h: Fix typo.
84482         Reported by Bruno Haible  <bruno@clisp.org>
84484         * lib/netdb.in.h: Include sys/socket.h for platforms without
84485         netdb.h, to get structures like hostent on MinGW.
84486         * modules/netdb (Depends-on): Add sys_socket.
84488 2008-10-15  Simon Josefsson  <simon@josefsson.org>
84490         * modules/netdb, modules/netdb-tests: New file.
84491         * m4/netdb_h.m4: New file.
84492         * lib/netdb.in.h: Add, currently just an empty file pending
84493         definitions.
84494         * tests/test-netdb.c: New file.
84495         * doc/posix-headers/netdb.texi: Mention that we replace it if
84496         needed.
84497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84498         netdb.
84500 2008-10-15  Simon Josefsson  <simon@josefsson.org>
84502         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
84503         with code.
84505 2008-10-13  Bruno Haible  <bruno@clisp.org>
84507         * lib/glthread/cond.c (glthread_cond_wait_func,
84508         glthread_cond_timedwait_func): Add a comment.
84510 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84512         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
84513         * tests/test-select.c: Likewise,
84515 2008-10-13  Bruno Haible  <bruno@clisp.org>
84517         * lib/glthread/cond.c (glthread_cond_wait_func,
84518         glthread_cond_timedwait_func): Fix variable name.
84519         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84521 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
84523         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
84524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
84525         struct sockaddr.sa_len.
84526         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
84528 2008-10-13  Simon Josefsson  <simon@josefsson.org>
84530         * build-aux/pmccabe2html: Add css and css_url parameters.
84532 2008-10-12  Bruno Haible  <bruno@clisp.org>
84534         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
84535         calling aclx_get.
84536         Reported by Rainer Tammer <tammer@tammer.net>.
84538 2008-10-12  Bruno Haible  <bruno@clisp.org>
84540         Use msvcrt aware primitives for creation/termination of Win32 threads.
84541         * lib/glthread/thread.c: Include <process.h>.
84542         (glthread_create_func): Use _beginthreadex instead of CreateThread.
84543         (wrapper_func): Update signature.
84544         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
84546 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84547             Bruno Haible  <bruno@clisp.org>
84549         Provide a Win32 implementation of the 'cond' module.
84550         * lib/glthread/cond.h [USE_WIN32]: New implementation.
84551         * lib/glthread/cond.c (glthread_cond_init_func,
84552         glthread_cond_wait_func, glthread_cond_timedwait_func,
84553         glthread_cond_signal_func, glthread_cond_broadcast_func,
84554         glthread_cond_destroy_func) [USE_WIN32]: New functions.
84555         * modules/cond (Dependencies): Add gettimeofday.
84557 2008-10-11  Bruno Haible  <bruno@clisp.org>
84559         Make sleep work on older versions of mingw.
84560         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
84561         only whether it exists.
84562         * doc/posix-functions/sleep.texi: Mention the problem with older
84563         versions of mingw.
84565 2008-10-11  Bruno Haible  <bruno@clisp.org>
84567         New module 'shutdown'.
84568         * modules/shutdown: New file.
84569         * lib/sys_socket.in.h (shutdown): New declaration.
84570         * lib/winsock.c (shutdown): New function.
84571         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
84572         GNULIB_SHUTDOWN.
84573         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
84574         * doc/posix-functions/shutdown.texi: Document the new module.
84576 2008-10-11  Jim Meyering  <meyering@redhat.com>
84578         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
84580 2008-10-11  Bruno Haible  <bruno@clisp.org>
84582         New module 'fclose'.
84583         * modules/fclose: New file.
84584         * lib/stdio.in.h (fclose): New declaration.
84585         * lib/fclose.c: New file.
84586         * m4/fclose.m4: New file.
84587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
84588         REPLACE_FCLOSE.
84589         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
84590         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
84591         REPLACE_FCLOSE.
84592         * modules/close (Depends-on): fclose.
84593         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
84595 2008-10-11  Bruno Haible  <bruno@clisp.org>
84597         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
84598         set errno and don't call _close.
84600 2008-10-10  Bruno Haible  <bruno@clisp.org>
84602         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
84603         ACL, not afterwards. Fixes test failure on Cygwin.
84605 2008-10-09  Ben Pfaff  <blp@gnu.org>
84607         * build-aux/announce-gen: Fix gnulib version related part of usage
84608         message.  Die with a useful error message if no tarballs are
84609         found.
84611 2008-10-10  Jim Meyering  <meyering@redhat.com>
84613         bootstrap: use git's --depth=N option only if it's supported
84614         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
84615         recognize the --depth option.  Reported by Pádraig Brady.
84617 2008-10-09  Bruno Haible  <bruno@clisp.org>
84619         New module 'ioctl'.
84620         * modules/ioctl: New file.
84621         * lib/sys_socket.in.h (ioctl): Remove declaration.
84622         * lib/winsock.c: Include <sys/ioctl.h>.
84623         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
84624         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
84625         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
84626         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
84627         * doc/posix-functions/ioctl.texi: Mention the new module.
84629 2008-10-09  Bruno Haible  <bruno@clisp.org>
84631         New module 'sys_ioctl'.
84632         * lib/sys_ioctl.in.h: New file.
84633         * m4/sys_ioctl_h.m4: New file.
84634         * modules/sys_ioctl: New file.
84635         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
84637 2008-10-09  Bruno Haible  <bruno@clisp.org>
84639         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
84640         * lib/winsock.c: Include <stdarg.h>.
84641         (rpl_ioctl): Change to second argument 'int' and then varargs.
84643 2008-10-09  Bruno Haible  <bruno@clisp.org>
84645         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
84646         when the sys_socket module is present and the system has <winsock2.h>.
84648 2008-10-09  Bruno Haible  <bruno@clisp.org>
84650         * doc/posix-functions/close.texi: Mention module 'close' instead of
84651         module 'sys_socket'.
84653 2008-10-09  Bruno Haible  <bruno@clisp.org>
84655         * doc/glibc-headers/sys_ioctl.texi: New file.
84656         * doc/gnulib.texi: Include it.
84658 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84659             Bruno Haible  <bruno@clisp.org>
84661         Combine the two replacements of 'close'.
84662         * lib/sys_socket.in.h (close): Define to a reminder to include
84663         <unistd.h>.
84664         (_gl_close_fd_maybe_socket): New declaration.
84665         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
84666         * lib/winsock.c (close): Remove undefinition.
84667         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
84668         needed for the gnulib module 'close'.
84669         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
84670         define to an error symbol or to a warning, if suitable.
84671         * lib/close.c: Include <sys/socket.h>.
84672         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
84673         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
84674         UNISTD_H_HAVE_WINSOCK2_H.
84675         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
84676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
84677         UNISTD_H_HAVE_WINSOCK2_H.
84678         * modules/sys_socket (Files): Add m4/unistd_h.m4.
84679         (configure.ac): Set a module indicator.
84680         (Makefile.am): Substitute GNULIB_CLOSE.
84681         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
84682         * modules/poll-tests (Depends-on): Add close.
84683         * modules/select-tests (Depends-on): Likewise.
84685 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84686             Bruno Haible  <bruno@clisp.org>
84688         New module 'close'.
84689         * modules/close: New file.
84690         * lib/unistd.in.h (close): Move declaration out of the
84691         FCHDIR_REPLACEMENT scope.
84692         (_gl_unregister_fd): New declaration.
84693         * lib/close.c: New file.
84694         * lib/fchdir.c (rpl_close): Remove function.
84695         * m4/close.m4: New file.
84696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
84697         close.
84698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
84699         REPLACE_CLOSE.
84700         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
84701         REPLACE_CLOSE.
84702         * modules/fchdir (Depends-on): Add close.
84704 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84705             Bruno Haible  <bruno@clisp.org>
84707         * lib/fcntl.in.h (open): Simplify conditionals.
84708         (_gl_register_fd): New declaration.
84709         * lib/fchdir.c (rpl_open): Remove function.
84710         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
84711         also.
84712         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
84713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
84714         open.
84716 2008-10-09  Jim Meyering  <meyering@redhat.com>
84718         GNUmakefile: use the more name-space-friendly "_version"
84719         * top/GNUmakefile (_dummy): Update.
84720         (_version): Rename from "version".
84722 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84723             Bruno Haible  <bruno@clisp.org>
84725         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
84726         rpl_close.
84727         (_gl_register_fd): New function, extracted from rpl_open.
84728         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
84729         (rpl_open, rpl_opendir): Use _gl_register_fd.
84731 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
84733         Fix organization of 'open' replacement.
84734         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
84735         (gl_FUNC_OPEN): Use it.
84736         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
84738 2008-10-08  Bruno Haible  <bruno@clisp.org>
84740         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
84742 2008-10-08  Simon Josefsson  <simon@josefsson.org>
84744         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
84745         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
84746         listen).
84748 2008-10-08  Eric Blake  <ebb9@byu.net>
84750         GNUmakefile: add 'make version' target
84751         * top/GNUmakefile (_curr-ver): Split version update rules...
84752         (version): ...into a target.
84754 2008-10-07  Bruno Haible  <bruno@clisp.org>
84756         Use a more portable replacement expression for -0.0L.
84757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
84758         instead of -0.0L. Fix m4 quotation.
84760         * tests/test-signbit.c: Include <float.h>.
84761         (minus_zero): New variable.
84762         (test_signbitl): Use minus_zero instead of -zero.
84763         * modules/signbit-tests (Depends-on): Add float.
84765         * tests/test-ceill.c: Include <float.h>.
84766         (zero): Remove variable.
84767         (minus_zero): New variable.
84768         (main): Use minus_zero instead of -zero.
84769         * modules/ceill-tests (Depends-on): Add float.
84771         * tests/test-floorl.c: Include <float.h>.
84772         (zero): Remove variable.
84773         (minus_zero): New variable.
84774         (main): Use minus_zero instead of -zero.
84775         * modules/floorl-tests (Depends-on): Add float.
84777         * tests/test-roundl.c: Include <float.h>.
84778         (zero): Remove variable.
84779         (minus_zero): New variable.
84780         (main): Use minus_zero instead of -zero.
84781         * modules/roundl-tests (Depends-on): Add float.
84783         * tests/test-truncl.c: Include <float.h>.
84784         (zero): Remove variable.
84785         (minus_zero): New variable.
84786         (main): Use minus_zero instead of -zero.
84787         * modules/truncl-tests (Depends-on): Add float.
84789         * tests/test-frexpl.c (zero): Remove variable.
84790         (minus_zero): New variable.
84791         (main): Use minus_zero instead of -zero.
84792         * modules/frexpl-tests (Depends-on): Add float.
84794         * tests/test-isnan.c (zerol): Remove variable.
84795         (minus_zerol): New variable.
84796         (test_long_double): Use minus_zerol instead of -zerol.
84797         * modules/isnan-tests (Depends-on): Add float.
84799         * tests/test-isnanl.h (zero): Remove variable.
84800         (minus_zero): New variable.
84801         (main): Use minus_zero instead of -zero.
84802         * modules/isnanl-nolibm-tests (Depends-on): Add float.
84803         * modules/isnanl-tests (Depends-on): Add float.
84805         * tests/test-ldexpl.c (zero): Remove variable.
84806         (minus_zero): New variable.
84807         (main): Use minus_zero instead of -zero.
84808         * modules/ldexpl-tests (Depends-on): Add float.
84810         * tests/test-snprintf-posix.h (zerol): Remove variable.
84811         (minus_zerol): New variable.
84812         (test_function): Use minus_zerol instead of -zerol.
84813         * modules/snprintf-posix-tests (Depends-on): Add float.
84814         * modules/vsnprintf-posix-tests (Depends-on): Add float.
84816         * tests/test-sprintf-posix.h (zerol): Remove variable.
84817         (minus_zerol): New variable.
84818         (test_function): Use minus_zerol instead of -zerol.
84819         * modules/sprintf-posix-tests (Depends-on): Add float.
84820         * modules/vsprintf-posix-tests (Depends-on): Add float.
84822         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
84823         (minus_zerol): New variable.
84824         (test_function): Use minus_zerol instead of -zerol.
84825         * modules/vasnprintf-posix-tests (Depends-on): Add float.
84827         * tests/test-vasprintf-posix.c (zerol): Remove variable.
84828         (minus_zerol): New variable.
84829         (test_function): Use minus_zerol instead of -zerol.
84830         * modules/vasprintf-posix-tests (Depends-on): Add float.
84832 2008-10-07  Simon Josefsson  <simon@josefsson.org>
84834         * MODULES.html.sh (Support for building documentation): Mention
84835         pmccabe2html.  Sort entries.
84837         Add pmccabe2html module, from gnupdf.
84838         * build-aux/pmccabe.css: New file.
84839         * build-aux/pmccabe2html: New file.
84840         * m4/pmccabe2html.m4: New file.
84841         * modules/pmccabe2html: New file.
84843 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
84845         flock: new module
84846         * MODULES.html.sh: Add to list of modules.
84847         * lib/flock.c: flock implementation for Windows and Unix systems
84848         which have fcntl.
84849         * doc/glibc-functions/flock.texi: Update documentation.
84850         * lib/sys_file.in.h: <sys/file.h> header file.
84851         * m4/flock.m4: M4 macros.
84852         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
84853         * modules/flock: flock module.
84854         * modules/flock-tests: flock tests module.
84855         * modules/sys_file: sys/file.h module.
84856         * tests/test-flock.c: test suite for flock.
84858 2008-10-06  Jim Meyering  <meyering@redhat.com>
84860         bootstrap: check for LT_INIT more portably still ;-)
84861         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
84862         Spotted by Bruno Haible.
84864 2008-10-06  Eric Blake  <ebb9@byu.net>
84866         test-signbit: avoid tripping Irix cc bug on -0.0L
84867         * tests/test-signbit.c (minus_zerol): Delete, and replace with
84868         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
84869         entire testsuite consistent and avoids an Irix 6.2 bug.
84871 2008-10-05  Bruno Haible  <bruno@clisp.org>
84872             Jim Meyering  <jim@meyering.net>
84874         Add an option for ignoring EPIPE during close_stdout.
84875         * lib/closeout.h: Include <stdbool.h>.
84876         (close_stdout_set_ignore_EPIPE): New declaration.
84877         * lib/closeout.c: Include <stdbool.h>.
84878         (ignore_EPIPE): New variable.
84879         (close_stdout_set_ignore_EPIPE): New function.
84880         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
84881         * lib/close-stream.c (close_stream): Mention the possible EPIPE
84882         failure.
84883         * modules/closeout (Depends-on): Add stdbool.
84885 2008-10-05  Bruno Haible  <bruno@clisp.org>
84887         * modules/accept: New file.
84888         * modules/bind: New file.
84889         * modules/connect: New file.
84890         * modules/getpeername: New file.
84891         * modules/getsockname: New file.
84892         * modules/getsockopt: New file.
84893         * modules/listen: New file.
84894         * modules/recv: New file.
84895         * modules/recvfrom: New file.
84896         * modules/send: New file.
84897         * modules/sendto: New file.
84898         * modules/setsockopt: New file.
84899         * modules/socket: New file.
84900         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
84901         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
84902         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
84903         the particular module is requested. Add a link warning when the
84904         particular module is not requested.
84905         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
84906         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
84907         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
84908         the particular module is requested.
84909         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
84910         gl_SYS_SOCKET_H_DEFAULTS): New macros.
84911         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
84912         * modules/sys_socket (Depends-on): Add link-warning.
84913         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
84914         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
84915         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
84916         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
84917         GL_LINK_WARNING.
84918         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
84919         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
84920         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
84921         * doc/posix-functions/getpeername.texi: Mention the new module
84922         'getpeername'.
84923         * doc/posix-functions/getsockname.texi: Mention the new module
84924         'getsockname'.
84925         * doc/posix-functions/getsockopt.texi: Mention the new module
84926         'getsockopt'.
84927         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
84928         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
84929         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
84930         * doc/posix-functions/send.texi: Mention the new module 'send'.
84931         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
84932         * doc/posix-functions/setsockopt.texi: Mention the new module
84933         'setsockopt'.
84934         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
84935         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
84936         listen, connect, accept.
84937         * modules/select-tests (Depends-on): Likewise.
84939 2008-10-05  Bruno Haible  <bruno@clisp.org>
84941         * lib/winsock.c (strerror): Remove unused #undef.
84942         (rpl_close): Remove unused local variable.
84944         * modules/sys_socket (Depends-on); Add errno.
84946 2008-10-05  Bruno Haible  <bruno@clisp.org>
84948         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
84949         (select): Add a link warning when the 'select' module is not used.
84950         * modules/sys_select (Depends-on): Add link-warning.
84951         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
84952         Suggested by Paolo Bonzini.
84954 2008-10-05  Jim Meyering  <meyering@redhat.com>
84956         bootstrap: check for LT_INIT more portably
84957         * build-aux/bootstrap: Avoid using grep -E, since it's not
84958         portable enough.  Suggestion from Bruno Haible.
84960 2008-10-05  Bruno Haible  <bruno@clisp.org>
84962         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
84963         as being fixed by gnulib.
84965 2008-10-05  Bruno Haible  <bruno@clisp.org>
84967         * modules/select-tests: New file, mostly copied from
84968         modules/sys_select-tests.
84969         * tests/test-select.c: New file, mostly copied from
84970         tests/test-sys_select.c.
84971         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
84972         * modules/sys_select-tests (Depends-on): Remove all dependencies.
84973         (Makefile.am): Remove test_sys_select_LDADD.
84975         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
84976         to an undefined symbol, for an error message.
84977         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
84978         (gl_SYS_SELECT_H_DEFAULTS): New macro.
84979         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
84980         winsock-select.c here.
84981         * modules/sys_select (Files): Remove lib/winsock-select.c.
84982         (Depends-on): Remove alloca.
84983         (Makefile.am): Substitute GNULIB_SELECT.
84984         * modules/select: New file.
84985         * doc/posix-functions/select.texi: Update.
84987 2008-10-05  Bruno Haible  <bruno@clisp.org>
84989         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
84990         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
84991         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
84992         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
84993         getdtablesize.
84994         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
84995         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
84997 2008-10-05  Bruno Haible  <bruno@clisp.org>
84999         * modules/getdtablesize-tests: New file.
85000         * tests/test-getdtablesize.c: New file.
85002         New module 'getdtablesize'.
85003         * lib/unistd.in.h (getdtablesize): New declaration.
85004         * lib/getdtablesize.c: New file.
85005         * m4/getdtablesize.m4: New file.
85006         * modules/getdtablesize: New file.
85007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85008         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
85009         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
85010         HAVE_GETDTABLESIZE.
85011         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
85013 2008-10-05  Bruno Haible  <bruno@clisp.org>
85015         * modules/sched (Makefile.am): Fix typo.
85016         Reported by Simon Josefsson.
85018 2008-10-05  Jim Meyering  <meyering@redhat.com>
85020         bootstrap: check for LT_INIT, too
85021         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
85022         are deprecated.  Suggestion from Ralf Wildenhues.
85024 2008-10-05  Bruno Haible  <bruno@clisp.org>
85026         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
85027         overriding them by ours.
85028         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
85030 2008-10-05  Jim Meyering  <meyering@redhat.com>
85032         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
85033         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
85034         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
85036 2008-10-04  Bruno Haible  <bruno@clisp.org>
85038         * modules/dup2 (License): Change to LGPLv2+.
85039         * modules/sleep (License): Likewise.
85040         * modules/perror (License): Likewise.
85041         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
85042         Blake.
85043         * modules/signal (License): Likewise.
85044         * modules/sigprocmask (License): Likewise.
85045         * modules/raise (License): Change to LGPLv2+, with approval by Jim
85046         Meyering.
85048 2008-10-04  Bruno Haible  <bruno@clisp.org>
85050         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
85051         Reported by Rainer Tammer <tammer@tammer.net>.
85053 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
85054             Bruno Haible  <bruno@clisp.org>
85056         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
85057         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
85058         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
85060 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
85062         filevercmp: new module
85063         * lib/filevercmp.h: New function filevercmp comparing version strings.
85064         * lib/filevercmp.c: Implementation of filevercmp function.
85065         * modules/filevercmp: Module metadata.
85066         * tests/test-filevercmp.c: Unit test for new module.
85067         * modules/filevercmp-tests: Unit test metadata.
85068         * MODULES.html.sh: Add filevercmp module.
85070 2008-10-03  Bruno Haible  <bruno@clisp.org>
85072         * lib/c-ctype.h: Add comment.
85073         Reported by Jim Meyering.
85075 2008-10-02  Bruno Haible  <bruno@clisp.org>
85077         * modules/posix_spawn-internal (Depends-on): Add 'open'.
85079 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85081         * build-aux/bootstrap: Allow renaming bootstrap, and change the
85082         name of bootstrap.conf accordingly.
85084 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85086         * build-aux/bootstrap: Install git-merge-changelog configuration
85087         items into .gitconfig if needed.
85089 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
85091         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
85092         git repository, and initialize/update it accordingly.
85094 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
85096         * modules/fsync-tests: New file.
85097         * tests/test-fsync.c: New file.
85099         New module 'fsync'.
85100         * lib/fsync.c: New file.
85101         * m4/fsync.m4: New file.
85102         * modules/fsync: New file.
85103         * lib/unistd.in.h (fsync): New declaration.
85104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
85105         GNULIB_FSYNC and HAVE_FSYNC.
85106         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
85107         * MODULES.html.sh (posix_functions): Add fsync.
85108         * doc/posix-functions/fsync.texi: Mention the new module.
85110 2008-10-02  Jim Meyering  <meyering@redhat.com>
85112         fts.c: sync with similar code from coreutils' remove.c
85113         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
85114         Guard also with "#if defined __linux__", since for now at least,
85115         this code is Linux-kernel-specific.
85117 2008-10-02  Jim Meyering  <meyering@redhat.com>
85119         fts: bug fixes
85120         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
85121         Include <sys/vfs.h>, not <sys/statfs.h>.
85123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
85124         Include <sys/vfs.h>, not <sys/statfs.h>.
85126 2008-10-01  Bruno Haible  <bruno@clisp.org>
85128         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
85129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
85130         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
85131         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
85132         * doc/posix-functions/posix_spawnp.texi: Likewise.
85133         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
85134         whether posix_spawn actually works.
85135         * m4/pipe.m4 (gl_PIPE): Likewise.
85136         * modules/execute (Files): Add m4/posix_spawn.m4.
85137         * modules/pipe (Files): Add m4/posix_spawn.m4.
85138         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
85140 2008-10-01  Jim Meyering  <meyering@redhat.com>
85142         remove trailing spaces
85143         * NEWS: Likewise.
85144         * lib/poll.c (poll): Likewise.
85145         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
85146         * lib/winsock.c (rpl_close): Likewise.
85147         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
85148         * modules/yield: Likewise.
85149         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
85150         * tests/test-sys_select.c (connect_to_socket): Likewise.
85152         fts.c: adjust a new interface to be more generally useful
85153         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
85154         (fts_build): Adjust caller.
85156 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85158         * modules/cond-tests: New file.
85159         * tests/test-cond.c: New file.
85161 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85162             Bruno Haible  <bruno@clisp.org>
85164         * modules/cond (Dependencies): Add errno, time.
85165         * lib/glthread/cond.h: Include <time.h>.
85166         (gl_cond_define, gl_cond_define_initialized): Use the same definition
85167         across platforms.
85169 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85170             Bruno Haible  <bruno@clisp.org>
85172         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
85174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85175             Bruno Haible  <bruno@clisp.org>
85177         * modules/tls-tests (Depends-on): Add thread, yield.
85178         (configure.ac): Remove all checks.
85179         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
85180         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
85181         gl_thread_self): Remove definitions. Include glthread/thread.h and
85182         glthread/yield.h instead.
85183         (test_tls): Pass an additional NULL argument to gl_thread_join.
85185 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85186             Bruno Haible  <bruno@clisp.org>
85188         * modules/lock-tests (Depends-on): Add thread, yield.
85189         (configure.ac): Remove all checks.
85190         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
85191         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
85192         gl_thread_self): Remove definitions. Include glthread/thread.h and
85193         glthread/yield.h instead.
85194         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
85195         additional NULL argument to gl_thread_join.
85197 2008-09-30  Bruno Haible  <bruno@clisp.org>
85199         Fix the Win32 implementation of the 'thread' module.
85200         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
85201         pointer type.
85202         (gl_thread_self): Invoke gl_thread_self_func.
85203         (gl_thread_self_func): New declaration.
85204         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
85205         (do_init_self_key, init_self_key): New functions.
85206         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
85207         Remove some fields.
85208         (running_threads, running_lock): Remove variables.
85209         (get_current_thread_handle): New function.
85210         (gl_thread_self_func, wrapper_func, glthread_create_func,
85211         glthread_join_func, gl_thread_exit_func): Largely rewritten and
85212         simplified.
85214 2008-09-30  Bruno Haible  <bruno@clisp.org>
85216         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
85217         files.
85219 2008-09-30  Jim Meyering  <meyering@redhat.com>
85221         fts.m4: correct the test for statfs.f_type
85222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
85223         when checking for statfs.f_type.
85225 2008-09-15  Simon Josefsson  <simon@josefsson.org>
85227         tests: avoid some compiler warnings
85228         * tests/test-memchr.c (main): Pass NULL indirectly.
85229         * tests/test-getdate.c (main): Remove unused variable 'ret'.
85231 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
85233         getdate.y: disallow countable dayshifts like "4 yesterday ago"
85234         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
85235         exactly specified dayshifts.
85236         (dayshift): New rule.
85237         (rel): Add dayshift.
85238         (relative_time_table) [tomorrow, yesterday, today, now]:
85239         Use tDAY_SHIFT in place of tDAY_UNIT.
85240         * tests/test-getdate.c: Add tests for now-disallowed countable
85241         dayshifts, e.g., "4 yesterday ago".
85243 2008-09-29  Bruno Haible  <bruno@clisp.org>
85245         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
85246         * tests/test-posix_spawn1.in.sh: Renamed from
85247         tests/test-posix_spawn.in.sh.
85248         * tests/test-posix_spawn2.c: New file.
85249         * tests/test-posix_spawn2.in.sh: New file.
85250         * modules/posix_spawnp-tests (Files): Update.
85251         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
85253 2008-09-29  Bruno Haible  <bruno@clisp.org>
85255         Propagate effects of putenv/setenv/unsetenv to child processes.
85256         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
85257         * lib/pipe.c (create_pipe): Likewise.
85259 2008-09-29  Bruno Haible  <bruno@clisp.org>
85261         Enable use of shell scripts as executables in mingw.
85262         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
85263         run the program as a shell script.
85264         * lib/pipe.c (create_pipe): Likewise.
85265         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
85266         resulting array.
85268 2008-09-29  Eric Blake  <ebb9@byu.net>
85270         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
85272 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
85274         * doc/posix-functions/accept.texi: Update mingw problems.
85275         * doc/posix-functions/bind.texi: Update mingw problems.
85276         * doc/posix-functions/close.texi: Update mingw problems.
85277         * doc/posix-functions/connect.texi: Update mingw problems.
85278         * doc/posix-functions/getpeername.texi: Update mingw problems.
85279         * doc/posix-functions/getsockname.texi: Update mingw problems.
85280         * doc/posix-functions/getsockopt.texi: Update mingw problems.
85281         * doc/posix-functions/ioctl.texi: Update mingw problems.
85282         * doc/posix-functions/listen.texi: Update mingw problems.
85283         * doc/posix-functions/recv.texi: Update mingw problems.
85284         * doc/posix-functions/recvfrom.texi: Update mingw problems.
85285         * doc/posix-functions/select.texi: Update mingw problems.
85286         * doc/posix-functions/send.texi: Update mingw problems.
85287         * doc/posix-functions/sendto.texi: Update mingw problems.
85288         * doc/posix-functions/setsockopt.texi: Update mingw problems.
85289         * doc/posix-functions/socket.texi: Update mingw problems.
85291 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
85292             Bruno Haible  <bruno@clisp.org>
85294         * lib/sys_select.in.h: Include sys/time.h.
85295         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
85296         * modules/sys_select: Depend on sys_time.
85297         * tests/test-sys_select.c: Test that sys/select.h defines struct
85298         timeval fully.
85300 2008-09-29  Bruno Haible  <bruno@clisp.org>
85302         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
85303         * lib/sys_select.in.h: Likewise.
85305 2008-09-29  Bruno Haible  <bruno@clisp.org>
85307         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
85309 2008-09-29  Bruno Haible  <bruno@clisp.org>
85311         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
85312         Set LIBSOCKET instead of augmenting LIBS.
85313         * modules/sockets (Link): New section.
85314         * modules/sockets-tests (test_sockets_LDADD): New variable.
85315         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
85316         * modules/poll-tests (test_poll_LDADD): New variable.
85317         * NEWS: Document the change.
85319 2008-09-29  Bruno Haible  <bruno@clisp.org>
85321         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
85322         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
85323         ARPA_INET_H directly.
85324         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
85326 2008-09-28  Bruno Haible  <bruno@clisp.org>
85328         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
85329         from gl_HEADER_SYS_SOCKET.
85330         (gl_HEADER_SYS_SOCKET): Invoke it.
85331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85333 2008-09-28  Bruno Haible  <bruno@clisp.org>
85335         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
85336         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
85337         Needed on OSF/1 4.0.
85339 2008-09-28  Bruno Haible  <bruno@clisp.org>
85341         Override open more carefully.
85342         * lib/open.c (orig_open): New function.
85343         (rpl_open): Use orig_open instead of open.
85344         * lib/fcntl.in.h: Add special invocation convention.
85345         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
85346         (gl_FUNC_OPEN): Invoke it.
85348         Override freopen more carefully.
85349         * lib/freopen.c (orig_freopen): New function.
85350         (rpl_freopen): Use orig_freopen instead of freopen.
85351         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
85352         (gl_FUNC_FREOPEN): Invoke it.
85354         Override fopen more carefully.
85355         * lib/fopen.c (orig_fopen): New function.
85356         (rpl_fopen): Use orig_fopen instead of fopen.
85357         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
85358         (gl_FUNC_FOPEN): Invoke it.
85359         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
85361 2008-09-28  Bruno Haible  <bruno@clisp.org>
85363         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
85364         SIGPIPE.
85366 2008-09-28  Bruno Haible  <bruno@clisp.org>
85368         * tests/test-sigaction.c (handler, main): Disable the check whether
85369         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
85370         glibc systems with LinuxThreads.
85372 2008-09-28  Bruno Haible  <bruno@clisp.org>
85374         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
85376         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
85377         with AIX xlc.
85378         * lib/fcntl.in.h (open): Likewise.
85379         Reported by Rainer Tammer <tammer@tammer.net>.
85381 2008-09-28  Bruno Haible  <bruno@clisp.org>
85383         * modules/posix_spawnp-tests: New file.
85384         * tests/test-posix_spawn.c: New file.
85385         * tests/test-posix_spawn.in.sh: New file.
85387         New module 'posix_spawnp'.
85388         * modules/posix_spawnp: New file.
85389         * lib/spawnp.c: New file, from GNU libc with modifications.
85390         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
85392         New module 'posix_spawn'.
85393         * modules/posix_spawn: New file.
85394         * lib/spawn.c: New file, from GNU libc with modifications.
85395         * doc/posix-functions/posix_spawn.texi: Mention the new module.
85397         New module 'posix_spawnattr_destroy'.
85398         * modules/posix_spawnattr_destroy: New file.
85399         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
85400         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
85401         module.
85403         New module 'posix_spawnattr_setsigmask'.
85404         * modules/posix_spawnattr_setsigmask: New file.
85405         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
85406         modifications.
85407         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
85408         new module.
85410         New module 'posix_spawnattr_getsigmask'.
85411         * modules/posix_spawnattr_getsigmask: New file.
85412         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
85413         modifications.
85414         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
85415         new module.
85417         New module 'posix_spawnattr_setsigdefault'.
85418         * modules/posix_spawnattr_setsigdefault: New file.
85419         * lib/spawnattr_setdefault.c: New file, from GNU libc with
85420         modifications.
85421         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
85422         new module.
85424         New module 'posix_spawnattr_getsigdefault'.
85425         * modules/posix_spawnattr_getsigdefault: New file.
85426         * lib/spawnattr_getdefault.c: New file, from GNU libc with
85427         modifications.
85428         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
85429         new module.
85431         New module 'posix_spawnattr_setschedpolicy'.
85432         * modules/posix_spawnattr_setschedpolicy: New file.
85433         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
85434         modifications.
85435         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
85436         new module.
85438         New module 'posix_spawnattr_getschedpolicy'.
85439         * modules/posix_spawnattr_getschedpolicy: New file.
85440         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
85441         modifications.
85442         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
85443         new module.
85445         New module 'posix_spawnattr_setschedparam'.
85446         * modules/posix_spawnattr_setschedparam: New file.
85447         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
85448         modifications.
85449         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
85450         new module.
85452         New module 'posix_spawnattr_getschedparam'.
85453         * modules/posix_spawnattr_getschedparam: New file.
85454         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
85455         modifications.
85456         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
85457         new module.
85459         New module 'posix_spawnattr_setpgroup'.
85460         * modules/posix_spawnattr_setpgroup: New file.
85461         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
85462         modifications.
85463         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
85464         module.
85466         New module 'posix_spawnattr_getpgroup'.
85467         * modules/posix_spawnattr_getpgroup: New file.
85468         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
85469         modifications.
85470         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
85471         module.
85473         New module 'posix_spawnattr_setflags'.
85474         * modules/posix_spawnattr_setflags: New file.
85475         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
85476         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
85477         module.
85479         New module 'posix_spawnattr_getflags'.
85480         * modules/posix_spawnattr_getflags: New file.
85481         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
85482         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
85483         module.
85485         New module 'posix_spawnattr_init'.
85486         * modules/posix_spawnattr_init: New file.
85487         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
85488         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
85489         module.
85491         New module 'posix_spawn_file_actions_destroy'.
85492         * modules/posix_spawn_file_actions_destroy: New file.
85493         * lib/spawn_faction_destroy.c: New file, from GNU libc with
85494         modifications.
85495         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
85496         the new module.
85498         New module 'posix_spawn_file_actions_addopen'.
85499         * modules/posix_spawn_file_actions_addopen: New file.
85500         * lib/spawn_faction_addopen.c: New file, from GNU libc with
85501         modifications.
85502         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
85503         the new module.
85505         New module 'posix_spawn_file_actions_adddup2'.
85506         * modules/posix_spawn_file_actions_adddup2: New file.
85507         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
85508         modifications.
85509         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
85510         the new module.
85512         New module 'posix_spawn_file_actions_addclose'.
85513         * modules/posix_spawn_file_actions_addclose: New file.
85514         * lib/spawn_faction_addclose.c: New file, from GNU libc with
85515         modifications.
85516         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
85517         the new module.
85519         New module 'posix_spawn_file_actions_init'.
85520         * modules/posix_spawn_file_actions_init: New file.
85521         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
85522         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
85523         new module.
85525         New module 'posix_spawn-internal'.
85526         * modules/posix_spawn-internal: New file.
85527         * lib/spawn_int.h: New file, from GNU libc with modifications.
85528         * lib/spawni.c: New file, from GNU libc with modifications.
85529         * m4/posix_spawn.m4: New file.
85531         New module 'spawn'.
85532         * modules/spawn: New file.
85533         * lib/spawn.in.h: New file, from GNU libc with modifications.
85534         * m4/spawn_h.m4: New file.
85535         * doc/posix-headers/spawn.texi: Mention the new module.
85537 2008-09-28  Bruno Haible  <bruno@clisp.org>
85539         * modules/sched-tests: New file.
85540         * tests/test-sched.c: New file.
85542         New module 'sched'.
85543         * modules/sched: New file.
85544         * lib/sched.in.h: New file.
85545         * m4/sched_h.m4: New file.
85546         * doc/posix-headers/sched.texi: Mention the new module.
85548 2008-09-27  Eric Blake  <ebb9@byu.net>
85550         Fix previous patch, and tweak references to $0.
85551         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
85552         (func_version, func_gnulib_dir): Don't call this program
85553         gnulib-tool.
85554         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
85555         with using $0 in function.
85556         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
85557         (func_fatal_error): Reuse the name the user invoked us with.
85559 2008-09-27  Bruno Haible  <bruno@clisp.org>
85561         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
85562         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
85563         (gl_ICONV_H): Not here.
85564         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
85565         instead of assigning ICONV_H directly.
85567         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
85568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
85569         WCHAR_H directly.
85571 2008-09-27  Bruno Haible  <bruno@clisp.org>
85573         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
85574         * modules/arpa_inet (Depends-on): Add link-warning.
85575         (Makefile.am): Insert the definition of GL_LINK-WARNING.
85576         * modules/unistd (Makefile.am): Likewise.
85578 2008-09-26  Bruno Haible  <bruno@clisp.org>
85580         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
85581         variables.
85582         (func_version): Essentially copied from gnulib-tool.
85583         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
85584         func_readlink): Copied from gnulib-tool.
85586 2008-09-26  Bruno Haible  <bruno@clisp.org>
85588         * gnulib-tool (func_version): Change directory to $gnulib_dir before
85589         invoking git-version-gen.
85591 2008-09-26  Bruno Haible  <bruno@clisp.org>
85593         * posix-modules: Update to directory names changed on 2008-01-19.
85594         Remove commas in output before splitting into words. No more need to
85595         avoid 'ftruncate' since 2007-02-19.
85597 2008-09-26  Bruno Haible  <bruno@clisp.org>
85599         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
85601 2008-09-26  Bruno Haible  <bruno@clisp.org>
85603         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
85604         * modules/fwriteerror (Depends-on): Add errno.
85606 2008-09-26  Bruno Haible  <bruno@clisp.org>
85608         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
85609         * tests/test-vc-list-files-cvs.sh: Likewise.
85611 2008-09-26  Bruno Haible  <bruno@clisp.org>
85613         * doc/posix-headers/sys_resource.texi: Reorder items.
85615 2008-09-26  Jim Meyering  <meyering@redhat.com>
85617         fts: tweak inode comparison function
85618         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
85619         inode numbers, as documented.
85621         fts: sort dirent entries on inode number before traversing
85622         This avoids a quadratic, seek-related performance penalty when
85623         operating on a directory containing many entries (measurable at 10k;
85624         3.5 hours at 2 million entries with a cold cache) on certain types
85625         of file systems, including ext3 and ext4, but not tmpfs.
85626         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
85627         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
85628         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
85629         (fs_handles_readdir_ordered_dirents_efficiently): New function.
85630         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
85631         (fts_build): Set the stat.st_ino member from D_INO.
85632         If it is likely to be useful, sort dirent entries on inode number.
85634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
85635         and the struct statfs.f_type member.
85636         * modules/fts (Depends-on): Add d-ino.
85638 2008-09-26  Bruno Haible  <bruno@clisp.org>
85640         * modules/sigpipe-die (Depends-on): Add sigpipe.
85642         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
85643         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
85644         and GNULIB_STDIO_H_SIGPIPE are set.
85645         * lib/stdio-write.c: New file.
85646         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
85647         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85648         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85649         REPLACE_STDIO_WRITE_FUNCS.
85650         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
85651         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85652         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85653         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
85654         * modules/stdio (Files): Add lib/stdio-write.c.
85655         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
85656         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
85657         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
85658         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
85659         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
85660         REPLACE_FPRINTF_POSIX.
85661         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
85662         REPLACE_PRINTF_POSIX.
85663         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
85664         REPLACE_VFPRINTF_POSIX.
85665         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
85666         REPLACE_VPRINTF_POSIX.
85667         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
85668         SIGPIPE issue.
85669         * doc/posix-functions/fputc.texi: Likewise.
85670         * doc/posix-functions/fputs.texi: Likewise.
85671         * doc/posix-functions/fwrite.texi: Likewise.
85672         * doc/posix-functions/printf.texi: Likewise.
85673         * doc/posix-functions/putc.texi: Likewise.
85674         * doc/posix-functions/putchar.texi: Likewise.
85675         * doc/posix-functions/puts.texi: Likewise.
85676         * doc/posix-functions/vfprintf.texi: Likewise.
85677         * doc/posix-functions/vprintf.texi: Likewise.
85679         * modules/safe-write (Depends-on): Add write.
85681         * modules/sigpipe-tests: New file.
85682         * tests/test-sigpipe.c: New file.
85683         * tests/test-sigpipe.sh: New file.
85685         * modules/write: New file.
85686         * lib/unistd.in.h: Include <sys/types.h>.
85687         (write): New declaration.
85688         * lib/write.c: New file.
85689         * m4/write.m4: New file.
85690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
85691         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
85692         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
85693         GNULIB_WRITE, REPLACE_WRITE.
85694         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
85695         and the SIGPIPE issue.
85697         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
85698         (raise): New declaration.
85699         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
85700         (ext_signal): New function.
85701         (rpl_raise): New function.
85702         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
85703         GNULIB_SIGNAL_H_SIGPIPE.
85704         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
85705         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
85707         * modules/sigpipe: New file.
85708         * m4/sigpipe.m4: New file.
85710 2008-09-25  Derek Price  <derek@ximbiot.com>
85711             Bruno Haible  <bruno@clisp.org>
85713         * gnulib-tool (func_import): Report all license incompatibilities, not
85714         just the first one.
85716 2008-09-25  Bruno Haible  <bruno@clisp.org>
85718         * gnulib-tool (func_import): When computing the edits, consider not
85719         only the Makefile.ams that exist but also those that will be generated.
85721 2008-09-25  Simon Josefsson  <simon@josefsson.org>
85723         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
85724         fixes gnulib-tool --test warning about duplicate dependency.
85726 2008-09-25  Bruno Haible  <bruno@clisp.org>
85728         * gnulib-tool: Don't ask the user to perform edits in the generated
85729         Makefile.ams.
85730         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
85731         apply to the Makefile.am being generated.
85732         (func_emit_tests_Makefile_am): Execute edits that apply to the
85733         Makefile.am being generated.
85734         (func_import): Setup list of Makefile.am edits before emitting the
85735         Makefile.ams, not at the end.
85736         (func_create_testdir): Update.
85737         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85739 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85741         * gnulib-tool (func_import): Store the --tests-base option in the
85742         comment in gnulib-cache.m4.
85744 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
85746         * NEWS: Document increased portability that sys_select now provides.
85748         * lib/sys_select.in.h: Install select wrapper.
85749         * lib/sys_socket.in.h: Use more descriptive name when there is no
85750         select wrapper.
85751         * lib/winsock-select.c: New.
85752         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
85753         Require gl_HEADER_SYS_SOCKET.
85754         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
85755         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
85756         * tests/test-sys_select.c: Add functional tests.
85758 2008-09-24  Eric Blake  <ebb9@byu.net>
85760         open, fopen: close fd leak in last patch
85761         * lib/open.c (rpl_open): Close fd before returning error.
85762         * lib/fopen.c (rpl_fopen): Close fd before returning error.
85763         * doc/posix-functions/open.texi (open): Document that Irix also
85764         has the bug.
85765         * doc/posix-functions/fopen.texi (fopen): Likewise.
85766         Reported by Paolo Bonzini.
85768 2008-09-24  Bruno Haible  <bruno@clisp.org>
85770         Ensure that a filename ending in a slash cannot be used to access a
85771         non-directory.
85772         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
85773         to check whether it's really a directory.
85774         * lib/fopen.c: Include fcntl.h, unistd.h.
85775         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
85776         and fdopen().
85777         * modules/fopen (Depends-on): Add unistd.
85778         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
85779         * tests/test-fopen.c (main): Likewise.
85780         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
85781         * doc/posix-functions/fopen.texi: Likewise.
85782         Reported by Eric Blake.
85784 2008-09-23  Eric Blake  <ebb9@byu.net>
85786         c-stack: avoid compiler optimizations when provoking overflow
85787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
85788         recursion harder to optimize, to ensure a stack overflow occurs.
85789         * tests/test-c-stack.c (recurse): Likewise.
85790         Borrowed from libsigsegv.
85792         c-stack: work around Irix sigaltstack bug
85793         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
85794         whether sigaltstack uses wrong end of stack_t (copied in part from
85795         libsigsegv).
85796         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
85797         Irix bug, without requiring an over-allocation.
85798         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
85799         bug.
85801         fopen: document mingw bug on directories
85802         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
85803         not allowing a stream visiting a directory, even though reading
85804         from such a stream is not portable.
85806 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
85808         * lib/poll.c: Rewrite.
85809         * modules/poll: Depend on alloca.
85811 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
85813         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
85814         instead define prototypes for a full set of wrappers.  Ensure
85815         that Cygwin does not use the compatibility code, which is only
85816         for MinGW.
85817         * lib/winsock.c: New.
85818         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
85819         * modules/sys_socket: Add lib/winsock.c.
85821         * modules/poll-tests: Add errno and perror.
85822         * tests/test-poll.c: Use ioctl, not ioctlsocket.
85824 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
85826         * tests/test-poll.c: Downgrade minimum needed Winsock version.
85828 2008-09-23  Bruno Haible  <bruno@clisp.org>
85830         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
85831         * doc/glibc-functions/*: Likewise.
85833 2008-09-23  Simon Josefsson  <simon@josefsson.org>
85835         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
85836         success.
85838 2008-09-22  Eric Blake  <ebb9@byu.net>
85839             Bruno Haible  <bruno@clisp.org>
85841         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
85842         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
85843         supply %A but mishandle pseudo-NaN.
85844         Reported by Simon Josefsson.
85846 2008-09-21  Bruno Haible  <bruno@clisp.org>
85848         * tests/test-lock.c (main): Tweak skip message.
85849         * tests/test-tls.c (main): Likewise.
85851 2008-09-21  Bruno Haible  <bruno@clisp.org>
85853         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
85854         whether 'struct sigaction' has sa_sigaction here...
85855         (gl_PREREQ_SIG_HANDLER_H): ... not here.
85856         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
85858 2008-09-21  Bruno Haible  <bruno@clisp.org>
85860         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
85861         section.
85862         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
85863         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
85864         the new section.
85865         (Support for obsolete systems lacking POSIX:2001): New section.
85866         (String handling <string.h>): Move strdup to the new section.
85867         Suggested by Simon Josefsson and Paolo Bonzini.
85869 2008-09-21  Bruno Haible  <bruno@clisp.org>
85871         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
85872         exponents in %e and %g results on 'long double'. Needed for mingw's
85873         improved *printf functions.
85874         * tests/test-vasprintf-posix.c (test_function): Likewise.
85875         * tests/test-snprintf-posix.h (test_function): Likewise.
85876         * tests/test-sprintf-posix.h (test_function): Likewise.
85877         Reported by Eric Blake.
85879 2008-09-21  Bruno Haible  <bruno@clisp.org>
85881         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
85882         * tests/test-sprintf-posix.h (test_function): Likewise.
85884 2008-09-21  Bruno Haible  <bruno@clisp.org>
85886         * modules/getpass (Depends-on): Add strdup-posix.
85888         New module 'strdup-posix'.
85889         * modules/strdup-posix: New file.
85890         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
85891         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
85892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
85893         REPLACE_STRDUP.
85894         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
85895         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
85896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85897         strdup-posix.
85899         * modules/strdup (Depends-on): Remove malloc-posix.
85901 2008-09-20  Bruno Haible  <bruno@clisp.org>
85903         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
85904         Wildenhues.
85906 2008-09-20  Bruno Haible  <bruno@clisp.org>
85908         Ensure that wint_t gets defined on IRIX 5.3.
85909         * lib/wchar.in.h (wint_t): Define if not defined by the system.
85910         * lib/wctype.in.h (wint_t): Likewise.
85911         (__wctype_wint_t): Remove type.
85912         (isw*): Use wint_t instead of __wctype_wint_t.
85913         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
85914         * modules/wchar (Files): Add m4/wint_t.m4.
85915         (Makefile.am): Substitute HAVE_WINT_T.
85916         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
85917         * tests/test-wctype.c: Check that wint_t is defined.
85918         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
85919         * doc/posix-headers/wctype.texi: Likewise.
85920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85922 2008-09-18  Bruno Haible  <bruno@clisp.org>
85924         * gnulib-tool (func_exit): Update comment.
85926 2008-09-18  Simon Josefsson  <simon@josefsson.org>
85928         * modules/getaddrinfo (Depends-on): Remove strdup, this module
85929         assumes strdup exists and does not depend on strdup to return
85930         ENOMEM on out of memory conditions.
85932 2008-09-18  Bruno Haible  <bruno@clisp.org>
85934         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
85935         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
85936         digits for the exponent.
85938 2008-09-18  Jim Meyering  <meyering@redhat.com>
85939             Bruno Haible  <bruno@clisp.org>
85941         * lib/vasnprintf.c (decimal_point_char): Define also if
85942         NEED_PRINTF_INFINITE_LONG_DOUBLE.
85944 2008-09-16  Bruno Haible  <bruno@clisp.org>
85945         and Eric Blake  <ebb9@byu.net>
85947         vasnprintf: support Irix 5.3
85948         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
85949         that mishandle long double infinity.
85950         Reported by Tom G. Christensen.
85952 2008-09-16  Bruno Haible  <bruno@clisp.org>
85954         * doc/glibc-functions/scandir.texi: Mention the function is missing on
85955         Solaris 9.
85956         * doc/glibc-functions/alphasort.texi: Likewise.
85957         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
85959 2008-09-16  Jim Meyering  <meyering@redhat.com>
85961         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
85962         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
85963         a umask modification leak out of a subshell.  Otherwise, the
85964         opensolaris /bin/sh would be accepted and thus cause unwarranted
85965         failures in the coreutils test suite.
85967 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
85969         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
85970         to succeed.
85972 2008-09-16  Jim Meyering  <meyering@redhat.com>
85974         avoid spurious test failure when library is built without ACL support
85975         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
85976         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
85977         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
85978         * tests/test-copy-acl.sh: Likewise.
85980 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85982         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
85983         based on character occurrence counts.
85985 2008-09-15  Eric Blake  <ebb9@byu.net>
85987         tests: avoid some compiler warnings
85988         * tests/test-memchr.c (main): Pass NULL indirectly.
85989         * tests/test-closein.c (main): Avoid unused variable.
85991 2008-09-15  Bruno Haible  <bruno@clisp.org>
85993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
85994         are missing on OpenBSD 4.0 individually.
85995         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85997 2008-09-15  Bruno Haible  <bruno@clisp.org>
85999         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
86000         * doc/posix-functions/strerror.texi: Mention also Cygwin.
86001         * doc/posix-functions/perror.texi: Likewise.
86002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
86003         is missing.
86004         Reported by Eric Blake.
86006         * lib/errno.in.h: Use replacement values >= 2000.
86007         Reported by Eric Blake.
86009 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86011         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
86012         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
86013         limit.
86014         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
86015         compareseq was aborted.
86017 2008-09-14  Bruno Haible  <bruno@clisp.org>
86019         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
86020         yvec_edit_count.
86021         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
86022         (fstrcmp_bounded): Simplify result computation accordingly.
86024 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86026         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
86027         (fstrcmp): Define in terms of fstrcmp_bounded.
86028         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
86029         lower_bound argument.
86030         Return quickly if the result is certainly < lower_bound.
86031         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
86033 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86035         * lib/diffseq.h (EARLY_ABORT): New macro.
86036         (compareseq): Change return type to bool. Return true when EARLY_ABORT
86037         evaluates to true.
86039 2008-09-14  Bruno Haible  <bruno@clisp.org>
86041         * modules/perror-tests: New file.
86042         * tests/test-perror.sh: New file.
86043         * tests/test-perror.c: New file.
86045         New module 'perror'.
86046         * lib/stdio.in.h (perror): New declaration.
86047         * lib/perror.c: New file.
86048         * m4/perror.m4: New file.
86049         * modules/perror: New file.
86050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
86051         * doc/posix-functions/perror.texi: Mention the perror module.
86052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
86053         REPLACE_PERROR.
86054         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
86055         REPLACE_PERROR.
86057 2008-09-14  Bruno Haible  <bruno@clisp.org>
86059         * modules/stdio (Makefile.am): Reorder to match the order in
86060         lib/stdio.in.h.
86061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
86063 2008-09-13  Bruno Haible  <bruno@clisp.org>
86065         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
86067 2008-09-13  Bruno Haible  <bruno@clisp.org>
86069         Extend strerror to cover the added errno values.
86070         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
86071         (rpl_strerror): Provide error messages for the added errno values and
86072         for the WSA* values.
86073         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
86074         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
86075         strerror.
86076         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
86077         * modules/strerror (Depends-on): Add errno.
86078         * doc/posix-functions/strerror.texi: Document the change.
86079         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
86080         and EOVERFLOW.
86082 2008-09-13  Bruno Haible  <bruno@clisp.org>
86084         * modules/EOVERFLOW: Remove file.
86085         * m4/eoverflow.m4: Remove file.
86086         * modules/EOVERFLOW-tests: Remove file.
86087         * tests/test-EOVERFLOW.c: Remove file.
86088         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
86089         * modules/ftell (Depends-on): Likewise.
86090         * modules/getdelim (Depends-on): Likewise.
86091         * modules/getugroups (Depends-on): Likewise.
86092         * modules/poll (Depends-on): Likewise.
86093         * modules/snprintf (Depends-on): Likewise.
86094         * modules/sprintf-posix (Depends-on): Likewise.
86095         * modules/vasnprintf (Depends-on): Likewise.
86096         * modules/vasprintf (Depends-on): Likewise.
86097         * modules/vfprintf-posix (Depends-on): Likewise.
86098         * modules/vsnprintf (Depends-on): Likewise.
86099         * modules/vsprintf-posix (Depends-on): Likewise.
86100         * modules/xvasprintf (Depends-on): Likewise.
86101         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86102         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
86103         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
86104         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
86105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86106         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
86107         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
86108         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
86109         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86110         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
86111         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
86112         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
86113         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86114         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
86115         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
86116         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
86117         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86118         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
86119         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
86120         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
86121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86122         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
86123         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
86124         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
86125         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
86126         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86127         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
86128         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
86129         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
86130         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
86131         * MODULES.html.sh: Remove EOVERFLOW.
86132         * NEWS: Mention the change.
86134 2008-09-13  Bruno Haible  <bruno@clisp.org>
86136         * modules/errno-tests: New file.
86137         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
86139         * lib/errno.in.h: New file.
86140         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
86141         * modules/errno: New file.
86142         * doc/posix-headers/errno.texi: Update documentation.
86143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
86145 2008-09-13  Bruno Haible  <bruno@clisp.org>
86147         * tests/test-poll.c: Use #if for native Windows, rather than testing
86148         __MSVCRT__.
86150 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86151             Bruno Haible  <bruno@clisp.org>
86153         * lib/glob.c: Don't include <pwd.h> on native Windows.
86154         (WINDOWS32): New macro.
86155         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
86157 2008-09-13  Bruno Haible  <bruno@clisp.org>
86159         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
86160         (ETIMEDOUT): Remove macro.
86161         (glthread_cond_timedwait_multithreaded): New declaration.
86162         (glthread_cond_timedwait): Use it.
86163         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
86164         (glthread_cond_timedwait_multithreaded): New function.
86166 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86168         * modules/poll-tests: Do not check for io.h.
86169         * tests/test-poll.c: Check for __MSVCRT__ instead.
86171 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86173         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
86174         * modules/poll-tests: Add inet_pton, stdbool, sockets.
86175         * tests/test-poll.c: Use them.  Use _pipe on Windows.
86177 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
86179         * modules/poll-tests: New.
86180         * tests/test-poll.c: New.
86182 2008-09-12  Eric Blake  <ebb9@byu.net>
86184         frexp: test for NetBSD failure on -0.0
86185         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
86186         not all, bugs from NetBSD 3.0 have been fixed.
86187         * doc/posix-functions/frexp.texi (frexp): Document bug.
86188         Reported by Thomas Klausner.
86190         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
86191         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
86192         literal -0.0.
86193         Reported by Jonathan C. Patschke <jp@centtech.com>.
86195 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86197         * lib/glthread/cond.h: Use dummy implementation also if
86198         USE_WIN32_THREADS.
86200 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86202         * modules/fnmatch-posix (License): Change to LGPLv2+.
86203         * modules/fnmatch-gnu (License): Likewise.
86205 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86207         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
86209 2008-09-11  Jim Meyering  <meyering@redhat.com>
86211         * users.txt: Add gtk-vnc.
86213 2008-09-08  Simon Josefsson  <simon@josefsson.org>
86215         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
86216         rotate amounts.
86218         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
86219         required for 16-bit and 8-bit rotates.
86220         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
86221         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
86222         UINT8_MAX instead of hard-coded constants.
86223         Suggested by Paul Eggert.
86225 2008-09-07  Bruno Haible  <bruno@clisp.org>
86227         * tests/test-striconveh.c (main): Check behaviour when converting from
86228         UTF-7.
86230         Make striconveh work better with stateful encodings.
86231         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
86232         that iconv does not increment the inptr when returning -1/EINVAL.
86234 2008-09-07  Bruno Haible  <bruno@clisp.org>
86236         * build-aux/config.rpath: Update according to libtool-2.2.6.
86237         * build-aux/config.libpath: Likewise.
86239 2008-09-06  Bruno Haible  <bruno@clisp.org>
86241         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
86242         * lib/freadptr.c (freadptr): Likewise.
86243         * lib/freadseek.c (freadptrinc): Likewise.
86244         Reported by Simon Josefsson.
86246 2008-09-06  Bruno Haible  <bruno@clisp.org>
86248         * modules/freadptr (License): Change to LGPLv2+.
86249         * modules/freadseek (License): Likewise.
86250         Suggested by Eric Blake.
86252         * modules/memchr2 (License): Change to LGPLv2+.
86253         Approved by Eric Blake.
86255 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86256             Bruno Haible  <bruno@clisp.org>
86258         Make gnulib-tool work with native 'sed' on AIX.
86259         * gnulib-tool (sed_noop): New variable.
86260         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
86261         func_add_or_update, func_create_testdir): Use it to initialize sed
86262         script variables.
86263         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86265 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
86266             Bruno Haible  <bruno@clisp.org>
86268         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
86269         also works after #include directives.
86271 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
86273         getdate.y: reject an out-of-range timezone value
86274         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
86275         the range [-24...+24].  When specified with only one or two digits,
86276         * tests/test-getdate.c: Tests for the fix.
86277         * doc/getdate.texi: Document this change.
86279 2008-09-03  Bruno Haible  <bruno@clisp.org>
86281         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
86283 2008-09-02  Simon Josefsson  <simon@josefsson.org>
86285         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
86286         <bruce.korb@gmail.com> with ideas from Ben Pfaff
86287         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
86288         Blake <ebb9@byu.net>.
86290         * tests/test-bitrotate.c: Add more test vectors.
86292 2008-09-02  Eric Blake  <ebb9@byu.net>
86294         vasnprintf-posix: handle large precision via %.*d
86295         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
86296         when handling it ourselves.
86297         * tests/test-vasnprintf-posix.c (test_function): Add test.
86298         * tests/test-snprintf-posix.h (test_function): Likewise.
86299         * tests/test-sprintf-posix.h (test_function): Likewise.
86300         * tests/test-vasprintf-posix.c (test_function): Likewise.
86301         Reported by Alain Guibert.
86303 2008-09-01  Eric Blake  <ebb9@byu.net>
86305         c-stack: make configure-time check more robust
86306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
86307         successful sigaction call.
86308         Reported by Tom G. Christensen.
86310 2008-09-01  Bruno Haible  <bruno@clisp.org>
86312         New module 'findprog-lgpl'.
86313         * modules/findprog-lgpl: New file.
86314         * lib/findprog-lgpl.c: New file.
86315         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
86316         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
86317         to decide whether to use strdup or xstrdup, concatenated_filename or
86318         xconcatenated_filename.
86320 2008-09-01  Bruno Haible  <bruno@clisp.org>
86322         Split module 'concat-filename' into 'concat-filename' (LGPL) and
86323         'xconcat-filename' (GPL).
86324         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
86325         (License): Change to LGPLv2+.
86326         * modules/xconcat-filename: New file.
86327         * lib/concat-filename.h (concatenated_filename): Change specification.
86328         (xconcatenated_filename): New declaration.
86329         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
86330         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
86331         memory situations.
86332         * lib/xconcat-filename.c: New file.
86333         * NEWS: Mention the change.
86334         * lib/findprog.c: Include concat-filename.h, not filename.h.
86335         (find_in_path): Use xconcatenated_filename instead of
86336         concatenated_filename.
86337         * lib/javacomp.c: Include concat-filename.h, not filename.h.
86338         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
86339         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
86340         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
86341         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
86342         instead of concatenated_filename.
86343         * lib/javaexec.c: Include concat-filename.h, not filename.h.
86344         (execute_java_class): Use xconcatenated_filename instead of
86345         concatenated_filename.
86346         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
86347         * modules/javacomp (Depends-on): Likewise.
86348         * modules/javaexec (Depends-on): Likewise.
86350 2008-09-01  Bruno Haible  <bruno@clisp.org>
86352         Split module 'filename' into 'filename' and 'concat-filename'.
86353         * modules/filename: Keep only lib/filename.h.
86354         (License): Change to LGPLv2+.
86355         * modules/concat-filename: New file, extracted from modules/filename.
86356         * lib/filename.h (concatenated_filename): Remove declaration.
86357         * lib/concat-filename.h: New file, extracted from lib/filename.h.
86358         * lib/concat-filename.c: Include concat-filename.h.
86359         * NEWS: Mention the change.
86361 2008-09-01  Simon Josefsson  <simon@josefsson.org>
86363         * lib/bitrotate.h (rotl8, rotr8): Add.
86365         * modules/bitrotate (configure.ac): Need
86366         AC_REQUIRE([AC_C_INLINE]).
86367         (Description): Mention stdint.h.  Reported by Bruno Haible
86368         <bruno@clisp.org>.
86370         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
86371         Paolo Bonzini <bonzini@gnu.org>.
86373 2008-08-31  Bruno Haible  <bruno@clisp.org>
86375         Assume Solaris specific bi-arch conventions on Solaris systems.
86376         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
86377         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
86378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
86379         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
86380         like acl_libdirstem.
86381         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
86382         acl_libdirstem.
86383         * NEWS: Mention the change.
86384         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
86386 2008-08-31  Jim Meyering  <meyering@redhat.com>
86388         * lib/strftime.h: Add comments describing the two added arguments.
86390         remove duplicate #include directives
86391         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
86392         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
86394 2008-08-31  Bruno Haible  <bruno@clisp.org>
86396         New module 'sigpipe-die'.
86397         * modules/sigpipe-die: New file.
86398         * lib/sigpipe-die.h: New file.
86399         * lib/sigpipe-die.c: New file.
86400         * MODULES.html.sh (Signal handling): Add sigpipe-die.
86402 2008-08-31  Bruno Haible  <bruno@clisp.org>
86404         Don't override previously installed signal handlers.
86405         * lib/fatal-signal.c (saved_sigactions): New variable.
86406         (uninstall_handlers): Reset the signal to the saved handler, not
86407         to SIG_DFL (except when ignored).
86408         (install_handlers): Save the previous handlers.
86410 2008-08-30  Bruno Haible  <bruno@clisp.org>
86412         * gnulib-tool (func_reset_sigpipe): New function.
86413         (func_get_automake_snippet, func_modules_transitive_closure,
86414         func_import): Invoke it before a join command that reads from stdin,
86415         to avoid "echo: write error: Broken pipe" error messages on stderr.
86416         Reported by Sam Steingold <sds@gnu.org>.
86418 2008-08-30  Bruno Haible  <bruno@clisp.org>
86420         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
86421         Code copied from m4/open.m4.
86422         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
86423         access and the filename ends in a slash. Code copied from lib/open.c.
86424         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
86425         * tests/test-fopen.c (main): Check against bug with trailing slash.
86427 2008-08-29  Bruno Haible  <bruno@clisp.org>
86429         Avoid some "gcc -pedantic" warnings.
86430         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
86431         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
86432         * lib/dirent.in.h: Likewise.
86433         * lib/fcntl.in.h: Likewise.
86434         * lib/float.in.h: Likewise.
86435         * lib/iconv.in.h: Likewise.
86436         * lib/inttypes.in.h: Likewise.
86437         * lib/locale.in.h: Likewise.
86438         * lib/math.in.h: Likewise.
86439         * lib/netinet_in.in.h: Likewise.
86440         * lib/search.in.h: Likewise.
86441         * lib/signal.in.h: Likewise.
86442         * lib/stdarg.in.h: Likewise.
86443         * lib/stdint.in.h: Likewise.
86444         * lib/stdio.in.h: Likewise.
86445         * lib/stdlib.in.h: Likewise.
86446         * lib/string.in.h: Likewise.
86447         * lib/strings.in.h: Likewise.
86448         * lib/sys_select.in.h: Likewise.
86449         * lib/sys_socket.in.h: Likewise.
86450         * lib/sys_stat.in.h: Likewise.
86451         * lib/sys_time.in.h: Likewise.
86452         * lib/sysexits.in.h: Likewise.
86453         * lib/time.in.h: Likewise.
86454         * lib/unistd.in.h: Likewise.
86455         * lib/wchar.in.h: Likewise.
86456         * lib/wctype.in.h: Likewise.
86457         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
86458         * modules/fchdir (Makefile.am): Likewise.
86459         * modules/fcntl (Makefile.am): Likewise.
86460         * modules/float (Makefile.am): Likewise.
86461         * modules/iconv_open (Makefile.am): Likewise.
86462         * modules/inttypes (Makefile.am): Likewise.
86463         * modules/locale (Makefile.am): Likewise.
86464         * modules/math (Makefile.am): Likewise.
86465         * modules/netinet_in (Makefile.am): Likewise.
86466         * modules/search (Makefile.am): Likewise.
86467         * modules/signal (Makefile.am): Likewise.
86468         * modules/stdarg (Makefile.am): Likewise.
86469         * modules/stdint (Makefile.am): Likewise.
86470         * modules/stdio (Makefile.am): Likewise.
86471         * modules/stdlib (Makefile.am): Likewise.
86472         * modules/string (Makefile.am): Likewise.
86473         * modules/strings (Makefile.am): Likewise.
86474         * modules/sys_select (Makefile.am): Likewise.
86475         * modules/sys_socket (Makefile.am): Likewise.
86476         * modules/sys_stat (Makefile.am): Likewise.
86477         * modules/sys_time (Makefile.am): Likewise.
86478         * modules/sysexits (Makefile.am): Likewise.
86479         * modules/time (Makefile.am): Likewise.
86480         * modules/unistd (Makefile.am): Likewise.
86481         * modules/wchar (Makefile.am): Likewise.
86482         * modules/wctype (Makefile.am): Likewise.
86483         Reported by Reuben Thomas <rrt@sc3d.org>.
86485 2008-08-29  Bruno Haible  <bruno@clisp.org>
86487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
86488         any more.
86490 2008-08-29  Simon Josefsson  <simon@josefsson.org>
86492         * MODULES.html.sh (Misc): Add bitrotate.
86494         * modules/bitrotate: New file.
86496         * lib/bitrotate.h: New file.
86498         * modules/bitrotate-tests: New file.
86500         * tests/test-bitrotate.c: New file.
86502         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
86503         on the bitrotate module.
86505         * lib/arctwo.c: Use new bitrotate module.
86507 2008-08-29  Jim Meyering  <meyering@redhat.com>
86509         bootstrap: merge changes from coreutils
86510         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
86511         of copied files.  Remove a kludge, now that this is fixed.
86512         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
86513         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
86514         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
86516 2008-08-29  Bruno Haible  <bruno@clisp.org>
86518         * MODULES.html.sh: Remove --cvs-urls option.
86520 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
86522         maint.mk: adjust to file name change
86523         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
86525 2008-08-28  Jim Meyering  <meyering@redhat.com>
86527         * modules/getndelim2 (License): Relicense to LGPLv2+.
86528         Approved by Richard Stallman for the version of 1995, and by
86529         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
86531 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
86533         * lib/getdelim.c (flockfile, funlockfile): Make all of them
86534         dummy if one is not available.  Do not touch them if
86535         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
86536         (getc_maybe_unlocked): New.
86537         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
86539 2008-08-26  Eric Blake  <ebb9@byu.net>
86541         doc/INSTALL: resync from autoconf
86542         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
86543         (INSTALL_PRELUDE): Delete; this is done more efficiently by
86544         moving...
86545         * install.texi [!autoconf]: ...here.  Resync from autoconf.
86546         * INSTALL: Regenerate.
86547         * INSTALL.ISO: New file.
86548         * INSTALL.UTF-8: Likewise.
86550 2008-08-26  Jim Meyering  <meyering@redhat.com>
86552         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
86553         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
86554         these definitions conditional, so that they may be overridden, too.
86556 2008-08-26  Bruno Haible  <bruno@clisp.org>
86558         Generate INSTALL file variants with prettier quotes.
86559         * doc/Makefile (INSTALL_PRELUDE): New macro.
86560         (INSTALL): Use it.
86561         (INSTALL.ISO, INSTALL.UTF-8): New rules.
86563 2008-08-26  Bruno Haible  <bruno@clisp.org>
86565         Run makeinfo in an English locale.
86566         * doc/Makefile (MAKEINFO): New variable.
86568 2008-08-26  Bruno Haible  <bruno@clisp.org>
86570         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
86571         Suggested by Eric Blake.
86573 2008-08-25  Bruno Haible  <bruno@clisp.org>
86575         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
86577 2008-08-25  Eric Blake  <ebb9@byu.net>
86579         c-stack: test that stack overflow can be caught
86580         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
86581         that platform allows handling stack overflow; at least OS/2 EMX
86582         has sigaltstack, but crashes before transferring control to
86583         handler on stack overflow.
86584         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
86585         check for HAVE_STACK_OVERFLOW_HANDLING.
86586         Reported by Elbert Pol.
86588 2008-08-25  Bruno Haible  <bruno@clisp.org>
86590         * doc/posix-functions/strftime.texi: Fix description of strftime
86591         module.
86593 2008-08-24  Bruno Haible  <bruno@clisp.org>
86595         * tests/uniwidth/test-uc_width2.c: New file.
86596         * tests/uniwidth/test-uc_width2.sh: New file.
86597         * modules/uniwidth/width-tests (Files): Add the new files.
86598         (TESTS): Add uniwidth/test-uc_width2.sh.
86599         (TESTS_ENVIRONMENT): New variable.
86600         (check_PROGRAMS): Add test-uc_width2.
86601         (test_uc_width2_SOURCES): New variable.
86603         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
86604         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
86605         not 0x00AB.
86606         Reported by Alexander V. Lukyanov <lav@netis.ru>.
86608 2008-08-22  Eric Blake  <ebb9@byu.net>
86610         test-lock, test-tls: mention why a test is skipped
86611         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
86612         skipped.
86613         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
86615         count-one-bits: relax license
86616         * modules/count-one-bits (License): Relicense to LGPLv2+.
86617         Suggested by Ludovic Courtès, approved by Ben Pfaff.
86619 2008-08-22  Andreas Schwab  <schwab@suse.de>
86621         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
86622         Remove spurious space in assignment.
86624 2008-08-21  Simon Josefsson  <simon@josefsson.org>
86626         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
86627         Paul Eggert <eggert@CS.UCLA.EDU>.
86629 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
86631         * modules/gettext: Add m4/threadlib.m4.
86633 2008-08-19  Eric Blake  <ebb9@byu.net>
86635         test-c-stack: fix compilation failure on FreeBSD 5.0
86636         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
86637         headers before <sys/resource.h>.
86638         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
86639         the bug.
86640         Reported by Nelson H. F. Beebe.
86642         strverscmp: migrate from "strverscmp.h" to <string.h>
86643         * modules/string (Makefile.am): Add new hooks.
86644         * modules/strverscmp (Files): Remove strverscmp.h.
86645         (Depends-on): Add string.
86646         (configure.ac): Add indicator.
86647         (Include): Mention new header.
86648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
86649         defaults.
86650         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
86651         results.
86652         * lib/strverscmp.h: Delete.
86653         * lib/string.in.h (strverscmp): Provide declaration, when needed.
86654         * tests/test-strverscmp.c (includes): Adjust client.
86655         * lib/check-version.c (includes): Likewise.
86656         * NEWS: Document the change.
86658         strverscmp: add unit test
86659         * modules/strverscmp-tests: New file.
86660         * tests/test-strverscmp.c: Likewise.
86662 2008-08-19  Simon Josefsson  <simon@josefsson.org>
86664         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
86665         regarding Windows crypto stuff, from Mono.
86667 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
86669         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
86670         if present, for intel RND.  Return error on failures.
86672 2008-08-18  Ben Pfaff  <blp@gnu.org>
86674         gitlog-to-changelog: give better diagnostic for failed pipe-open
86675         * build-aux/gitlog-to-changelog: Improve error message: suggest
86676         that the version of Git may be too old.
86678 2008-08-18  Simon Josefsson  <simon@josefsson.org>
86680         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
86681         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
86683 2008-08-18  Bruno Haible  <bruno@clisp.org>
86685         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
86686         pthread_in_use().
86688 2008-08-18  Bruno Haible  <bruno@clisp.org>
86690         * lib/glthread/threadlib.c: Include <pthread.h>.
86692 2008-08-18  Bruno Haible  <bruno@clisp.org>
86694         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
86695         glthread_recursive_lock_* macros.
86696         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
86697         Fix syntax error.
86699 2008-08-18  Bruno Haible  <bruno@clisp.org>
86701         * lib/glthread/thread.c: Avoid forcing a context switch right after
86702         thread creation.
86704 2008-08-17  Bruno Haible  <bruno@clisp.org>
86706         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
86707         * lib/glthread/thread.h: Provide Win32 specific implementation.
86708         * modules/thread (Files): Add lib/glthread/thread.c.
86709         (Depends-on): Add lock.
86710         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
86712 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86714         New module 'yield'.
86715         * modules/yield: New file.
86716         * lib/glthread/yield.h: New file.
86717         * m4/yield.m4: New file.
86718         * MODULES.html.sh (Multithreading): Add yield.
86720 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86722         New module 'thread'.
86723         * modules/thread: New file.
86724         * lib/glthread/thread.h: New file.
86725         * m4/thread.m4: New file.
86726         * MODULES.html.sh (Multithreading): Add thread.
86728 2008-08-17  Bruno Haible  <bruno@clisp.org>
86730         * lib/glthread/lock.h: Include <stdlib.h> always.
86731         * lib/glthread/tls.h: Likewise.
86732         * lib/glthread/cond.h: Likewise.
86734 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86736         New module 'cond'.
86737         * modules/cond: New file.
86738         * lib/glthread/cond.h: New file.
86739         * lib/glthread/cond.c: New file.
86740         * m4/cond.m4: New file.
86741         * MODULES.html.sh (Multithreading): Add cond.
86743 2008-08-16  Eric Blake  <ebb9@byu.net>
86745         c-stack: fix regression on Irix 5.3 from 2008-06-21
86746         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
86747         sa_sigaction...
86748         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
86749         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
86750         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
86751         * modules/signal (Makefile.am): Use the value.
86752         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
86753         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
86754         * doc/posix-headers/signal.texi (signal.h): Document this
86755         portability issue.
86756         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
86757         Reported by Tom G. Christensen.
86759 2008-08-17  Bruno Haible  <bruno@clisp.org>
86761         New module 'threadlib'.
86762         * modules/threadlib: New file.
86763         * lib/glthread/threadlib.c: New file, extracted from
86764         lib/glthread/lock.c.
86765         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
86766         functions.
86767         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
86768         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
86769         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
86770         macros.
86771         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
86772         (gl_DISABLE_THREADS): Remove macro.
86773         * modules/lock (Files): Remove build-aux/config.rpath.
86774         (Depends-on): Remove havelib. Add threadlib.
86775         (configure.ac-early): Remove section.
86776         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
86777         * modules/tls (Depends-on): Remove lock. Add threadlib.
86778         (Link): New section, copied from threadlib.
86779         * MODULES.html.sh (Multithreading): Add threadlib.
86781 2008-08-14  Bruno Haible  <bruno@clisp.org>
86783         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
86784         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
86785         glthread_rwlock_unlock, glthread_rwlock_destroy,
86786         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
86787         glthread_recursive_lock_destroy): Define as macros always.
86788         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
86789         glthread_lock_lock.
86790         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
86791         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
86792         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
86793         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
86794         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
86795         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
86796         (glthread_recursive_lock_lock_func): Renamed from
86797         glthread_recursive_lock_lock.
86798         (glthread_recursive_lock_unlock_func): Renamed from
86799         glthread_recursive_lock_unlock.
86800         (glthread_recursive_lock_destroy_func): Renamed from
86801         glthread_recursive_lock_destroy.
86803 2008-08-14  Bruno Haible  <bruno@clisp.org>
86805         * lib/glthread/lock.h: Renamed from lib/lock.h.
86806         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
86807         * lib/glthread/tls.h: Renamed from lib/tls.h.
86808         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
86809         * lib/fstrcmp.c: Update includes.
86810         * lib/strsignal.c: Update includes.
86811         * modules/lock (Files, Makefile.am): Update.
86812         (Include): Change to "glthread/lock.h".
86813         * modules/tls (Files, Makefile.am): Update.
86814         (Include): Change to "glthread/tls.h".
86815         * tests/test-lock.c: Update includes.
86816         * tests/test-tls.c: Update includes.
86817         * NEWS: Mention the renamed header files.
86819 2008-08-11  Jim Meyering  <meyering@redhat.com>
86821         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
86823 2008-08-11  Eric Blake  <ebb9@byu.net>
86825         test-c-stack: avoid C99-ism
86826         * tests/test-c-stack.c (main): Fix whitespace, move declaration
86827         before statement.
86828         Reported by Alain Guibert.
86830 2008-08-10  Jim Meyering  <meyering@redhat.com>
86832         ensure that return value of uinttostr et al are not ignored
86833         * lib/inttostr.h (__GNUC_PREREQ): Define.
86834         (__attribute_warn_unused_result__): Define.
86835         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
86837 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
86839         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
86840         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
86842 2008-08-07  Jim Meyering  <meyering@redhat.com>
86844         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
86846         * modules/mkstemp (License): Relicense under LGPLv2+.
86847         * modules/tempname (License): Likewise.
86849 2008-08-06  Bruno Haible  <bruno@clisp.org>
86851         * lib/poll.c (poll): Further micro-optimization.
86853 2008-08-06  Jim Meyering  <meyering@redhat.com>
86855         inet_pton.c: use locale-independent tolower
86856         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
86857         (inet_pton6): Use c_tolower rather than tolower.
86858         * modules/inet_pton (Depends-on): Add c-ctype.
86860 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
86862         * lib/poll.c (poll): Avoid division when timeout is 0, cache
86863         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
86865 2008-08-06  Jim Meyering  <meyering@redhat.com>
86867         * modules/inet_pton (License): Relicense under LGPLv2+.
86869 2008-08-03  Bruno Haible  <bruno@clisp.org>
86871         Additional non-aborting API for lock and tls.
86872         * lib/lock.h: Include <errno.h>.
86873         (glthread_lock_init): New macro/function.
86874         (gl_lock_init): Define as wrapper around glthread_lock_init.
86875         (glthread_lock_lock): New macro/function.
86876         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
86877         (glthread_lock_unlock): New macro/function.
86878         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
86879         (glthread_lock_destroy): New macro/function.
86880         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
86881         (glthread_rwlock_init): New macro/function.
86882         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
86883         (glthread_rwlock_rdlock): New macro/function.
86884         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
86885         (glthread_rwlock_wrlock): New macro/function.
86886         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
86887         (glthread_rwlock_unlock): New macro/function.
86888         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
86889         (glthread_rwlock_destroy): New macro/function.
86890         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
86891         (glthread_recursive_lock_init): New macro/function.
86892         (gl_recursive_lock_init): Define as wrapper around
86893         glthread_recursive_lock_init.
86894         (glthread_recursive_lock_lock): New macro/function.
86895         (gl_recursive_lock_lock): Define as wrapper around
86896         glthread_recursive_lock_lock.
86897         (glthread_recursive_lock_unlock): New macro/function.
86898         (gl_recursive_lock_unlock): Define as wrapper around
86899         glthread_recursive_lock_unlock.
86900         (glthread_recursive_lock_destroy): New macro/function.
86901         (gl_recursive_lock_destroy): Define as wrapper around
86902         glthread_recursive_lock_destroy.
86903         (glthread_once): New macro/function.
86904         (gl_once): Define as wrapper around glthread_once.
86905         Update function declarations.
86906         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
86907         glthread_rwlock_init. Return error code.
86908         (glthread_rwlock_rdlock_multithreaded): Renamed from
86909         glthread_rwlock_rdlock. Return error code.
86910         (glthread_rwlock_wrlock_multithreaded): Renamed from
86911         glthread_rwlock_wrlock. Return error code.
86912         (glthread_rwlock_unlock_multithreaded): Renamed from
86913         glthread_rwlock_unlock. Return error code.
86914         (glthread_rwlock_destroy_multithreaded): Renamed from
86915         glthread_rwlock_destroy. Return error code.
86916         (glthread_recursive_lock_init_multithreaded): Renamed from
86917         glthread_recursive_lock_init. Return error code.
86918         (glthread_recursive_lock_lock_multithreaded): Renamed from
86919         glthread_recursive_lock_lock. Return error code.
86920         (glthread_recursive_lock_unlock_multithreaded): Renamed from
86921         glthread_recursive_lock_unlock. Return error code.
86922         (glthread_recursive_lock_destroy_multithreaded): Renamed from
86923         glthread_recursive_lock_destroy. Return error code.
86924         (glthread_once_call): Make static.
86925         (glthread_once_multithreaded): Renamed from glthread_once.
86926         * lib/tls.h: Include <errno.h>.
86927         (glthread_tls_key_init): New macro/function.
86928         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
86929         (glthread_tls_set): New macro/function.
86930         (gl_tls_set): Define as wrapper around glthread_tls_set.
86931         (glthread_tls_key_destroy): New macro/function.
86932         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
86933         Update function declarations.
86934         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
86935         glthread_tls_get.
86936         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86938 2008-08-04  Eric Blake  <ebb9@byu.net>
86940         gnumakefile: use space, not TAB, outside of targets
86941         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
86943 2008-08-02  Jim Meyering  <meyering@redhat.com>
86945         getdate.y: avoid locale-dependent date parsing failure
86946         In Turkish locales, getdate would fail to recognize keywords
86947         containing a lowercase "i".  The solution is not to rely on
86948         locale-sensitive case-conversion.
86949         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
86950         (lookup_word): Use c_toupper in place of toupper.
86951         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
86952         Reported by Vefa Bicakci <bicave@superonline.com> in
86953         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
86954         * modules/getdate (Depends-on): Add c-ctype.
86956 2008-08-02  Bruno Haible  <bruno@clisp.org>
86958         * gnulib-tool (func_import): When updating or creating a .gitignore
86959         file, prepend each added line with a slash, and ignore leading slashes
86960         from the existing lines.
86961         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86963 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86965         Portability fix for GNU make 3.79.1.
86966         * top/GNUmakefile: Avoid 'else COND', which older GNU make
86967         versions do not understand.
86969 2008-08-01  Bruno Haible  <bruno@clisp.org>
86971         Work around bug of HP-UX 10.20 cc with -0.0 literal.
86972         * tests/test-isnanf.h (zero): New variable.
86973         (main): Avoid literal -0.0f.
86974         * tests/test-isnand.h (zero): New variable.
86975         (main): Avoid literal -0.0.
86976         * tests/test-isnanl.h (zero): New variable.
86977         (main): Avoid literal -0.0L.
86978         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
86979         (test_float, test_double, test_long_double): Avoid literals -0.0f,
86980         -0.0, -0.0L.
86981         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
86982         (test_signbitd): Avoid literal -0.0.
86983         (test_signbitl): Avoid literal -0.0L.
86984         * tests/test-ceilf1.c (zero): New variable.
86985         (main): Avoid literal -0.0f.
86986         * tests/test-ceill.c (zero): New variable.
86987         (main): Avoid literal -0.0L.
86988         * tests/test-floorf1.c (zero): New variable.
86989         (main): Avoid literal -0.0f.
86990         * tests/test-floorl.c (zero): New variable.
86991         (main): Avoid literal -0.0L.
86992         * tests/test-roundf1.c (zero): New variable.
86993         (main): Avoid literal -0.0f.
86994         * tests/test-round1.c (zero): New variable.
86995         (main): Avoid literal -0.0.
86996         * tests/test-roundl.c (zero): New variable.
86997         (main): Avoid literal -0.0L.
86998         * tests/test-truncf1.c (zero): New variable.
86999         (main): Avoid literal -0.0f.
87000         * tests/test-trunc1.c (zero): New variable.
87001         (main): Avoid literal -0.0.
87002         * tests/test-truncl.c (zero): New variable.
87003         (main): Avoid literal -0.0L.
87004         * tests/test-frexp.c (zero): New variable.
87005         (main): Avoid literal -0.0.
87006         * tests/test-frexpl.c (zero): New variable.
87007         (main): Avoid literal -0.0L.
87008         * tests/test-ldexpl.c (zero): New variable.
87009         (main): Avoid literal -0.0L.
87010         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
87011         (zerod, zerol): New variables.
87012         (test_function): Avoid literals -0.0, -0.0L.
87013         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
87014         (zerod, zerol): New variables.
87015         (test_function): Avoid literals -0.0, -0.0L.
87016         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
87017         (zerod, zerol): New variables.
87018         (test_function): Avoid literals -0.0, -0.0L.
87019         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
87020         (zerod, zerol): New variables.
87021         (test_function): Avoid literals -0.0, -0.0L.
87022         * tests/test-strtod.c (zero): New variable.
87023         (main): Avoid literal -0.0.
87024         Reported by Jonathan C. Patschke <jp@centtech.com>.
87026 2008-07-31  Jim Meyering  <meyering@redhat.com>
87028         sha256.h: correct definition of SHA224_DIGEST_SIZE
87029         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
87030         Reported by Paulie Pena IV <paulie4@gmail.com>.
87031         Define as 224 / 8, rather than as a literal.
87032         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
87033         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
87034         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
87036 2008-07-31  Bruno Haible  <bruno@clisp.org>
87038         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
87039         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
87040         Reported by Jonathan Patschke <jp@centtech.com>.
87042 2008-07-31  Bruno Haible  <bruno@clisp.org>
87044         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
87045         Reported by Paolo Bonzini <bonzini@gnu.org>.
87047 2008-07-30  Eric Blake  <ebb9@byu.net>
87049         test-strtod: allow compilation without -lm
87050         * tests/test-strtod.c (main): Avoid link dependence on fabs.
87051         Reported by Dennis Clarke <blastwave@gmail.com>.
87053 2008-07-28  Jim Meyering  <meyering@redhat.com>
87055         bootstrap: work also when there are no .po files in po/
87056         * build-aux/bootstrap (update_po_files): Complete the change
87057         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
87059 2008-07-27  Jim Meyering  <meyering@redhat.com>
87061         * users.txt: Add zile.
87063 2008-07-26  Ben Pfaff  <blp@gnu.org>
87065         Add missing dependencies on new m4/exponent[fdl].m4 files.
87066         * modules/isnanf-nolibm: Add m4/exponentf.m4.
87067         * modules/isnand-nolibm: Add m4/exponentd.m4.
87068         * modules/isnanl-nolibm: Add m4/exponentl.m4.
87069         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
87070         m4/isnan[fdl].m4, because the macros actually used moved.
87071         Reported by Jim Meyering.
87073 2008-07-14  Ben Pfaff  <blp@gnu.org>
87075         Add isinf module.
87076         * lib/isinf.c: New file.
87077         * lib/math.in.h: Define isinf macro if we have decided to replace
87078         it.
87079         * m4/isinf.m4: New file.
87080         * m4/math_h.m4: Initialize and substitute variables for isinf
87081         module.
87082         * modules/isinf: New file.
87083         * modules/isinf-tests: New file.
87084         * modules/math: Add substitutions for new module.
87085         * tests/test-isinf.c: New file.
87086         * doc/posix-functions/isinf.texi: Mention new module.
87087         * MODULES.html.sh: Mention new module.
87089 2008-07-14  Ben Pfaff  <blp@gnu.org>
87091         Factor out some macros for use by additional modules.
87092         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
87093         exponentf.m4.
87094         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
87095         exponentd.m4.
87096         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
87097         file exponentl.m4.
87098         * m4/exponentf.m4: New file.
87099         * m4/exponentd.m4: New file.
87100         * m4/exponentl.m4: New file.
87101         * modules/isnanf: Use new file m4/exponentf.m4.
87102         * modules/isnand: Use new file m4/exponentd.m4.
87103         * modules/isnanl: Use new file m4/exponentl.m4.
87105 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
87107         mktime.c: normalize tp->tm_isdst value to -1/0/1.
87108         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
87109         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
87110         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
87112         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
87113         readlink on platforms without PATH_MAX.
87115 2008-07-21  Eric Blake  <ebb9@byu.net>
87117         Warn, not fail, on stale version.
87118         * top/GNUmakefile (_curr-ver): Tone down previous patch.
87120         Don't allow installation with stale devel version number.
87121         * top/GNUmakefile (_is-install-target): New macro.
87122         (_curr-ver): Forbid installation with stale version number.
87124 2008-07-20  Bruno Haible  <bruno@clisp.org>
87126         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
87127         TESTS_ENVIRONMENT.
87128         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
87130 2008-07-20  Bruno Haible  <bruno@clisp.org>
87132         * lib/c-stack.h (c_stack_action): Add documentation.
87133         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
87135 2008-07-20  Bruno Haible  <bruno@clisp.org>
87137         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
87138         * modules/readlink (License): Likewise.
87140 2008-07-17  Eric Blake  <ebb9@byu.net>
87142         * modules/c-stack (Link): Fix typo.
87144         Make c-stack use libsigsegv, when available.
87145         * modules/c-stack (Depends-on): Add libsigsegv.
87146         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
87147         needed.
87148         * lib/c-stack.c (SIGSTKSZ): Define fallback.
87149         (segv_handler, overflow_handler, c_stack_action)
87150         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
87151         implementation when libsigsegv is available, but only when using
87152         the library is necessary.
87153         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
87154         comment, explaining why XSI check fails on Linux.
87155         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
87156         * tests/test-c-stack2.sh: Tweak skip message.
87157         * NEWS: Document new link-time requirements.
87159 2008-07-16  Eric Blake  <ebb9@byu.net>
87161         c-stack: Expose false positives when not using libsigsegv.
87162         * modules/c-stack-tests (Files): Expand test.
87163         * tests/test-c-stack.c (main): Add means to conditionally trigger
87164         non-overflow SIGSEGV.
87165         * tests/test-c-stack2.sh: New file.
87167 2008-07-14  Bruno Haible  <bruno@clisp.org>
87169         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
87170         Reported by Eric Blake.
87172 2008-07-14  Sam Steingold  <sds@gnu.org>
87173             Bruno Haible  <bruno@clisp.org>
87175         New module libsigsegv.
87176         * modules/libsigsegv: New file.
87177         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
87178         modifications.
87179         * MODULES.html.sh (Signal handling): New section.
87181 2008-07-14  Bruno Haible  <bruno@clisp.org>
87183         * modules/unictype/ctype-* (Description): Add the word "function".
87184         Improves the resulting doc in MODULES.html.
87186 2008-07-12  Ben Pfaff  <blp@gnu.org>
87188         Add longlong module.
87189         * modules/longlong: New file.
87191 2008-07-12  Bruno Haible  <bruno@clisp.org>
87193         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
87194         to empty.
87196 2008-07-10  Ben Pfaff  <blp@gnu.org>
87198         Add isnan module.
87199         * doc/posix-functions/isnan.texi: Mention new module.
87200         * lib/math.in.h: Define isnan macro if we have decided to replace
87201         it.
87202         * m4/isnan.m4: New file.
87203         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
87204         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
87205         also.
87206         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
87207         redundancy.
87208         * m4/math_h.m4: Initialize and substitute variables for isnan
87209         module.
87210         * modules/isnan: New file.
87211         * modules/isnan-tests: New file.
87212         * modules/math: Add substitutions for new module.
87213         * tests/test-isnan.c: New file.
87214         * MODULES.html.sh: Mention new module.
87216 2008-07-10  Ben Pfaff  <blp@gnu.org>
87218         Add isnanf module.
87219         * lib/isnanf.m4: New file.
87220         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
87221         (gl_HAVE_ISNANF_IN_LIBM): New macro.
87222         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
87223         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
87224         * modules/isnanf: New file.
87225         * modules/isnanf-tests: New file.
87226         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
87227         files.
87228         * tests/test-isnanf-nolibm.c: factored most of its contents into
87229         new file tests/test-isnanf.h.
87230         * tests/test-isnanf.h: New file.
87231         * tests/test-isnanf.c: New file.
87232         * MODULES.html.sh: Mention new module.
87233         * doc/glibc-functions/isnanf.texi: Mention new module.
87235 2008-07-10  Ben Pfaff  <blp@gnu.org>
87237         Add isnand module.
87238         * lib/isnand.h: New file.
87239         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
87240         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
87241         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
87242         functionality also.
87243         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
87244         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
87245         (gl_HAVE_ISNAND_IN_LIBM): New macro.
87246         * modules/isnand: New file.
87247         * modules/isnand-tests: New file.
87248         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
87249         files.
87250         * tests/test-isnand-nolibm.c: factored most of its contents into
87251         new file tests/test-isnand.h.
87252         * tests/test-isnand.h: New file.
87253         * tests/test-isnand.c: New file.
87254         * MODULES.html.sh: Mention new module.
87256 2008-07-10  Ben Pfaff  <blp@gnu.org>
87258         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
87259         * lib/isnand.h: Rename lib/isnand-nolibm.h.
87260         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
87261         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
87262         * modules/isnanf-nolibm: Update references to renamed files.
87263         * modules/isnand-nolibm: Likewise.
87264         * modules/isnanf-nolibm-tests: Likewise.
87265         * modules/isnand-nolibm-tests: Likewise.
87266         * lib/frexp.c: Likewise.
87267         * lib/isfinite.c: Likewise.
87268         * lib/signbitd.c: Likewise.
87269         * lib/signbitf.c: Likewise.
87270         * lib/vasnprintf.c: Likewise.
87271         * tests/test-ceilf1.c: Likewise.
87272         * tests/test-ceilf2.c: Likewise.
87273         * tests/test-floorf1.c: Likewise.
87274         * tests/test-floorf2.c: Likewise.
87275         * tests/test-frexp.c: Likewise.
87276         * tests/test-round1.c: Likewise.
87277         * tests/test-round2.c: Likewise.
87278         * tests/test-roundf1.c: Likewise.
87279         * tests/test-strtod.c: Likewise.
87280         * tests/test-trunc1.c: Likewise.
87281         * tests/test-trunc2.c: Likewise.
87282         * tests/test-truncf1.c: Likewise.
87283         * tests/test-truncf2.c: Likewise.
87284         * NEWS: Mention the renamed header files.
87286 2008-07-11  Jim Meyering  <meyering@redhat.com>
87288         vc-list-files: make the last-resort awk code more portable
87289         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
87290         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
87291         does not support it.
87293 2008-07-10  Eric Blake  <ebb9@byu.net>
87295         Work with tar's bootstrap.
87296         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
87297         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
87298         an m4 comment.
87300 2008-07-09  Jim Meyering  <meyering@redhat.com>
87302         posix-shell.m4: fix typo that made this test malfunction
87303         * m4/posix-shell.m4: Remove capitalization in variable name.
87305 2008-07-08  Bruno Haible  <bruno@clisp.org>
87307         * m4/onceonly.m4: Update comments.
87308         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87310 2008-07-04  Jim Meyering  <meyering@redhat.com>
87312         * users.txt: Add vc-dwim.
87313         (bison, coreutils): Use the gitweb URL.
87315 2008-07-03  Jim Meyering  <meyering@redhat.com>
87317         * users.txt: Add libffcall.  From Sam Steingold.
87319 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
87321         getdate.y: do not ignore TZ with relative day, month or year offset
87322         * lib/getdate.y (get_date): Move the tz-handling block to follow the
87323         relative-date-handling, since otherwise, the latter would clobber the
87324         sole output (an updated Start value) of the tz-handling block.
87325         * tests/test-getdate.c: Tests for the fix
87327 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87329         Recognize 'foo_LIBRARIES += libgnu.a'.
87330         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
87331         makefile snippet has already specified an installation location,
87332         also using '+='.
87334 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
87336         getdate.y: factor out common actions
87337         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
87338         Use them in place of open-coded actions.
87340 2008-07-01  Simon Josefsson  <simon@josefsson.org>
87342         Add self-test for getdate module.
87343         * modules/getdate-tests: New file.
87344         * tests/test-getdate.c: New file.
87346 2008-06-29  Bruno Haible  <bruno@clisp.org>
87348         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
87349         .gitignore.
87350         Reported by Sylvain Beucler <beuc@beuc.net>.
87352 2008-06-29  Bruno Haible  <bruno@clisp.org>
87354         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
87355         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
87357 2008-06-29  Bruno Haible  <bruno@clisp.org>
87359         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
87360         EXTRA_DIST.
87361         Reported by Sylvain Beucler <beuc@beuc.net>.
87363 2008-06-26  Jim Meyering  <meyering@redhat.com>
87365         make several modules depend on the "open" module
87366         This provides slightly increased consistency when opening-for-write
87367         the name of a non-directory spelled with a trailing slash.
87368         * modules/chdir-safer: Likewise.
87369         * modules/chown: Likewise.
87370         * modules/clean-temp: Likewise.
87371         * modules/copy-file: Likewise.
87372         * modules/fchdir: Likewise.
87373         * modules/fcntl-safer: Likewise.
87374         * modules/pipe: Likewise.
87375         * modules/utime: Likewise.
87376         Prompted by Eric Blake and Bruno Haible.
87378 2008-06-24  Andreas Schwab  <schwab@suse.de>
87380         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
87381         literals can be used as initializers for global variables.
87383 2008-06-23  Eric Blake  <ebb9@byu.net>
87385         Make gnulib-cache.m4 easier to diff.
87386         * gnulib-tool (func_import): Allow newlines when reading cached
87387         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
87389 2008-06-23  Bruno Haible  <bruno@clisp.org>
87391         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
87392         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
87393         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
87394         m4/signalblocking.m4.
87395         (gl_PREREQ_SIGACTION): Don't invoke it.
87396         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
87397         gl_PREREQ_SIG_HANDLER_H.
87398         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
87399         Don't check for sigaction here.
87401 2008-06-23  Bruno Haible  <bruno@clisp.org>
87403         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
87404         (install_handlers): Don't set the SA_RESETHAND flag.
87406 2008-06-23  Bruno Haible  <bruno@clisp.org>
87408         * m4/sigaction.m4: Comment fixes.
87409         * lib/signal.in.h: Likewise.
87411 2008-06-23  Eric Blake  <ebb9@byu.net>
87413         Fix typo.
87414         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
87416         Avoid SA_ namespace.
87417         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
87418         Reported by Ralf Wildenhues.
87420         Avoid test failure due to SA_RESTORER.
87421         * tests/test-sigaction.c (SA_MASK): New macro.
87422         (main): Avoid failing due to extension flags being set.
87423         Reported by Jim Meyering.
87425         Revert use of sig-handler.h in sigprocmask.c.
87426         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
87427         it requires the existence of struct sigaction.
87428         * lib/sigprocmask.c (handler_t): Restore typedef.
87429         (rpl_signal, old_handlers): Use local type.
87431 2008-06-22  Bruno Haible  <bruno@clisp.org>
87433         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
87434         conditionally.
87435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87437 2008-06-22  Bruno Haible  <bruno@clisp.org>
87439         * doc/posix-functions/siginterrupt.texi: Move note.
87441         * lib/signal.in.h (SA_RESTART): New macro.
87442         * lib/sigaction.c: Update comment.
87444         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
87446         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
87447         (gl_PREREQ_SIGPROCMASK): Invoke it.
87448         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
87450         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
87452         * lib/sigprocmask.c: Update a comment.
87454 2008-06-21  Eric Blake  <ebb9@byu.net>
87456         Use sigaction module rather than signal().
87457         * modules/c-stack (Depends-on): Add sigaction.
87458         * modules/fatal-signal (Depends-on): Likewise.
87459         * modules/nanosleep (Depends-on): Likewise.
87460         * modules/sigprocmask (Files): Add sig-handler.h.
87461         * modules/sigaction (Files): Likewise.
87462         * lib/sig-handler.h (get_handler): New file, suggested by Paul
87463         Eggert.
87464         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
87465         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
87466         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
87467         (init_fatal_signals): Likewise.
87468         * lib/nanosleep.c (rpl_nanosleep): Likewise.
87469         (siginterrupt): Delete fallback.
87470         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
87471         instead.
87472         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
87473         siginterrupt.
87475         New module sigaction, for mingw.
87476         * modules/sigaction: New module...
87477         * modules/sigaction-tests: ...and its test.
87478         * m4/sigaction.m4: New file.
87479         * lib/sigaction.c: Likewise.
87480         * tests/test-sigaction.c: Likewise.
87481         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
87482         * modules/signal (Makefile.am): Likewise.
87483         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
87484         needed.
87485         * doc/posix-headers/signal.texi (signal.h): Mention provided
87486         types.
87487         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
87488         that sigaction is preferable.
87489         * doc/posix-functions/sigaction.texi (sigaction): Mention new
87490         module.
87491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87492         sigaction.
87494         Improve robustness of sigprocmask by overriding signal.
87495         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
87496         is in use.
87497         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
87498         (SIGKILL, SIGSTOP): Provide fallbacks.
87499         (rpl_signal): Implement.
87500         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
87501         signal can be called inside handlers.
87503         Fix nanosleep module on mingw.
87504         * modules/nanosleep (Depends-on): Add sys_select.
87505         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
87507         Fix licensing of sigprocmask.
87508         * modules/raise (License): Relicense as LGPL.
87510 2008-06-21  Bruno Haible  <bruno@clisp.org>
87512         * lib/propername.c (proper_name_utf8): Don't use the transliterated
87513         result if it contains question marks.
87514         Reported by Michael Geng <linux@michaelgeng.de>.
87516 2008-06-19  Bruno Haible  <bruno@clisp.org>
87518         Fix CVS-ism.
87519         * doc/gnulib.texi: Include updated-stamp.texi.
87520         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
87521         (updated-stamp.texi): New rule.
87522         (gnulib.info): Depend on it.
87523         * doc/.gitignore: Add updated-stamp.texi.
87524         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
87526 2008-06-19  Bruno Haible  <bruno@clisp.org>
87528         * doc/Makefile (gnulib.info): Update and simplify dependencies.
87529         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
87531 2008-06-19  Eric Blake  <ebb9@byu.net>
87533         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
87534         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
87535         Reported by Stepan Kasal.
87537 2008-06-18  Bruno Haible  <bruno@clisp.org>
87539         * lib/fatal-signal.c (init_fatal_signals): Add comment.
87540         Reported by Eric Blake.
87542 2008-06-18  Eric Blake  <ebb9@byu.net>
87544         Work around cygwin 1.5.25 strsignal bug.
87545         * tests/test-strsignal.c: Allow for const char *.
87546         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
87548 2008-06-18  Simon Josefsson  <simon@josefsson.org>
87550         * users.txt: Update URL to article and add author/date
87551         information.
87553 2008-06-17  Bruno Haible  <bruno@clisp.org>
87555         New macro gl_DISABLE_THREADS.
87556         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
87557         if the user did not pass --enable-threads or --disable-threads option.
87558         (gl_DISABLE_THREADS): New macro.
87559         Reported by Eric Blake <ebb9@byu.net>.
87561 2008-06-17  Bruno Haible  <bruno@clisp.org>
87563         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
87564         when the macro ignores it.
87565         Based on a patch by Eric Blake <ebb9@byu.net>.
87567 2008-06-17  Bruno Haible  <bruno@clisp.org>
87569         * modules/tls (License): Change to LGPLv2+.
87570         Reported by Eric Blake.
87572 2008-06-17  Eric Blake  <ebb9@byu.net>
87574         Simplify c-stack prerequisites.
87575         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
87576         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
87577         no longer requires <ucontext.h> to exist.  Optimize setrlimit
87578         check.
87579         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
87580         <sys/resource.h>.
87582         Move c-stack test into testsuite.
87583         * modules/c-stack-tests: New file.
87584         * lib/c-stack.c [DEBUG]: Move test program...
87585         * tests/test-c-stack.c: ...into this new file.  Skip rather than
87586         fail test if sigaltstack is lacking.
87587         * tests/test-c-stack.sh: New driver file.
87589 2008-06-16  Eric Blake  <ebb9@byu.net>
87591         Use raise module consistently.
87592         * modules/fatal-signal (Depends-on): Add raise.
87593         * modules/sigprocmask (Depends-on): Likewise.
87594         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
87595         * lib/sigprocmask.c (sigprocmask): Likewise.
87596         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
87597         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
87599         Fix compliance bug in sigpending.
87600         * lib/sigprocmask.c (sigpending): Return pending array via
87601         parameter, not return value.
87603 2008-06-14  Eric Blake  <ebb9@byu.net>
87605         Improve obstack-printf test code.
87606         * tests/test-obstack-printf.c (test_function): Fix comment, and
87607         simplify usage of obstack_* in macros.  Add a test for coverage.
87608         Reported by Bruno Haible.
87610 2008-06-14  Bruno Haible  <bruno@clisp.org>
87612         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
87613         array size as a constant, not as a const variable.
87614         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
87615         AC_USE_SYSTEM_EXTENSIONS.
87616         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
87617         Test whether the obstack_printf function actually exists.
87618         * modules/obstack-printf (Depends-on): Add extensions.
87619         (Include): Remove obstack.h.
87620         * modules/obstack-printf-posix (Depends-on): Add extensions.
87621         (Include): Remove obstack.h.
87623 2008-06-13  Eric Blake  <ebb9@byu.net>
87625         Add obstack-printf and obstack-printf-posix modules.
87626         * modules/obstack-printf: New file.
87627         * modules/obstack-printf-posix: Likewise.
87628         * MODULES.html.sh (Misc): Mention them.
87629         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87630         Likewise.
87631         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87632         Likewise.
87633         * modules/stdio (Makefile.am): Accomodate new modules.
87634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87635         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
87636         Declare.
87637         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
87638         functions.
87639         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
87640         (gl_REPLACE_OBSTACK_PRINTF): New macros
87641         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
87642         * tests/test-obstack-printf.c: New file.
87643         * modules/obstack-printf-tests: Likewise.
87644         * modules/obstack-printf-posix-tests: Likewise.
87646 2008-06-11  Bruno Haible  <bruno@clisp.org>
87648         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
87649         * lib/open.c: Include errno.h.
87650         (open): Fail when attempting to write to a file that has a trailing
87651         slash.
87652         * tests/test-open.c (main): Test against trailing slash bug.
87653         * doc/posix-functions/open.texi: Mention the trailing slash bug.
87655 2008-06-10  Bruno Haible  <bruno@clisp.org>
87657         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
87658         for $? to work inside the trap command, with various /bin/sh-s.
87659         * tests/test-vc-list-files-cvs.sh: Likewise.
87661 2008-06-10  Bruno Haible  <bruno@clisp.org>
87663         * lib/acl-internal.h: Don't include gettext.h here.
87664         * lib/set-mode-acl.c: Include gettext.h here.
87665         * lib/copy-acl.c: Likewise.
87667 2008-06-10  Bruno Haible  <bruno@clisp.org>
87669         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
87670         * lib/wait-process.c (wait_subprocess): Likewise.
87671         * lib/execute.h (execute): Add termsigp argument.
87672         * lib/execute.c (execute): Likewise.
87673         * lib/csharpcomp.c (compile_csharp_using_pnet,
87674         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
87675         * lib/csharpexec.c (execute_csharp_using_pnet,
87676         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
87677         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
87678         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
87679         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
87680         is_jikes_present): Update.
87681         * lib/javaexec.c (execute_java_class): Update.
87682         * lib/javaversion.c (execute_and_read_line): Update.
87683         * NEWS: Document the changes.
87684         Reported by Eric Blake.
87686 2008-06-10  Eric Blake  <ebb9@byu.net>
87688         Add missing include.
87689         * tests/test-strstr.c (includes): Add <signal.h>.
87690         * tests/test-strcasestr.c (includes): Likewise.
87691         * tests/test-memmem.c (includes): Likewise.
87693 2008-06-10  Bruno Haible  <bruno@clisp.org>
87695         * lib/wait-process.c (wait_subprocess): Add an assertion.
87697 2008-06-10  Bruno Haible  <bruno@clisp.org>
87699         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
87701 2008-06-10  Bruno Haible  <bruno@clisp.org>
87703         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
87704         using alarm().
87705         * tests/test-strcasestr.c (main): Likewise.
87706         * tests/test-strstr.c (main): Likewise.
87708 2008-06-09  Bruno Haible  <bruno@clisp.org>
87710         Work around the Solaris 10 ACE ACLs ABI change.
87711         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
87712         declare if ACL_NO_TRIVIAL is present.
87713         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
87714         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
87715         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
87716         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
87717         define if ACL_NO_TRIVIAL is present.
87718         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
87719         and use the current ABI.
87720         (file_has_acl): Use same #if condition as elsewhere.
87721         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
87722         in use, and use the current ABI.
87723         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
87724         Reported by Jim Meyering.
87726 2008-06-09  Eric Blake  <ebb9@byu.net>
87728         Work around environments that (stupidly) ignore SIGALRM.
87729         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
87730         before using alarm().
87731         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
87733         Reported by Ian Beckwith <ianb@erislabs.net>.
87735         Produce autobuild blurb earlier in log.
87736         * modules/autobuild (configure.ac-early): Move AB_INIT here.
87738 2008-06-09  Jim Meyering  <meyering@redhat.com>
87739         and Ondřej Vašík  <ovasik@redhat.com>
87741         utimens.c: correct kernel bug work-around
87742         Ondřej Vašík found that the invalid return value of 280 indicates
87743         failure, not success, and the kernel bug we're trying to work
87744         around affects not just the utimensat call, but also the fallback
87745         futimens call.
87746         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
87747         not success.
87748         [HAVE_FUTIMENS]: Use the same work-around, here.
87750 2008-06-09  Jim Meyering  <meyering@redhat.com>
87752         add more guards around definition of ACE_-related code
87753         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
87754         ALLOW and ACE_OWNER are also defined.
87756 2008-06-08  Bruno Haible  <bruno@clisp.org>
87758         * lib/acl-internal.h: Add me as co-author.
87759         * lib/file-has-acl.c: Likewise.
87760         * lib/set-mode-acl.c: Likewise.
87761         * lib/copy-acl.c: Likewise.
87763 2008-06-08  Bruno Haible  <bruno@clisp.org>
87765         Add support for AIX ACLs.
87766         * lib/acl-internal.h (acl_nontrivial): New declaration.
87767         * lib/file-has-acl.c (acl_nontrivial): New function.
87768         (file_has_acl): Add implementation using AIX 4 ACL API.
87769         * lib/set-mode-acl.c (qset_acl): Likewise.
87770         * lib/copy-acl.c (qcopy_acl): Likewise.
87772 2008-06-08  Bruno Haible  <bruno@clisp.org>
87774         Add support for HP-UX ACLs.
87775         * lib/acl-internal.h (acl_nontrivial): New declaration.
87776         * lib/file-has-acl.c (acl_nontrivial): New function.
87777         (file_has_acl): Add implementation using HP-UX 11 ACL API.
87778         * lib/set-mode-acl.c (qset_acl): Likewise.
87779         * lib/copy-acl.c (qcopy_acl): Likewise.
87781 2008-06-08  Bruno Haible  <bruno@clisp.org>
87783         Add support for Cygwin ACLs.
87784         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
87785         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
87786         the chmod_or_fchmod call.
87787         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
87789 2008-06-08  Bruno Haible  <bruno@clisp.org>
87791         Fix bug with setuid modes in Solaris 10+ code.
87792         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
87793         succeeded, when the mode contains some special bits.
87795 2008-06-08  Bruno Haible  <bruno@clisp.org>
87797         Add support for Solaris 7..10 ACLs.
87798         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
87799         declarations.
87800         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
87801         functions.
87802         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
87803         * lib/set-mode-acl.c (qset_acl): Likewise.
87804         * lib/copy-acl.c (qcopy_acl): Likewise.
87806 2008-06-08  Bruno Haible  <bruno@clisp.org>
87808         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
87809         declaration.
87810         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
87811         (acl_access_nontrivial): Remove MacOS X case.
87812         (file_has_acl): Use acl_extended_nontrivial.
87813         * lib/copy-acl.c (qcopy_acl): Likewise.
87815 2008-06-08  Bruno Haible  <bruno@clisp.org>
87817         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
87819 2008-06-08  Jim Meyering  <meyering@redhat.com>
87821         * modules/acl (Maintainer): Add Bruno Haible.
87823 2008-06-07  Bruno Haible  <bruno@clisp.org>
87825         Improve support for Tru64 ACLs.
87826         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
87827         ACL on OSF/1.
87829 2008-06-07  Bruno Haible  <bruno@clisp.org>
87831         Add support for MacOS X ACLs.
87832         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
87833         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
87834         * lib/set-mode-acl.c (qset_acl): Likewise.
87835         * lib/copy-acl.c (qcopy_acl): Likewise.
87837 2008-06-07  Bruno Haible  <bruno@clisp.org>
87839         Fix memory leak introduced on 2008-05-22.
87840         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
87841         use.
87843 2008-06-07  Bruno Haible  <bruno@clisp.org>
87845         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
87846         to construct an empty ACL.
87848 2008-06-07  Bruno Haible  <bruno@clisp.org>
87850         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
87851         precisely.
87852         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
87854 2008-06-07  Bruno Haible  <bruno@clisp.org>
87856         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
87857         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
87859 2008-06-07  Bruno Haible  <bruno@clisp.org>
87861         * doc/posix-functions/_setjmp.texi: Explain the use of this function
87862         regardless of POSIX.
87863         * doc/posix-functions/_longjmp.texi: Likewise.
87864         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
87865         SystemV platform in this case.
87867 2008-06-06  Eric Blake  <ebb9@byu.net>
87869         Document abort() bugs.
87870         * doc/posix-functions/abort.texi (abort): Mention anomalies.
87872         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
87873         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
87874         sigsetjmp.
87875         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
87876         siglongjmp, but only as a macro.
87877         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
87878         is obsolete.
87879         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
87881         Tweak documentation to cover cygwin argz bugs.
87882         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
87883         argz bug fix; no code change needed since no cygwin releases
87884         occurred between the last fix and the bug being tested.
87885         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
87886         module and recently fixed cygwin bugs.
87887         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
87888         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
87889         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
87890         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
87891         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
87892         Likewise.
87893         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
87894         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
87895         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
87896         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
87897         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
87898         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
87899         Likewise.
87901         Avoid gcc warning on cygwin.
87902         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
87903         !ACL_NO_TRIVIAL]: Avoid unused variable.
87905 2008-06-05  Eric Blake  <ebb9@byu.net>
87907         Be tolerant of UNKNOWN version in gnulib-tool test dir.
87908         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
87909         git-version-gen fails to come up with a version.
87910         Reported by Simon Josefsson.
87912 2008-06-05  Jim Meyering  <meyering@redhat.com>
87913             Paul Eggert  <eggert@cs.ucla.edu>
87915         utimens.c: work around a probable Linux kernel bug
87916         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
87917         appears to be a kernel bug that causes utimensat to return 280
87918         instead of 0, indicating success.
87920 2008-06-04  Bruno Haible  <bruno@clisp.org>
87922         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
87923         2008-06-01 commit.
87925 2008-06-04  Bruno Haible  <bruno@clisp.org>
87927         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
87928         * lib/file-has-acl.c (acl_access_nontrivial): New function.
87929         (file_has_acl): Use it. Save errno afterwards.
87930         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
87932 2008-06-03  Bruno Haible  <bruno@clisp.org>
87934         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
87935         draft code. Simplify #ifs.
87936         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
87937         Put Solaris code after POSIX-draft code. Fix comments regarding
87938         Solaris 10, HP-UX. Mention Cygwin.
87939         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
87941 2008-06-03  Eric Blake  <ebb9@byu.net>
87943         Provide fallback for older kernels.
87944         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
87945         Provide runtime fallback if kernel lacks support.
87946         Reported by Mike Frysinger.
87948 2008-06-02  Bruno Haible  <bruno@clisp.org>
87950         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
87951         it exists.
87953 2008-06-02  Bruno Haible  <bruno@clisp.org>
87955         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
87956         * lib/copy-acl.c (qcopy_acl): Update comment.
87958 2008-06-02  Bruno Haible  <bruno@clisp.org>
87960         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
87961         like ACL APIs.
87963 2008-06-02  Bruno Haible  <bruno@clisp.org>
87965         * tests/test-file-has-acl.sh: Use different code for Cygwin.
87966         * tests/test-set-mode-acl.sh: Likewise.
87967         * tests/test-copy-acl.sh: Likewise.
87968         * tests/test-copy-file.sh: Likewise.
87970 2008-06-02  Bruno Haible  <bruno@clisp.org>
87972         * tests/test-file-has-acl.sh: Remove unused code.
87974 2008-06-01  Bruno Haible  <bruno@clisp.org>
87976         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
87977         (copy_acl): Just a wrapper around qcopy_acl that emits the error
87978         messages.
87979         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
87981 2008-06-01  Bruno Haible  <bruno@clisp.org>
87983         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
87984         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
87985         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
87986         APIs.
87987         * modules/acl-tests (configure.ac): Remove tests now contained in
87988         m4/acl.m4.
87990 2008-06-02  Jim Meyering  <meyering@redhat.com>
87992         announce-gen: use a better key-server host name
87993         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
87994         it may be more consistently reliable.  Suggested by Werner Koch
87995         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
87997 2008-06-01  Bruno Haible  <bruno@clisp.org>
87999         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
88000         Reported by Voroskoi Andras <voroskoi@gmail.com>.
88002 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
88004         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
88006 2008-06-01  Bruno Haible  <bruno@clisp.org>
88008         New ACL tests.
88009         * tests/test-file-has-acl.sh: New file.
88010         * tests/test-file-has-acl.c: New file.
88011         * tests/test-set-mode-acl.sh: New file.
88012         * tests/test-set-mode-acl.c: New file.
88013         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
88014         * tests/test-copy-acl.c: New file.
88015         * modules/acl-tests: New file, based on modules/copy-file-tests.
88016         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
88017         (Depends-on): Add acl-tests.
88018         (configure.ac): Remove checks.
88019         (Makefile.am): Don't create test-sameacls program here any more.
88021 2008-06-01  Bruno Haible  <bruno@clisp.org>
88023         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
88024         * tests/test-sameacls.c: Include progname.h.
88025         (main): Invoke set_program_name. Portability fixes for MacOS X,
88026         Solaris, HP-UX.
88028 2008-06-01  Bruno Haible  <bruno@clisp.org>
88030         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
88031         function.
88032         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
88034 2008-06-01  Bruno Haible  <bruno@clisp.org>
88036         * modules/rpmatch (Depends-on): Add strdup.
88038 2008-06-01  Bruno Haible  <bruno@clisp.org>
88040         * lib/pipe.c: Include unistd-safer.h.
88041         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
88042         * modules/pipe (Depends-on): Add unistd-safer.
88044 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88046         * modules/autobuild (configure.ac): Call AB_INIT.
88048 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88050         * tests/test-getaddrinfo.c: Don't print debug messages by default.
88051         Suggested by Bruno Haible <bruno@clisp.org>.
88053 2008-05-30  Simon Josefsson  <simon@josefsson.org>
88055         * tests/test-base64.c: Cast size_t to unsigned long when invoking
88056         printf.  Use %lu instead of %d.  Reported by Bruno Haible
88057         <bruno@clisp.org>.
88059 2008-05-29  Eric Blake  <ebb9@byu.net>
88061         Prefer new POSIX 200x interfaces over futimesat.
88062         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
88063         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
88064         when available.
88065         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
88067 2008-05-28  Bruno Haible  <bruno@clisp.org>
88069         * modules/stpcpy (License): Change to LGPLv2+.
88070         Requested by David Lutterkort <dlutter@redhat.com>.
88072 2008-05-27  Bruno Haible  <bruno@clisp.org>
88074         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
88075         current mingw.
88076         Reported by Jose E. Marchesi <jemarch@gnu.org>.
88078 2008-05-27  Bruno Haible  <bruno@clisp.org>
88080         * modules/iconv_open (Link): New section, from module 'iconv'.
88081         * modules/striconv (Link): Likewise.
88082         * modules/striconveh (Link): Likewise.
88083         * modules/xstriconv (Link): Likewise.
88084         * modules/unicodeio (Link): Likewise.
88085         * modules/propername (Link): Likewise.
88086         Reported by Jim Meyering.
88088 2008-05-26  Jim Meyering  <meyering@redhat.com>
88090         sha256: do not artificially restrict buffer length to be < 2^32
88091         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
88092         uint32_t to size_t.
88093         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
88094         to match.
88096         avoid unaligned access errors, e.g., on sparc
88097         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
88098         direct access through a possibly-unaligned uint64* pointer.
88099         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
88100         direct access through a possibly-unaligned uint32* pointer.
88101         Prompted by this patch from Tom "spot" Callaway:
88102         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
88104         sha512.c: fix typo in comment
88105         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
88107 2008-05-25  Bruno Haible  <bruno@clisp.org>
88109         * lib/set-mode-acl.c: Renamed from lib/acl.c.
88110         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
88111         (Makefile.am): Update lib_SOURCES.
88113 2008-05-25  Bruno Haible  <bruno@clisp.org>
88115         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
88117 2008-05-25  Jim Meyering  <meyering@redhat.com>
88119         useless-if-before-free: freed expr may have white-space differences
88120         * build-aux/useless-if-before-free: Recognize cases in which the
88121         freed expression differs from the tested one in embedded white
88122         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
88123         $1 was used, so we can't make any regexp shy.  Improved tests now
88124         detect this.
88126         useless-if-before-free: accept white space in the expression.
88127         * build-aux/useless-if-before-free: For now, any white space
88128         in the expression must be identical in the free argument.
88130         useless-if-before-free: efficiency tweak
88131         * build-aux/useless-if-before-free: Make the expression-matching
88132         regexp "shy".
88133         Make the *outer* regexp shy, not the expr-matching one.
88135         update code-in-comment to accept cast of free arg
88136         * build-aux/useless-if-before-free: Update regexp.
88138 2008-05-25  Bruno Haible  <bruno@clisp.org>
88140         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
88141         * modules/copy-file-tests (Files, Makefile.am): Update.
88142         * tests/test-copy-file.c (func_test_copy): Update.
88144 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
88146         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
88148 2008-05-23  Bruno Haible  <bruno@clisp.org>
88150         Improve support for ACLs on OSF/1.
88151         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
88152         Remove fallback for unknown flavors of ACLs.
88154 2008-05-22  Bruno Haible  <bruno@clisp.org>
88156         Add support for ACLs on OSF/1.
88157         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
88158         replacements.
88159         (acl_free_text): New macro fallback.
88160         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
88161         acl_free.
88162         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
88163         acl_free_text function. Require AC_C_INLINE.
88165 2008-05-22  Bruno Haible  <bruno@clisp.org>
88167         Make copy_acl work on MacOS X 10.5.
88168         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
88169         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
88170         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
88171         If MODE_INSIDE_ACL, don't assume that every system has the same text
88172         representation for ACLs as FreeBSD.
88173         * lib/copy-acl.c (copy_acl): Add support for platforms with
88174         !MODE_INSIDE_ACL.
88175         * lib/file-has-acl.c (file_has_acl): Likewise.
88176         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
88177         FreeBSD, MacOS X, or IRIX, respectively.
88179 2008-05-22  Bruno Haible  <bruno@clisp.org>
88181         * lib/acl.h: Don't include <sys/acl.h>.
88182         (GETACLCNT): Move fallback to lib/acl-internal.h.
88183         * lib/acl-internal.h: Include <sys/acl.h> here.
88184         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
88186 2008-05-22  Bruno Haible  <bruno@clisp.org>
88188         Split off copy_acl function to separate file.
88189         * lib/copy-acl.c: New file, extracted from lib/acl.c.
88190         * lib/acl.c (copy_acl): Moved function to separate file.
88191         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
88192         * modules/acl (Files): Add lib/copy-acl.c.
88193         (Makefiles.am): Augment lib_SOURCES.
88195 2008-05-22  Bruno Haible  <bruno@clisp.org>
88197         * modules/copy-file-tests: New file.
88198         * tests/test-copy-file.sh: New file.
88199         * tests/test-copy-file.c: New file.
88200         * tests/test-copy-file-sameacls.c: New file.
88202 2008-05-22  Eric Blake  <ebb9@byu.net>
88204         Avoid gcc warning.
88205         * tests/test-memcmp.c (main): Pass NULL indirectly.
88207 2008-05-21  Bruno Haible  <bruno@clisp.org>
88209         Add reference doc about ACLs.
88210         * doc/acl-resources.txt: New file.
88211         * doc/acl-cygwin.txt: New file.
88213 2008-05-21  Bruno Haible  <bruno@clisp.org>
88215         Avoid one more warning from gcc.
88216         * lib/vasnprintf.c (IF_LINT): Update comments.
88217         (VASNPRINTF): Use it also for the 'prefix' array initializer.
88219 2008-05-21  Jim Meyering  <meyering@redhat.com>
88221         avoid a warning from gcc
88222         * lib/vasnprintf.c (IF_LINT): Define.
88223         (scale10_round_decimal_long_double):
88224         Use it to avoid a "may be used uninitialized" warning.
88225         (scale10_round_decimal_double): Likewise.
88227 2008-05-21  Simon Josefsson  <simon@josefsson.org>
88229         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
88230         declared.
88232 2008-05-20  Bruno Haible  <bruno@clisp.org>
88234         * tests/test-memcmp.c (main): Test also the sign of the result. Test
88235         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
88237 2008-05-20  Simon Josefsson  <simon@josefsson.org>
88239         * modules/memcmp-tests: New file.
88240         * tests/test-memcmp.c: New file.
88242 2008-05-19  Bruno Haible  <bruno@clisp.org>
88244         * modules/propername (Notice, configure.ac): Put quoted "..." into
88245         --keyword option.
88246         * lib/propername.h: Update comments accordingly.
88247         Reported by Eric Blake.
88249 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
88251         * modules/getpass-gnu (Depends-on): Add fseeko.
88253 2008-05-19  Simon Josefsson  <simon@josefsson.org>
88255         * modules/base64-tests: New file.
88257 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
88259         * lib/base64.c (base64_decode_ctx): If a decode context structure
88260         was passed in use it to ignore newlines.  If a context structure
88261         was _not_ passed in, continue to treat newlines as garbage (this
88262         is the historical behavior).  Formerly base64_decode.
88263         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
88264         takes a decode context structure.
88265         * lib/base64.h (base64_decode): Macro for four-argument calls.
88266         (base64_decode_alloc): Likewise.
88267         * lib/base64.c (base64_decode_ctx): If a decode context structure
88268         was passed in use it to ignore newlines.  If a context structure
88269         was _not_ passed in, continue to treat newlines as garbage (this
88270         is the historical behavior).  Formerly base64_decode.
88271         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
88272         takes a decode context structure.
88273         * lib/base64.h (base64_decode): Macro for four-argument calls.
88274         (base64_decode_alloc): Likewise.
88276 2008-05-19  Jim Meyering  <meyering@redhat.com>
88278         avoid a warning from gcc
88279         * lib/trim.c (IF_LINT): Define.
88280         (trim2): Use it to avoid a "may be used uninitialized" warning.
88282         Fix doc typo.
88283         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
88285 2008-05-19  Bruno Haible  <bruno@clisp.org>
88287         * doc/glibc-functions/getpass.texi: Document limits of other
88288         implementations.
88290 2008-05-19  Simon Josefsson  <simon@josefsson.org>
88291             Bruno Haible <bruno@clisp.org>
88293         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
88295 2008-05-18  Bruno Haible  <bruno@clisp.org>
88297         * modules/propername: New file, from GNU gettext.
88298         * lib/propername.h: New file, from GNU gettext.
88299         * lib/propername.c: New file, from GNU gettext.
88300         * MODULES.html.sh (Internationalization functions): Add propername.
88302 2008-05-16  Jim Meyering  <meyering@redhat.com>
88303             Bruno Haible  <bruno@clisp.org>
88305         Avoid some warnings from "gcc -Wshadow".
88306         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
88308 2008-05-15  Eric Blake  <ebb9@byu.net>
88310         Extend previous patch to cygwin 1.7.0.
88311         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
88312         fast implementation in cygwin >= 1.7.0.
88313         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88316 2008-05-15  Bruno Haible  <bruno@clisp.org>
88318         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
88319         implementation in glibc >= 2.9.
88320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88323 2008-05-15  Bruno Haible  <bruno@clisp.org>
88325         * MODULES.html.sh (Internationalization functions): Remove linebreak.
88326         (Unicode string functions): Add unilbrk/*.
88327         Reported by Karl Berry.
88329 2008-05-15  Eric Blake  <ebb9@byu.net>
88331         Fix violation of <stdbool.h> replacement in regex.
88332         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
88333         * lib/regexec.c (re_search_internal): Likewise.
88334         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
88336 2008-05-15  Jim Meyering  <meyering@redhat.com>
88338         avoid distracting test output when git or cvs is not found
88339         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
88340         * tests/test-vc-list-files-git.sh: Likewise.
88342 2008-05-15  Eric Blake  <ebb9@byu.net>
88344         Glibc finally accepted the memmem speedup code, bugzilla #5514.
88345         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
88346         glibc version.
88347         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
88348         * doc/posix-functions/strstr.texi (strstr): Likewise.
88349         * lib/str-two-way.h (MAX): Sychronize with glibc.
88351 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
88353         * lib/regcomp.c (optimize_utf8): Add a note on why we test
88354         opr.ctx_type.
88355         (calc_first): Initialize constraint field.
88356         (duplicate_node_closure): Use it instead of special casing ANCHORS.
88357         Fix grammar.
88358         (duplicate_node): Merge constraint field for all node types.
88359         (calc_eclosure_iter): Look at constraint field for all node types.
88360         * lib/regex_internal.c (create_cd_newstate): Don't look at
88361         opr.ctx_type.
88363 2008-05-14  Bruno Haible  <bruno@clisp.org>
88365         Help GCC to do better code generation.
88366         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
88367         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
88368         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
88369         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
88370         Declare with attribute 'malloc' if supported.
88372 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
88374         use "echo STR|wc -c" rather than unportable "expr length STR"
88375         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
88376         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
88378 2008-05-14  Jim Meyering  <meyering@redhat.com>
88380         use dd ibs=$n count=1 ... rather than less-portable head -c$n
88381         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
88382         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
88383         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
88384         via Collin Lasse.
88386 2008-05-14  Eric Blake  <ebb9@byu.net>
88388         Avoid quadratic growth in gl_LIBSOURCES.
88389         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
88390         Suggested by Bruno Haible.
88392         Test xmemdup0.
88393         * modules/xmemdup0-tests: New file.
88394         * tests/test-xmemdup0.c: Likewise.
88396 2008-05-13  Eric Blake  <ebb9@byu.net>
88398         Split xmemdup0 into its own module.
88399         * modules/xmemdup0: New file.
88400         * lib/xmemdup0.h: Likewise.
88401         * lib/xmemdup0.c: Likewise.
88402         * MODULES.html.sh (Memory management functions): Add xmemdup0.
88403         * lib/xalloc.h (xmemdup0): Remove.
88404         * lib/xmalloc.c (xmemdup0): Likewise.
88406 2008-05-13  Eric Blake  <ebb9@byu.net>
88407             Bruno Haible  <bruno@clisp.org>
88409         Reduce number of forks required during autoconf.
88410         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
88411         and gl_LIBSOURCES_DIR.
88412         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
88413         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
88414         m4_syscmd per file.
88415         <m4_foreach_w>: Move...
88416         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
88418 2008-05-13  Eric Blake  <ebb9@byu.net>
88420         * gnulib-tool: Fix various comment typos.
88422 2008-05-12  Bruno Haible  <bruno@clisp.org>
88424         Tailor the linebreaking algorithm.
88425         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
88427 2008-05-12  Bruno Haible  <bruno@clisp.org>
88429         Update to Unicode 5.0.0.
88430         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
88431         LBP_JV, LBP_JT. Redistribute values.
88432         (unilbrk_table): Change size.
88433         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
88434         Unicode TR#14 rev. 22.
88435         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
88436         LBP_JV, LBP_JT. Redistribute values.
88437         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
88438         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
88439         Update.
88440         * lib/unilbrk/lbrkprop1.h: Regenerated.
88441         * lib/unilbrk/lbrkprop2.h: Regenerated.
88442         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
88443         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
88444         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
88445         Likewise.
88446         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
88447         Likewise.
88448         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
88449         result.
88450         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
88451         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
88452         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
88453         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
88454         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
88455         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
88457 2008-05-11  Bruno Haible  <bruno@clisp.org>
88459         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
88461 2008-05-11  Bruno Haible  <bruno@clisp.org>
88463         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
88464         * modules/unilbrk/gen-lbrk: New file.
88466 2008-05-11  Bruno Haible  <bruno@clisp.org>
88468         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
88469         * m4/sha512.m4 (gl_SHA512): Likewise.
88471 2008-05-11  Jim Meyering  <meyering@redhat.com>
88473         New modules: crypto/sha256, crypto/sha512 (from coreutils)
88474         * modules/crypto/sha256: New file.
88475         * modules/crypto/sha512: Likewise.
88476         * lib/sha256.c: Likewise.
88477         * lib/sha256.h: Likewise.
88478         * lib/sha512.c: Likewise.
88479         * lib/sha512.h: Likewise.
88480         * lib/u64.h: Likewise.
88481         * m4/sha256.m4: Likewise.
88482         * m4/sha512.m4: Likewise.
88483         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
88485 2008-05-10  Bruno Haible  <bruno@clisp.org>
88487         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
88488         (Input/Output <stdio.h>): Add xprintf.
88489         (Signal handling <signal.h>): Add strsignal.
88490         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
88491         (Core language properties): Add func.
88492         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
88493         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
88494         strings.
88495         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
88496         (Input/output): New section.
88497         (File system functions): Add openat-die, stat-macros.
88498         (Networking functions): Add sockets.
88499         (Unicode string functions): Add unictype/*.
88500         (Support for building libraries and executables): Add gperf.
88501         (Support for building documentation): Add agpl-3.0.
88502         (Misc): Add nocrash.
88504 2008-05-10  Bruno Haible  <bruno@clisp.org>
88506         * modules/unictype/gen-ctype: New file.
88508 2008-05-10  Jim Meyering  <meyering@redhat.com>
88510         Make chdir-safer.c more efficient on a system with no symlinks.
88511         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
88512         also if ELOOP is zero.  Suggested by Bruno Haible.
88514         Make chdir-safer.c slightly safer.
88515         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
88516         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
88518         Avoid compile failure on systems without ELOOP (like mingw).
88519         * lib/chdir-safer.c (ELOOP): Define if not already defined.
88520         Reported by Bruno Haible.
88522 2008-05-10  Bruno Haible  <bruno@clisp.org>
88524         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
88525         (is_utf8_encoding): Use a case-insensitive comparison.
88526         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
88527         streq.
88529 2008-05-10  Bruno Haible  <bruno@clisp.org>
88531         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
88532         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
88533         * lib/unilbrk/ulc-common.h (iconv_string_length,
88534         iconv_string_keeping_offsets): Remove declarations.
88535         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
88536         Don't include <iconv.h>, streq.h, xsize.h.
88537         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
88538         conversion.
88539         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
88540         <iconv.h>, streq.h, xsize.h.
88541         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
88542         conversion.
88543         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
88544         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
88545         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
88546         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
88548 2008-05-10  Bruno Haible  <bruno@clisp.org>
88550         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
88551         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
88553         * modules/unilbrk/u32-width-linebreaks-tests: New file.
88554         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
88556         * modules/unilbrk/u16-width-linebreaks-tests: New file.
88557         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
88559         * modules/unilbrk/u8-width-linebreaks-tests: New file.
88560         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
88562         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
88563         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
88565         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
88566         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
88568         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
88569         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
88571         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
88572         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
88574 2008-05-10  Bruno Haible  <bruno@clisp.org>
88576         Split up 'linebreak' module.
88577         * lib/unilbrk.h: New file, based on lib/linebreak.h.
88578         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
88579         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
88580         modifications.
88581         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
88582         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
88583         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
88584         lib/linebreak.c.
88585         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
88586         lib/linebreak.c.
88587         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
88588         lib/linebreak.c.
88589         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
88590         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
88591         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
88592         lib/linebreak.c.
88593         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
88594         lib/linebreak.c.
88595         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
88596         lib/linebreak.c.
88597         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
88598         lib/linebreak.c.
88599         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
88600         lib/linebreak.c.
88601         * modules/unilbrk/base: New file.
88602         * modules/unilbrk/tables: New file.
88603         * modules/unilbrk/u8-possible-linebreaks: New file.
88604         * modules/unilbrk/u16-possible-linebreaks: New file.
88605         * modules/unilbrk/u32-possible-linebreaks: New file.
88606         * modules/unilbrk/ulc-common: New file.
88607         * modules/unilbrk/ulc-possible-linebreaks: New file.
88608         * modules/unilbrk/u8-width-linebreaks: New file.
88609         * modules/unilbrk/u16-width-linebreaks: New file.
88610         * modules/unilbrk/u32-width-linebreaks: New file.
88611         * modules/unilbrk/ulc-width-linebreaks: New file.
88612         * lib/linebreak.h: Remove file.
88613         * lib/linebreak.c: Remove file.
88614         * m4/linebreak.m4: Remove file.
88615         * modules/linebreak: Remove file.
88616         * NEWS: Mention the changes.
88618 2008-05-09  Eric Blake  <ebb9@byu.net>
88620         Add xmemdup0.
88621         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
88622         implementation.
88623         * lib/xmalloc.c (xmemdup0): New C implementation.
88625 2008-05-08  Bruno Haible  <bruno@clisp.org>
88627         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
88629 2008-05-07  Eric Blake  <ebb9@byu.net>
88631         Support cross-compilation of <wctype.h>.
88632         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
88633         AC_CACHE_CHECK.
88635 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
88637         * build-aux/vc-list-files: Add support for bzr.
88639 2008-05-03  Jim Meyering  <meyering@redhat.com>
88641         avoid failed assertion with tight malloc
88642         * tests/test-getndelim2.c: Correct an off-by-one assertion.
88644 2008-05-03  Simon Josefsson  <simon@josefsson.org>
88646         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
88647         are needed from arpa/inet.h.
88648         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
88649         Reported by Bruno Haible.
88651 2008-05-02  Jim Meyering  <meyering@redhat.com>
88653         avoid compilation error on FreeBSD 6
88654         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
88656 2008-05-01  Jim Meyering  <meyering@redhat.com>
88658         useless-if-before-free: correct --help's exit status description
88659         * build-aux/useless-if-before-free (usage): Like grep, exit 0
88660         for one or more matches, etc.  Reported by Bruno Haible.
88662         vc-list-files: make the stand-alone gnulib test work
88663         * modules/vc-list-files-tests (configure.ac):
88664         Define and AC_SUBST abs_aux_dir.
88665         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
88666         $(abs_top_srcdir) to each script and having each of them
88667         duplicate the work of setting PATH, set PATH here, using
88668         the new variable, abs_aux_dir instead.
88669         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
88670         * tests/test-vc-list-files-git.sh: Likewise.
88671         Reported by Bruno Haible.
88673 2008-05-01  Bruno Haible  <bruno@clisp.org>
88675         * lib/getndelim2.c (getndelim2): Fix newsize computation during
88676         reallocation. Rename 'done' to 'found_delimiter'.
88678 2008-05-01  Jim Meyering  <meyering@redhat.com>
88680         vc-list-files: accommodate /bin/sh like the one from Solaris 10
88681         * build-aux/vc-list-files: Use `...`, not $(...).
88683 2008-04-30  Jim Meyering  <meyering@redhat.com>
88685         add tests for vc-list-files
88686         * modules/vc-list-files-tests: New module.
88687         * tests/test-vc-list-files-cvs.sh: New file.
88688         * tests/test-vc-list-files-git.sh: New file.
88690         avoid a warning from gcc
88691         * lib/getndelim2.c (IF_LINT): Define.
88692         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
88694         vc-list-files: work properly with build-aux/cvsu, too
88695         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
88696         to all cvs-based clauses.
88698         vc-list-files: work properly in the CVS+awk case, too
88699         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
88701         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
88702         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
88703         take more than one file argument, so .  Add quotes, just in case $dir
88704         ever contains a shell meta-character.  Prompted by Soren Hansen in
88705         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
88707 2008-04-29  Eric Blake  <ebb9@byu.net>
88709         Optimize getndelim2 to use block operations when possible.
88710         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
88711         freadseek, and memchr2.
88712         * lib/getndelim2.c (getndelim2): Use them for block reads.
88714 2008-04-29  Bruno Haible  <bruno@clisp.org>
88716         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
88717         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88718         * modules/inet_ntop (Depends-on): Add extensions.
88719         * modules/inet_pton (Depends-on): Likewise.
88720         Reported by Simon Josefsson.
88722 2008-04-29  Jim Meyering  <meyering@redhat.com>
88724         When the is more than one match in a block, match all of them.
88725         * build-aux/useless-if-before-free: Iterate through each block
88726         until there are no more matches.
88728         Fix broken useless-if-before-free script.
88729         * build-aux/useless-if-before-free: Fix typo: missing "?" after
88730         the expression to match cast of argument to free-like function.
88732 2008-04-29  Eric Blake  <ebb9@byu.net>
88734         Use new header.
88735         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
88737 2008-04-29  Jim Meyering  <meyering@redhat.com>
88739         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
88740         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
88741         by gnulib to exist and to declare e.g., inet_ntop.
88742         Don't include "inet_ntop.h", now removed.
88744         * m4/arpa_inet_h.m4: Remove trailing blanks.
88746 2008-04-29  Eric Blake  <ebb9@byu.net>
88748         Silence valgrind on safe reads beyond potential array bounds.
88749         * lib/rawmemchr.valgrind: New file.
88750         * lib/strchrnul.valgrind: Likewise.
88751         * modules/rawmemchr (Files): Distribute new file.
88752         * modules/strchrnul (Files): Likewise.
88753         Suggested by Bruno Haible.
88755 2008-04-29  Bruno Haible  <bruno@clisp.org>
88757         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
88758         (inet_ntop, inet_pton): Change portability warning's wording.
88759         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
88760         Invoke gl_CHECK_NEXT_HEADERS.
88761         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
88762         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
88763         set ARPA_INET_H.
88764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88765         * modules/arpa_inet (Description): No longer only for systems that
88766         lack it.
88767         (Depends-on): Add include_next.
88768         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
88769         HAVE_ARPA_INET_H.
88771 2008-04-29  Jim Meyering  <meyering@redhat.com>
88773         * modules/mkdir (License): Re-license as LGPLv2+.
88775 2008-04-29  Bruno Haible  <bruno@clisp.org>
88777         * modules/rawmemchr (Maintainer): Set to Eric.
88778         * modules/strchrnul (Maintainer): Likewise.
88780 2008-04-29  Simon Josefsson  <simon@josefsson.org>
88782         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
88783         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
88785         * modules/arpa_inet (arpa/inet.h): Use them.
88787 2008-04-28  Eric Blake  <ebb9@byu.net>
88789         Test getndelim2.
88790         * modules/getndelim2-tests: New file.
88791         * tests/test-getndelim2.c: Likewise.
88792         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
88793         stream.
88794         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
88796         * MODULES.html.sh: Document new module.
88798 2008-04-20  Bruno Haible  <bruno@clisp.org>
88800         * lib/c-stack.c (die): Use raise.
88801         * modules/c-stack (Depends-on): Add raise.
88803 2008-04-28  Bruno Haible  <bruno@clisp.org>
88805         Expect rpmatch to be declared.
88806         * lib/yesno.c (rpmatch): Remove declaration.
88808         Declare rpmatch.
88809         * lib/stdlib.in.h (rpmatch): New declaration.
88810         * lib/rpmatch.c: Include <stdlib.h> first.
88811         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
88812         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
88813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
88814         HAVE_RPMATCH.
88815         * modules/rpmatch (Depends-on): Add stdlib, extensions.
88816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
88817         (Include): Set to <stdlib.h>.
88818         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
88819         HAVE_RPMATCH.
88820         * NEWS: Document the change.
88822 2008-04-28  Bruno Haible  <bruno@clisp.org>
88824         Change rpmatch to use nl_langinfo when appropriate.
88825         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
88826         (N_): New macro.
88827         (localized_pattern): New function/macro.
88828         (try): Remove match, nomatch arguments. Copy the pattern into safe
88829         memory before caching it.
88830         (rpmatch): Use localized_pattern. Add translator comments.
88831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
88832         Suggested by Eric Blake.
88833         * modules/rpmatch (Depends-on): Add stdbool.
88835 2008-04-28  Eric Blake  <ebb9@byu.net>
88837         Add rawmemchr module, matching glibc.
88838         * modules/string (Makefile.am): New indicator.
88839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
88840         * lib/string.in.h (rawmemchr): Declare when appropriate.
88841         * modules/rawmemchr: New file.
88842         * m4/rawmemchr.m4: Likewise.
88843         * lib/rawmemchr.c: Likewise.
88844         * modules/rawmemchr-tests: Likewise.
88845         * tests/test-rawmemchr.c: Likewise.
88846         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
88847         module.
88848         * modules/strchrnul (Depends-on): Add rawmemchr.
88849         * lib/strchrnul.c (strchrnul): Optimize a corner case.
88851         Whitespace cleanup.
88852         * tests/test-strchrnul.c: Reindent.
88853         * lib/strchrnul.c: Likewise.
88855         Optimize and test strchrnul.
88856         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
88857         * modules/strchrnul-tests: New file.
88858         * tests/test-strchrnul.c: Likewise.
88860         Remove intprops dependency.
88861         * modules/memchr (Depends-on): Remove intprops.
88862         * modules/memrchr (Depends-on): Likewise.
88863         * modules/memchr2 (Depends-on): Likewise.
88864         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
88865         * lib/memrchr.c (__memrchr): Likewise.
88866         * lib/memrchr2.c (memchr2): Likewise.
88867         Reported by Simon Josefsson.
88869 2008-04-28  Simon Josefsson  <simon@josefsson.org>
88871         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
88872         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88874 2008-04-28  Simon Josefsson  <simon@josefsson.org>
88876         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
88878         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
88880         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
88882         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
88883         declarations.
88884         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
88886         * m4/inet_pton.m4: Don't check for header files.
88888         * m4/inet_ntop.m4: Don't check for header files.
88890 2008-04-28  Simon Josefsson  <simon@josefsson.org>
88892         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
88893         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
88894         trigger for cygwin).
88895         Reported by Bruno Haible  <bruno@clisp.org>.
88897 2008-04-28  Bruno Haible  <bruno@clisp.org>
88899         * doc/posix-functions/strdup.texi: Mention mingw problem.
88901 2008-04-27  Bruno Haible  <bruno@clisp.org>
88903         * modules/stat-time-tests (Depends-on): Add sleep.
88904         * tests/test-stat-time.c (force_unlink): New function.
88905         (cleanup): Use it.
88906         (test_mtime): Remove the ctime related tests.
88907         (test_ctime): New function, containing the ctime related tests.
88908         (main): Call test_ctime, except on native Windows platforms.
88910 2008-04-27  Bruno Haible  <bruno@clisp.org>
88912         * lib/rpmatch.c (rpmatch): Add some comments.
88913         Reported by James Youngman <jay@gnu.org>.
88915 2008-04-27  Bruno Haible  <bruno@clisp.org>
88917         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
88918         quiet NaNs.
88920 2008-04-27  Bruno Haible  <bruno@clisp.org>
88922         Make test-yesno.sh work on mingw.
88923         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
88924         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
88925         (main): Set stdin to binary mode.
88926         * modules/yesno-tests (Depends-on): Add binary-io.
88928 2008-04-27  Bruno Haible  <bruno@clisp.org>
88930         Fix 'isfinite' on x86, x86_64, ia64 platforms.
88931         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
88932         argument that lie outside the IEEE 854 domain.
88933         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
88934         (gl_ISFINITE): Use it.
88935         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
88937 2008-04-27  Bruno Haible  <bruno@clisp.org>
88939         Allow local renaming in config.h.
88940         * lib/memrchr.c (memrchr): Don't undefine outside libc.
88942 2008-04-27  Bruno Haible  <bruno@clisp.org>
88944         * lib/memchr.c (__memchr): Change type of 'i'.
88945         * lib/memchr2.c (memchr2): Likewise.
88947 2008-04-26  Eric Blake  <ebb9@byu.net>
88948         and Bruno Haible  <bruno@clisp.org>
88950         Optimize and test memrchr.
88951         * modules/memrchr (Depends-on): Add intprops.
88952         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
88953         * modules/memrchr-tests: New file.
88954         * tests/test-memrchr.c: New file.
88956 2008-04-26  Bruno Haible  <bruno@clisp.org>
88958         Add tentative support for DragonFly BSD.
88959         * lib/stdio-impl.h: Add macros for DragonFly BSD.
88960         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
88961         fp.
88962         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
88963         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
88964         * lib/fpurge.c (fpurge): Likewise.
88965         * lib/freadable.c (freaadable): Likewise.
88966         * lib/freadahead.c (freadahead): Likewise.
88967         * lib/freading.c (freading): Likewise.
88968         * lib/freadptr.c (freadptr): Likewise.
88969         * lib/freadseek.c (freadptrinc): Likewise.
88970         * lib/fseeko.c (fseeko): Likewise.
88971         * lib/fseterr.c (fseterr): Likewise.
88972         * lib/fwritable.c (fwritable): Likewise.
88973         * lib/fwriting.c (fwriting): Likewise.
88975 2008-04-26  Bruno Haible  <bruno@clisp.org>
88977         * lib/stdio-impl.h: New file.
88978         * lib/fbufmode.c: Include stdio-impl.h.
88979         (fbufmode): Use fp_, remove redundant #defines.
88980         * lib/fflush.c: Include stdio-impl.h.
88981         (clear_ungetc_buffer): Remove redundant #defines.
88982         * lib/fpurge.c: Include stdio-impl.h.
88983         (fpurge): Remove redundant #defines.
88984         * lib/freadable.c: Include stdio-impl.h.
88985         (freadable): Remove redundant #defines.
88986         * lib/freadahead.c: Include stdio-impl.h.
88987         (freadahead): Remove redundant #defines.
88988         * lib/freading.c: Include stdio-impl.h.
88989         (freading): Remove redundant #defines.
88990         * lib/freadptr.c: Include stdio-impl.h.
88991         (freadptr): Remove redundant #defines.
88992         * lib/freadseek.c: Include stdio-impl.h.
88993         (freadptrinc): Remove redundant #defines.
88994         * lib/fseeko.c: Include stdio-impl.h.
88995         (rpl_fseeko): Remove redundant #defines.
88996         * lib/fseterr.c: Include stdio-impl.h.
88997         (fseterr): Remove redundant #defines.
88998         * lib/fwritable.c: Include stdio-impl.h.
88999         (fwritable: Remove redundant #defines.
89000         * lib/fwriting.c: Include stdio-impl.h.
89001         (fwriting): Remove redundant #defines.
89002         * modules/fbufmode (Files): Add lib/stdio-impl.h.
89003         * modules/fflush (Files): Likewise.
89004         * modules/fpurge (Files): Likewise.
89005         * modules/freadable (Files): Likewise.
89006         * modules/freadahead (Files): Likewise.
89007         * modules/freading (Files): Likewise.
89008         * modules/freadptr (Files): Likewise.
89009         * modules/freadseek (Files): Likewise.
89010         * modules/fseeko (Files): Likewise.
89011         * modules/fseterr (Files): Likewise.
89012         * modules/fwritable (Files): Likewise.
89013         * modules/fwriting (Files): Likewise.
89015 2008-04-26  Bruno Haible  <bruno@clisp.org>
89017         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
89018         restore_seek_optimization, update_fpos_cache): New functions, extracted
89019         from rpl_fflush.
89020         (rpl_fflush): Use them.
89021         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
89022         (gl_REPLACE_FFLUSH): Use it.
89024 2008-04-26  Bruno Haible  <bruno@clisp.org>
89026         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
89027         on Solaris.
89028         * tests/test-xstrtoimax.sh: Likewise.
89029         * tests/test-xstrtoumax.sh: Likewise.
89030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89032 2008-04-26  Bruno Haible  <bruno@clisp.org>
89034         * modules/memchr-tests: New file.
89035         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
89037 2008-04-26  Eric Blake  <ebb9@byu.net>
89038             Bruno Haible  <bruno@clisp.org>
89040         * lib/memchr.c: Include intprops.h.
89041         (__memchr): Optimize parallel detection of matching bytes. Rename local
89042         variables. Add explanatory comments.
89044 2008-04-26  Bruno Haible  <bruno@clisp.org>
89046         Fix module 'memchr', broken since 2000-10-28.
89047         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
89049 2008-04-26  Bruno Haible  <bruno@clisp.org>
89051         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
89052         comments.
89054 2008-04-25  Eric Blake  <ebb9@byu.net>
89056         Use native fstatat on cygwin 1.7.0.
89057         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
89058         first.
89060 2008-04-23  Eric Blake  <ebb9@byu.net>
89062         Improve memchr2 performance.
89063         * lib/memchr2.c (memchr2): Further optimize parallel detection of
89064         NUL bytes.
89065         * modules/memchr2 (Depends-on): Use intprops.h.
89067 2008-04-23  Simon Josefsson  <simon@josefsson.org>
89069         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
89070         an inline function instead of a CPP macro.  Patch by Ben Pfaff
89071         <blp@cs.stanford.edu>.
89073 2008-04-23  Simon Josefsson  <simon@josefsson.org>
89075         * lib/arpa_inet.in.h: New file.
89077         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
89078         (Makefile.am): Sed in substitute header file.
89080         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
89081         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
89083         * modules/inet_ntop (configure.ac): Use
89084         gl_ARPA_INET_MODULE_INDICATOR.
89086         * modules/inet_pton (configure.ac): Use
89087         gl_ARPA_INET_MODULE_INDICATOR.
89089 2008-04-22  Jim Meyering  <meyering@redhat.com>
89091         * modules/verify (License): Re-license as LGPLv2+.
89093 2008-04-22  Simon Josefsson  <simon@josefsson.org>
89095         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
89096         parameter to void* as per POSIX standard (MinGW uses char*).
89098 2008-04-21  Bruno Haible  <bruno@clisp.org>
89100         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
89101         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
89102         Define to replacements if REPLACE_ISWCNTRL is 1.
89103         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
89104         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
89105         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
89106         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
89107         what it fixes.
89108         * doc/posix-functions/iswalpha.texi: Likewise.
89109         * doc/posix-functions/iswblank.texi: Likewise.
89110         * doc/posix-functions/iswcntrl.texi: Likewise.
89111         * doc/posix-functions/iswdigit.texi: Likewise.
89112         * doc/posix-functions/iswgraph.texi: Likewise.
89113         * doc/posix-functions/iswlower.texi: Likewise.
89114         * doc/posix-functions/iswprint.texi: Likewise.
89115         * doc/posix-functions/iswpunct.texi: Likewise.
89116         * doc/posix-functions/iswspace.texi: Likewise.
89117         * doc/posix-functions/iswupper.texi: Likewise.
89118         * doc/posix-functions/iswxdigit.texi: Likewise.
89119         Reported by Alain Guibert.
89121 2008-04-21  Bruno Haible  <bruno@clisp.org>
89123         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
89124         Patch by Alain Guibert.
89126 2008-04-21  Bruno Haible  <bruno@clisp.org>
89128         Fix test failures on mingw.
89129         * tests/test-xstrtol.c (print_no_progname): New function.
89130         (main): Install it in error_print_progname hook.
89131         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
89132         * tests/test-xstrtoimax.sh: Likewise.
89133         * tests/test-xstrtoumax.sh: Likewise.
89135 2008-04-21  Bruno Haible  <bruno@clisp.org>
89137         Fix test failure on mingw.
89138         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
89140 2008-04-21  Bruno Haible  <bruno@clisp.org>
89142         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
89143         Actually assign a value.
89145 2008-04-20  Bruno Haible  <bruno@clisp.org>
89147         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
89148         take 2.
89149         * lib/canonicalize.c (canonicalize_file_name): Elide if the
89150         'canonicalize-lgpl' module is also used.
89151         * lib/canonicalize-lgpl.c: Undo last change.
89152         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
89154 2008-04-20  Bruno Haible  <bruno@clisp.org>
89156         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
89157         config.h. Provide _mkdir based fallback for mingw.
89158         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
89159         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
89160         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
89161         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
89162         rather than defining mkdir in config.h.
89163         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
89164         (gl_SYS_STAT_H_DEFAULTS): New macro.
89165         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
89166         HAVE_IO_H any more.
89167         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
89168         HAVE_DECL_MKDIR and HAVE_IO_H.
89170 2008-04-20  Bruno Haible  <bruno@clisp.org>
89172         * lib/isapipe.c: Port to native Windows platforms.
89174 2008-04-20  Bruno Haible  <bruno@clisp.org>
89176         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
89178 2008-04-21  Eric Blake  <ebb9@byu.net>
89180         Work around preprocessors that don't handle UINTMAX_MAX.
89181         * lib/memchr2.c (memchr2): Avoid embedded #if.
89182         Reported by Alain Guibert, fix suggested by Bruno Haible.
89184 2008-04-21  Simon Josefsson  <simon@josefsson.org>
89186         * doc/posix-functions/strftime.texi (strftime): Explain better
89187         Windows incompatibility.  Suggested by Micah Cowan
89188         <micah@cowan.name>.
89190 2008-04-20  Bruno Haible  <bruno@clisp.org>
89192         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
89193         unistr/u8-mblen.
89195 2008-04-20  Bruno Haible  <bruno@clisp.org>
89197         Fix test failure on platforms with non-GNU iconv.
89198         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
89199         (U_TO_U8): Use it, rather than u16_to_u8.
89200         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
89201         units at the end of the input string.
89202         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
89204 2008-04-20  Bruno Haible  <bruno@clisp.org>
89206         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
89207         when the resulting length is 0.
89208         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
89210 2008-04-20  Bruno Haible  <bruno@clisp.org>
89212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
89213         works.
89214         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
89216 2008-04-20  Bruno Haible  <bruno@clisp.org>
89218         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
89219         * modules/tsearch-tests (configure.ac): Test for initstate function.
89221 2008-04-20  Bruno Haible  <bruno@clisp.org>
89223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
89224         for nlink_t if missing.
89225         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
89227 2008-04-19  Bruno Haible  <bruno@clisp.org>
89229         Work around snprintf bug on Linux libc5.
89230         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
89231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89232         gl_SNPRINTF_SIZE1.
89233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89234         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
89235         that test failed.
89236         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
89237         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
89238         * modules/snprintf (Files): Add m4/printf.m4.
89239         * modules/vsnprintf (Files): Likewise.
89240         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
89241         * doc/posix-functions/vsnprintf.texi: Likewise.
89243 2008-04-19  Bruno Haible  <bruno@clisp.org>
89245         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
89246         from 0.0058 to less than 10^-7.
89248 2008-04-19  Bruno Haible  <bruno@clisp.org>
89250         Fix rounding when a precision is given.
89251         * lib/vasnprintf.c (is_borderline): New function.
89252         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
89253         9...9x.
89254         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
89255         %e, %g.
89256         * tests/test-vasprintf-posix.c (test_function): Likewise.
89257         * tests/test-snprintf-posix.h (test_function): Likewise.
89258         * tests/test-sprintf-posix.h (test_function): Likewise.
89259         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
89260         * tests/test-printf-posix.h (test_function): Likewise.
89261         * tests/test-printf-posix.output: Update.
89262         Reported by John Darrington <john@darrington.wattle.id.au> via
89263         Ben Pfaff <blp@cs.stanford.edu>.
89265 2008-04-18  Simon Josefsson  <simon@josefsson.org>
89267         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
89268         Suggested by Bruno Haible <bruno@clisp.org>.
89270 2008-04-17  Bruno Haible  <bruno@clisp.org>
89272         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
89273         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
89274         implementation.
89275         Patch by Bruce Merry <bmerry@gmail.com>.
89277 2008-04-17  Simon Josefsson  <simon@josefsson.org>
89279         * doc/posix-functions/strftime.texi (strftime): Mention that %e
89280         doesn't work under Windows.
89282 2008-04-16  Bruno Haible  <bruno@clisp.org>
89284         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
89285         New macros.
89286         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
89287         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
89288         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
89289         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
89290         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
89291         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
89292         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
89293         macros.
89294         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
89295         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
89296         Northern Sotho, Uighur.
89298 2008-04-16  Bruno Haible  <bruno@clisp.org>
89300         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
89301         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
89302         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
89303         Reported by Daniel Bergström <daniel@octocode.com>.
89305 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
89306             Bruno Haible  <bruno@clisp.org>
89308         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
89309         function.
89310         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
89311         New functions, mostly extracted from gl_locale_name_default.
89312         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
89314 2008-04-16  Eric Blake  <ebb9@byu.net>
89316         Adjust strtod detection to catch glibc 2.7 bug.
89317         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
89318         Reported by John Gatewood Ham.
89320 2008-04-16  Bruno Haible  <bruno@clisp.org>
89322         Add tentative support for Linux libc5.
89323         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
89324         * lib/fpurge.c (fpurge): Likewise.
89325         * lib/freadable.c (freadable): Likewise.
89326         * lib/freadahead.c (freadahead): Likewise.
89327         * lib/freading.c (freading): Likewise.
89328         * lib/freadptr.c (freadptr): Likewise.
89329         * lib/freadseek.c (freadptrinc): Likewise.
89330         * lib/fseeko.c (rpl_fseeko): Likewise.
89331         * lib/fseterr.c (fseterr): Likewise.
89332         * lib/fwritable.c (fwritable): Likewise.
89333         * lib/fwriting.c (fwriting): Likewise.
89334         Reported by Alain Guibert <alguibert+bts@free.fr>.
89336 2008-04-15  Bruno Haible  <bruno@clisp.org>
89338         * modules/mathl (configure.ac): Define module indicator.
89340 2008-04-15  Bruno Haible  <bruno@clisp.org>
89342         * lib/logl.c (logl): Remove unused variables.
89344 2008-04-15  Bruno Haible  <bruno@clisp.org>
89346         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
89347         fails.
89349 2008-04-15  Bruno Haible  <bruno@clisp.org>
89351         * lib/trim.c (trim2): Fix argument of isspace() macro.
89353 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
89355         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
89356         to 0.
89357         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
89359 2008-04-14  Bruno Haible  <bruno@clisp.org>
89361         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
89362         AC_LANG_PROGRAM argument.
89363         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
89364         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
89365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
89366         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
89367         * m4/math_h.m4 (gl_MATH_H): Likewise.
89368         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
89369         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89370         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
89371         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
89372         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
89373         * m4/regex.m4 (gl_REGEX): Likewise.
89374         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
89375         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
89376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89377         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
89378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
89379         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
89380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
89381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
89383 2008-04-14  Jim Meyering  <meyering@redhat.com>
89385         test-strtod: fix typos: s/abs/fabs/
89386         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
89388 2008-04-13  Bruno Haible  <bruno@clisp.org>
89390         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
89391         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
89392         module is also used and while not building the reloc-wrapper.
89394 2008-04-13  Bruno Haible  <bruno@clisp.org>
89396         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
89398 2008-04-13  Bruno Haible  <bruno@clisp.org>
89400         Fix AIX compilation failure introduced on 2008-04-02.
89401         * tests/test-frexp.c (exp): Undefine before redefining.
89402         * tests/test-frexpl.c (exp): Likewise.
89404 2008-04-13  Bruno Haible  <bruno@clisp.org>
89406         Work around a HP-UX stdio bug.
89407         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
89408         * tests/test-ftello.c (main): Likewise.
89409         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
89410         * doc/posix-functions/ftello.texi: Likewise.
89412 2008-04-13  Bruno Haible  <bruno@clisp.org>
89414         Make test-signbit pass on HP-UX/hppa.
89415         * tests/test-signbit.c (minus_zerol): New variable.
89416         (test_signbitl): Use it.
89418 2008-04-13  Bruno Haible  <bruno@clisp.org>
89420         Make truncl work on OSF/1 4.0.
89421         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
89422         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
89423         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
89424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
89425         HAVE_DECL_TRUNCL.
89426         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
89427         HAVE_DECL_TRUNCL.
89428         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
89430 2008-04-13  Bruno Haible  <bruno@clisp.org>
89432         * lib/unictype.h: Remove trailing comma from enumeration definitions.
89434 2008-04-13  Bruno Haible  <bruno@clisp.org>
89436         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
89437         expression, so as to avoid HP-UX 11 cc compiler bug.
89439 2008-04-13  Bruno Haible  <bruno@clisp.org>
89441         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
89443 2008-04-13  Bruno Haible  <bruno@clisp.org>
89445         * lib/git-merge-changelog.c: Remove empty declaration outside of
89446         functions.
89448 2008-04-13  Bruno Haible  <bruno@clisp.org>
89450         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
89452 2008-04-13  Bruno Haible  <bruno@clisp.org>
89454         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
89455         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
89456         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
89457         also if it exists but lacks definitions of the SHUT_* macros.
89458         * modules/sys_socket (Description): Update.
89459         Reported by Elbert Pol <e.pol@chello.nl>.
89461 2008-04-13  Bruno Haible  <bruno@clisp.org>
89463         * lib/localcharset.c (OS2): Don't redefine if already defined.
89464         Reported by Elbert Pol <e.pol@chello.nl>.
89466 2008-04-13  Bruno Haible  <bruno@clisp.org>
89468         * lib/binary-io.h [__EMX__]: Include <io.h>.
89469         Reported by Elbert Pol <e.pol@chello.nl>.
89471 2008-04-12  Bruno Haible  <bruno@clisp.org>
89473         * lib/fpucw.h: Enable the definitions also for x86_64.
89474         Needed for NetBSD/x86_64.
89475         Reported by Thomas Klausner <tk@giga.or.at>.
89477 2008-04-12  Bruno Haible  <bruno@clisp.org>
89479         * tests/test-strtod.c: Include isnand.h.
89480         (main): Use isnand instead of isnan.
89481         Reported by Jim Meyering.
89483 2008-04-12  Bruno Haible  <bruno@clisp.org>
89485         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
89486         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89488 2008-04-12  Jim Meyering  <meyering@redhat.com>
89490         * m4/math_h.m4 (gl_MATH_H): Fix typos.
89492 2008-04-12  Bruno Haible  <bruno@clisp.org>
89494         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
89495         Reported by Elbert Pol <e.pol@chello.nl>.
89497 2008-04-12  Eric Blake  <ebb9@byu.net>
89499         Work around Solaris 10 math.h bug.
89500         * m4/math_h.m4 (gl_MATH_H): Check for bug.
89501         (gl_MATH_H_DEFAULTS): Set up default.
89502         * modules/math (Makefile.am): Replace new indicators.
89503         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
89504         * tests/test-math.c (main): Test this.
89505         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
89506         * doc/posix-headers/math.texi (math.h): Mention bug.
89507         Reported by Nelson H. F. Beebe and Jim Meyering.
89509 2008-04-11  Bruno Haible  <bruno@clisp.org>
89511         Adapt to future versions of Apple GCC.
89512         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
89513         Reported by Peter O'Gorman <peter@pogma.com>.
89515 2008-04-11  Bruno Haible  <bruno@clisp.org>
89517         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
89519 2008-04-11  Bruno Haible  <bruno@clisp.org>
89521         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
89523         * modules/getaddrinfo-tests (Makefile.am): Define
89524         test_getaddrinfo_LDADD.
89526 2008-04-11  Bruno Haible  <bruno@clisp.org>
89528         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
89529         (init): Fix syntax error.
89530         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
89531         is declared.
89533 2008-04-11  Bruno Haible  <bruno@clisp.org>
89535         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
89536         * modules/glob (Depends-on): Add stdbool.
89538 2008-04-11  Bruno Haible  <bruno@clisp.org>
89540         * lib/trim.c: Include <string.h>.
89542 2008-04-11  Eric Blake  <ebb9@byu.net>
89544         Avoid compile failure on OS/2.
89545         * lib/regex_internal.h (internal_function): Disable optimization
89546         on OS/2 (__EMX__), where it caused compiler error.
89547         Reported by Elbert Pol.
89549 2008-04-11  Bruno Haible  <bruno@clisp.org>
89551         Flush the standard error stream before aborting. Needed on mingw.
89552         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
89553         * tests/test-array_list.c (ASSERT): Likewise.
89554         * tests/test-array_oset.c (ASSERT): Likewise.
89555         * tests/test-avltree_list.c (ASSERT): Likewise.
89556         * tests/test-avltree_oset.c (ASSERT): Likewise.
89557         * tests/test-avltreehash_list.c (ASSERT): Likewise.
89558         * tests/test-binary-io.c (ASSERT): Likewise.
89559         * tests/test-byteswap.c (ASSERT): Likewise.
89560         * tests/test-c-ctype.c (ASSERT): Likewise.
89561         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
89562         * tests/test-c-strcasestr.c (ASSERT): Likewise.
89563         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
89564         * tests/test-c-strstr.c (ASSERT): Likewise.
89565         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
89566         * tests/test-canonicalize.c (ASSERT): Likewise.
89567         * tests/test-carray_list.c (ASSERT): Likewise.
89568         * tests/test-ceilf1.c (ASSERT): Likewise.
89569         * tests/test-ceilf2.c (ASSERT): Likewise.
89570         * tests/test-ceill.c (ASSERT): Likewise.
89571         * tests/test-count-one-bits.c (ASSERT): Likewise.
89572         * tests/test-fbufmode.c (ASSERT): Likewise.
89573         * tests/test-fflush2.c (ASSERT): Likewise.
89574         * tests/test-floorf1.c (ASSERT): Likewise.
89575         * tests/test-floorf2.c (ASSERT): Likewise.
89576         * tests/test-floorl.c (ASSERT): Likewise.
89577         * tests/test-fopen.c (ASSERT): Likewise.
89578         * tests/test-fpending.c (ASSERT): Likewise.
89579         * tests/test-fprintf-posix.c (ASSERT): Likewise.
89580         * tests/test-fpurge.c (ASSERT): Likewise.
89581         * tests/test-freadable.c (ASSERT): Likewise.
89582         * tests/test-freadahead.c (ASSERT): Likewise.
89583         * tests/test-freading.c (ASSERT): Likewise.
89584         * tests/test-freadptr.c (ASSERT): Likewise.
89585         * tests/test-freadptr2.c (ASSERT): Likewise.
89586         * tests/test-freadseek.c (ASSERT): Likewise.
89587         * tests/test-freopen.c (ASSERT): Likewise.
89588         * tests/test-frexp.c (ASSERT): Likewise.
89589         * tests/test-frexpl.c (ASSERT): Likewise.
89590         * tests/test-fseek.c (ASSERT): Likewise.
89591         * tests/test-fseeko.c (ASSERT): Likewise.
89592         * tests/test-fstrcmp.c (ASSERT): Likewise.
89593         * tests/test-ftell.c (ASSERT): Likewise.
89594         * tests/test-ftello.c (ASSERT): Likewise.
89595         * tests/test-func.c (ASSERT): Likewise.
89596         * tests/test-fwritable.c (ASSERT): Likewise.
89597         * tests/test-fwriting.c (ASSERT): Likewise.
89598         * tests/test-getdelim.c (ASSERT): Likewise.
89599         * tests/test-getline.c (ASSERT): Likewise.
89600         * tests/test-i-ring.c (ASSERT): Likewise.
89601         * tests/test-iconv-utf.c (ASSERT): Likewise.
89602         * tests/test-iconv.c (ASSERT): Likewise.
89603         * tests/test-isfinite.c (ASSERT): Likewise.
89604         * tests/test-isnand.c (ASSERT): Likewise.
89605         * tests/test-isnanf.c (ASSERT): Likewise.
89606         * tests/test-isnanl.h (ASSERT): Likewise.
89607         * tests/test-ldexpl.c (ASSERT): Likewise.
89608         * tests/test-linked_list.c (ASSERT): Likewise.
89609         * tests/test-linkedhash_list.c (ASSERT): Likewise.
89610         * tests/test-localename.c (ASSERT): Likewise.
89611         * tests/test-lseek.c (ASSERT): Likewise.
89612         * tests/test-mbscasecmp.c (ASSERT): Likewise.
89613         * tests/test-mbscasestr1.c (ASSERT): Likewise.
89614         * tests/test-mbscasestr2.c (ASSERT): Likewise.
89615         * tests/test-mbscasestr3.c (ASSERT): Likewise.
89616         * tests/test-mbscasestr4.c (ASSERT): Likewise.
89617         * tests/test-mbschr.c (ASSERT): Likewise.
89618         * tests/test-mbscspn.c (ASSERT): Likewise.
89619         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
89620         * tests/test-mbspbrk.c (ASSERT): Likewise.
89621         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
89622         * tests/test-mbsrchr.c (ASSERT): Likewise.
89623         * tests/test-mbsspn.c (ASSERT): Likewise.
89624         * tests/test-mbsstr1.c (ASSERT): Likewise.
89625         * tests/test-mbsstr2.c (ASSERT): Likewise.
89626         * tests/test-mbsstr3.c (ASSERT): Likewise.
89627         * tests/test-memchr2.c (ASSERT): Likewise.
89628         * tests/test-memmem.c (ASSERT): Likewise.
89629         * tests/test-open.c (ASSERT): Likewise.
89630         * tests/test-printf-frexp.c (ASSERT): Likewise.
89631         * tests/test-printf-frexpl.c (ASSERT): Likewise.
89632         * tests/test-printf-posix.c (ASSERT): Likewise.
89633         * tests/test-quotearg.c (ASSERT): Likewise.
89634         * tests/test-rbtree_list.c (ASSERT): Likewise.
89635         * tests/test-rbtree_oset.c (ASSERT): Likewise.
89636         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
89637         * tests/test-round1.c (ASSERT): Likewise.
89638         * tests/test-roundf1.c (ASSERT): Likewise.
89639         * tests/test-roundl.c (ASSERT): Likewise.
89640         * tests/test-signbit.c (ASSERT): Likewise.
89641         * tests/test-sleep.c (ASSERT): Likewise.
89642         * tests/test-snprintf-posix.c (ASSERT): Likewise.
89643         * tests/test-snprintf.c (ASSERT): Likewise.
89644         * tests/test-sprintf-posix.c (ASSERT): Likewise.
89645         * tests/test-stat-time.c (ASSERT): Likewise.
89646         * tests/test-strcasestr.c (ASSERT): Likewise.
89647         * tests/test-strerror.c (ASSERT): Likewise.
89648         * tests/test-striconv.c (ASSERT): Likewise.
89649         * tests/test-striconveh.c (ASSERT): Likewise.
89650         * tests/test-striconveha.c (ASSERT): Likewise.
89651         * tests/test-strsignal.c (ASSERT): Likewise.
89652         * tests/test-strstr.c (ASSERT): Likewise.
89653         * tests/test-strtod.c (ASSERT): Likewise.
89654         * tests/test-trunc1.c (ASSERT): Likewise.
89655         * tests/test-trunc2.c (ASSERT): Likewise.
89656         * tests/test-truncf1.c (ASSERT): Likewise.
89657         * tests/test-truncf2.c (ASSERT): Likewise.
89658         * tests/test-truncl.c (ASSERT): Likewise.
89659         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
89660         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
89661         * tests/test-vasnprintf.c (ASSERT): Likewise.
89662         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
89663         * tests/test-vasprintf.c (ASSERT): Likewise.
89664         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
89665         * tests/test-vprintf-posix.c (ASSERT): Likewise.
89666         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
89667         * tests/test-vsnprintf.c (ASSERT): Likewise.
89668         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
89669         * tests/test-wcwidth.c (ASSERT): Likewise.
89670         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
89671         * tests/test-xprintf-posix.c (ASSERT): Likewise.
89672         * tests/test-xvasprintf.c (ASSERT): Likewise.
89673         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
89674         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
89675         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
89676         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
89677         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
89678         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
89679         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
89680         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
89681         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
89682         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
89683         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
89684         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
89685         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
89686         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
89687         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
89688         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
89689         * tests/unictype/test-block_list.c (ASSERT): Likewise.
89690         * tests/unictype/test-block_of.c (ASSERT): Likewise.
89691         * tests/unictype/test-block_test.c (ASSERT): Likewise.
89692         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
89693         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
89694         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
89695         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
89696         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
89697         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
89698         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
89699         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
89700         * tests/unictype/test-combining.c (ASSERT): Likewise.
89701         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
89702         * tests/unictype/test-digit.c (ASSERT): Likewise.
89703         * tests/unictype/test-mirror.c (ASSERT): Likewise.
89704         * tests/unictype/test-numeric.c (ASSERT): Likewise.
89705         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
89706         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
89707         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
89708         * tests/unictype/test-scripts.c (ASSERT): Likewise.
89709         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
89710         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
89711         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
89712         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
89713         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
89714         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
89715         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
89716         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
89717         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
89718         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
89719         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
89720         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
89721         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
89722         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
89723         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
89724         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
89725         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
89726         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
89727         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
89728         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
89729         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
89730         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
89731         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
89732         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
89733         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
89734         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
89735         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
89736         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
89737         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
89738         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
89739         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
89740         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
89741         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
89742         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
89743         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
89744         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
89745         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
89746         Reported by Eric Blake.
89748 2008-04-11  Bruno Haible  <bruno@clisp.org>
89750         * lib/wchar.in.h: Tweak comment.
89752 2008-04-11  Bruno Haible  <bruno@clisp.org>
89754         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
89755         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
89756         gl_COMMON.
89757         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
89759 2008-04-11  Bruno Haible  <bruno@clisp.org>
89761         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
89763 2008-04-11  Simon Josefsson  <simon@josefsson.org>
89765         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
89766         of attempting to use non-existing /dev/*random.  Based on patch
89767         from Adam Strzelecki <ono@java.pl> in
89768         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
89770 2008-04-08  Bruno Haible  <bruno@clisp.org>
89772         Add tentative support for emx+gcc.
89773         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
89774         * lib/fpurge.c (fpurge): Likewise.
89775         * lib/freadable.c (freadable): Likewise.
89776         * lib/freadahead.c (freadahead): Likewise.
89777         * lib/freading.c (freading): Likewise.
89778         * lib/freadptr.c (freadptr): Likewise.
89779         * lib/freadseek.c (freadptrinc): Likewise.
89780         * lib/fseeko.c (rpl_fseeko): Likewise.
89781         * lib/fseterr.c (fseterr): Likewise.
89782         * lib/fwritable.c (fwritable): Likewise.
89783         * lib/fwriting.c (fwriting): Likewise.
89784         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
89786 2008-04-09  Eric Blake  <ebb9@byu.net>
89788         Avoid some autoconf warnings.
89789         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
89790         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
89791         * m4/afs.m4 (gl_AFS): Likewise.
89792         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
89793         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
89794         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89795         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
89796         (gl_INTEGER_TYPE_SUFFIX): Likewise.
89797         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
89798         (AC_CHECK_DECLS_ONCE): Likewise.
89799         Rename file...
89800         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
89801         gnulib-tool requires autoconf 2.59 or better.
89802         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
89804 2008-04-08  Eric Blake  <ebb9@byu.net>
89806         Use 'git describe --match' if present (added in git 1.5.5).
89807         * build-aux/git-version-gen: Limit result to tags that match 'v*'
89808         if possible.
89810 2008-04-08  Bruno Haible  <bruno@clisp.org>
89812         Add tentative support for OpenServer.
89813         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
89814         _ptr, _cnt.
89815         * lib/fpurge.c (fpurge): Likewise.
89816         * lib/freadable.c (freadable): Likewise.
89817         * lib/freadahead.c (freadahead): Likewise.
89818         * lib/freading.c (freading): Likewise.
89819         * lib/freadptr.c (freadptr): Likewise.
89820         * lib/freadseek.c (freadptrinc): Likewise.
89821         * lib/fseeko.c (rpl_fseeko): Likewise.
89822         * lib/fseterr.c (fseterr): Likewise.
89823         * lib/fwritable.c (fwritable): Likewise.
89824         * lib/fwriting.c (fwriting): Likewise.
89825         Reported by Roger Cornelius <rac@tenzing.org> and
89826         Brian K. White <brian@aljex.com>.
89828 2008-04-06  Jim Meyering  <meyering@redhat.com>
89830         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
89832 2008-04-06  Bruno Haible  <bruno@clisp.org>
89834         Avoid possible error with non-ASCII bytes in UTF-8 locales.
89835         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
89836         * tests/test-printf-posix.sh: Likewise.
89837         * tests/test-vfprintf-posix.sh: Likewise.
89838         * tests/test-vprintf-posix.sh: Likewise.
89839         * tests/test-xprintf-posix.sh: Likewise.
89841 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89843         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
89844         hide error from 'ls', needed on OS/2.
89845         Report by Elbert Pol <elbert.pol@gmail.com>.
89847 2008-04-04  Eric Blake  <ebb9@byu.net>
89849         Make test-fseeko.c failures meaningful.
89850         * tests/test-fseeko.c: Print line number on failure.
89851         * tests/test-fseek.c: Likewise.
89852         Reported by Nelson H. F. Beebe.
89854         Improve strtod bug detection check.
89855         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
89856         required for Solaris 10.
89857         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
89859 2008-04-04  Bruno Haible  <bruno@clisp.org>
89861         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
89862         by m4/setenv.m4.
89864 2008-04-03  Eric Blake  <ebb9@byu.net>
89866         Ensure sane .version contents.
89867         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
89868         version string.
89869         * build-aux/git-version-gen: Improve documentation.
89871         Make GNU make output nicer.
89872         * top/GNUmakefile [!_have-Makefile]: Add dependency on
89873         MAKECMDGOALS to enforce message for all command line targets.  Set
89874         srcdir for use in maint.mk.
89876         Another maintainer tweak.
89877         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
89878         a target that regenerates version.
89880 2008-04-03  Jim Meyering  <meyering@redhat.com>
89882         vc-list-files: don't cause coreutils "make po-check" failure
89883         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
89885 2008-04-03  Eric Blake  <ebb9@byu.net>
89887         Allow VPATH usage of vc-list-files.
89888         * build-aux/vc-list-files (scriptversion): Add timestamp.
89889         (options): Add --help, --version, -C.
89890         (CVS): Support installed cvsu.
89892 2008-04-02  Bruno Haible  <bruno@clisp.org>
89894         Avoid some "statement with no effect" warnings from gcc.
89895         * tests/test-wctype.c (main): Explicitly ignore unused values.
89896         Reported by Jim Meyering.
89898 2008-04-02  Jim Meyering  <meyering@redhat.com>
89900         Avoid some warnings from "gcc -Wshadow".
89901         * tests/test-frexp.c (exp): Define to a different identifier.
89902         * tests/test-frexpl.c (exp): Likewise.
89904 2008-04-03  Jim Meyering  <meyering@redhat.com>
89906         bootstrap: remove dangling *.[ch] symlinks from lib
89907         * build-aux/bootstrap [dangling symlink removal]: Move find's
89908         -depth option to precede all others, to avoid a warning.
89909         Remove *.[ch] files too, and from "$source_base" (usually lib/).
89911 2008-04-02  Bruno Haible  <bruno@clisp.org>
89913         Avoid some warnings from "gcc -Wshadow".
89914         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
89915         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
89916         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
89917         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
89918         Reported by Jim Meyering.
89920 2008-04-01  Bruno Haible  <bruno@clisp.org>
89922         Fix test to work on IRIX 6.5 with cc.
89923         * tests/test-math.c (numeric_equal): New function.
89924         (main): Use it.
89926 2008-04-01  Bruno Haible  <bruno@clisp.org>
89928         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
89930 2008-04-01  Bruno Haible  <bruno@clisp.org>
89932         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
89933         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
89934         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
89935         (Depends-on): Remove math.
89937         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
89938         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
89939         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
89940         (Depends-on): Remove math.
89942         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
89943         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
89944         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
89945         (Depends-on): Remove math.
89946         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
89947         (Depends-on): Remove math.
89949         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
89950         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
89951         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
89952         (Depends-on): Remove math.
89953         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
89954         (Depends-on): Remove math.
89956         * tests/test-round1.c: Include nan.h.
89957         (main): Use NaNd instead of NAN.
89958         * modules/round-tests (Files): Add tests/nan.h.
89960         * tests/test-trunc1.c: Include nan.h.
89961         (main): Use NaNd instead of NAN.
89962         * modules/trunc-tests (Files): Add tests/nan.h.
89964         * tests/test-roundf1.c: Include nan.h.
89965         (main): Use NaNf instead of NAN.
89966         * modules/roundf-tests (Files): Add tests/nan.h.
89968         * tests/test-truncf1.c: Include nan.h.
89969         (main): Use NaNf instead of NAN.
89970         * modules/truncf-tests (Files): Add tests/nan.h.
89972         * tests/test-ceilf1.c: Include nan.h.
89973         (main): Use NaNf instead of NAN.
89974         * modules/ceilf-tests (Files): Add tests/nan.h.
89976         * tests/test-floorf1.c: Include nan.h.
89977         (main): Use NaNf instead of NAN.
89978         * modules/floorf-tests (Files): Add tests/nan.h.
89980         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
89981         (main): Use NaNf instead of NAN.
89982         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
89984         * tests/test-isnand.c: Include nan.h instead of <math.h>.
89985         (main): Use NaNd instead of NAN.
89986         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
89988         * tests/test-frexp.c: Include nan.h.
89989         (main): Use NaNd instead of NAN.
89990         * modules/frexp-tests (Files): Add tests/nan.h.
89992         * lib/isnan.c: Don't include <math.h>.
89993         (FUNC): Don't use NAN macro.
89994         * modules/isnand-nolibm (Depends-on): Remove math.
89995         * modules/isnanf-nolibm (Depends-on): Remove math.
89996         * modules/isnanl (Depends-on): Remove math.
89997         * modules/isnanl-nolibm (Depends-on): Remove math.
89999         * tests/nan.h: New file.
90001 2008-04-01  Eric Blake  <ebb9@byu.net>
90003         Fix typos.
90004         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
90005         values to be the right type.
90007         For now, cater to gnulib strtod inaccuracies.
90008         * tests/test-strtod.c (main): Allow 1-ulp error on expected
90009         fractional results.  While not as nice from a QoI perspective, it
90010         is a quicker patch than correctly implementing decimal to binary
90011         rounding.
90013 2008-03-31  Eric Blake  <ebb9@byu.net>
90015         Guarantee a definition of NAN.
90016         * lib/math.in.h (NAN): Define if missing.
90017         * tests/test-math.c (main): Test it.
90018         * doc/posix-headers/math.texi (math.h): Document this.
90019         * lib/isnan.c (rpl_isnand): Use it.
90020         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
90021         * tests/test-floorf1.c (NaN): Likewise.
90022         * tests/test-frexp.c (NaN): Likewise.
90023         * tests/test-isnand.c (NaN): Likewise.
90024         * tests/test-isnanf.c (NaN): Likewise.
90025         * tests/test-round1.c (NaN): Likewise.
90026         * tests/test-roundf1.c (NaN): Likewise.
90027         * tests/test-snprintf-posix.h (NaN): Likewise.
90028         * tests/test-sprintf-posix.h (NaN): Likewise.
90029         * tests/test-trunc1.c (NaN): Likewise.
90030         * tests/test-truncf1.c (NaN): Likewise.
90031         * tests/test-vasnprintf-posix.c (NaN): Likewise.
90032         * tests/test-vasprintf-posix.c (NaN): Likewise.
90033         * modules/isnand-nolibm (Depends-on): Add math.
90034         * modules/isnanf-nolibm (Depends-on): Likewise.
90035         * modules/isnanl (Depends-on): Likewise.
90036         * modules/isnanl-nolibm (Depends-on): Likewise.
90037         * modules/snprintf-posix-tests (Depends-on): Likewise.
90038         * modules/sprintf-posix-tests (Depends-on): Likewise.
90039         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
90040         * modules/vsprintf-posix-tests (Depends-on): Likewise.
90041         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
90042         * modules/vasprintf-posix-tests (Depends-on): Likewise.
90044 2008-03-31  Bruno Haible  <bruno@clisp.org>
90046         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
90047         * doc/posix-functions/strtod.texi: Likewise.
90049 2008-03-31  Bruno Haible  <bruno@clisp.org>
90051         * tests/test-strtod.c (main): Don't use C99 syntax.
90053 2008-03-31  Bruno Haible  <bruno@clisp.org>
90055         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
90056         Reported by Eric Blake.
90058 2008-03-31  Jim Meyering  <meyering@redhat.com>
90060         Don't compare actual signbit return values.
90061         * tests/test-strtod.c (main): Rather, compare only their
90062         zero/non-zero nature.
90064 2008-03-31  Eric Blake  <ebb9@byu.net>
90066         More strtod documentation.
90067         * doc/posix-functions/strtod.texi (strtod): Interpret more test
90068         failures as distinct bugs.
90070 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
90072         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
90073         Problem reported by Erik Benada in
90074         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
90076 2008-03-30  Bruno Haible  <bruno@clisp.org>
90078         * tests/test-strtod.c: Add comments about which assertion fails on which
90079         platform.
90080         * doc/posix-functions/strtod.texi: Add info about many more platforms.
90082 2008-03-30  Eric Blake  <ebb9@byu.net>
90084         Test signbit behavior on zeros.
90085         * tests/test-signbit.c (test_signbitf): Add tests for zero.
90086         (test_signbitd, test_signbitl): Likewise.
90088         More strtod touchups.
90089         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
90090         sign of negative underflow, for now.  Use .5, not .1.
90091         * doc/posix-functions/strtod.texi (strtod): Mention these
90092         limitations.
90093         Reported by Jim Meyering.
90095 2008-03-30  Bruno Haible  <bruno@clisp.org>
90097         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
90098         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
90100 2008-03-30  Bruno Haible  <bruno@clisp.org>
90102         Avoid failure when attempting to return empty iconv results on some
90103         platforms.
90104         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
90105         allocation, don't report ENOMEM when the resulting string is empty.
90107 2008-03-30  Bruno Haible  <bruno@clisp.org>
90109         Fix buffer overrun.
90110         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
90111         Don't consider the width for tmp_length. Check count against tmp_length
90112         before doing the padding. Ensure enough allocation during padding.
90114 2008-03-30  Eric Blake  <ebb9@byu.net>
90116         strtod touchups.
90117         * lib/strtod.c (strtod): Avoid compiler warnings.
90118         Reported by Jim Meyering.
90120 2008-03-30  Bruno Haible  <bruno@clisp.org>
90122         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
90123         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
90124         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
90125         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
90126         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
90127         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
90128         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
90129         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
90131         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
90132         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
90133         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
90134         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
90135         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
90136         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
90137         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
90138         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
90140         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
90141         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
90142         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
90143         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
90144         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
90145         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
90146         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
90147         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
90149         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
90150         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
90152         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
90153         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
90155         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
90156         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
90158         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
90159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
90160         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
90162         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
90163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
90164         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
90166         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
90167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
90168         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
90170         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
90171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
90172         * modules/vasprintf (Depends-on): Add EOVERFLOW.
90174         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
90175         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
90176         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
90177         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
90178         (Depends-on): Add EOVERFLOW.
90179         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
90180         (Depends-on): Add EOVERFLOW.
90181         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
90182         (Depends-on): Add EOVERFLOW.
90183         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
90184         (Depends-on): Add EOVERFLOW.
90185         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
90186         (Depends-on): Add EOVERFLOW.
90187         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
90188         (Depends-on): Add EOVERFLOW.
90189         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
90190         (Depends-on): Add EOVERFLOW.
90191         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
90192         (Depends-on): Add EOVERFLOW.
90194         * lib/sprintf.c (EOVERFLOW): Remove fallback.
90195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
90196         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
90198         * lib/snprintf.c (EOVERFLOW): Remove fallback.
90199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
90200         * modules/snprintf (Depends-on): Add EOVERFLOW.
90202         * lib/poll.c (EOVERFLOW): Remove fallback.
90203         * modules/poll (Depends-on): Add EOVERFLOW.
90205         * lib/getugroups.c (EOVERFLOW): Remove fallback.
90206         * modules/getugroups (Depends-on): Add EOVERFLOW.
90208         * lib/getdelim.c (EOVERFLOW): Remove fallback.
90209         * modules/getdelim (Depends-on): Add EOVERFLOW.
90211         * lib/ftell.c (EOVERFLOW): Remove fallback.
90212         * modules/ftell (Depends-on): Add EOVERFLOW.
90214         * lib/fprintf.c (EOVERFLOW): Remove fallback.
90215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
90216         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
90218         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
90220         * modules/EOVERFLOW-tests: New file.
90221         * tests/test-EOVERFLOW.c: New file.
90223         * modules/EOVERFLOW: New file.
90224         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
90226 2008-03-30  Bruno Haible  <bruno@clisp.org>
90228         Fix bug introduced on 2007-06-10.
90229         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
90230         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
90232 2008-03-30  Bruno Haible  <bruno@clisp.org>
90234         Improve freadseek's efficiency after ungetc.
90235         * lib/freadseek.c: Include freadahead.h.
90236         (freadptrinc): New function, extracted from freadseek.
90237         (freadseek): Use it in a loop. Use freadahead to determine the number
90238         of loop iterations.
90239         * modules/freadseek (Depends-on): Add freadahead.
90240         (configure.ac): Require AC_C_INLINE.
90242 2008-03-30  Bruno Haible  <bruno@clisp.org>
90244         * lib/freadseek.c (freadseek): Don't ignore the return value of
90245         freadptr.
90247 2008-03-29  Eric Blake  <ebb9@byu.net>
90249         Add hex float support.
90250         * modules/strtod (Depends-on): Add c-ctype.
90251         (Link): Mention POW_LIB.
90252         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
90253         whitespace between 'e' and exponent.
90254         * tests/test-strtod.c (main): Enable hex float tests.
90255         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
90256         now provides.
90258         Document various strtod bugs, with some fixes.
90259         * doc/posix-functions/strtod.texi (strtod): Document bugs with
90260         "-0x", "inf", "nan", and hex constants.
90261         * doc/posix-functions/atof.texi (atof): Likewise.
90262         * modules/stdlib (Makefile.am): Support strtod.
90263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
90264         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
90265         detect additional strtod bugs.
90266         * lib/stdlib.in.h (rpl_strtod): Add declarations.
90267         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
90268         bool where appropriate.  Parse 'inf' and 'nan'.
90269         * tests/test-strtod.c: New file.
90270         * modules/strtod (Depends-on): Add stdbool, stdlib.
90271         (configure.ac): Turn on module indicator.
90272         * modules/strtod-tests: New module.
90274 2008-03-29  Eric Blake  <ebb9@byu.net>
90276         Fix ftell on mingw.
90277         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
90278         * modules/ftell-tests (Depends-on): Add binary-io.
90279         * modules/ftello-tests (Depends-on): Likewise.
90280         * tests/test-ftell.c (main): Enhance test to cover behavior after
90281         ungetc.  Enforce binary mode.
90282         * tests/test-ftello.c (main): Likewise.
90284         Pass test-freadseek on cygwin.
90285         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
90286         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
90287         ungetc buffer.
90289         * tests/test-fflush2.c (main): Fix typo.
90291 2008-03-29  Bruno Haible  <bruno@clisp.org>
90293         * tests/test-fflush2.c (main): Temporarily disable the contents of
90294         this test.
90295         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
90296         Reported by Eric Blake.
90298 2008-03-28  Simon Josefsson  <simon@josefsson.org>
90300         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
90301         (GC_SHA224_DIGEST_SIZE): Add.
90303         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
90304         (gc_hash_digest_length): Likewise.
90305         (gc_hash_buffer): Likewise.
90307 2008-03-25  Bruno Haible  <bruno@clisp.org>
90309         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
90310         detail which gettext release to use.
90311         Reported by Simon Josefsson.
90313 2008-03-26  Jim Meyering  <meyering@redhat.com>
90315         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
90316         * modules/gnumakefile (clean-GNUmakefile): Also, use
90317         test ... && ... || : syntax rather than if-then ... fi.
90319         gnumakefile: Don't double-quote-expand $(VPATH) value.
90320         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
90322 2008-03-24  Eric Blake  <ebb9@byu.net>
90324         Alter GNUmakefile to install into top directory.
90325         * modules/maintainer-makefile: Split, and add dependency...
90326         * modules/gnumakefile: to this new module.
90327         * build-aux/GNUmakefile: Move...
90328         * top/GNUmakefile: ...here.
90329         * build-aux/maint.mk: Move...
90330         * top/maint.mk: ...here.
90331         * MODULES.html.sh (Support for maintaining...): Document new
90332         module.
90334 2008-03-23  Bruno Haible  <bruno@clisp.org>
90336         * gnulib-tool: New options --vc-files, --no-vc-files.
90337         (func_usage): Document them.
90338         (vc_files): New variable.
90339         (func_import): Consider vc_files.
90340         (func_create_testdir): Set vc_files to empty.
90341         Suggested by Jim Meyering and Karl Berry.
90343 2008-03-23  Bruno Haible  <bruno@clisp.org>
90345         Fix regex compilation error on HP-UX 11.
90346         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
90347         * modules/regex (Files): Add m4/mbstate_t.m4.
90348         Reported by Ton Voon <ton.voon@altinity.com>.
90350 2008-03-23  Bruno Haible  <bruno@clisp.org>
90352         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
90354 2008-03-23  Eric Blake  <ebb9@byu.net>
90355             Bruno Haible  <bruno@clisp.org>
90357         Install files from top/ in the destination directory.
90358         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
90359         augmentation also for the files from top/.
90360         (func_import, func_create_testdir): Rewrite file names:
90361         top/filename -> filename.
90363 2008-03-23  Bruno Haible  <bruno@clisp.org>
90365         Tweak "gnulib --version" output.
90366         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
90368 2008-03-23  Bruno Haible  <bruno@clisp.org>
90370         Tweak "gnulib --version" output.
90371         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
90372         rather than contents of ChangeLog, when possible.
90374 2008-03-21  Eric Blake  <ebb9@byu.net>
90376         More --version tweaks.
90377         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
90378         date of last ChangeLog entry.
90380 2008-03-21  Jim Meyering  <meyering@redhat.com>
90382         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
90384 2008-03-20  Eric Blake  <ebb9@byu.net>
90386         VPATH fix.
90387         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
90389 2008-03-20  Simon Josefsson  <simon@josefsson.org>
90391         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
90392         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
90394 2008-03-20  Eric Blake  <ebb9@byu.net>
90396         Sync GNUmakefile with coreutils.
90397         * build-aux/GNUmakefile (have-Makefile): Rename...
90398         (_have-Makefile): ...to this, for namespace consideration.
90399         (GNUmakefile.cfg): Include, if present.
90400         (_autoreconf): Define a default.
90401         (_is-dist-target): New rule for rebuilds to pick up intra-release
90402         version.
90403         (maint-cfg.mk): Rename...
90404         (cfg.mk): ...to this.
90406 2008-03-18  Jim Meyering  <meyering@redhat.com>
90408         New script and module: mktempd
90409         * MODULES.html.sh (maint+release support): Add mktempd.
90410         * build-aux/mktempd: New file.
90411         * modules/mktempd: New file.
90413 2008-03-15  Jim Meyering  <meyering@redhat.com>
90415         Undo last change.
90416         * lib/sha1.c, lib/md5.c: 63 != ~63.
90417         Reported by Andreas Schwab.
90419         sha1.c, md5.c: Hoist a redundant expression.
90420         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
90421         "ctx->buflen" only once, before calling *_process_block.
90422         * lib/md5.c (md5_process_bytes): Likewise.
90424 2008-03-14  Eric Blake  <ebb9@byu.net>
90426         Bump copyright year in files generated by gnulib-tool.
90427         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
90428         gnulib-tool, rather than hard-coding it.
90430         Fix 'gnulib-tool --version' output to work with git.
90431         * gnulib-tool (func_gnulib_dir): New function, extracted from...
90432         (startup): ...here.
90433         (func_version): Use it to invoke git-version-gen, rather than
90434         relying on CVS keyword expansion.  Modernize wording.
90435         (cvsdatestamp, last_checkin_date, version): Kill unused
90436         variables.
90438 2008-03-12  Jim Meyering  <meyering@redhat.com>
90440         Recognize optional cast of the argument to free.
90441         * build-aux/useless-if-before-free: Update regexps.
90443         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
90445 2008-03-11  Bruno Haible  <bruno@clisp.org>
90447         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
90448         by a single package.
90449         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
90450         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
90451         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
90452         Reported by Sam Steingold <sds@gnu.org>.
90454 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
90456         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
90457         repositories.
90459 2008-03-11  Bruno Haible  <bruno@clisp.org>
90461         Avoid conflicts between local macro definitions.
90462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
90463         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
90465 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
90466             Bruno Haible  <bruno@clisp.org>
90468         Make va_copy work with some version of xlc on AIX 5.1.
90469         * lib/stdarg.in.h: New file.
90470         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
90471         On AIX, use a <stdarg.h> file substitute.
90472         * modules/stdarg (Files): Add lib/stdarg.in.h.
90473         (Depends-on): Add include_next.
90474         (Makefile.am): Build a stdarg.h substitute if requested.
90475         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
90477 2008-03-10  Bruno Haible  <bruno@clisp.org>
90479         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
90480         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90481         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
90483 2008-03-10  Bruno Haible  <bruno@clisp.org>
90485         * modules/stdlib (Depends-on): Add include_next, remove
90486         absolute-header.
90488 2008-03-09  Bruno Haible  <bruno@clisp.org>
90490         * lib/freadahead.h (freadahead): Document more precisely.
90491         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
90492         the sum of both buffer sizes.
90493         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
90494         * NEWS: Document the change.
90496 2008-03-09  Bruno Haible  <bruno@clisp.org>
90498         Extend freadptr to return also the buffer size.
90499         * lib/freadptr.h (freadptr): Add sizep argument.
90500         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
90501         (freadptr): Add sizep argument. Determine buffer size like freadahead
90502         does.
90503         * tests/test-freadptr.c: Don't include freadahead.h.
90504         (main): Adapt for new calling convention of freadptr.
90505         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
90506         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
90507         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
90508         tests/test-freadptr2.sh.
90509         (Depends): Remove freadahead.
90510         (TESTS): Add test-freadptr2.sh.
90511         (check_PROGRAMS): Add test-freadptr2.
90513 2008-03-09  Bruno Haible  <bruno@clisp.org>
90515         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
90516         Report and solution by Simon Josefsson.
90518 2008-03-06  Bruno Haible  <bruno@clisp.org>
90520         Make fflush after ungetc work on BSD platforms.
90521         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
90522         * tests/test-fflush2.c: New file.
90523         * tests/test-fflush2.sh: New file.
90524         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
90525         tests/test-fflush2.c.
90526         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
90527         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
90529 2008-03-06  Eric Blake  <ebb9@byu.net>
90531         Likewise for ftello.
90532         * modules/ftello (Dependencies): Add extensions.
90533         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
90535 2008-03-06  Bruno Haible  <bruno@clisp.org>
90537         * modules/fseeko (Dependencies): Add extensions.
90538         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
90539         Needed on glibc systems.
90541 2008-03-06  Bruno Haible  <bruno@clisp.org>
90543         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
90544         email address.
90545         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90547 2008-03-06  Bruno Haible  <bruno@clisp.org>
90549         * users.txt: Add libgnupdf.
90551 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
90553         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
90554         (Header File Substitutes, Function Substitutes,
90555         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
90556         (Build robot for gnulib): Fix typo.
90558 2008-03-06  Bruno Haible  <bruno@clisp.org>
90560         * doc/gnulib-tool.texi (VCS Issues): Small updates.
90561         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90563 2008-03-06  Bruno Haible  <bruno@clisp.org>
90565         * doc/func.texi: New file, extracted from doc/gnulib.texi.
90566         * doc/gnulib.texi: Include it.
90568 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90570         * modules/func (License): Change license to unlimited; there was
90571         no LGPL parts in the module anyway.
90573 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90575         * modules/__func__: Renamed to modules/func.
90576         * modules/__func__-tests: Renamed to modules/func-tests.
90577         * tests/test-__func__.c: Renamed to tests/test-func.c.
90578         * m4/__func__.m4: Renamed to m4/func.m4.
90579         * doc/gnulib.texi (__func__): Section renamed to func.
90580         Suggested by Eric Blake <ebb9@byu.net>.
90582 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90584         * doc/gnulib.texi (__func__): Use C99 terminology when talking
90585         about __func__.  Make example self-contained.  Suggested by Eric
90586         Blake <ebb9@byu.net>.
90588         * tests/test-__func__.c (main): Avoid extraneous () around __func.
90589         Suggested by Eric Blake <ebb9@byu.net>.
90591 2008-03-06  Simon Josefsson  <simon@josefsson.org>
90593         * modules/__func__: New file.
90594         * modules/__func__-tests: New file.
90595         * tests/test-__func__.c: New file.
90596         * m4/__func__.m4: New file.
90597         * doc/gnulib.texi (__func__): Document __func__ module.
90599 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90601         * modules/byteswap (License): Re-license as LGPLv2+.
90603 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90605         * doc/Makefile: Add pdf target.
90607 2008-03-05  Simon Josefsson  <simon@josefsson.org>
90609         * modules/inline (License): Use 'unlimited', since there are only
90610         *.m4 files in this module.
90612 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
90613             Bruno Haible  <bruno@clisp.org>
90615         Add support for HP C 7.1 on OpenVMS 8.3.
90616         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
90618 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
90620         Update VMS specifics.
90621         * lib/getopt.c [VMS]: Remove include of unixlib.h.
90623 2008-03-02  Jim Meyering  <meyering@redhat.com>
90625         Remove the last dependency on the "free" module.
90626         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
90627         Reported by Bob Proulx.
90629         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
90631         Remove useless "if" tests before free.  Deprecate "free" module.
90632         * doc/posix-functions/free.texi: Mention that this
90633         module is no longer useful.
90634         * modules/free (Notice): Say this module is obsolete.
90635         * modules/readutmp (Depends-on): Remove free.
90636         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
90637         * lib/putenv.c (putenv): Likewise.
90638         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
90639         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
90640         * tests/test-c-strcasestr.c (main): Likewise.
90641         * tests/test-c-strstr.c (main): Likewise.
90642         * tests/test-mbscasestr1.c (main): Likewise.
90643         * tests/test-mbscasestr2.c (main): Likewise.
90644         * tests/test-mbsstr1.c (main): Likewise.
90645         * tests/test-mbsstr2.c (main): Likewise.
90646         * tests/test-memmem.c (main): Likewise.
90647         * tests/test-strcasestr.c (main): Likewise.
90648         * tests/test-striconv.c (main): Likewise.
90649         * tests/test-striconveh.c (main): Likewise.
90650         * tests/test-striconveha.c (main): Likewise.
90651         * tests/test-strstr.c (main): Likewise.
90653         * build-aux/git-version-gen: Adjust a comment and the Usage string.
90655         bootstrap: sync from coreutils again
90656         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
90658 2008-03-01  Jim Meyering  <meyering@redhat.com>
90660         bootstrap: sync from coreutils
90661         * build-aux/bootstrap (update_po_files): Copy a .po file into place
90662         also when the target doesn't exist.
90664 2008-03-01  Eric Blake  <ebb9@byu.net>
90666         Fix bugs in last patch.
90667         * lib/memchr2.c (memchr2): Fix typo.
90668         * tests/test-memchr2.c: Test previous bug, and don't use GNU
90669         extension.
90670         Reported by Bruce Korb.
90672         New module 'memchr2'.
90673         * modules/memchr2: New file.
90674         * modules/memchr2-tests: Likewise.
90675         * lib/memchr2.h: Likewise.
90676         * lib/memchr2.c: Likewise, based on memchr.c.
90677         * tests/test-memchr2.c: New test.
90678         * MODULES.html.sh (String handling): Add memchr2.
90680 2008-02-29  Bruno Haible  <bruno@clisp.org>
90682         * modules/freadseek-tests: New file.
90683         * tests/test-freadseek.sh: New file.
90684         * tests/test-freadseek.c: New file.
90686         New module 'freadseek'.
90687         * modules/freadseek: New file.
90688         * lib/freadseek.h: New file.
90689         * lib/freadseek.c: New file.
90690         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
90692 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
90694         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
90695         wydawca.
90697         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
90698         program_invocation_name and program_invocation_short_name are
90699         present.
90701 2008-02-28  Bruno Haible  <bruno@clisp.org>
90703         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
90704         * tests/test-freadptr.sh: Also test non-seekable stdin.
90706 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
90708         * build-aux/bootstrap (source_base, m4_base)
90709         (doc_base, tests_base): New variables.
90710         (gnulib_tool_options): Do not hardcode base directories, use
90711         the above variables instead.
90713 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
90715         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
90717 2008-02-28  Bruno Haible  <bruno@clisp.org>
90719         * modules/freadptr-tests: New file.
90720         * tests/test-freadptr.sh: New file.
90721         * tests/test-freadptr.c: New file.
90723         New module 'freadptr'.
90724         * modules/freadptr: New file.
90725         * lib/freadptr.h: New file.
90726         * lib/freadptr.c: New file.
90727         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
90729 2008-02-26  Karl Berry  <karl@freefriends.org>
90731         Sync from Libtool:
90732         * libltdl/argz.c (argz_add, argz_count): New functions.
90733         * libltdl/argz.in.h: Declare them.
90734         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
90736 2008-02-22  Bruno Haible  <bruno@clisp.org>
90738         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
90739         is a pointer type.  Needed for HP-UX 10.
90740         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
90741         * doc/posix-functions/gmtime_r.texi: Likewise.
90742         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
90744 2008-02-24  Bruno Haible  <bruno@clisp.org>
90746         * modules/environ-tests: New file.
90747         * tests/test-environ.c: New file.
90749         New module 'environ'.
90750         * modules/environ: New file.
90751         * lib/unistd.in.h (environ): New declaration.
90752         * m4/environ.m4: New file.
90753         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
90754         after use.
90755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
90756         HAVE_DECL_ENVIRON.
90757         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
90758         HAVE_DECL_ENVIRON.
90759         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
90760         wrong claim that 'environ' is missing on some systems.
90761         * modules/execute (Depends-on): Add environ.
90762         * lib/execute.c (environ): Remove fallback declaration.
90763         * modules/pipe (Depends-on): Add environ.
90764         * lib/pipe.c (environ): Remove fallback declaration.
90765         * modules/setenv (Depends-on): Add environ.
90766         * lib/setenv.c (environ): Remove fallback declaration.
90767         * modules/unsetenv (Depends-on): Add environ.
90768         * lib/unsetenv.c (environ): Remove fallback declaration.
90769         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
90770         m4/environ.m4.
90771         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
90772         (gl_PREREQ_UNSETENV): Likewise.
90774 2008-02-24  Bruno Haible  <bruno@clisp.org>
90776         * doc/posix-functions/environ.texi: Document the MacOS X problem.
90778 2008-02-20  Bob Proulx  <bob@proulx.com>
90780         Enable use of older two part flavor 'git describe'.
90781         * build-aux/git-version-gen: If using the older two part flavor of
90782         git version then recreate the third part now present in the
90783         newer three part flavor of git describe.
90785 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
90787         * lib/fts.c (fts_build): Typo correction to comment.
90789 2008-02-17  Bruno Haible  <bruno@clisp.org>
90791         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
90792         generating no-op conflicts.
90794 2008-02-17  Bruno Haible  <bruno@clisp.org>
90796         Speed up by 10%.
90797         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
90798         result_entries, rather than an index-based loop.
90800 2008-02-17  Bruno Haible  <bruno@clisp.org>
90802         Speed up by 25%.
90803         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
90804         'hashcode_cached'.
90805         (entry_create): New function.
90806         (entry_hashcode): Use the cached hashcode if possible.
90807         (read_changelog_file, try_split_merged_entry): Use entry_create.
90809 2008-02-17  Bruno Haible  <bruno@clisp.org>
90811         Speed up from O(n^2) to O(n) for long ChangeLog files.
90812         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
90813         (read_changelog_file): Change implementation of entries_reversed list
90814         to rbtreehash.
90815         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
90817 2008-02-17  Bruno Haible  <bruno@clisp.org>
90819         New option --split-merged-entry.
90820         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
90821         (find_paragraph_end, try_split_merged_entry): New functions.
90822         (long_options): Add option --split-merged-entry.
90823         (usage): Document option --split-merged-entry.
90824         (main): Implement option --split-merged-entry.
90825         Reported by Eric Blake.
90827 2008-02-17  Bruno Haible  <bruno@clisp.org>
90829         * lib/git-merge-changelog.c: Include c-strstr.h.
90830         (main): Support the "git pull --rebase" situation.
90831         * modules/git-merge-changelog (Depends-on): Add c-strstr.
90832         Reported by Eric Blake.
90834 2008-02-16  Eric Blake  <ebb9@byu.net>
90836         Avoid doubling \ in common case of "c-maybe" quoting style.
90837         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
90838         eliding outer quotes.
90839         * lib/quotearg.h: Document this.
90840         * tests/test-quotearg.c (result_strings, inputs, results_g)
90841         (flag_results, locale_results): Test it by adding a new string to
90842         each test group.
90843         (compare_strings): Test new string.
90845 2008-02-13  Eric Blake  <ebb9@byu.net>
90847         Avoid trigraph quoting in default output.
90848         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
90849         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
90850         unless explicitly requested.
90851         * tests/test-quotearg.c (flag_results, main): Add additional tests.
90853 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
90855         Don't rely on signed integer overflowing to negative value.
90856         * lib/getugroups.c (getugroups): Include <limits.h>.
90857         Instead, compare against INT_MAX, and increment only if the test passes.
90859 2008-02-13  Jim Meyering  <meyering@redhat.com>
90860         and Eric Blake  <ebb9@byu.net>
90862         Avoid shadowing warning and compile errors on Linux.
90863         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
90864         forwarding macros on Linux.
90865         (dcgettext): Define a stub, for Linux.
90866         (results_g, main): Avoid warnings.
90868 2008-02-12  Eric Blake  <ebb9@byu.net>
90870         Silence warning in last patch.
90871         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
90873         Quotearg part 4: add tests, fix c-maybe colon quoting.
90874         * lib/quotearg.h: Improve documentation.
90875         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
90876         escapes when adding outer quotes.  When quoting trigraphs, use
90877         valid C notation.  When quoting NUL, omit extra characters if next
90878         character is not digit.  Alter prototype.
90879         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
90880         callers.
90881         * modules/quotearg-tests: New module.
90882         * tests/test-quotearg.c: New test.
90884 2008-02-07  Eric Blake  <ebb9@byu.net>
90886         Quotearg part 3: add flag to control outer quote elision.
90887         * lib/quotearg.h (c_maybe_quoting_style): New style.
90888         (enum quoting_flags): Better documentation of flags.
90889         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
90890         c-maybe style.
90891         (quotearg_buffer_restyled): Handle new flag to elide outer
90892         quotes.
90894         Quotearg part 2: add flag that can control NUL elision.
90895         * lib/quotearg.h (set_quoting_flags): New prototype.
90896         * lib/quotearg.c (struct quoting_options): Add flag field.
90897         (set_quoting_flags): New function.
90898         (quotearg_buffer_restyled): Add flags parameter.
90899         (quotearg_alloc_mem): Set the flag if length cannot be returned.
90900         (quotearg_n_options): Set the flag, since length cannot be
90901         returned.
90902         (quoting_options_from_style): Default flags correctly.
90904         Quotearg part 1: more wrappers, restore quotearg_char state.
90905         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
90906         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
90907         (quotearg_colon_mem): New wrappers.
90908         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
90909         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
90910         functions.
90911         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
90912         (quotearg_colon_mem): New functions.
90914 2008-02-11  Bruno Haible  <bruno@clisp.org>
90916         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
90917         library in the current directory: it does not work with parallel make.
90918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90920 2008-02-11  Bruno Haible  <bruno@clisp.org>
90922         * .gitattributes: New file.
90924 2008-02-11  Jim Meyering  <meyering@redhat.com>
90926         useless-if-before-free: Fix reversed exit values.
90927         * build-aux/useless-if-before-free: Use correct values
90928         for EXIT_MATCH and EXIT_NO_MATCH.
90930         * build-aux/useless-if-before-free: Close stdout carefully.
90932 2008-02-10  Bruno Haible  <bruno@clisp.org>
90934         New module 'git-merge-changelog'.
90935         * modules/git-merge-changelog: New file.
90936         * lib/git-merge-changelog.c: New file.
90938 2008-02-10  Jim Meyering  <meyering@redhat.com>
90940         useless-if-before-free: New option: --list (-l).
90942         useless-if-before-free: Don't exit immediately upon open failure.
90943         * build-aux/useless-if-before-free: Exit 2 for errors.
90944         Upon failure to open a file, don't exit immediately.
90945         Rather, just warn and continue with any remaining files.
90947 2008-02-10  Bruno Haible  <bruno@clisp.org>
90949         New abstract list operation 'node_set_value'.
90950         * lib/gl_list.h (gl_list_node_set_value): New function.
90951         (struct gl_list_implementation): New field node_set_value.
90952         * lib/gl_list.c (gl_list_node_set_value): New function.
90953         * lib/gl_array_list.c (gl_array_node_set_value): New function.
90954         (gl_array_list_implementation): Update.
90955         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
90956         (gl_carray_list_implementation): Update.
90957         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
90958         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90959         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90960         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
90961         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90962         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90963         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90964         Update.
90965         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
90966         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
90967         (gl_sublist_list_implementation): Update.
90969 2008-02-10  Bruno Haible  <bruno@clisp.org>
90971         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
90972         Needed when ELEMENT is #defined to 'some_type *'.
90974 2008-02-10  Jim Meyering  <meyering@redhat.com>
90976         New script and module: useless-if-before-free
90977         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
90978         * build-aux/useless-if-before-free: New file.
90979         * modules/useless-if-before-free: New file.
90981         * build-aux/gitlog-to-changelog: Use committer date, not author date.
90983         xstrtol_error: Fix typo.
90984         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
90985         s/exit_failure/exit_status/.
90987 2008-02-09  Jim Meyering  <meyering@redhat.com>
90989         New script and module: gitlog-to-changelog
90990         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
90991         * modules/gitlog-to-changelog: New file.
90992         * build-aux/gitlog-to-changelog: New file.
90994 2008-02-08  Jim Meyering  <meyering@redhat.com>
90996         Avoid two "parameter unused" warnings.
90997         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
90998         Mark "st" as used.
91000         Use "git COMMAND", not "git-COMMAND".
91001         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
91002         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
91003         * build-aux/git-version-gen: Use "git status", not "git-status".
91005 2008-02-07  Bruno Haible  <bruno@clisp.org>
91007         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
91008         Avoids a crash on Windows Vista.
91009         Reported by Adam Strzelecki <ono@java.pl> via
91010         Simon Josefsson <simon@josefsson.org>.
91012 2008-02-06  Bruno Haible  <bruno@clisp.org>
91014         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
91015         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
91016         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
91017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
91018         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
91019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
91020         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
91021         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
91022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
91023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
91027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91029         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
91030         left-adjust flag.
91031         * tests/test-snprintf-posix.h (test_function): Likewise.
91032         * tests/test-sprintf-posix.h (test_function): Likewise.
91033         * tests/test-vasprintf-posix.c (test_function): Likewise.
91034         * doc/posix-functions/fprintf.texi: Update.
91035         * doc/posix-functions/printf.texi: Update.
91036         * doc/posix-functions/snprintf.texi: Update.
91037         * doc/posix-functions/sprintf.texi: Update.
91038         * doc/posix-functions/vfprintf.texi: Update.
91039         * doc/posix-functions/vprintf.texi: Update.
91040         * doc/posix-functions/vsnprintf.texi: Update.
91041         * doc/posix-functions/vsprintf.texi: Update.
91042         Reported by Peter Fales <psfales@alcatel-lucent.com>.
91044 2008-02-06  Bruno Haible  <bruno@clisp.org>
91046         Fix bug introduced on 2008-01-26.
91047         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
91049 2008-02-06  Bruno Haible  <bruno@clisp.org>
91051         Fix bug introduced on 2007-06-10.
91052         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
91053         !NEED_PRINTF_FLAG_ZERO.
91055 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
91057         getloadavg: use libperfstat on AIX5
91058         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
91060 2008-02-03  Bruno Haible  <bruno@clisp.org>
91062         * lib/diffseq.h: Add comments about required #includes.
91063         Reported by Michael Biggs <gnulib@doubleplum.net>.
91065 2008-02-01  Bruno Haible  <bruno@clisp.org>
91067         * users.txt: Add gnuit.
91069 2008-01-31  Bruno Haible  <bruno@clisp.org>
91071         * lib/md4.c (set_uint32): Mark as inline.
91072         * lib/md5.c (set_uint32): Likewise.
91073         * lib/sha1.c (set_uint32): Likewise.
91074         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
91075         * m4/md5.m4 (gl_MD5): Likewise.
91076         * m4/sha1.m4 (gl_SHA1): Likewise.
91078 2008-01-31  Jim Meyering  <meyering@redhat.com>
91080         Use "sizeof VAR", rather than a literal "4".
91081         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
91082         * lib/md4.c (md4_read_ctx): Likewise.
91083         * lib/sha1.c (sha1_read_ctx): Likewise.
91085 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91087         * tests/test-sha1.c: New file, based on test-md5.c.
91089         * modules/crypto/sha1-tests: New file.
91091 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91093         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
91095 2008-01-31  Jim Meyering  <meyering@redhat.com>
91097         Prefer "sizeof v" over the equivalent "4".
91098         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
91099         * lib/md5.c (set_uint32): Likewise.
91100         * lib/sha1.c (set_uint32): Likewise.
91102 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91104         * lib/sha1.c (set_uint32): Mark function as static.
91106 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91108         md2: clarify comments to say that alignment is not required.
91109         * lib/md2.h: Remove warning about alignment in comment.
91110         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
91111         never been required.
91113 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91115         md4: adapt alignment constraint fix from sha1.
91116         * lib/md4.c (set_uint32): New function, from sha1.c
91117         (md4_read_ctx): Use it.
91118         (md4_finish_ctx): Doc fix.
91119         * lib/md4.h: Doc fix.
91121 2008-01-31  Simon Josefsson  <simon@josefsson.org>
91123         md5: adapt alignment constraint fix from sha1.
91124         * lib/md5.c (set_uint32): New function, from sha1.c
91125         (md5_read_ctx): Use it.
91126         (md5_finish_ctx): Doc fix.
91127         * lib/md5.h: Doc fix.
91129 2008-01-30  Peter Palfrader  <weasel@debian.org>
91131         sha1: remove the result buffer alignment constraint
91132         * lib/sha1.c (set_uint32): New function.
91133         (sha1_read_ctx): Rewrite to remove the result buffer alignment
91134         constraint.
91135         (sha1_finish_ctx): Remove comment warning about alignment constraint.
91136         * lib/sha1.h: Likewise.
91138 2008-01-30  Andreas Schwab  <schwab@suse.de>
91139             Bruno Haible  <bruno@clisp.org>
91141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
91142         correct definition of LDBL_MIN_EXP.
91144 2008-01-30  Karl Berry  <karl@gnu.org>
91146         * config/srclist-update: try to preserve x bit on updates.
91147         * config/srclistvars.sh: update for karl.
91149 2008-01-29  Jim Meyering  <meyering@redhat.com>
91151         vasnprintf.c: Avoid warning about unused label
91152         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
91153         "overflow" label definition and associated code with the
91154         same cpp condition that guards the sole use of that label.
91156 2008-01-26  Bruno Haible  <bruno@clisp.org>
91158         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
91159         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
91160         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
91161         * lib/isnanl-nolibm.h (isnanl): Likewise.
91162         Reported by Paul Eggert <eggert@cs.ucla.edu>.
91164 2008-01-26  Bruno Haible  <bruno@clisp.org>
91166         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
91167         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
91169 2008-01-26  Bruno Haible  <bruno@clisp.org>
91171         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
91172         GCC >= 4.0 built-in.
91173         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
91175 2008-01-26  Bruno Haible  <bruno@clisp.org>
91177         Rename isnan, applicable to 'double' only, to isnand.
91178         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
91179         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
91180         (configure.ac): Update.
91181         (Include): Replace "isnan.h" with "isnand.h".
91182         * m4/isnand.m4: Renamed from m4/isnan.m4.
91183         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
91184         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
91185         instead of isnan.c.
91186         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
91187         instead of HAVE_ISNAN_IN_LIBC.
91188         (isnand): Renamed from isnan.
91189         * lib/isnand.c: New file.
91190         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
91191         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
91192         (Makefile.am): Update.
91193         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
91194         Include isnand.h instead of isnan.h.
91195         (main): Test isnand instead of isnan.
91196         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
91197         isnan-nolibm.
91198         * modules/frexp (Depends-on): Likewise.
91199         * modules/frexp-tests (Depends-on): Likewise.
91200         * modules/frexp-nolibm (Depends-on): Likewise.
91201         * modules/frexp-nolibm-tests (Depends-on): Likewise.
91202         * modules/isfinite (Depends-on): Likewise.
91203         * modules/round-tests (Depends-on): Likewise.
91204         * modules/signbit (Depends-on): Likewise.
91205         * modules/signbit-tests (Depends-on): Likewise.
91206         * modules/snprintf-posix (Depends-on): Likewise.
91207         * modules/sprintf-posix (Depends-on): Likewise.
91208         * modules/trunc-tests (Depends-on): Likewise.
91209         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91210         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91211         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91212         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91213         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91214         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91215         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91216         * modules/vasnprintf-posix (Depends-on): Likewise.
91217         * modules/vasprintf-posix (Depends-on): Likewise.
91218         * modules/vfprintf-posix (Depends-on): Likewise.
91219         * modules/vsnprintf-posix (Depends-on): Likewise.
91220         * modules/vsprintf-posix (Depends-on): Likewise.
91221         * lib/frexp.c: Include isnand.h instead of isnan.h.
91222         (ISNAN): Set to isnand instead of isnan.
91223         * lib/isfinite.c: Include isnand.h instead of isnan.h.
91224         (gl_isfinited): Use isnand instead of isnan.
91225         * lib/signbitd.c: Include isnand.h instead of isnan.h.
91226         (gl_signbitd): Use isnand instead of isnan.
91227         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
91228         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
91229         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
91230         (main): Use isnand instead of isnan.
91231         * tests/test-round1.c: Include isnand.h.
91232         (main): Use isnand instead of isnan.
91233         * tests/test-round2.c: Include isnand.h instead of isnan.h.
91234         (ISNAN): Set to isnand instead of isnan.
91235         * tests/test-trunc1.c: Include isnand.h.
91236         (main): Use isnand instead of isnan.
91237         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
91238         (equal): Use isnand instead of isnan.
91239         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
91240         isnand-nolibm.
91241         * NEWS: Mention the change.
91243 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
91244             Bruno Haible  <bruno@clisp.org>
91246         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
91247         the GCC builtins for signbits are present and set
91248         REPLACE_SIGNBIT_USING_GCC if so.
91249         * lib/math.in.h (signbit): Define using GCC builtins if
91250         REPLACE_SIGNBIT_USING_GCC is set.
91251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
91252         REPLACE_SIGNBIT_USING_GCC.
91253         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
91255 2008-01-25  Jim Meyering  <meyering@redhat.com>
91257         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
91258         * lib/poll.c: Include <config.h>, not "config.h".
91259         * tests/test-getaddrinfo.c: Likewise.
91261 2008-01-25  Simon Josefsson  <simon@josefsson.org>
91263         * modules/sockets-tests: New file.
91265 2008-01-24  Simon Josefsson  <simon@josefsson.org>
91267         * modules/sockets: New module, can be used to call WSA_Startup and
91268         WSA_Cleanup when needed.
91270         * lib/sockets.h, lib/sockets.c: New files.
91272         * m4/sockets.m4: New file.
91274         * tests/test-sockets.c: New file.
91276 2008-01-19  Bruno Haible  <bruno@clisp.org>
91278         * doc/posix-headers: Renamed from doc/headers.
91279         * doc/posix-functions: Renamed from doc/functions.
91280         * doc/gnulib.texi: Update.
91282 2008-01-19  Bruno Haible  <bruno@clisp.org>
91284         * doc/glibc-functions/strcasestr.texi: Include contents of
91285         doc/functions/strcasestr.texi, fixing the list of platforms.
91286         * doc/functions/strcasestr.texi: Remove file.
91288 2008-01-19  Bruno Haible  <bruno@clisp.org>
91290         * doc/glibc-functions/memmem.texi: Include contents of
91291         doc/functions/memmem.texi.
91292         * doc/functions/memmem.texi: Remove file.
91294 2008-01-18  Bruno Haible  <bruno@clisp.org>
91296         * doc/glibc-functions/*.texi: New files.
91297         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
91298         to use the new files.
91300 2008-01-17  Bruno Haible  <bruno@clisp.org>
91302         * tests/test-gethostname.c (main): Fix printf statement.
91304 2008-01-17  Simon Josefsson  <simon@josefsson.org>
91306         * modules/gethostname-tests: New file.
91308         * tests/test-gethostname.c: New file.
91310 2008-01-17  Simon Josefsson  <simon@josefsson.org>
91312         * lib/gethostname.c: Include string.h unconditionally, strncpy is
91313         used by the UNAME case.  Reported by Bruno Haible
91314         <bruno@clisp.org>.
91316 2008-01-17  Eric Blake  <ebb9@byu.net>
91318         Convert c-strcasestr to be more efficient.
91319         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
91320         (Depends-on): Add c-strcase, remove malloca, strnlen.
91321         * tests/test-c-strcasestr.c (main): Enhance test.
91322         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
91324 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91326         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
91327         Use it in creating po/Makevars.
91329 2008-01-15  Simon Josefsson  <simon@josefsson.org>
91331         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
91332         Applications that requires it should initialize libgcrypt
91333         manually.
91335 2008-01-16  Simon Josefsson  <simon@josefsson.org>
91337         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
91339 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
91341         Fix problem with getdate on mingw32 reported by Simon Josefsson
91342         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
91343         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
91344         tzname", when deciding whether to declare tzname.
91345         * lib/strftime.c (tzname): Likewise.
91347 2008-01-15  Bruno Haible  <bruno@clisp.org>
91349         Work around a MacOS X 10.5 bug in frexpl().
91350         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
91351         * doc/functions/frexpl.texi: Document the bug.
91352         Reported by Elias Pipping <pipping@gentoo.org>.
91354 2008-01-14  Eric Blake  <ebb9@byu.net>
91356         Touch up previous patch.
91357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
91358         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
91360         Convert strcasestr module to use Two-Way algorithm.
91361         * modules/strcasestr-simple: New module, based on the old
91362         strcasestr, but with Two-Way rather than KMP.
91363         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
91364         * lib/string.in.h (rpl_strcasestr): Declare.
91365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
91366         performance.
91367         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
91368         * modules/string (Makefile.am): Support strcasestr.
91369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
91370         * modules/strcasestr-tests (Depends-on): Check for alarm.
91371         * tests/test-strcasestr.c: Augment test.
91372         * lib/str-two-way.h: Clean up stray macro.
91373         * NEWS: Document new module.
91374         * MODULES.html.sh (string handling): Likewise.
91375         * doc/functions/strcasestr.texi: New file.
91376         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
91377         here, since it is not a POSIX function.
91379 2008-01-14  Colin Watson  <cjwatson@debian.org>
91380             Bruno Haible  <bruno@clisp.org>
91382         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
91383         works fine; if not, set REPLACE_STRSIGNAL.
91384         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
91385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91386         REPLACE_STRSIGNAL.
91387         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
91388         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
91389         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
91391 2008-01-14  Bruno Haible  <bruno@clisp.org>
91393         * modules/strsignal (Include): Change to <string.h>.
91395 2008-01-14  Colin Watson  <cjwatson@debian.org>
91397         * modules/argp (Notice): Add a notice recommending to change
91398         XGETTEXT_OPTIONS.
91399         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
91401 2008-01-13  Colin Watson  <cjwatson@debian.org>
91403         * modules/strsignal-tests: New file.
91404         * tests/test-strsignal.c: New file.
91406         * lib/strsignal.c: New file, from glibc with modifications.
91407         * lib/siglist.h: New file, from glibc with modifications.
91408         * lib/string.in.h (strsignal): New declaration.
91409         * m4/strsignal.m4: New file.
91410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91411         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
91412         * modules/strsignal: New file.
91413         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
91414         HAVE_DECL_STRSIGNAL.
91416 2008-01-13  Bruno Haible  <bruno@clisp.org>
91418         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
91419         locale encoding is not ASCII. Needed for OpenBSD 4.0.
91420         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
91421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91423 2008-01-13  Bruno Haible  <bruno@clisp.org>
91425         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
91426         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
91427         * lib/argp.h (__attribute__): Likewise.
91428         * lib/c-stack.c (__attribute__): Likewise.
91429         * lib/error.h (__attribute__): Likewise.
91430         * lib/fts.c (__attribute__): Likewise.
91431         * lib/openat.h (__attribute__): Likewise.
91432         * lib/stdio.in.h (__attribute__): Likewise.
91433         * lib/string.in.h (__attribute__): Likewise.
91434         * lib/utimens.c (__attribute__): Likewise.
91435         * lib/vasnprintf.h (__attribute__): Likewise.
91436         * lib/xalloc.h (__attribute__): Likewise.
91437         * lib/xprintf.h (__attribute__): Likewise.
91438         * lib/xstrtol.h (__attribute__): Likewise.
91439         * lib/xvasprintf.h (__attribute__): Likewise.
91441 2008-01-12  Bruno Haible  <bruno@clisp.org>
91443         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
91444         * doc/glibc-headers/a.out.texi: New file.
91445         * doc/glibc-headers/aliases.texi: New file.
91446         * doc/glibc-headers/alloca.texi: New file.
91447         * doc/glibc-headers/ar.texi: New file.
91448         * doc/glibc-headers/argp.texi: New file.
91449         * doc/glibc-headers/argz.texi: New file.
91450         * doc/glibc-headers/byteswap.texi: New file.
91451         * doc/glibc-headers/crypt.texi: New file.
91452         * doc/glibc-headers/endian.texi: New file.
91453         * doc/glibc-headers/envz.texi: New file.
91454         * doc/glibc-headers/err.texi: New file.
91455         * doc/glibc-headers/error.texi: New file.
91456         * doc/glibc-headers/execinfo.texi: New file.
91457         * doc/glibc-headers/fpu_control.texi: New file.
91458         * doc/glibc-headers/fstab.texi: New file.
91459         * doc/glibc-headers/fts.texi: New file.
91460         * doc/glibc-headers/getopt.texi: New file.
91461         * doc/glibc-headers/ieee754.texi: New file.
91462         * doc/glibc-headers/ifaddrs.texi: New file.
91463         * doc/glibc-headers/libintl.texi: New file.
91464         * doc/glibc-headers/mcheck.texi: New file.
91465         * doc/glibc-headers/mntent.texi: New file.
91466         * doc/glibc-headers/obstack.texi: New file.
91467         * doc/glibc-headers/paths.texi: New file.
91468         * doc/glibc-headers/printf.texi: New file.
91469         * doc/glibc-headers/pty.texi: New file.
91470         * doc/glibc-headers/resolv.texi: New file.
91471         * doc/glibc-headers/shadow.texi: New file.
91472         * doc/glibc-headers/sysexits.texi: New file.
91473         * doc/glibc-headers/ttyent.texi: New file.
91475 2008-01-12  Jim Meyering  <meyering@redhat.com>
91477         announce-gen: emit Gnulib's git-based version string.
91478         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
91479         New option --gnulib-version=V, where V is expected to be
91480         the output of running git describe in the gnulib directory.
91481         (get_tool_versions): Request feedback on xdelta.  I suspect it's
91482         not useful, and plan to stop publishing an xdelta file with each
91483         coreutils release.
91485         * build-aux/announce-gen: Also check for lzma-compressed files.
91487 2008-01-11  Bruno Haible  <bruno@clisp.org>
91489         * tests/test-memmem.c (main): Increase maximum allowed time.
91490         * tests/test-strstr.c (main): Likewise.
91492 2008-01-11  Bruno Haible  <bruno@clisp.org>
91494         * doc/functions/memmem.texi: Add more precisions about platforms.
91495         * doc/functions/strstr.texi: Likewise.
91497 2008-01-10  Eric Blake  <ebb9@byu.net>
91499         * m4/strstr.m4: Delete cruft from copy-n-paste.
91500         Reported by Bruno Haible.
91502 2008-01-10  Bruno Haible  <bruno@clisp.org>
91504         Make c-strstr rely on strstr.
91505         * lib/c-strstr.c: Don't include str-kmp.h.
91506         (c_strstr): Define in terms of strstr.
91507         * modules/c-strstr (Files): Remove lib/str-kmp.h.
91508         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
91510 2008-01-10  Bruno Haible  <bruno@clisp.org>
91512         * doc/gnulib.texi (String Functions in C Locale): New section.
91513         * doc/c-ctype.texi: New file.
91514         * doc/c-strcase.texi: New file.
91515         * doc/c-strcaseeq.texi: New file.
91516         * doc/c-strcasestr.texi: New file.
91517         * doc/c-strstr.texi: New file.
91518         * doc/c-strtod.texi: New file.
91519         * doc/c-strtold.texi: New file.
91521 2008-01-10  Eric Blake  <ebb9@byu.net>
91523         * lib/relocatable.h: Fix a comment.
91525 2008-01-10  Eric Blake  <ebb9@byu.net>
91527         Share two-way algorithm.
91528         * lib/str-two-way.h: New file, merged from...
91529         * lib/memmem.c: ...here...
91530         * lib/strstr.c: ...and here.
91531         * modules/memmem (Files): Use it.
91532         * modules/strstr (Files): Likewise.
91534         Avoid quadratic strstr implementations.
91535         * lib/strstr.c: New file.
91536         * m4/strstr.m4: Likewise.
91537         * modules/strstr: Likewise.
91538         * modules/strstr-tests: Likewise.
91539         * tests/test-strstr.c: Likewise.
91540         * lib/string.in.h (rpl_strstr): Declare.
91541         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
91542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
91543         * modules/string (Makefile.am): Likewise.
91544         * MODULES.html.sh (string handling): Mention new module.
91545         * doc/functions/strstr.texi (strstr): Document the bug.
91547 2008-01-10  Bruno Haible  <bruno@clisp.org>
91549         * lib/relocatable.h (relocate): State whether result is freshly
91550         allocated or not.
91551         * lib/relocatable.c (relocate): Return a freshly allocated string
91552         instead of a pointer to a privately held string.
91553         Reported by Sylvain Beucler <beuc@gnu.org>.
91555 2008-01-10  Colin Watson  <cjwatson@debian.org>
91557         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
91558         s/S_ISNLK/S_ISLNK/.
91560 2008-01-09  Bruno Haible  <bruno@clisp.org>
91562         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
91563         and other files.
91564         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
91565         if it's only a guess.
91566         * modules/memmem: Simplify by depending on memmem-simple.
91568 2008-01-09  Bruno Haible  <bruno@clisp.org>
91570         Work around OpenBSD 4.0 tdelete() bug.
91571         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
91572         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
91573         macros and don't redefine the enum values.
91574         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
91575         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
91576         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
91578 2008-01-09  Bruno Haible  <bruno@clisp.org>
91580         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
91581         (main): Don't perform the tests if setlocale did not install a UTF-8
91582         locale. Needed on OpenBSD 4.0.
91583         * modules/wcwidth-tests (Depends-on): Add localcharset.
91585 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
91587         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
91588         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
91589         * NEWS: announce this.
91590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
91592 2008-01-09  Simon Josefsson  <simon@josefsson.org>
91593         and Eric Blake  <ebb9@byu.net>
91595         Add memmem-simple module.
91596         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
91597         (gl_FUNC_MEMMEM): Separate performance from presence checks.
91598         * modules/memmem-simple: New file.
91599         * modules/memmem (Description): Tweak.
91600         * MODULES.html.sh (string handling): Mention new module.
91601         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
91602         addressed by memmem-simple.
91603         * NEWS: Document the difference.
91605 2008-01-09  Eric Blake  <ebb9@byu.net>
91607         Give gcc some memmem optimization hints.
91608         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
91609         (strcasestr): Declare as pure.
91610         * modules/memmem (Maintainer): Claim my implementation.
91612 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91614         Support AIX 6.1 and higher.
91615         * build-aux/config.libpath: Likewise.
91616         * build-aux/config.rpath: Likewise.
91618 2008-01-08  Jim Meyering  <meyering@redhat.com>
91619             Bruno Haible  <bruno@clisp.org>
91621         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
91622         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
91623         Reported by Peter Fales in
91624         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
91626 2008-01-08  Bruno Haible  <bruno@clisp.org>
91628         * modules/unictype/category-of (Depends-on): Add
91629         unictype/category-none.
91630         * modules/unictype/category-and-tests (Depends-on): Add
91631         unictype/category-{L,N,Lu,Nd}.
91632         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
91633         * modules/unictype/category-or-tests (Depends-on): Add
91634         unictype/category-{L,N}.
91635         * modules/unictype/category-name-tests (Depends-on): Add
91636         unictype/category-{Z,Nl}.
91637         Reported by Simon Josefsson.
91639 2008-01-08  Bruno Haible  <bruno@clisp.org>
91641         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
91642         convention better.
91643         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
91644         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
91645         Reported by Peter Miller <millerp@canb.auug.org.au>.
91647 2008-01-08  Eric Blake  <ebb9@byu.net>
91649         Rewrite memmem to guarantee linear complexity without malloc.
91650         * lib/memmem.c (memmem): Use Two-Way rather than
91651         Knuth-Morris-Pratt, to allow O(1) space usage.
91652         (critical_factorization, two_way_short_needle)
91653         (two_way_long_needle): New functions.
91654         (knuth_morris_pratt): Delete.
91655         * modules/memmem (Depends-on): No longer need malloca or stdbool.
91656         Add stdint.
91657         * tests/test-memmem.c (main): Add tests for periodic needle and
91658         sublinear performance.
91659         * doc/functions/memmem.texi (memmem): Document other deficiencies
91660         in cygwin and older glibc.
91662 2008-01-08  Bruno Haible  <bruno@clisp.org>
91664         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
91665         augmentation.
91667 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
91669         Add a configure time option: --disable-acl.
91670         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
91671         AC_ARG_ENABLE(acl).
91673 2008-01-06  Simon Josefsson  <simon@josefsson.org>
91675         * tests/test-localename.c: Don't include obsolete "setenv.h".
91677         * modules/localename-tests (Depends-on): Need unsetenv.
91679 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91681         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
91683 2008-01-06  Colin Watson  <cjwatson@debian.org>
91685         * users.txt: Add man-db.
91687 2008-01-07  Bruno Haible  <bruno@clisp.org>
91689         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
91690         previous section name.
91692 2008-01-07  Bruno Haible  <bruno@clisp.org>
91694         * lib/progname.c (set_program_name): Don't strip off a leading
91695         "lt-" prefix outside a .libs directory.
91696         Suggested by Paul Eggert.
91698 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
91699             Bruno Haible  <bruno@clisp.org>
91701         Improve memory cleanup in 'relocatable' module.
91702         * lib/relocatable.h (compute_curr_prefix): Change return type to
91703         'char *'.
91704         * lib/relocatable.c (compute_curr_prefix): Change return type to
91705         'char *'. Free curr_installdir after use.
91706         (relocate): Free curr_prefix_better after use.
91707         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
91709 2008-01-01  Bruno Haible  <bruno@clisp.org>
91711         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
91712         failure on older glibc systems.
91713         Reported by Peter Fales <psfales@alcatel-lucent.com>.
91715 2008-01-05  Eric Blake  <ebb9@byu.net>
91717         Avoid quadratic system memmem.
91718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
91719         Reported by Ralf Wildenhues.
91721         Fix memmem test for mingw.
91722         * modules/memmem-tests (configure.ac): Check for alarm.
91723         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
91724         it.
91725         * doc/functions/memmem.texi: New file.
91726         * doc/gnulib.texi (Function Substitutes): Add memmem.
91727         Reported by Bruno Haible.
91729 2008-01-04  Bruno Haible  <bruno@clisp.org>
91731         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
91732         Require gl_HEADER_STRINGS_H_DEFAULTS, not
91733         gl_HEADER_STRING_H_DEFAULTS.
91735 2008-01-04  Eric Blake  <ebb9@byu.net>
91737         Shorten duration of memmem test.
91738         * tests/test-memmem.c (main): Use alarm to declare failure if test
91739         is taking too long.
91740         Reported by Ralf Wildenhues.
91742 2007-12-21  Simon Josefsson  <simon@josefsson.org>
91744         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
91745         string, needed by strerror.
91747 2008-01-03  Colin Watson  <cjwatson@debian.org>
91748             Bruno Haible  <bruno@clisp.org>
91750         * doc/gnulib-tool.texi (Localization): New section.
91752 2008-01-02  Bruno Haible  <bruno@clisp.org>
91754         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
91755         variables to 'unsigned char *' type.
91756         Reported by Paul Eggert.
91758 2008-01-02  Jim Meyering  <jim@meyering.net>
91760         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
91762 2007-12-31  Jim Meyering  <jim@meyering.net>
91764         Avoid use of private FTS type name.
91765         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
91767 2007-12-30  Karl Berry  <karl@gnu.org>
91769         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
91770         work around defect in Texinfo and/or the standalone Info browser.
91772 2007-12-30  Bruno Haible  <bruno@clisp.org>
91774         Unify 5 copies of the KMP code.
91775         * lib/str-kmp.h: New file.
91776         * lib/c-strcasestr.c: Include str-kmp.h.
91777         (knuth_morris_pratt): Remove function.
91778         (c_strcasestr): Update.
91779         * lib/c-strstr.c: Include str-kmp.h.
91780         (knuth_morris_pratt): Remove function.
91781         (c_strcasestr): Update.
91782         * lib/mbscasestr.c: Include str-kmp.h.
91783         (knuth_morris_pratt_unibyte): Remove function.
91784         * lib/mbsstr.c: Include str-kmp.h.
91785         (knuth_morris_pratt_unibyte): Remove function.
91786         * lib/strcasestr.c: Include str-kmp.h.
91787         (knuth_morris_pratt): Remove function.
91788         (strcasestr): Update.
91789         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
91790         * modules/c-strstr (Files): Likewise.
91791         * modules/mbscasestr (Files): Likewise.
91792         * modules/mbsstr (Files): Likewise.
91793         * modules/strcasestr (Files): Likewise.
91794         Suggested by Paul Eggert.
91796 2007-12-30  Bruno Haible  <bruno@clisp.org>
91798         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
91799         defined.
91801 2007-12-30  Bruno Haible  <bruno@clisp.org>
91803         * lib/xmalloca.h: Include xalloc.h.
91804         (xnmalloca): New macro.
91806 2007-12-30  Bruno Haible  <bruno@clisp.org>
91808         * lib/malloca.h (nmalloca): New macro.
91809         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
91810         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
91811         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
91812         knuth_morris_pratt_multibyte): Likewise.
91813         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
91814         knuth_morris_pratt_multibyte): Likewise.
91815         * lib/memmem.c (knuth_morris_pratt): Likewise.
91816         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
91818 2007-12-25  Bruno Haible  <bruno@clisp.org>
91820         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
91821         * lib/glob.c: Don't include openat.h.
91822         (link_exists2_p): Add back the code that deals with the
91823         !GLOB_ALTDIRFUNC case.
91824         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
91825         let it do the filename concatenation.
91826         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
91827         * modules/glob (Depends-on): Remove openat.
91829 2007-12-31  Bruno Haible  <bruno@clisp.org>
91831         * modules/dirfd (License): Change to LGPLv2+.
91832         Approved by Jim Meyering.
91834 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
91836         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
91837         when multiplying M by sizeof (size_t).
91839 2007-12-10  Martin Lambers  <marlam@marlam.de>
91841         Override getpagesize on mingw.
91842         * lib/getpagesize.c: New file.
91843         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
91844         * modules/getpagesize (Files): Add lib/getpagesize.c.
91845         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
91846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91847         REPLACE_GETPAGESIZE.
91848         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
91850 2007-12-25  Bruno Haible  <bruno@clisp.org>
91852         * modules/localcharset (Notice): New field.
91853         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
91854         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
91856 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
91857             Bruno Haible  <bruno@clisp.org>
91859         Avoid using the syntax symbol() in formatted documentation.
91860         * MODULES.html.sh (func_module): When replacing symbol() with a
91861         hyperlink, remove the parentheses. Show an error if some remain.
91862         Recognize and render the '...' syntax.
91863         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
91864         Rework. Add paragraph about GCC's inlining.
91865         * doc/alloca.texi: Likewise.
91866         * doc/error.texi: Remove parentheses from symbol reference.
91867         * doc/gnulib-intro.texi: Likewise.
91868         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
91869         * modules/fnmatch (Description): Reword to say "the ... function".
91870         * modules/full-read (Description): Likewise.
91871         * modules/full-write (Description): Likewise.
91872         * modules/safe-read (Description): Likewise.
91873         * modules/safe-write (Description): Likewise.
91874         * modules/strchrnul (Description): Likewise.
91875         * modules/trim (Description): Likewise.
91876         * modules/error (Description): Remove parentheses from symbol
91877         references.
91878         * modules/verror (Description): Likewise.
91879         Reported by Karl Berry.
91881 2007-12-25  Bruno Haible  <bruno@clisp.org>
91883         Fixup after 2007-10-16 commit.
91884         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
91886 2007-12-24  Bruno Haible  <bruno@clisp.org>
91888         Make --enable-relocatable work with DESTDIR.
91889         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
91890         to compute installdir from destprog.
91891         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
91892         also set the RELOC_DESTDIR variable.
91893         Reported by Левашев Иван <octagram@bluebottle.com>.
91895 2007-12-24  Bruno Haible  <bruno@clisp.org>
91897         Fix link error due to xalloc_die().
91898         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
91899         of xreadlink.
91900         * lib/relocwrapper.c: Update comments.
91901         * build-aux/install-reloc: Remove xreadlink.c from file list.
91902         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
91903         xreadlink.c.
91904         Reported by Левашев Иван <octagram@bluebottle.com>.
91906 2007-12-24  Bruno Haible  <bruno@clisp.org>
91908         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
91909         * lib/setenv.h: Remove file.
91910         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
91911         lib/setenv.h.
91912         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
91913         (Depends-on): Add stdlib.
91914         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
91915         gl_FUNC_UNSETENV.
91916         (Include): Replace setenv.h with <stdlib.h>.
91917         * modules/unsetenv: New file.
91918         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
91919         * lib/unsetenv.c: Include <stdlib.h> first.
91920         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
91921         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
91922         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
91923         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
91924         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
91925         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
91926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
91927         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
91928         * doc/functions/unsetenv.texi: Update.
91929         * modules/xsetenv (Depends-on): Add unsetenv.
91930         * modules/getdate (Depends-on): Likewise.
91931         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
91932         * lib/xsetenv.c: Don't include setenv.h.
91933         * lib/getdate.y: Likewise.
91934         * lib/relocwrapper.c: Likewise.
91935         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
91936         (Depends-on): Add stdlib.
91937         * NEWS: Mention the changes.
91938         Reported by Левашев Иван <octagram@bluebottle.com>.
91940 2007-12-23  Bruno Haible  <bruno@clisp.org>
91942         * lib/memmem.c (memmem): Use lowercase variable names. Tab
91943         indentation.
91945 2007-12-23  Bruno Haible  <bruno@clisp.org>
91947         * lib/c-strcasestr.c: Add more comments.
91948         * lib/c-strstr.c: Likewise.
91949         * lib/mbscasestr.c: Likewise.
91950         * lib/mbsstr.c: Likewise.
91951         * lib/strcasestr.c: Likewise.
91952         * lib/memmem.c: Likewise.
91954 2007-12-23  Bruno Haible  <bruno@clisp.org>
91956         * tests/test-memmem.c: Include <string.h> first.
91958 2007-12-22  Bruno Haible  <bruno@clisp.org>
91960         * gnulib-tool (func_create_testdir): Change $auxdir while generating
91961         the contents of $testsbase.
91962         Reported by Ralf Wildenhues.
91964 2007-12-22  Bruno Haible  <bruno@clisp.org>
91966         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
91967         two variables local_ldadd_before, local_ldadd_last.
91969 2007-12-20  Eric Blake  <ebb9@byu.net>
91971         Work around circular library issue when cross-compiling.
91972         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
91973         that progname.o does not need to pull in rpl_memcmp.
91975 2007-12-19  Eric Blake  <ebb9@byu.net>
91977         Fix memmem to avoid O(n^2) worst-case complexity.
91978         * lib/memmem.c (knuth_morris_pratt): New function.
91979         (memmem): Use it if first few naive iterations fail.
91980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
91981         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
91982         * modules/memchr (License): Likewise.
91983         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
91984         malloca.
91985         * tests/test-memmem.c: Rewrite, borrowing ideas from
91986         test-mbsstr1.c; the old version wouldn't even compile!
91987         * modules/memmem-tests: New file.
91988         * lib/string.in.h (rpl_memmem): Add declaration.
91989         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
91990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
91991         REPLACE_MEMMEM.
91993 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
91995         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
91996         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
91997         before any system include files, and undef after them all.  This
91998         should fix a problem on VMS reported by John E. Malmberg in
91999         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
92001 2007-12-17  Eric Blake  <ebb9@byu.net>
92003         Revert addition of verify, for BSD/OS.
92004         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
92005         can't handle large files, for the sake of obsolete platforms.
92006         * modules/fseeko (Depends-on): Remove verify.
92007         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
92008         * doc/functions/ftello.texi (ftello): Likewise.
92009         * doc/functions/fgetpos.texi (fgetpos): Likewise.
92010         Reported by Larry Jones.
92012 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
92014         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
92015         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
92017 2007-12-17  Jim Meyering  <meyering@redhat.com>
92019         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
92020         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
92021         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
92022         * modules/getcwd (Depends-on): Add openat.
92023         Reported by Petr Salinger.
92025 2007-12-17  Bruno Haible  <bruno@clisp.org>
92027         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
92028         avoid a segmentation fault of the configure test on x86_64 systems.
92030 2007-12-15  Jim Meyering  <meyering@redhat.com>
92032         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
92034 2007-12-13  Eric Blake  <ebb9@byu.net>
92036         Another fseek test.
92037         * tests/test-fseek.c (main): Also test ungetc handling.
92038         * tests/test-fseeko.c (main): Likewise.
92039         * modules/fseeko (Depends-on): Add verify.
92040         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
92041         large.
92042         Reported by Larry Jones.
92044         Fix fseeko on mingw.
92045         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
92046         seek.
92048         Beef up fseek tests.
92049         * tests/test-fseek.c (main): Also test eof handling.
92050         * tests/test-fseeko.c (main): Likewise.
92051         Reported by Larry Jones.
92053 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
92055         Fix fseeko on BSD-based platforms.
92056         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
92057         successful seek.
92059 2007-12-12  Eric Blake  <ebb9@byu.net>
92061         Allow circular dependency of separate libtests.a
92062         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
92063         when use_libtests.
92065 2007-12-11  Eric Blake  <ebb9@byu.net>
92067         Fix bug with -0.0L in previous patch.
92068         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
92069         * tests/test-isnan.c (main): Also test on zeroes.
92070         * tests/test-isnanf.c (main): Likewise.
92071         * tests/test-isnanl.h (main): Likewise.
92073         Detect pseudo-denormals on x86 even when cross-compiling.
92074         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
92075         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
92076         invalid bit patterns that happen to satisfy ==.
92078         Avoid link failures with separate libtests.a.
92079         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
92080         last, to satisfy circular dependencies.
92082 2007-12-11  Eric Blake  <ebb9@byu.net>
92083         and Bruno Haible  <bruno@clisp.org>
92085         Fix OpenBSD 4.0 <float.h> handling of long double.
92086         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
92087         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
92088         * doc/headers/float.texi (float.h): Document OpenBSD bug.
92090 2007-12-11  Jim Meyering  <meyering@redhat.com>
92092         * users.txt: Add libvirt.
92094         Support versions of autoconf prior to 2.59c.
92095         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
92096         if it is not already defined.
92098 2007-12-09  Bruno Haible  <bruno@clisp.org>
92100         Let 'gnulib-tool --import' collect sources needed for the tests in
92101         tests/ rather than in lib/.
92102         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
92103         argument. If true, add rules to generate libtests.a, and put libtests.a
92104         into $(LDADD). Consider source files in subdirectories and set
92105         uses_subdirs.
92106         (func_emit_initmacro_start, func_emit_initmacro_end,
92107         func_emit_initmacro_done): Pass all arguments explicitly.
92108         (func_import): Determine two module lists main_modules,
92109         testsrelated_modules. Determine use_libtests. Determine two variables
92110         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
92111         instead of just sed_transform_lib_file. Determine two variables
92112         main_files and testsrelated_files. Compute 'files' as the union of
92113         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
92114         func_add_or_update. In the generated gnulib-comp.m4, collect the
92115         object files for tests/ in different variables than those for lib/.
92116         Substitute LIBTESTS_LIBDEPS.
92117         (func_create_testdir): Combine the uses_subdirs results from
92118         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
92120 2007-12-09  Bruno Haible  <bruno@clisp.org>
92122         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
92123         the build-aux directory.
92125 2007-12-09  Bruno Haible  <bruno@clisp.org>
92127         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
92128         introduced on 2006-09-09.
92130 2007-12-07  Jim Meyering  <meyering@redhat.com>
92132         Let these macros work also with autoconf-2.59.
92133         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
92134         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
92135         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
92137 2007-12-06  Jim Meyering  <meyering@redhat.com>
92139         Avoid a configure-time syntax error in gl_FUNC_ACL.
92140         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
92141         function in each branch, before testing the cache variable.
92143 2007-12-04  Eric Blake  <ebb9@byu.net>
92145         Make scripts executable.
92146         * build-aux/config.guess: Add execute permissions.
92147         * build-aux/config.sub: Likewise.
92148         * build-aux/gendocs.sh: Likewise.
92150         Fix frexp on mingw.
92151         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
92152         cross-compiling.
92153         * doc/functions/frexp.texi (frexp): Document the bug.
92155         Make cygwin fseeko check more reliable.
92156         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
92157         version numbers, rather than unrelated feature check.
92158         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
92159         * doc/functions/ftello.texi (ftello): Likewise.
92160         Reported by Bruno Haible.
92162         * m4/strerror.m4: Bump version number.
92164 2007-12-03  Bruno Haible  <bruno@clisp.org>
92166         * doc/functions/mprotect.texi: Mention the mingw problem.
92168 2007-12-03  Eric Blake  <ebb9@byu.net>
92170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
92171         REPLACE_STRERROR is initialized before this macro.
92173 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92175         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
92176         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
92177         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
92178         put -lsec in even for programs other than 'ls'.  This fixes a problem
92179         for gettext reported by Bruno Haible in
92180         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
92181         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
92182         Add support for Solaris 10.  This isn't efficient, but should get the
92183         job done for now.
92185 2007-12-03  James Youngman  <jay@gnu.org>
92187         * doc/regexprops-generic.texi: change "an close-group" to "a
92188         close-group" and "illegal" to "not allowed".
92190 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92192         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
92193         pr_byname.h. Needed for the rare case when the maintainer has done
92194         "make maintainer-clean" in the source directory and then attempts a
92195         build outside the source directory.
92196         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
92197         scripts_byname.h.
92199 2007-12-02  Martin Lambers  <marlam@marlam.de>
92200             Bruno Haible  <bruno@clisp.org>
92202         * lib/getpagesize.h: Remove file.
92203         * lib/unistd.in.h: Include declaration of getpagesize here.
92204         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
92205         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
92206         HAVE_SYS_PARAM_H.
92207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
92208         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
92209         * modules/getpagesize (Files): Remove lib/getpagesize.h.
92210         (Depends-on): Add unistd.
92211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92212         (Include): Use <unistd.h> instead of getpagesize.h.
92213         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
92214         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
92215         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
92216         gl_GETPAGESIZE invocation, already handled by module dependency.
92217         * lib/pagealign_alloc.c: Don't include getpagesize.h.
92219 2007-12-02  Bruno Haible  <bruno@clisp.org>
92221         * modules/strings-tests: New file.
92222         * tests/test-strings.c: New file.
92224         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
92225         * lib/strings.in.h: New file.
92226         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
92227         * m4/strings_h.m4: New file.
92228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
92229         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
92230         * modules/strings: New file.
92231         * modules/string (Makefile.am): Update.
92232         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
92233         Reported by Karl Berry.
92235 2007-12-01  Eric Blake  <ebb9@byu.net>
92237         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
92238         accommodate fix in cygwin 1.5.25.
92240 2007-12-01  Jim Meyering  <meyering@redhat.com>
92242         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
92243         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
92244         that would inhibit utf8-optimization of a regexp containing line-
92245         or buffer-anchors, e.g., `^', `$'.
92247 2007-11-30  Bruno Haible  <bruno@clisp.org>
92249         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
92250         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
92251         glthread_recursive_lock_init.
92252         * lib/lock.c (glthread_recursive_lock_init)
92253         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
92254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92256 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
92258         New function qset_acl, like set_acl but with syscall semantics.
92259         * lib/acl.h (qset_acl): New decl.
92260         * lib/acl.c (qset_acl): New function.
92261         (set_acl): Use new function.  Use more-consistent diagnostics.
92263 2007-11-28  Jim Meyering  <meyering@redhat.com>
92265         * modules/physmem (License): Change from GPL to LGPLv2+.
92267 2007-11-26  Bruno Haible  <bruno@clisp.org>
92269         * lib/vasnprintf.c (decode_long_double): Don't abort if the
92270         'long double' type has excess precision.
92271         Reported by Jim Meyering in
92272         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
92274 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92276         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
92277         Sync from <http://gnu.org/licenses>.
92278         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
92279         with license text from same location.
92280         * doc/maintain.texi, doc/standards.texi:  Sync from
92281         <http://savannah.gnu.org/projects/gnustandards>.
92283 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
92284         and Jim Meyering  <meyering@redhat.com>
92286         Adjust getdate' grammar to accept a slightly more regular language.
92287         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
92288         Before, the former was rejected.
92289         * lib/getdate.y (digits_to_date_time): New function, factored
92290         out of ...
92291         (number): ...here.  Just call digits_to_date_time.
92292         (hybrid): New non-terminal to handle an <unsigned number,
92293         signed relative offset> sequence consistently.
92295 2007-11-18  Jim Meyering  <meyering@redhat.com>
92297         Pull my changes from coreutils:
92298         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
92299         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
92300         use of $gnulib_tool_option_extras, so that it's separated from the
92301         preceding argument.
92303         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
92304         * build-aux/bootstrap (cp_mark_as_generated): Create any required
92305         parent destination directories before copying a file into place.
92307 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
92309         bootstrap: work also with 4-argument variant of AC_INIT
92310         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
92312 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92314         Port test-getaddrinfo to Solaris.
92315         Problem reported by Bruno Haible in
92316         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
92317         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
92318         explanation of setting 'hints'.
92319         Don't reject an implementation merely because it returns EAI_SERVICE.
92320         (EAI_SERVICE): Define to 0 if not defined.
92322 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
92324         The license of gnu-make and posix-shell is now "GPLed build tool".
92325         * modules/gnu-make (License): Likewise.
92326         * modules/posix-shell (License): Likewise.
92328         New module posix-shell, for determining a POSIX shell
92329         or perhaps something that is close enough to a POSIX shell.
92330         * m4/posix-shell.m4: New file.
92331         * modules/posix-shell: New file.
92333         * MODULES.html.sh: Mention new module.
92335         New module gnu-make, for determining whether we're using GNU Make.
92336         * m4/gnu-make.m4: New file.
92337         * modules/gnu-make: New file.
92338         * MODULES.html.sh: Mention new module.
92340 2007-11-14  Jim Meyering  <meyering@redhat.com>
92342         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
92343         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
92344         use this macro to create a function _definition_.
92345         Remove useless "#undef ARGMATCH_DIE".
92347 2007-11-14  Bruno Haible  <bruno@clisp.org>
92349         * lib/config.charset: Update for OpenBSD 4.1.
92350         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
92352 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
92354         Document 64-bit #if problems in stdint.texi.
92355         * doc/headers/stdint.texi (stdint.h): Mention problems with
92356         64-bit-#if, and how to work around them.
92358         Don't insist on 'long long int' support in the preprocessor.  It
92359         breaks too many things.  For example, PRIdMAX still uses a 'long
92360         long int' format with the latest Sun compiler, even though
92361         HAVE_LONG_LONG_INT isn't defined due to that compiler's
92362         preprocessor problem.  This causes the latest coreutils to dump
92363         core on Solaris 10 sparc with the Sun C compiler.
92364         Instead, fix the 2007-10-16 problem in a different way, by evaluating
92365         the troublesome expressions at configure-time, not at #if-time.
92366         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
92367         preprocessor.
92368         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
92369         compile-time C checks, done at 'configure'-time.
92370         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
92371         * modules/inttypes (Makefile): Substitute the new symbols that
92372         gl_INTTYPES_H now generates.
92373         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
92375 2007-11-12  Bruno Haible  <bruno@clisp.org>
92377         Tests for Unicode character classification functions.
92379         * modules/unictype/bidicategory-byname-tests: New file.
92380         * modules/unictype/bidicategory-name-tests: New file.
92381         * modules/unictype/bidicategory-of-tests: New file.
92382         * modules/unictype/bidicategory-test-tests: New file.
92383         * modules/unictype/block-list-tests: New file.
92384         * modules/unictype/block-of-tests: New file.
92385         * modules/unictype/block-test-tests: New file.
92386         * modules/unictype/category-C-tests: New file.
92387         * modules/unictype/category-Cc-tests: New file.
92388         * modules/unictype/category-Cf-tests: New file.
92389         * modules/unictype/category-Cn-tests: New file.
92390         * modules/unictype/category-Co-tests: New file.
92391         * modules/unictype/category-Cs-tests: New file.
92392         * modules/unictype/category-L-tests: New file.
92393         * modules/unictype/category-Ll-tests: New file.
92394         * modules/unictype/category-Lm-tests: New file.
92395         * modules/unictype/category-Lo-tests: New file.
92396         * modules/unictype/category-Lt-tests: New file.
92397         * modules/unictype/category-Lu-tests: New file.
92398         * modules/unictype/category-M-tests: New file.
92399         * modules/unictype/category-Mc-tests: New file.
92400         * modules/unictype/category-Me-tests: New file.
92401         * modules/unictype/category-Mn-tests: New file.
92402         * modules/unictype/category-N-tests: New file.
92403         * modules/unictype/category-Nd-tests: New file.
92404         * modules/unictype/category-Nl-tests: New file.
92405         * modules/unictype/category-No-tests: New file.
92406         * modules/unictype/category-P-tests: New file.
92407         * modules/unictype/category-Pc-tests: New file.
92408         * modules/unictype/category-Pd-tests: New file.
92409         * modules/unictype/category-Pe-tests: New file.
92410         * modules/unictype/category-Pf-tests: New file.
92411         * modules/unictype/category-Pi-tests: New file.
92412         * modules/unictype/category-Po-tests: New file.
92413         * modules/unictype/category-Ps-tests: New file.
92414         * modules/unictype/category-S-tests: New file.
92415         * modules/unictype/category-Sc-tests: New file.
92416         * modules/unictype/category-Sk-tests: New file.
92417         * modules/unictype/category-Sm-tests: New file.
92418         * modules/unictype/category-So-tests: New file.
92419         * modules/unictype/category-Z-tests: New file.
92420         * modules/unictype/category-Zl-tests: New file.
92421         * modules/unictype/category-Zp-tests: New file.
92422         * modules/unictype/category-Zs-tests: New file.
92423         * modules/unictype/category-and-not-tests: New file.
92424         * modules/unictype/category-and-tests: New file.
92425         * modules/unictype/category-byname-tests: New file.
92426         * modules/unictype/category-name-tests: New file.
92427         * modules/unictype/category-none-tests: New file.
92428         * modules/unictype/category-of-tests: New file.
92429         * modules/unictype/category-or-tests: New file.
92430         * modules/unictype/category-test-withtable-tests: New file.
92431         * modules/unictype/combining-class-tests: New file.
92432         * modules/unictype/ctype-alnum-tests: New file.
92433         * modules/unictype/ctype-alpha-tests: New file.
92434         * modules/unictype/ctype-blank-tests: New file.
92435         * modules/unictype/ctype-cntrl-tests: New file.
92436         * modules/unictype/ctype-digit-tests: New file.
92437         * modules/unictype/ctype-graph-tests: New file.
92438         * modules/unictype/ctype-lower-tests: New file.
92439         * modules/unictype/ctype-print-tests: New file.
92440         * modules/unictype/ctype-punct-tests: New file.
92441         * modules/unictype/ctype-space-tests: New file.
92442         * modules/unictype/ctype-upper-tests: New file.
92443         * modules/unictype/ctype-xdigit-tests: New file.
92444         * modules/unictype/decimal-digit-tests: New file.
92445         * modules/unictype/digit-tests: New file.
92446         * modules/unictype/mirror-tests: New file.
92447         * modules/unictype/numeric-tests: New file.
92448         * modules/unictype/property-alphabetic-tests: New file.
92449         * modules/unictype/property-ascii-hex-digit-tests: New file.
92450         * modules/unictype/property-bidi-arabic-digit-tests: New file.
92451         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
92452         * modules/unictype/property-bidi-block-separator-tests: New file.
92453         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
92454         * modules/unictype/property-bidi-common-separator-tests: New file.
92455         * modules/unictype/property-bidi-control-tests: New file.
92456         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
92457         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
92458         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
92459         * modules/unictype/property-bidi-european-digit-tests: New file.
92460         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
92461         * modules/unictype/property-bidi-left-to-right-tests: New file.
92462         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
92463         * modules/unictype/property-bidi-other-neutral-tests: New file.
92464         * modules/unictype/property-bidi-pdf-tests: New file.
92465         * modules/unictype/property-bidi-segment-separator-tests: New file.
92466         * modules/unictype/property-bidi-whitespace-tests: New file.
92467         * modules/unictype/property-byname-tests: New file.
92468         * modules/unictype/property-combining-tests: New file.
92469         * modules/unictype/property-composite-tests: New file.
92470         * modules/unictype/property-currency-symbol-tests: New file.
92471         * modules/unictype/property-dash-tests: New file.
92472         * modules/unictype/property-decimal-digit-tests: New file.
92473         * modules/unictype/property-default-ignorable-code-point-tests: New file.
92474         * modules/unictype/property-deprecated-tests: New file.
92475         * modules/unictype/property-diacritic-tests: New file.
92476         * modules/unictype/property-extender-tests: New file.
92477         * modules/unictype/property-format-control-tests: New file.
92478         * modules/unictype/property-grapheme-base-tests: New file.
92479         * modules/unictype/property-grapheme-extend-tests: New file.
92480         * modules/unictype/property-grapheme-link-tests: New file.
92481         * modules/unictype/property-hex-digit-tests: New file.
92482         * modules/unictype/property-hyphen-tests: New file.
92483         * modules/unictype/property-id-continue-tests: New file.
92484         * modules/unictype/property-id-start-tests: New file.
92485         * modules/unictype/property-ideographic-tests: New file.
92486         * modules/unictype/property-ids-binary-operator-tests: New file.
92487         * modules/unictype/property-ids-trinary-operator-tests: New file.
92488         * modules/unictype/property-ignorable-control-tests: New file.
92489         * modules/unictype/property-iso-control-tests: New file.
92490         * modules/unictype/property-join-control-tests: New file.
92491         * modules/unictype/property-left-of-pair-tests: New file.
92492         * modules/unictype/property-line-separator-tests: New file.
92493         * modules/unictype/property-logical-order-exception-tests: New file.
92494         * modules/unictype/property-lowercase-tests: New file.
92495         * modules/unictype/property-math-tests: New file.
92496         * modules/unictype/property-non-break-tests: New file.
92497         * modules/unictype/property-not-a-character-tests: New file.
92498         * modules/unictype/property-numeric-tests: New file.
92499         * modules/unictype/property-other-alphabetic-tests: New file.
92500         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
92501         * modules/unictype/property-other-grapheme-extend-tests: New file.
92502         * modules/unictype/property-other-id-continue-tests: New file.
92503         * modules/unictype/property-other-id-start-tests: New file.
92504         * modules/unictype/property-other-lowercase-tests: New file.
92505         * modules/unictype/property-other-math-tests: New file.
92506         * modules/unictype/property-other-uppercase-tests: New file.
92507         * modules/unictype/property-paired-punctuation-tests: New file.
92508         * modules/unictype/property-paragraph-separator-tests: New file.
92509         * modules/unictype/property-pattern-syntax-tests: New file.
92510         * modules/unictype/property-pattern-white-space-tests: New file.
92511         * modules/unictype/property-private-use-tests: New file.
92512         * modules/unictype/property-punctuation-tests: New file.
92513         * modules/unictype/property-quotation-mark-tests: New file.
92514         * modules/unictype/property-radical-tests: New file.
92515         * modules/unictype/property-sentence-terminal-tests: New file.
92516         * modules/unictype/property-soft-dotted-tests: New file.
92517         * modules/unictype/property-space-tests: New file.
92518         * modules/unictype/property-terminal-punctuation-tests: New file.
92519         * modules/unictype/property-test-tests: New file.
92520         * modules/unictype/property-titlecase-tests: New file.
92521         * modules/unictype/property-unassigned-code-value-tests: New file.
92522         * modules/unictype/property-unified-ideograph-tests: New file.
92523         * modules/unictype/property-uppercase-tests: New file.
92524         * modules/unictype/property-variation-selector-tests: New file.
92525         * modules/unictype/property-white-space-tests: New file.
92526         * modules/unictype/property-xid-continue-tests: New file.
92527         * modules/unictype/property-xid-start-tests: New file.
92528         * modules/unictype/property-zero-width-tests: New file.
92529         * modules/unictype/scripts-tests: New file.
92530         * modules/unictype/syntax-c-ident-tests: New file.
92531         * modules/unictype/syntax-c-whitespace-tests: New file.
92532         * modules/unictype/syntax-java-ident-tests: New file.
92533         * modules/unictype/syntax-java-whitespace-tests: New file.
92534         * tests/unictype/test-bidi_byname.c: New file.
92535         * tests/unictype/test-bidi_name.c: New file.
92536         * tests/unictype/test-bidi_of.c: New file.
92537         * tests/unictype/test-bidi_test.c: New file.
92538         * tests/unictype/test-block_list.c: New file.
92539         * tests/unictype/test-block_of.c: New file.
92540         * tests/unictype/test-block_test.c: New file.
92541         * tests/unictype/test-categ_and.c: New file.
92542         * tests/unictype/test-categ_and_not.c: New file.
92543         * tests/unictype/test-categ_byname.c: New file.
92544         * tests/unictype/test-categ_name.c: New file.
92545         * tests/unictype/test-categ_none.c: New file.
92546         * tests/unictype/test-categ_of.c: New file.
92547         * tests/unictype/test-categ_or.c: New file.
92548         * tests/unictype/test-categ_test_withtable.c: New file.
92549         * tests/unictype/test-combining.c: New file.
92550         * tests/unictype/test-decdigit.c: New file.
92551         * tests/unictype/test-digit.c: New file.
92552         * tests/unictype/test-mirror.c: New file.
92553         * tests/unictype/test-numeric.c: New file.
92554         * tests/unictype/test-pr_byname.c: New file.
92555         * tests/unictype/test-pr_test.c: New file.
92556         * tests/unictype/test-predicate-part1.h: New file.
92557         * tests/unictype/test-predicate-part2.h: New file.
92558         * tests/unictype/test-scripts.c: New file.
92559         * tests/unictype/test-sy_c_ident.c: New file.
92560         * tests/unictype/test-sy_java_ident.c: New file.
92562         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
92563         for Unicode 5.0.0.
92564         * tests/unictype/test-categ_Cc.c: Likewise.
92565         * tests/unictype/test-categ_Cf.c: Likewise.
92566         * tests/unictype/test-categ_Cn.c: Likewise.
92567         * tests/unictype/test-categ_Co.c: Likewise.
92568         * tests/unictype/test-categ_Cs.c: Likewise.
92569         * tests/unictype/test-categ_L.c: Likewise.
92570         * tests/unictype/test-categ_Ll.c: Likewise.
92571         * tests/unictype/test-categ_Lm.c: Likewise.
92572         * tests/unictype/test-categ_Lo.c: Likewise.
92573         * tests/unictype/test-categ_Lt.c: Likewise.
92574         * tests/unictype/test-categ_Lu.c: Likewise.
92575         * tests/unictype/test-categ_M.c: Likewise.
92576         * tests/unictype/test-categ_Mc.c: Likewise.
92577         * tests/unictype/test-categ_Me.c: Likewise.
92578         * tests/unictype/test-categ_Mn.c: Likewise.
92579         * tests/unictype/test-categ_N.c: Likewise.
92580         * tests/unictype/test-categ_Nd.c: Likewise.
92581         * tests/unictype/test-categ_Nl.c: Likewise.
92582         * tests/unictype/test-categ_No.c: Likewise.
92583         * tests/unictype/test-categ_P.c: Likewise.
92584         * tests/unictype/test-categ_Pc.c: Likewise.
92585         * tests/unictype/test-categ_Pd.c: Likewise.
92586         * tests/unictype/test-categ_Pe.c: Likewise.
92587         * tests/unictype/test-categ_Pf.c: Likewise.
92588         * tests/unictype/test-categ_Pi.c: Likewise.
92589         * tests/unictype/test-categ_Po.c: Likewise.
92590         * tests/unictype/test-categ_Ps.c: Likewise.
92591         * tests/unictype/test-categ_S.c: Likewise.
92592         * tests/unictype/test-categ_Sc.c: Likewise.
92593         * tests/unictype/test-categ_Sk.c: Likewise.
92594         * tests/unictype/test-categ_Sm.c: Likewise.
92595         * tests/unictype/test-categ_So.c: Likewise.
92596         * tests/unictype/test-categ_Z.c: Likewise.
92597         * tests/unictype/test-categ_Zl.c: Likewise.
92598         * tests/unictype/test-categ_Zp.c: Likewise.
92599         * tests/unictype/test-categ_Zs.c: Likewise.
92600         * tests/unictype/test-ctype_alnum.c: Likewise.
92601         * tests/unictype/test-ctype_alpha.c: Likewise.
92602         * tests/unictype/test-ctype_blank.c: Likewise.
92603         * tests/unictype/test-ctype_cntrl.c: Likewise.
92604         * tests/unictype/test-ctype_digit.c: Likewise.
92605         * tests/unictype/test-ctype_graph.c: Likewise.
92606         * tests/unictype/test-ctype_lower.c: Likewise.
92607         * tests/unictype/test-ctype_print.c: Likewise.
92608         * tests/unictype/test-ctype_punct.c: Likewise.
92609         * tests/unictype/test-ctype_space.c: Likewise.
92610         * tests/unictype/test-ctype_upper.c: Likewise.
92611         * tests/unictype/test-ctype_xdigit.c: Likewise.
92612         * tests/unictype/test-decdigit.h: Likewise.
92613         * tests/unictype/test-digit.h: Likewise.
92614         * tests/unictype/test-numeric.h: Likewise.
92615         * tests/unictype/test-pr_alphabetic.c: Likewise.
92616         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
92617         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
92618         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
92619         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
92620         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
92621         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
92622         * tests/unictype/test-pr_bidi_control.c: Likewise.
92623         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
92624         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
92625         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
92626         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
92627         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
92628         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
92629         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
92630         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
92631         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
92632         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
92633         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
92634         * tests/unictype/test-pr_combining.c: Likewise.
92635         * tests/unictype/test-pr_composite.c: Likewise.
92636         * tests/unictype/test-pr_currency_symbol.c: Likewise.
92637         * tests/unictype/test-pr_dash.c: Likewise.
92638         * tests/unictype/test-pr_decimal_digit.c: Likewise.
92639         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
92640         * tests/unictype/test-pr_deprecated.c: Likewise.
92641         * tests/unictype/test-pr_diacritic.c: Likewise.
92642         * tests/unictype/test-pr_extender.c: Likewise.
92643         * tests/unictype/test-pr_format_control.c: Likewise.
92644         * tests/unictype/test-pr_grapheme_base.c: Likewise.
92645         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
92646         * tests/unictype/test-pr_grapheme_link.c: Likewise.
92647         * tests/unictype/test-pr_hex_digit.c: Likewise.
92648         * tests/unictype/test-pr_hyphen.c: Likewise.
92649         * tests/unictype/test-pr_id_continue.c: Likewise.
92650         * tests/unictype/test-pr_id_start.c: Likewise.
92651         * tests/unictype/test-pr_ideographic.c: Likewise.
92652         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
92653         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
92654         * tests/unictype/test-pr_ignorable_control.c: Likewise.
92655         * tests/unictype/test-pr_iso_control.c: Likewise.
92656         * tests/unictype/test-pr_join_control.c: Likewise.
92657         * tests/unictype/test-pr_left_of_pair.c: Likewise.
92658         * tests/unictype/test-pr_line_separator.c: Likewise.
92659         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
92660         * tests/unictype/test-pr_lowercase.c: Likewise.
92661         * tests/unictype/test-pr_math.c: Likewise.
92662         * tests/unictype/test-pr_non_break.c: Likewise.
92663         * tests/unictype/test-pr_not_a_character.c: Likewise.
92664         * tests/unictype/test-pr_numeric.c: Likewise.
92665         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
92666         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
92667         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
92668         * tests/unictype/test-pr_other_id_continue.c: Likewise.
92669         * tests/unictype/test-pr_other_id_start.c: Likewise.
92670         * tests/unictype/test-pr_other_lowercase.c: Likewise.
92671         * tests/unictype/test-pr_other_math.c: Likewise.
92672         * tests/unictype/test-pr_other_uppercase.c: Likewise.
92673         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
92674         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
92675         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
92676         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
92677         * tests/unictype/test-pr_private_use.c: Likewise.
92678         * tests/unictype/test-pr_punctuation.c: Likewise.
92679         * tests/unictype/test-pr_quotation_mark.c: Likewise.
92680         * tests/unictype/test-pr_radical.c: Likewise.
92681         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
92682         * tests/unictype/test-pr_soft_dotted.c: Likewise.
92683         * tests/unictype/test-pr_space.c: Likewise.
92684         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
92685         * tests/unictype/test-pr_titlecase.c: Likewise.
92686         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
92687         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
92688         * tests/unictype/test-pr_uppercase.c: Likewise.
92689         * tests/unictype/test-pr_variation_selector.c: Likewise.
92690         * tests/unictype/test-pr_white_space.c: Likewise.
92691         * tests/unictype/test-pr_xid_continue.c: Likewise.
92692         * tests/unictype/test-pr_xid_start.c: Likewise.
92693         * tests/unictype/test-pr_zero_width.c: Likewise.
92694         * tests/unictype/test-sy_c_whitespace.c: Likewise.
92695         * tests/unictype/test-sy_java_whitespace.c: Likewise.
92697 2007-11-12  Bruno Haible  <bruno@clisp.org>
92699         Unicode character classification functions.
92700         * lib/unictype.h: New file.
92701         * modules/unictype/base: New file.
92702         * modules/unictype/category-L: New file.
92703         * modules/unictype/category-Lu: New file.
92704         * modules/unictype/category-Ll: New file.
92705         * modules/unictype/category-Lt: New file.
92706         * modules/unictype/category-Lm: New file.
92707         * modules/unictype/category-Lo: New file.
92708         * modules/unictype/category-M: New file.
92709         * modules/unictype/category-Mn: New file.
92710         * modules/unictype/category-Mc: New file.
92711         * modules/unictype/category-Me: New file.
92712         * modules/unictype/category-N: New file.
92713         * modules/unictype/category-Nd: New file.
92714         * modules/unictype/category-Nl: New file.
92715         * modules/unictype/category-No: New file.
92716         * modules/unictype/category-P: New file.
92717         * modules/unictype/category-Pc: New file.
92718         * modules/unictype/category-Pd: New file.
92719         * modules/unictype/category-Ps: New file.
92720         * modules/unictype/category-Pe: New file.
92721         * modules/unictype/category-Pi: New file.
92722         * modules/unictype/category-Pf: New file.
92723         * modules/unictype/category-Po: New file.
92724         * modules/unictype/category-S: New file.
92725         * modules/unictype/category-Sm: New file.
92726         * modules/unictype/category-Sc: New file.
92727         * modules/unictype/category-Sk: New file.
92728         * modules/unictype/category-So: New file.
92729         * modules/unictype/category-Z: New file.
92730         * modules/unictype/category-Zs: New file.
92731         * modules/unictype/category-Zl: New file.
92732         * modules/unictype/category-Zp: New file.
92733         * modules/unictype/category-C: New file.
92734         * modules/unictype/category-Cc: New file.
92735         * modules/unictype/category-Cf: New file.
92736         * modules/unictype/category-Cs: New file.
92737         * modules/unictype/category-Co: New file.
92738         * modules/unictype/category-Cn: New file.
92739         * modules/unictype/category-or: New file.
92740         * modules/unictype/category-of: New file.
92741         * modules/unictype/category-test: New file.
92742         * modules/unictype/category-test-withtable: New file.
92743         * modules/unictype/category-byname: New file.
92744         * modules/unictype/category-none: New file.
92745         * modules/unictype/category-and: New file.
92746         * modules/unictype/category-and-not: New file.
92747         * modules/unictype/category-name: New file.
92748         * modules/unictype/combining-class: New file.
92749         * modules/unictype/category-all: New file.
92750         * modules/unictype/bidicategory-all: New file.
92751         * modules/unictype/bidicategory-byname: New file.
92752         * modules/unictype/bidicategory-name: New file.
92753         * modules/unictype/bidicategory-of: New file.
92754         * modules/unictype/bidicategory-test: New file.
92755         * modules/unictype/decimal-digit: New file.
92756         * modules/unictype/digit: New file.
92757         * modules/unictype/numeric: New file.
92758         * modules/unictype/mirror: New file.
92759         * modules/unictype/property-white-space: New file.
92760         * modules/unictype/property-alphabetic: New file.
92761         * modules/unictype/property-other-alphabetic: New file.
92762         * modules/unictype/property-not-a-character: New file.
92763         * modules/unictype/property-default-ignorable-code-point: New file.
92764         * modules/unictype/property-other-default-ignorable-code-point: New
92765         file.
92766         * modules/unictype/property-deprecated: New file.
92767         * modules/unictype/property-logical-order-exception: New file.
92768         * modules/unictype/property-variation-selector: New file.
92769         * modules/unictype/property-private-use: New file.
92770         * modules/unictype/property-unassigned-code-value: New file.
92771         * modules/unictype/property-uppercase: New file.
92772         * modules/unictype/property-other-uppercase: New file.
92773         * modules/unictype/property-lowercase: New file.
92774         * modules/unictype/property-other-lowercase: New file.
92775         * modules/unictype/property-titlecase: New file.
92776         * modules/unictype/property-soft-dotted: New file.
92777         * modules/unictype/property-id-start: New file.
92778         * modules/unictype/property-other-id-start: New file.
92779         * modules/unictype/property-id-continue: New file.
92780         * modules/unictype/property-other-id-continue: New file.
92781         * modules/unictype/property-xid-start: New file.
92782         * modules/unictype/property-xid-continue: New file.
92783         * modules/unictype/property-pattern-white-space: New file.
92784         * modules/unictype/property-pattern-syntax: New file.
92785         * modules/unictype/property-join-control: New file.
92786         * modules/unictype/property-grapheme-base: New file.
92787         * modules/unictype/property-grapheme-extend: New file.
92788         * modules/unictype/property-other-grapheme-extend: New file.
92789         * modules/unictype/property-grapheme-link: New file.
92790         * modules/unictype/property-bidi-control: New file.
92791         * modules/unictype/property-bidi-left-to-right: New file.
92792         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
92793         * modules/unictype/property-bidi-arabic-right-to-left: New file.
92794         * modules/unictype/property-bidi-european-digit: New file.
92795         * modules/unictype/property-bidi-eur-num-separator: New file.
92796         * modules/unictype/property-bidi-eur-num-terminator: New file.
92797         * modules/unictype/property-bidi-arabic-digit: New file.
92798         * modules/unictype/property-bidi-common-separator: New file.
92799         * modules/unictype/property-bidi-block-separator: New file.
92800         * modules/unictype/property-bidi-segment-separator: New file.
92801         * modules/unictype/property-bidi-whitespace: New file.
92802         * modules/unictype/property-bidi-non-spacing-mark: New file.
92803         * modules/unictype/property-bidi-boundary-neutral: New file.
92804         * modules/unictype/property-bidi-pdf: New file.
92805         * modules/unictype/property-bidi-embedding-or-override: New file.
92806         * modules/unictype/property-bidi-other-neutral: New file.
92807         * modules/unictype/property-hex-digit: New file.
92808         * modules/unictype/property-ascii-hex-digit: New file.
92809         * modules/unictype/property-ideographic: New file.
92810         * modules/unictype/property-unified-ideograph: New file.
92811         * modules/unictype/property-radical: New file.
92812         * modules/unictype/property-ids-binary-operator: New file.
92813         * modules/unictype/property-ids-trinary-operator: New file.
92814         * modules/unictype/property-zero-width: New file.
92815         * modules/unictype/property-space: New file.
92816         * modules/unictype/property-non-break: New file.
92817         * modules/unictype/property-iso-control: New file.
92818         * modules/unictype/property-format-control: New file.
92819         * modules/unictype/property-dash: New file.
92820         * modules/unictype/property-hyphen: New file.
92821         * modules/unictype/property-punctuation: New file.
92822         * modules/unictype/property-line-separator: New file.
92823         * modules/unictype/property-paragraph-separator: New file.
92824         * modules/unictype/property-quotation-mark: New file.
92825         * modules/unictype/property-sentence-terminal: New file.
92826         * modules/unictype/property-terminal-punctuation: New file.
92827         * modules/unictype/property-currency-symbol: New file.
92828         * modules/unictype/property-math: New file.
92829         * modules/unictype/property-other-math: New file.
92830         * modules/unictype/property-paired-punctuation: New file.
92831         * modules/unictype/property-left-of-pair: New file.
92832         * modules/unictype/property-combining: New file.
92833         * modules/unictype/property-composite: New file.
92834         * modules/unictype/property-decimal-digit: New file.
92835         * modules/unictype/property-numeric: New file.
92836         * modules/unictype/property-diacritic: New file.
92837         * modules/unictype/property-extender: New file.
92838         * modules/unictype/property-ignorable-control: New file.
92839         * modules/unictype/property-test: New file.
92840         * modules/unictype/property-byname: New file.
92841         * modules/unictype/property-all: New file.
92842         * modules/unictype/scripts: New file.
92843         * modules/unictype/scripts-all: New file.
92844         * modules/unictype/block-of: New file.
92845         * modules/unictype/block-test: New file.
92846         * modules/unictype/block-list: New file.
92847         * modules/unictype/block-all: New file.
92848         * modules/unictype/syntax-c-whitespace: New file.
92849         * modules/unictype/syntax-java-whitespace: New file.
92850         * modules/unictype/syntax-c-ident: New file.
92851         * modules/unictype/syntax-java-ident: New file.
92852         * modules/unictype/ctype-alnum: New file.
92853         * modules/unictype/ctype-alpha: New file.
92854         * modules/unictype/ctype-cntrl: New file.
92855         * modules/unictype/ctype-digit: New file.
92856         * modules/unictype/ctype-graph: New file.
92857         * modules/unictype/ctype-lower: New file.
92858         * modules/unictype/ctype-print: New file.
92859         * modules/unictype/ctype-punct: New file.
92860         * modules/unictype/ctype-space: New file.
92861         * modules/unictype/ctype-upper: New file.
92862         * modules/unictype/ctype-xdigit: New file.
92863         * modules/unictype/ctype-blank: New file.
92864         * lib/unictype/bidi_byname.c: New file.
92865         * lib/unictype/bidi_name.c: New file.
92866         * lib/unictype/bidi_of.c: New file.
92867         * lib/unictype/bidi_test.c: New file.
92868         * lib/unictype/bitmap.h: New file.
92869         * lib/unictype/block_test.c: New file.
92870         * lib/unictype/blocks.c: New file.
92871         * lib/unictype/categ_C.c: New file.
92872         * lib/unictype/categ_Cc.c: New file.
92873         * lib/unictype/categ_Cf.c: New file.
92874         * lib/unictype/categ_Cn.c: New file.
92875         * lib/unictype/categ_Co.c: New file.
92876         * lib/unictype/categ_Cs.c: New file.
92877         * lib/unictype/categ_L.c: New file.
92878         * lib/unictype/categ_Ll.c: New file.
92879         * lib/unictype/categ_Lm.c: New file.
92880         * lib/unictype/categ_Lo.c: New file.
92881         * lib/unictype/categ_Lt.c: New file.
92882         * lib/unictype/categ_Lu.c: New file.
92883         * lib/unictype/categ_M.c: New file.
92884         * lib/unictype/categ_Mc.c: New file.
92885         * lib/unictype/categ_Me.c: New file.
92886         * lib/unictype/categ_Mn.c: New file.
92887         * lib/unictype/categ_N.c: New file.
92888         * lib/unictype/categ_Nd.c: New file.
92889         * lib/unictype/categ_Nl.c: New file.
92890         * lib/unictype/categ_No.c: New file.
92891         * lib/unictype/categ_P.c: New file.
92892         * lib/unictype/categ_Pc.c: New file.
92893         * lib/unictype/categ_Pd.c: New file.
92894         * lib/unictype/categ_Pe.c: New file.
92895         * lib/unictype/categ_Pf.c: New file.
92896         * lib/unictype/categ_Pi.c: New file.
92897         * lib/unictype/categ_Po.c: New file.
92898         * lib/unictype/categ_Ps.c: New file.
92899         * lib/unictype/categ_S.c: New file.
92900         * lib/unictype/categ_Sc.c: New file.
92901         * lib/unictype/categ_Sk.c: New file.
92902         * lib/unictype/categ_Sm.c: New file.
92903         * lib/unictype/categ_So.c: New file.
92904         * lib/unictype/categ_Z.c: New file.
92905         * lib/unictype/categ_Zl.c: New file.
92906         * lib/unictype/categ_Zp.c: New file.
92907         * lib/unictype/categ_Zs.c: New file.
92908         * lib/unictype/categ_and.c: New file.
92909         * lib/unictype/categ_and_not.c: New file.
92910         * lib/unictype/categ_byname.c: New file.
92911         * lib/unictype/categ_name.c: New file.
92912         * lib/unictype/categ_none.c: New file.
92913         * lib/unictype/categ_of.c: New file.
92914         * lib/unictype/categ_or.c: New file.
92915         * lib/unictype/categ_test.c: New file.
92916         * lib/unictype/combining.c: New file.
92917         * lib/unictype/ctype_alnum.c: New file.
92918         * lib/unictype/ctype_alpha.c: New file.
92919         * lib/unictype/ctype_blank.c: New file.
92920         * lib/unictype/ctype_cntrl.c: New file.
92921         * lib/unictype/ctype_digit.c: New file.
92922         * lib/unictype/ctype_graph.c: New file.
92923         * lib/unictype/ctype_lower.c: New file.
92924         * lib/unictype/ctype_print.c: New file.
92925         * lib/unictype/ctype_punct.c: New file.
92926         * lib/unictype/ctype_space.c: New file.
92927         * lib/unictype/ctype_upper.c: New file.
92928         * lib/unictype/ctype_xdigit.c: New file.
92929         * lib/unictype/decdigit.c: New file.
92930         * lib/unictype/digit.c: New file.
92931         * lib/unictype/identsyntaxmap.h: New file.
92932         * lib/unictype/mirror.c: New file.
92933         * lib/unictype/numeric.c: New file.
92934         * lib/unictype/pr_alphabetic.c: New file.
92935         * lib/unictype/pr_ascii_hex_digit.c: New file.
92936         * lib/unictype/pr_bidi_arabic_digit.c: New file.
92937         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
92938         * lib/unictype/pr_bidi_block_separator.c: New file.
92939         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
92940         * lib/unictype/pr_bidi_common_separator.c: New file.
92941         * lib/unictype/pr_bidi_control.c: New file.
92942         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
92943         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
92944         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
92945         * lib/unictype/pr_bidi_european_digit.c: New file.
92946         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
92947         * lib/unictype/pr_bidi_left_to_right.c: New file.
92948         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
92949         * lib/unictype/pr_bidi_other_neutral.c: New file.
92950         * lib/unictype/pr_bidi_pdf.c: New file.
92951         * lib/unictype/pr_bidi_segment_separator.c: New file.
92952         * lib/unictype/pr_bidi_whitespace.c: New file.
92953         * lib/unictype/pr_byname.c: New file.
92954         * lib/unictype/pr_byname.gperf: New file.
92955         * lib/unictype/pr_combining.c: New file.
92956         * lib/unictype/pr_composite.c: New file.
92957         * lib/unictype/pr_currency_symbol.c: New file.
92958         * lib/unictype/pr_dash.c: New file.
92959         * lib/unictype/pr_decimal_digit.c: New file.
92960         * lib/unictype/pr_default_ignorable_code_point.c: New file.
92961         * lib/unictype/pr_deprecated.c: New file.
92962         * lib/unictype/pr_diacritic.c: New file.
92963         * lib/unictype/pr_extender.c: New file.
92964         * lib/unictype/pr_format_control.c: New file.
92965         * lib/unictype/pr_grapheme_base.c: New file.
92966         * lib/unictype/pr_grapheme_extend.c: New file.
92967         * lib/unictype/pr_grapheme_link.c: New file.
92968         * lib/unictype/pr_hex_digit.c: New file.
92969         * lib/unictype/pr_hyphen.c: New file.
92970         * lib/unictype/pr_id_continue.c: New file.
92971         * lib/unictype/pr_id_start.c: New file.
92972         * lib/unictype/pr_ideographic.c: New file.
92973         * lib/unictype/pr_ids_binary_operator.c: New file.
92974         * lib/unictype/pr_ids_trinary_operator.c: New file.
92975         * lib/unictype/pr_ignorable_control.c: New file.
92976         * lib/unictype/pr_iso_control.c: New file.
92977         * lib/unictype/pr_join_control.c: New file.
92978         * lib/unictype/pr_left_of_pair.c: New file.
92979         * lib/unictype/pr_line_separator.c: New file.
92980         * lib/unictype/pr_logical_order_exception.c: New file.
92981         * lib/unictype/pr_lowercase.c: New file.
92982         * lib/unictype/pr_math.c: New file.
92983         * lib/unictype/pr_non_break.c: New file.
92984         * lib/unictype/pr_not_a_character.c: New file.
92985         * lib/unictype/pr_numeric.c: New file.
92986         * lib/unictype/pr_other_alphabetic.c: New file.
92987         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
92988         * lib/unictype/pr_other_grapheme_extend.c: New file.
92989         * lib/unictype/pr_other_id_continue.c: New file.
92990         * lib/unictype/pr_other_id_start.c: New file.
92991         * lib/unictype/pr_other_lowercase.c: New file.
92992         * lib/unictype/pr_other_math.c: New file.
92993         * lib/unictype/pr_other_uppercase.c: New file.
92994         * lib/unictype/pr_paired_punctuation.c: New file.
92995         * lib/unictype/pr_paragraph_separator.c: New file.
92996         * lib/unictype/pr_pattern_syntax.c: New file.
92997         * lib/unictype/pr_pattern_white_space.c: New file.
92998         * lib/unictype/pr_private_use.c: New file.
92999         * lib/unictype/pr_punctuation.c: New file.
93000         * lib/unictype/pr_quotation_mark.c: New file.
93001         * lib/unictype/pr_radical.c: New file.
93002         * lib/unictype/pr_sentence_terminal.c: New file.
93003         * lib/unictype/pr_soft_dotted.c: New file.
93004         * lib/unictype/pr_space.c: New file.
93005         * lib/unictype/pr_terminal_punctuation.c: New file.
93006         * lib/unictype/pr_test.c: New file.
93007         * lib/unictype/pr_titlecase.c: New file.
93008         * lib/unictype/pr_unassigned_code_value.c: New file.
93009         * lib/unictype/pr_unified_ideograph.c: New file.
93010         * lib/unictype/pr_uppercase.c: New file.
93011         * lib/unictype/pr_variation_selector.c: New file.
93012         * lib/unictype/pr_white_space.c: New file.
93013         * lib/unictype/pr_xid_continue.c: New file.
93014         * lib/unictype/pr_xid_start.c: New file.
93015         * lib/unictype/pr_zero_width.c: New file.
93016         * lib/unictype/scripts.c: New file.
93017         * lib/unictype/sy_c_ident.c: New file.
93018         * lib/unictype/sy_c_whitespace.c: New file.
93019         * lib/unictype/sy_java_ident.c: New file.
93020         * lib/unictype/sy_java_whitespace.c: New file.
93022         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
93023         Unicode 5.0.0.
93024         * lib/unictype/blocks.h: Likewise.
93025         * lib/unictype/categ_C.h: Likewise.
93026         * lib/unictype/categ_Cc.h: Likewise.
93027         * lib/unictype/categ_Cf.h: Likewise.
93028         * lib/unictype/categ_Cn.h: Likewise.
93029         * lib/unictype/categ_Co.h: Likewise.
93030         * lib/unictype/categ_Cs.h: Likewise.
93031         * lib/unictype/categ_L.h: Likewise.
93032         * lib/unictype/categ_Ll.h: Likewise.
93033         * lib/unictype/categ_Lm.h: Likewise.
93034         * lib/unictype/categ_Lo.h: Likewise.
93035         * lib/unictype/categ_Lt.h: Likewise.
93036         * lib/unictype/categ_Lu.h: Likewise.
93037         * lib/unictype/categ_M.h: Likewise.
93038         * lib/unictype/categ_Mc.h: Likewise.
93039         * lib/unictype/categ_Me.h: Likewise.
93040         * lib/unictype/categ_Mn.h: Likewise.
93041         * lib/unictype/categ_N.h: Likewise.
93042         * lib/unictype/categ_Nd.h: Likewise.
93043         * lib/unictype/categ_Nl.h: Likewise.
93044         * lib/unictype/categ_No.h: Likewise.
93045         * lib/unictype/categ_P.h: Likewise.
93046         * lib/unictype/categ_Pc.h: Likewise.
93047         * lib/unictype/categ_Pd.h: Likewise.
93048         * lib/unictype/categ_Pe.h: Likewise.
93049         * lib/unictype/categ_Pf.h: Likewise.
93050         * lib/unictype/categ_Pi.h: Likewise.
93051         * lib/unictype/categ_Po.h: Likewise.
93052         * lib/unictype/categ_Ps.h: Likewise.
93053         * lib/unictype/categ_S.h: Likewise.
93054         * lib/unictype/categ_Sc.h: Likewise.
93055         * lib/unictype/categ_Sk.h: Likewise.
93056         * lib/unictype/categ_Sm.h: Likewise.
93057         * lib/unictype/categ_So.h: Likewise.
93058         * lib/unictype/categ_Z.h: Likewise.
93059         * lib/unictype/categ_Zl.h: Likewise.
93060         * lib/unictype/categ_Zp.h: Likewise.
93061         * lib/unictype/categ_Zs.h: Likewise.
93062         * lib/unictype/categ_of.h: Likewise.
93063         * lib/unictype/combining.h: Likewise.
93064         * lib/unictype/ctype_alnum.h: Likewise.
93065         * lib/unictype/ctype_alpha.h: Likewise.
93066         * lib/unictype/ctype_blank.h: Likewise.
93067         * lib/unictype/ctype_cntrl.h: Likewise.
93068         * lib/unictype/ctype_digit.h: Likewise.
93069         * lib/unictype/ctype_graph.h: Likewise.
93070         * lib/unictype/ctype_lower.h: Likewise.
93071         * lib/unictype/ctype_print.h: Likewise.
93072         * lib/unictype/ctype_punct.h: Likewise.
93073         * lib/unictype/ctype_space.h: Likewise.
93074         * lib/unictype/ctype_upper.h: Likewise.
93075         * lib/unictype/ctype_xdigit.h: Likewise.
93076         * lib/unictype/decdigit.h: Likewise.
93077         * lib/unictype/digit.h: Likewise.
93078         * lib/unictype/mirror.h: Likewise.
93079         * lib/unictype/numeric.h: Likewise.
93080         * lib/unictype/pr_alphabetic.h: Likewise.
93081         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
93082         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
93083         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
93084         * lib/unictype/pr_bidi_block_separator.h: Likewise.
93085         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
93086         * lib/unictype/pr_bidi_common_separator.h: Likewise.
93087         * lib/unictype/pr_bidi_control.h: Likewise.
93088         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
93089         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
93090         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
93091         * lib/unictype/pr_bidi_european_digit.h: Likewise.
93092         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
93093         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
93094         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
93095         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
93096         * lib/unictype/pr_bidi_pdf.h: Likewise.
93097         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
93098         * lib/unictype/pr_bidi_whitespace.h: Likewise.
93099         * lib/unictype/pr_combining.h: Likewise.
93100         * lib/unictype/pr_composite.h: Likewise.
93101         * lib/unictype/pr_currency_symbol.h: Likewise.
93102         * lib/unictype/pr_dash.h: Likewise.
93103         * lib/unictype/pr_decimal_digit.h: Likewise.
93104         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
93105         * lib/unictype/pr_deprecated.h: Likewise.
93106         * lib/unictype/pr_diacritic.h: Likewise.
93107         * lib/unictype/pr_extender.h: Likewise.
93108         * lib/unictype/pr_format_control.h: Likewise.
93109         * lib/unictype/pr_grapheme_base.h: Likewise.
93110         * lib/unictype/pr_grapheme_extend.h: Likewise.
93111         * lib/unictype/pr_grapheme_link.h: Likewise.
93112         * lib/unictype/pr_hex_digit.h: Likewise.
93113         * lib/unictype/pr_hyphen.h: Likewise.
93114         * lib/unictype/pr_id_continue.h: Likewise.
93115         * lib/unictype/pr_id_start.h: Likewise.
93116         * lib/unictype/pr_ideographic.h: Likewise.
93117         * lib/unictype/pr_ids_binary_operator.h: Likewise.
93118         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
93119         * lib/unictype/pr_ignorable_control.h: Likewise.
93120         * lib/unictype/pr_iso_control.h: Likewise.
93121         * lib/unictype/pr_join_control.h: Likewise.
93122         * lib/unictype/pr_left_of_pair.h: Likewise.
93123         * lib/unictype/pr_line_separator.h: Likewise.
93124         * lib/unictype/pr_logical_order_exception.h: Likewise.
93125         * lib/unictype/pr_lowercase.h: Likewise.
93126         * lib/unictype/pr_math.h: Likewise.
93127         * lib/unictype/pr_non_break.h: Likewise.
93128         * lib/unictype/pr_not_a_character.h: Likewise.
93129         * lib/unictype/pr_numeric.h: Likewise.
93130         * lib/unictype/pr_other_alphabetic.h: Likewise.
93131         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
93132         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
93133         * lib/unictype/pr_other_id_continue.h: Likewise.
93134         * lib/unictype/pr_other_id_start.h: Likewise.
93135         * lib/unictype/pr_other_lowercase.h: Likewise.
93136         * lib/unictype/pr_other_math.h: Likewise.
93137         * lib/unictype/pr_other_uppercase.h: Likewise.
93138         * lib/unictype/pr_paired_punctuation.h: Likewise.
93139         * lib/unictype/pr_paragraph_separator.h: Likewise.
93140         * lib/unictype/pr_pattern_syntax.h: Likewise.
93141         * lib/unictype/pr_pattern_white_space.h: Likewise.
93142         * lib/unictype/pr_private_use.h: Likewise.
93143         * lib/unictype/pr_punctuation.h: Likewise.
93144         * lib/unictype/pr_quotation_mark.h: Likewise.
93145         * lib/unictype/pr_radical.h: Likewise.
93146         * lib/unictype/pr_sentence_terminal.h: Likewise.
93147         * lib/unictype/pr_soft_dotted.h: Likewise.
93148         * lib/unictype/pr_space.h: Likewise.
93149         * lib/unictype/pr_terminal_punctuation.h: Likewise.
93150         * lib/unictype/pr_titlecase.h: Likewise.
93151         * lib/unictype/pr_unassigned_code_value.h: Likewise.
93152         * lib/unictype/pr_unified_ideograph.h: Likewise.
93153         * lib/unictype/pr_uppercase.h: Likewise.
93154         * lib/unictype/pr_variation_selector.h: Likewise.
93155         * lib/unictype/pr_white_space.h: Likewise.
93156         * lib/unictype/pr_xid_continue.h: Likewise.
93157         * lib/unictype/pr_xid_start.h: Likewise.
93158         * lib/unictype/pr_zero_width.h: Likewise.
93159         * lib/unictype/scripts.h: Likewise.
93160         * lib/unictype/scripts_byname.gperf: Likewise.
93161         * lib/unictype/sy_c_ident.h: Likewise.
93162         * lib/unictype/sy_c_whitespace.h: Likewise.
93163         * lib/unictype/sy_java_ident.h: Likewise.
93164         * lib/unictype/sy_java_whitespace.h: Likewise.
93166         * lib/unictype/Makefile: New file.
93167         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
93168         glibc.
93169         * lib/unictype/3level.h: New file, copied from glibc.
93170         * lib/unictype/3levelbit.h: New file.
93172 2007-11-11  Bruno Haible  <bruno@clisp.org>
93174         * modules/gperf: New file.
93175         * modules/iconv_open (Depends-on): Add it.
93176         (Makefile.am): Remove the GPERF definition.
93178 2007-11-11  Bruno Haible  <bruno@clisp.org>
93180         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
93181         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
93183 2007-11-11  Bruno Haible  <bruno@clisp.org>
93185         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
93186         (usage): Remove function.
93188 2007-11-11  Bruno Haible  <bruno@clisp.org>
93190         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
93191         gl_FUNC_CEILF_LIBS.
93192         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
93193         gl_FUNC_CEIL_LIBS.
93194         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
93195         gl_FUNC_CEILL_LIBS.
93196         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
93197         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
93198         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
93200 2007-11-11  Bruno Haible  <bruno@clisp.org>
93202         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
93203         roundf were declared but do not exist on functions.
93204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
93205         roundl were declared but do not exist on functions.
93206         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
93207         HAVE_FLOORL_AND_CEILL, respectively.
93208         Needed for Sun C on Solaris 10.
93210 2007-11-11  Bruno Haible  <bruno@clisp.org>
93212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
93213         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
93214         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
93215         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
93216         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
93217         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
93218         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
93219         HAVE_DECL_ROUNDF.
93220         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
93221         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
93222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
93223         of HAVE_DECL_ROUND*.
93224         * modules/math (Makefile.am): Update.
93226 2007-11-10  Bruno Haible  <bruno@clisp.org>
93228         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
93229         ptrdiff_t as m4/intl.m4.
93231 2007-11-10  Jim Meyering  <meyering@redhat.com>
93233         Avoid link failure for the argmatch test.
93234         * tests/test-argmatch.c (usage): Define function to avoid a link
93235         failure: argmatch_die requires a usage function.
93237 2007-11-09  Bruno Haible  <bruno@clisp.org>
93239         * doc/functions/snprintf.texi: Mention BeOS deficiency.
93240         * doc/functions/vsnprintf.texi: Likewise.
93241         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
93242         with a size argument < 2.
93244 2007-11-09  Bruno Haible  <bruno@clisp.org>
93246         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
93247         buffer. Fixes an inefficiency introduced on 2007-11-03.
93249 2007-11-09  Bruno Haible  <bruno@clisp.org>
93251         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
93252         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
93254 2007-11-08  Jim Meyering  <meyering@redhat.com>
93256         Change cache variable name prefix "jm_" to "gl_" everywhere.
93257         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
93258         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
93259         * m4/uptime.m4: s/gl_/jm_/
93261 2007-11-07  Bruno Haible  <bruno@clisp.org>
93263         Update to GNU gettext 0.17.
93264         * m4/intl.m4: Update to GNU gettext 0.17.
93265         * m4/po.m4: Likewise.
93266         * modules/gettext (Files): Remove m4/ulonglong.m4.
93267         (configure.ac): Require gettext infrastructure from version 0.17.
93269 2007-11-06  Bruno Haible  <bruno@clisp.org>
93271         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
93272         symbolic values are not defined in a public header.
93273         * lib/freadable.c (freadable) [QNX]: Likewise.
93274         * lib/freadahead.c (freadahead) [QNX]: Likewise.
93275         * lib/freading.c (freading) [QNX]: Likewise.
93276         * lib/fseterr.c (fseterr) [QNX]: Likewise.
93277         * lib/fwritable.c (fwritable) [QNX]: Likewise.
93278         * lib/fwriting.c (fwriting) [QNX]: Likewise.
93279         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
93280         Reported by Alain Magloire.
93282         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
93284 2007-11-05  Bruno Haible  <bruno@clisp.org>
93286         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
93287         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
93288         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
93289         Reported by Eric Blake.
93291 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93292             Bruno Haible  <bruno@clisp.org>
93294         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
93295         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
93296         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
93297         (malloc): Undefine also before including <stdlib.h>.
93298         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
93299         Needed on OSF/1 4.0.
93301 2007-11-05  Jim Meyering  <meyering@redhat.com>
93303         git-version-gen: sync from coreutils.
93304         * build-aux/git-version-gen: Add comments.
93305         Change the first '-' to '.' in the snapshot version string,
93306         e.g., 6.9-377-08144 -> 6.9.377-08144
93307         Remove first parameter.
93308         Don't declare a version "-dirty" merely because a time
93309         stamp has changed.
93311 2007-11-04  Bruno Haible  <bruno@clisp.org>
93313         * lib/lock.h: Protect all macro definitions containing an 'if'
93314         statement through a "do { ... } while (0)".
93315         * lib/tls.h: Likewise.
93317 2007-11-04  Bruno Haible  <bruno@clisp.org>
93319         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
93321 2007-11-04  Bruno Haible  <bruno@clisp.org>
93323         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
93324         * modules/fprintf-posix (Depends-on): Add nocrash.
93325         * modules/snprintf-posix (Depends-on): Likewise.
93326         * modules/sprintf-posix (Depends-on): Likewise.
93327         * modules/vasnprintf-posix (Depends-on): Likewise.
93328         * modules/vasprintf-posix (Depends-on): Likewise.
93329         * modules/vfprintf-posix (Depends-on): Likewise.
93330         * modules/vsnprintf-posix (Depends-on): Likewise.
93331         * modules/vsprintf-posix (Depends-on): Likewise.
93332         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93333         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93334         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93335         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93336         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93337         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93338         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93340 2007-11-04  Bruno Haible  <bruno@clisp.org>
93342         * modules/nocrash: New file.
93343         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
93344         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
93346 2007-11-04  Bruno Haible  <bruno@clisp.org>
93348         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
93349         precision handling.
93350         * tests/test-vasprintf-posix.c (test_function): Likewise.
93351         * tests/test-snprintf-posix.h (test_function): Likewise.
93352         * tests/test-sprintf-posix.h (test_function): Likewise.
93354         Fix *printf behaviour for large precisions on mingw and BeOS.
93355         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
93356         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
93357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
93358         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93360         gl_PRINTF_PRECISION and test its result. Invoke
93361         gl_PREREQ_VASNPRINTF_PRECISION.
93362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93369         * doc/functions/fprintf.texi: Update.
93370         * doc/functions/printf.texi: Update.
93371         * doc/functions/snprintf.texi: Update.
93372         * doc/functions/sprintf.texi: Update.
93373         * doc/functions/vfprintf.texi: Update.
93374         * doc/functions/vprintf.texi: Update.
93375         * doc/functions/vsnprintf.texi: Update.
93376         * doc/functions/vsprintf.texi: Update.
93378 2007-11-04  Bruno Haible  <bruno@clisp.org>
93380         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
93382 2007-11-04  Bruno Haible  <bruno@clisp.org>
93384         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
93385         Reported by Sylvain Beucler <beuc@gnu.org>.
93387 2007-11-03  Bruno Haible  <bruno@clisp.org>
93389         * tests/test-fprintf-posix2.sh: New file.
93390         * tests/test-fprintf-posix2.c: New file.
93391         * modules/fprintf-posix-tests (Files): Add them.
93392         (TESTS): Add test-fprintf-posix2.sh.
93393         (configure.ac): Check for getrlimit and setrlimit.
93394         (check_PROGRAMS): Add test-fprintf-posix2.
93396         * tests/test-printf-posix2.sh: New file.
93397         * tests/test-printf-posix2.c: New file.
93398         * modules/printf-posix-tests (Files): Add them.
93399         (TESTS): Add test-printf-posix2.sh.
93400         (configure.ac): Check for getrlimit and setrlimit.
93401         (check_PROGRAMS): Add test-printf-posix2.
93403         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
93404         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
93405         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
93406         (decode_double): New function, copied from decode_long_double.
93407         (scale10_round_decimal_decoded): New function, extracted from
93408         scale10_round_decimal_long_double.
93409         (scale10_round_decimal_long_double): Use it.
93410         (scale10_round_decimal_double): New function.
93411         (floorlog10): New function.
93412         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
93413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
93414         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93416         gl_PRINTF_ENOMEM and test its result. Invoke
93417         gl_PREREQ_VASNPRINTF_ENOMEM.
93418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93422         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93425         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
93426         * modules/snprintf-posix (Depends-on): Likewise.
93427         * modules/sprintf-posix (Depends-on): Likewise.
93428         * modules/vasnprintf-posix (Depends-on): Likewise.
93429         * modules/vasprintf-posix (Depends-on): Likewise.
93430         * modules/vfprintf-posix (Depends-on): Likewise.
93431         * modules/vsnprintf-posix (Depends-on): Likewise.
93432         * modules/vsprintf-posix (Depends-on): Likewise.
93433         * doc/functions/fprintf.texi: Update.
93434         * doc/functions/printf.texi: Update.
93435         * doc/functions/snprintf.texi: Update.
93436         * doc/functions/sprintf.texi: Update.
93437         * doc/functions/vfprintf.texi: Update.
93438         * doc/functions/vprintf.texi: Update.
93439         * doc/functions/vsnprintf.texi: Update.
93440         * doc/functions/vsprintf.texi: Update.
93442 2007-11-03  Bruno Haible  <bruno@clisp.org>
93444         * modules/frexp-nolibm-tests: New file.
93446         * modules/frexp-nolibm: New file.
93447         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
93449 2007-11-03  Bruno Haible  <bruno@clisp.org>
93451         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
93452         value is C99 compliant.
93453         Needed for OSF/1 5.1.
93455 2007-11-03  Bruno Haible  <bruno@clisp.org>
93457         Fix out-of-memory handling of vasnprintf.
93458         * lib/printf-parse.c: Include <errno.h>.
93459         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
93460         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
93461         is already set.
93463 2007-11-02  Eric Blake  <ebb9@byu.net>
93465         Fix tests on cygwin.
93466         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
93468 2007-11-01  Bruno Haible  <bruno@clisp.org>
93470         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
93471         warning.
93472         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
93473         needed for POSIX compatibility.
93475 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
93477         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
93478         for compatibility with GNU.
93480 2007-11-01  Bruno Haible  <bruno@clisp.org>
93482         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
93483         (putenv): Renamed from rpl_putenv. Change argument type from
93484         'const char *' to 'char *'.
93485         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
93486         of defining putenv in config.h, just set REPLACE_PUTENV.
93487         * modules/putenv (Depends-on): Add stdlib.
93488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93489         (Include): Use <stdlib.h>.
93490         * lib/stdlib.in.h (putenv): New declaration.
93491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
93492         REPLACE_PUTENV.
93493         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
93494         REPLACE_PUTENV.
93495         Needed for MacOS X 10.5.0.
93496         Reported by Peter O'Gorman <peter@pogma.com>.
93498 2007-11-01  Jim Meyering  <meyering@redhat.com>
93500         Treat an empty date string exactly like "0".
93501         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
93502         if the remaining date string (to be parsed) is empty, use "0".
93503         Reported by Mischa Molhoek and discussed in this thread:
93504         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
93506 2007-10-31  Bruno Haible  <bruno@clisp.org>
93508         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
93509         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
93510         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
93511         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
93512         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
93513         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
93515 2007-10-31  Bruno Haible  <bruno@clisp.org>
93517         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
93518         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
93519         (AC_TYPE_LONG_LONG_INT): Use it.
93520         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
93521         it as well.
93522         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
93523         to m4/longlong.m4.
93524         * modules/stdint (Files): Remove m4/ulonglong.m4.
93525         * modules/strtoull (Files): Use m4/longlong.m4 instead of
93526         m4/ulonglong.m4.
93527         * modules/strtoumax (Files): Likewise.
93529 2007-10-30  Bruno Haible  <bruno@clisp.org>
93531         * modules/xvasprintf-posix: New file.
93532         Suggested by Eric Blake.
93534 2007-10-30  Bruno Haible  <bruno@clisp.org>
93536         * modules/xprintf-posix-tests: New file.
93537         * tests/test-xprintf-posix.sh: New file.
93538         * tests/test-xprintf-posix.c: New file.
93539         * tests/test-xfprintf-posix.c: New file.
93541         * modules/xprintf-posix: New file.
93543 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93545         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
93546         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
93547         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
93549 2007-10-29  Bruno Haible  <bruno@clisp.org>
93551         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
93552         contain the special marker '_cv_'.
93553         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
93554         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
93555         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
93556         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
93557         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
93558         Reported by Ralf Wildenhues.
93560 2007-10-29  Bruno Haible  <bruno@clisp.org>
93562         * gnulib-tool (func_import): When --lgpl is not specified, set
93563         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
93564         GPLv3.
93565         Reported by Simon Josefsson.
93567 2007-10-28  Bruno Haible  <bruno@clisp.org>
93569         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
93570         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
93571         HAVE_DECL_ISFINITE.
93572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
93573         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
93574         HAVE_DECL_ISFINITE.
93576 2007-10-28  Bruno Haible  <bruno@clisp.org>
93578         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
93579         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
93581 2007-10-28  Bruno Haible  <bruno@clisp.org>
93583         Fix link errors with Sun C 5.0 on Solaris 10.
93584         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
93585         function is declared but not present in the compiler's libm.
93586         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
93587         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
93588         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
93589         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
93590         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
93591         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
93592         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
93593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
93594         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
93595         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
93596         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
93597         HAVE_DECL_FLOORL.
93599 2007-10-28  Bruno Haible  <bruno@clisp.org>
93601         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
93602         gl_FUNC_FLOORL. Cache the result.
93603         (gl_FUNC_FLOORL): Use it.
93604         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
93605         gl_FUNC_CEILL. Cache the result.
93606         (gl_FUNC_CEILL): Use it.
93608         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
93609         gl_FUNC_FLOOR. Cache the result.
93610         (gl_FUNC_FLOOR): Use it.
93611         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
93612         gl_FUNC_CEIL. Cache the result.
93613         (gl_FUNC_CEIL): Use it.
93615         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
93616         gl_FUNC_FLOORF. Cache the result.
93617         (gl_FUNC_FLOORF): Use it.
93618         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
93619         gl_FUNC_CEILF. Cache the result.
93620         (gl_FUNC_CEILF): Use it.
93622 2007-10-28  Bruno Haible  <bruno@clisp.org>
93624         * gnulib-tool: Allow specifying the LGPL version number through
93625         --lgpl=2 or --lgpl=3.
93626         (func_usage): Document --lgpl with argument.
93627         Handle --lgpl=... arguments.
93628         (func_import): Recognize also gl_LGPL calls with an argument. When
93629         --lgpl=2 is used and the module's license is just LGPL, report an
93630         error. Set sed_transform_lib_file according to the lgpl variable. In
93631         the generated files, use --lgpl or gl_LGPL invocations with argument,
93632         if necessary.
93633         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
93634         an LGPv2+ license.
93635         * doc/gnulib-tool.texi (Modified imports): Update explanation of
93636         gl_LGPL macro.
93638 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93639             Bruno Haible  <bruno@clisp.org>
93641         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
93642         (u16_uctomb_aux): Likewise.
93643         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
93644         !HAVE_INLINE.
93645         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
93647 2007-10-28  Bruno Haible  <bruno@clisp.org>
93649         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
93650         Invoke AM_GETTEXT_OPTION if it exists.
93651         * modules/vasprintf: Likewise.
93652         * modules/verror: Likewise.
93653         * modules/xprintf: Likewise.
93654         * modules/xvasprintf: Likewise.
93656 2007-10-27  Ben Pfaff  <blp@gnu.org>
93658         * lib/math.in.h: Define isfinite macro and prototypes for
93659         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
93660         implementations.
93661         * m4/math_h.m4: New substitutions for isfinite module.
93662         * lib/isfinite.c: New file.
93663         * m4/isfinite.m4: New file.
93664         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
93665         * modules/isfinite: New file.
93666         * modules/isfinite-tests: New file.
93667         * tests/tests-isfinite.c: New file.
93668         * doc/functions/isfinite.texi: Mention isfinite module.
93669         * MODULES.html.sh: Mention new module.
93671 2007-10-27  Ben Pfaff  <blp@gnu.org>
93673         Ralf Wildenhues reported that Tru64 4.0D declares the round
93674         functions but does not have definitions.
93675         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
93676         cannot be found in any library, set the output variable to
93677         "missing" instead of "".
93678         * m4/round.m4: Also use our substitute if we cannot find round in
93679         any library, even if it is declared.
93680         * m4/roundf.m4: Likewise for roundf.
93681         * m4/roundl.m4: Likewise for roundl.
93682         * lib/math.in.h: Undefine roundf, round, roundl before defining
93683         their replacements, to allow for hypothetical systems where these
93684         may be defined as macros but not available in libraries.
93686 2007-10-27  Bruno Haible  <bruno@clisp.org>
93688         * doc/gnulib.texi: Invoke @firstparagraphindent.
93689         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
93690         changes in gnulib.
93691         (Source changes): New section.
93693 2007-10-26  Bruno Haible  <bruno@clisp.org>
93695         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
93696         borrowed from autoconf.
93698 2007-10-26  Bruno Haible  <bruno@clisp.org>
93700         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
93701         strerror returned the empty string. Needed on HP-UX 11.00.
93703 2007-10-24  Micah Cowan  <micah@cowan.name>
93705         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
93706         * build-aux/bootstrap: Remove support for now-unnecessary option,
93707         --cvs-user, and envvars CVS_USER, CVS_RSH.
93709 2007-10-24  Jim Meyering  <meyering@redhat.com>
93711         Avoid diagnostics from sha1sum when there is no cached checksum.
93712         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
93713         if the po.s1 file hasn't been created yet.
93715         * build-aux/bootstrap: Sync from coreutils:
93716         2007-10-24  Jim Meyering  <meyering@redhat.com>
93717         Get gnulib from the git repository, not from an obsolete cvs one.
93718         * build-aux/bootstrap: Suggestion from Micah Cowan.
93719         2007-10-04  Jim Meyering  <jim@meyering.net>
93720         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
93721         (update_po_files): Work also when there are no .po files in po/.
93723 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93725         * README: Append ".git" to git and cg examples.
93726         Problem reported by Benoit Sigoure.
93728 2007-10-23  Micah Cowan  <micah@cowan.name>
93730         * users.txt: Add wget.
93732 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93734         Fix linking of some unistdio tests on FreeBSD.
93735         * modules/unistdio/u16-vsnprintf-tests
93736         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
93737         * modules/unistdio/u16-vsprintf-tests
93738         (test_u16_vsnprintf1_LDADD): Likewise.
93739         * modules/unistdio/u32-vsnprintf-tests
93740         (test_u32_vsnprintf1_LDADD): Likewise.
93741         * modules/unistdio/u32-vsprintf-tests
93742         (test_u32_vsprintf1_LDADD): Likewise.
93743         * modules/unistdio/u8-vsnprintf-tests
93744         (test_u8_vsnprintf1_LDADD): Likewise.
93745         * modules/unistdio/u8-vsprintf-tests
93746         (test_u8_vsprintf1_LDADD): Likewise.
93747         * modules/unistdio/ulc-vsnprintf-tests
93748         (test_ulc_vsnprintf1_LDADD): Likewise.
93749         * modules/unistdio/ulc-vsprintf-tests
93750         (test_ulc_vsprintf1_LDADD): Likewise.
93752         Fix linking of some uniconv tests on FreeBSD.
93753         * modules/uniconv/u16-conv-from-enc-tests
93754         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
93755         * modules/uniconv/u16-conv-to-enc-tests
93756         (test_u16_conv_to_enc_LDADD): Likewise.
93757         * modules/uniconv/u16-strconv-from-enc-tests
93758         (test_u16_strconv_from_enc_LDADD): Likewise.
93759         * modules/uniconv/u16-strconv-to-enc-tests
93760         (test_u16_strconv_to_enc_LDADD): Likewise.
93761         * modules/uniconv/u32-conv-from-enc-tests
93762         (test_u32_conv_from_enc_LDADD): Likewise.
93763         * modules/uniconv/u32-conv-to-enc-tests
93764         (test_u32_conv_to_enc_LDADD): Likewise.
93765         * modules/uniconv/u32-strconv-from-enc-tests
93766         (test_u32_strconv_from_enc_LDADD): Likewise.
93767         * modules/uniconv/u32-strconv-to-enc-tests
93768         (test_u32_strconv_to_enc_LDADD): Likewise.
93769         * modules/uniconv/u8-conv-from-enc-tests
93770         (test_u8_conv_from_enc_LDADD): Likewise.
93771         * modules/uniconv/u8-conv-to-enc-tests
93772         (test_u8_conv_to_enc_LDADD): Likewise.
93773         * modules/uniconv/u8-strconv-from-enc-tests
93774         (test_u8_strconv_from_enc_LDADD): Likewise.
93775         * modules/uniconv/u8-strconv-to-enc-tests
93776         (test_u8_strconv_to_enc_LDADD): Likewise.
93778 2007-10-22  Bruno Haible  <bruno@clisp.org>
93780         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
93781         size.
93783 2007-10-22  Eric Blake  <ebb9@byu.net>
93785         Tweak x*printf documentation.
93786         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
93787         variable name and comments.
93788         Suggested by Bruno Haible.
93790 2007-10-22  Bruno Haible  <bruno@clisp.org>
93792         * lib/acl.c (copy_acl): Fix file name in comment.
93794 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
93796         Fix Tru64 problem with stdbool.h.
93797         * lib/stdbool.in.h (false, true):
93798         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
93799         Don't declare as an enum in this situation; it runs afoul of Tru64.
93800         Problem reported by Steven M. Schweda in
93801         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
93803 2007-10-22  Eric Blake  <ebb9@byu.net>
93805         Also wrap vf?printf.
93806         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
93807         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
93808         (xvprintf, xvfprintf): New functions.
93810 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93812         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
93813         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
93815         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
93816         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
93818 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
93820         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
93821         by Bruno Haible.
93823 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93825         * lib/getloadavg.c
93826         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
93827         Undef `sys' after including sys/table.h, for Tru64 4.0D.
93829         * tests/test-i-ring.c: Work for C89.
93831 2007-10-22  Bruno Haible  <bruno@clisp.org>
93833         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
93834         -1u, in preprocessor expression, so that we don't test for the bug
93835         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
93836         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
93838 2007-10-22  Eric Blake  <ebb9@byu.net>
93840         * tests/test-yesno.sh: Silence stderr during test.
93842 2007-10-22  Simon Josefsson  <simon@josefsson.org>
93844         * modules/crypto/gc-camellia: New file.
93846         * m4/gc-camellia.m4: New file.
93848         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
93850         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
93852 2007-10-22  Simon Josefsson  <simon@josefsson.org>
93854         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
93855         --help to stdout.  Reported by sms@antinode.org (Steven
93856         M. Schweda).
93858 2007-10-22  Simon Josefsson  <simon@josefsson.org>
93860         * users.txt: Fix link to libksba.
93862 2007-10-21  Ben Pfaff  <blp@gnu.org>
93864         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
93865         round.c roundf implementation that depends on floorf and ceilf to
93866         be tested unconditionally.
93868 2007-10-21  Ben Pfaff  <blp@gnu.org>
93870         * m4/check-libm-func.m4: Removed.
93871         * m4/check-math-lib.m4: New file.
93872         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
93873         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
93874         definition and lack of AC_LIBOBJ([roundf]).
93875         * m4/roundl.m4: Ditto, and similarly for roundl.
93876         * modules/round: Reference new m4 file.
93877         * modules/roundf: Ditto.
93878         * modules/roundl: Ditto.
93879         * tests/test-round2.c (main): Use ROUND instead of round.
93880         Bug report from Bruno Haible.
93882 2007-10-21  Bruno Haible  <bruno@clisp.org>
93884         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
93885         context.
93887 2007-10-21  Bruno Haible  <bruno@clisp.org>
93889         * tests/test-wcwidth.c (main): Allow negative result for some control
93890         characters.
93892         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
93893         Needed on OSF/1 5.1.
93895 2007-10-21  Bruno Haible  <bruno@clisp.org>
93897         * tests/test-floorf1.c: Include isnanf.h.
93898         (main): Use isnanf() instead of isnan().
93899         * tests/test-ceilf1.c: Include isnanf.h.
93900         (main): Use isnanf() instead of isnan().
93901         * tests/test-truncf1.c: Include isnanf.h.
93902         (main): Use isnanf() instead of isnan().
93903         * tests/test-roundf1.c: Include isnanf.h.
93904         (main): Use isnanf() instead of isnan().
93906 2007-10-21  Eric Blake  <ebb9@byu.net>
93908         * users.txt: Update URL for m4.
93910 2007-10-21  Bruno Haible  <bruno@clisp.org>
93912         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
93914 2007-10-21  Bruno Haible  <bruno@clisp.org>
93916         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
93917         Git's management files if the CVS files are not present.
93919 2007-10-20  Bruno Haible  <bruno@clisp.org>
93921         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
93922         gcc-3.4.x.
93924 2007-10-20  Ben Pfaff  <blp@gnu.org>
93926         * lib/math.in.h: Declare round, roundf, roundl if we are providing
93927         implementations.
93928         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
93929         * lib/round.c: New file.
93930         * lib/roundf.c: New file.
93931         * lib/roundl.c: New file.
93932         * m4/round.m4: New file.
93933         * m4/roundf.m4: New file.
93934         * m4/roundl.m4: New file.
93935         * m4/check-libm-func-m4: New file.
93936         * modules/math: Replace round, roundf, roundl related @VARS@ in
93937         math.in.h.
93938         * modules/round: New file.
93939         * modules/round-tests: New file.
93940         * modules/roundf: New file.
93941         * modules/roundf-tests: New file.
93942         * modules/roundl: New file.
93943         * modules/roundl-tests: New file.
93944         * tests/test-round1.c: New file.
93945         * tests/test-round2.c: New file.
93946         * tests/test-roundf1.c: New file.
93947         * tests/test-roundf2.c: New file.
93948         * tests/test-roundl.c: New file.
93949         * doc/functions/round.texi: Mention round module.
93950         * doc/functions/roundf.texi: Mention roundf module.
93951         * doc/functions/roundl.texi: Mention roundl module.
93952         * MODULES.html.sh: Mention new modules.
93953         Thanks to Bruno Haible for suggestions.
93955 2007-10-20  Jim Meyering  <meyering@redhat.com>
93957         * lib/xprintf.c: Include <config.h> unconditionally.
93959         Change xprintf's license to GPL.
93960         * modules/xprintf (License): s/LGPL/GPL/, since this module
93961         depends on modules (exit and exitfail) which are GPL.
93962         Suggestion from Bruno Haible.
93964         xprintf fixes.
93965         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
93966         Use a clearer diagnostic.
93967         Patch from Bruno Haible.
93969 2007-10-20  Bruno Haible  <bruno@clisp.org>
93971         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
93972         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
93973         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93975 2007-10-20  Bruno Haible  <bruno@clisp.org>
93977         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
93978         precision in the comparison result > x - 1 or similar.
93979         * tests/test-ceilf2.c (correct_result_p): Likewise.
93980         * tests/test-truncf2.c (correct_result_p): Likewise.
93981         * tests/test-trunc2.c (correct_result_p): Likewise.
93982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93984 2007-10-20  Bruno Haible  <bruno@clisp.org>
93986         * modules/ceil: New file.
93987         * m4/ceil.m4: New file.
93988         * doc/functions/ceil.texi: Mention the 'ceil' module.
93990 2007-10-20  Bruno Haible  <bruno@clisp.org>
93992         * modules/floor: New file.
93993         * m4/floor.m4: New file.
93994         * doc/functions/floor.texi: Mention the 'floor' module.
93996 2007-10-20  Bruno Haible  <bruno@clisp.org>
93998         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
93999         of %a.
94000         * modules/floorf-tests (Depends-on): Likewise.
94001         * modules/truncf-tests (Depends-on): Likewise.
94002         * modules/trunc-tests (Depends-on): Likewise.
94003         Reported by Ben Pfaff.
94005 2007-10-19  Jim Meyering  <meyering@redhat.com>
94007         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
94008         Don't bother testing specific errno values.  Just test ferror.
94010         New module: xprintf
94011         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
94013 2007-10-19  Bruno Haible  <bruno@clisp.org>
94015         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
94016         syntax.
94017         * modules/javaexec (Makefile.am): Likewise.
94018         * modules/relocatable-prog (Makefile.am): Likewise.
94019         Suggested by Jim Meyering.
94021 2007-10-18  Bruno Haible  <bruno@clisp.org>
94023         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
94024         Reported by Jim Meyering.
94026 2007-10-18  Eric Blake  <ebb9@byu.net>
94028         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
94030 2007-10-18  Bruno Haible  <bruno@clisp.org>
94032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
94033         the format string into writable memory. Needed in Fortify conditions.
94035 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
94036             Bruno Haible  <bruno@clisp.org>
94038         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
94039         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
94040         * modules/trim (Depends-on): Add mbchar.
94041         (configure.ac): Add gl_FUNC_MBRTOWC.
94042         (Makefile.am): Augment lib_SOURCES.
94044 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
94046         Modify glob.c to use fstatat and dirfd, to simplify it.
94047         Suggested by Eric Blake.
94048         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
94049         Don't include <stdbool.h>; not used.
94050         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
94051         (link_exists_p): Simplify implementation, since we can now assume
94052         dirfd and fstatat.
94053         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
94055 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94057         * gnulib-tool (func_get_dependencies): Fix sed script to
94058         match only tests.
94060 2007-10-17  Bruno Haible  <bruno@clisp.org>
94062         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
94063         allow locale names without encoding suffix.
94064         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94065         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94067 2007-10-16  Bruno Haible  <bruno@clisp.org>
94069         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
94070         * lib/getgroups.c (getgroups): Likewise.
94071         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
94073 2007-10-16  Bruno Haible  <bruno@clisp.org>
94075         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
94076         * modules/malloc-posix (License): Likewise.
94077         * modules/realloc-posix (License): Likewise.
94078         * modules/calloc-posix (License): Likewise.
94079         * modules/intprops (License): Change from GPL to LGPL, with
94080         Paul Eggert's approval.
94082 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
94084         Merge glibc changes into lib/glob.c.
94086         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
94087         2007-10-15 04:59:03 UTC.  Here are the changes:
94089         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
94091         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
94093         * lib/glob.c: Add some branch prediction throughout.
94095         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
94097         [BZ #5103]
94098         * lib/glob.c (glob): Recognize patterns starting \/.
94100         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
94102         [BZ #3996]
94103         * lib/glob.c (attribute_hidden): Define if not defined.
94104         (glob): Unescape dirname, filename or username when needed and not
94105         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
94106         is NULL.  Handle unescaped [ in pattern without closing ].
94107         Don't pass GLOB_CHECK down to recursive glob for directories.
94108         (__glob_pattern_type): New function.
94109         (__glob_pattern_p): Implement using __glob_pattern_type.
94110         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
94111         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
94112         Remove unreachable code.
94114         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
94116         * lib/glob.c (glob_in_dir): Add some comments and asserts to
94117         explain why there are no leaks.
94119         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
94121         [BZ #3253]
94122         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
94123         time, rather allocate increasingly bigger arrays of pointers, if
94124         possible with alloca, if too large with malloc.
94126 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
94128         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
94129         Problem reported by H.Merijn Brand in
94130         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
94131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
94132         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
94134 2007-10-15  Bruno Haible  <bruno@clisp.org>
94136         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
94137         with explicit rpl_ prefix.
94138         * lib/fopen.c (fopen): Likewise.
94139         * lib/freopen.c (freopen): Likewise.
94140         * lib/iconv.c (iconv): Likewise.
94141         * lib/iconv_close.c (iconv_close): Likewise.
94143 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94145         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
94147 2007-10-15  Bruno Haible  <bruno@clisp.org>
94149         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
94150         <stddef.h> instead of <stdlib.h> since we only need NULL.
94151         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94153 2007-10-15  Bruno Haible  <bruno@clisp.org>
94155         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
94156         Replace paragraph talking about LIBOBJS.
94157         Reported by Colin Watson <cjwatson@debian.org>.
94159 2007-10-15  Bruno Haible  <bruno@clisp.org>
94161         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
94162         <stdlib.h> before using NULL.
94164 2007-10-15  Simon Josefsson  <simon@josefsson.org>
94166         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
94167         Reported by Albert Chin <china@thewrittenword.com>.
94169 2007-10-14  Bruno Haible  <bruno@clisp.org>
94171         * modules/iconv_open-utf-tests: New file.
94172         * tests/test-iconv-utf.c: New file.
94174         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
94175         * modules/iconv_open-utf: New file.
94176         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
94177         (iconv, iconv_close): New declarations.
94178         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
94179         be defined.
94180         (iconv_open): Add special handling of conversion between UTF-8 and
94181         UTF-{16,32}{BE,LE}.
94182         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
94183         * lib/iconv_close.c: New file.
94184         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
94185         gl_FUNC_ICONV_OPEN.
94186         (gl_FUNC_ICONV_OPEN): Use it.
94187         (gl_FUNC_ICONV_OPEN_UTF): New macro.
94188         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
94189         and REPLACE_ICONV_UTF.
94190         * modules/iconv_open (Depends-on): Add c-strcase.
94191         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
94192         ICONV_CONST.
94193         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
94195 2007-10-13  Albert Chin  <china@thewrittenword.com>
94196             Bruno Haible  <bruno@clisp.org>
94198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
94199         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
94201 2007-10-13  Bruno Haible  <bruno@clisp.org>
94203         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
94204         defined, use the ISO C99 inline semantics.
94205         * lib/argp.h (ARGP_EI): Likewise.
94207 2007-10-13  Bruno Haible  <bruno@clisp.org>
94209         Handle 'inline' change in gcc 4.3.0.
94210         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
94211         argp_fmtstream_write, argp_fmtstream_set_lmargin,
94212         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
94213         argp_fmtstream_point): Disable 'extern' declaration if the function
94214         definition is going to be provided inline.
94215         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
94216         semantics, not the ISO C99 inline semantics.
94217         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
94218         'extern' declaration if the function definition is going to be provided
94219         inline.
94220         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
94221         the GNU C inline semantics, not the ISO C99 inline semantics. With
94222         GCC 4.2, avoid a warning.
94224 2007-10-13  Bruno Haible  <bruno@clisp.org>
94226         * lib/freading.h (freading): Enable the use of __freading for
94227         glibc >= 2.7.
94228         * lib/freading.c (freading): Likewise.
94230 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94232         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
94233         "warning: C99 inline functions are not supported; using GNU89".
94235 2007-10-12  Bruno Haible  <bruno@clisp.org>
94237         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
94238         of 2.
94239         * tests/test-ceilf2.c: New file.
94240         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
94242         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
94243         * modules/ceilf-tests: Update.
94245 2007-10-12  Bruno Haible  <bruno@clisp.org>
94247         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
94248         of 2.
94249         * tests/test-floorf2.c: New file.
94250         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
94252         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
94253         * modules/floorf-tests: Update.
94255 2007-10-12  Bruno Haible  <bruno@clisp.org>
94257         * tests/test-trunc2.c: New file.
94258         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
94260         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
94261         * modules/trunc-tests: Update.
94263 2007-10-12  Bruno Haible  <bruno@clisp.org>
94265         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
94266         of 2.
94267         * tests/test-truncf2.c: New file.
94268         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
94270         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
94271         * modules/truncf-tests: Update.
94273 2007-10-11  Eric Blake  <ebb9@byu.net>
94275         Don't claim strerror is broken on Interix.
94276         * doc/functions/strerror.texi (strerror): Known broken systems are
94277         now Solaris 8, and not Interix.
94278         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
94279         Interix on cross-compile.
94280         Reported by Martin Koeppe in
94281         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
94283 2007-10-11  Bruno Haible  <bruno@clisp.org>
94285         * modules/i-ring-tests: New file.
94286         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
94287         instead of assert.
94289 2007-10-11  Bruno Haible  <bruno@clisp.org>
94291         * modules/filenamecat-tests: New file.
94292         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
94293         * lib/filenamecat.c: Remove test code.
94295 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94297         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
94299         * lib/strerror.c: Include <string.h> always, to test interface,
94300         and to remove the need for the dummy.
94301         Include intprops.h to compute width instead of doing it ourselves
94302         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
94303         (strerror): Define it to return NULL if there's no system strerror.
94304         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
94305         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
94306         ancient pre-strerror Unix systems well any more.  Saying "unknown
94307         system error" is enough.
94308         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
94309         simpler strerror.c implementation.
94310         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
94311         Simplify the tests to reflect the simpler strerror implementation.
94312         * modules/strerror (Depends-on): Add intprops.
94314 2007-10-09  Eric Blake  <ebb9@byu.net>
94316         Silence test-fpending.
94317         * modules/fpending-tests (Files): Add wrapper script.
94318         * tests/test-fpending.sh: New file.
94320 2007-10-09  Bruno Haible  <bruno@clisp.org>
94322         * MODULES.html.sh (func_module): Don't create a hyperlink for
94323         function names like 'printf_frexp'.
94324         (Misc): Add crc, memxor.
94325         (Characteristics of floating types): New section.
94326         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
94327         isnanf-nolibm, signbit, trunc, truncf, truncl.
94328         (Enhancements for ISO C 99 functions): New subsection Input/output.
94329         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
94330         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
94331         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
94332         (Compatibility checks for POSIX:2001 functions): Add clock-time.
94333         (Enhancements for POSIX:2001 functions): Add chdir-long.
94334         (File system functions): Add areadlink, chdir-safer, read-file.
94335         Remove cycle-check.
94336         (File system as inode set): New section.
94337         (Date and time): Add gethrxtime.
94338         (Multithreading): Add openmp.
94339         (Internationalization functions): Add localename.
94340         (Unicode string functions): Add unistr/u*-mbsnlen.
94341         (Support for maintaining and releasing projects): Add git-version-gen.
94342         (Lone files): Remove directories.
94344 2007-10-08  Ben Pfaff  <blp@gnu.org>
94346         * lib/xmalloca.h: Fix typo in comment.
94348 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94350         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
94351         when avoiding problems with integer overflow.  Use a portable test
94352         instead.
94354 2007-10-08  Simon Josefsson  <simon@josefsson.org>
94356         * modules/dummy (License): Change to LGPLv2+.
94357         * modules/float (License): Likewise
94358         * modules/realloc (License): Likewise
94359         * modules/stdlib (License): Likewise
94361 2007-10-07  Bruno Haible  <bruno@clisp.org>
94363         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
94364         * floor.c (TWO_MANT_DIG): Likewise.
94365         * ceil.c (TWO_MANT_DIG): Likewise.
94366         Reported by Ben Pfaff.
94368 2007-10-07  Bruno Haible  <bruno@clisp.org>
94370         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
94371         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
94372         * lib/frexp.c (FUNC): Likewise.
94373         * lib/printf-frexp.h (printf_frexp): Likewise.
94374         * lib/printf-frexpl.h (printf_frexpl): Likewise.
94375         * lib/printf-frexp.c (FUNC): Likewise.
94376         Suggested by Jim Meyering.
94378 2007-10-07  Jim Meyering  <meyering@redhat.com>
94380         Make xnanosleep's integer overflow test more robust.
94381         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
94382         so that gcc-4.3.0 doesn't optimize away this test for overflow.
94384 2007-10-07  Bruno Haible  <bruno@clisp.org>
94386         * NEWS: Mention the license change.
94388         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
94389         abbreviations in the modules files.
94391         Change copyright notice from GPLv2+ to GPLv3+.
94392         * README: Change copyright notice.
94393         * MODULES.html.sh: Likewise.
94394         * build-aux/bootstrap.conf: Likewise.
94395         * build-aux/config.libpath: Likewise.
94396         * build-aux/csharpcomp.sh.in: Likewise.
94397         * build-aux/csharpexec.sh.in: Likewise.
94398         * build-aux/install-reloc: Likewise.
94399         * build-aux/javacomp.sh.in: Likewise.
94400         * build-aux/javaexec.sh.in: Likewise.
94401         * build-aux/ldd.sh.in: Likewise.
94402         * build-aux/reloc-ldflags: Likewise.
94403         * build-aux/relocatable.sh.in: Likewise.
94404         * build-aux/x-to-1.in: Likewise.
94405         * check-module: Likewise.
94406         * config/srclistvars.sh: Likewise.
94407         * gnulib-tool: Likewise.
94408         * lib/acl-internal.h: Likewise.
94409         * lib/acl.c: Likewise.
94410         * lib/acl.h: Likewise.
94411         * lib/acl_entries.c: Likewise.
94412         * lib/areadlink-with-size.c: Likewise.
94413         * lib/areadlink.c: Likewise.
94414         * lib/areadlink.h: Likewise.
94415         * lib/argmatch.c: Likewise.
94416         * lib/argmatch.h: Likewise.
94417         * lib/argp-ba.c: Likewise.
94418         * lib/argp-eexst.c: Likewise.
94419         * lib/argp-fmtstream.c: Likewise.
94420         * lib/argp-fmtstream.h: Likewise.
94421         * lib/argp-fs-xinl.c: Likewise.
94422         * lib/argp-help.c: Likewise.
94423         * lib/argp-namefrob.h: Likewise.
94424         * lib/argp-parse.c: Likewise.
94425         * lib/argp-pin.c: Likewise.
94426         * lib/argp-pv.c: Likewise.
94427         * lib/argp-pvh.c: Likewise.
94428         * lib/argp-xinl.c: Likewise.
94429         * lib/argp.h: Likewise.
94430         * lib/at-func.c: Likewise.
94431         * lib/atanl.c: Likewise.
94432         * lib/backupfile.c: Likewise.
94433         * lib/backupfile.h: Likewise.
94434         * lib/basename.c: Likewise.
94435         * lib/binary-io.h: Likewise.
94436         * lib/byteswap.in.h: Likewise.
94437         * lib/c-stack.c: Likewise.
94438         * lib/c-stack.h: Likewise.
94439         * lib/c-strcasestr.c: Likewise.
94440         * lib/c-strcasestr.h: Likewise.
94441         * lib/c-strstr.c: Likewise.
94442         * lib/c-strstr.h: Likewise.
94443         * lib/c-strtod.c: Likewise.
94444         * lib/calloc.c: Likewise.
94445         * lib/canon-host.c: Likewise.
94446         * lib/canon-host.h: Likewise.
94447         * lib/canonicalize-lgpl.c: Likewise.
94448         * lib/canonicalize.c: Likewise.
94449         * lib/canonicalize.h: Likewise.
94450         * lib/ceil.c: Likewise.
94451         * lib/ceilf.c: Likewise.
94452         * lib/ceill.c: Likewise.
94453         * lib/chdir-long.c: Likewise.
94454         * lib/chdir-long.h: Likewise.
94455         * lib/chdir-safer.c: Likewise.
94456         * lib/chdir-safer.h: Likewise.
94457         * lib/chown.c: Likewise.
94458         * lib/classpath.c: Likewise.
94459         * lib/classpath.h: Likewise.
94460         * lib/clean-temp.c: Likewise.
94461         * lib/clean-temp.h: Likewise.
94462         * lib/cloexec.c: Likewise.
94463         * lib/close-stream.c: Likewise.
94464         * lib/closein.c: Likewise.
94465         * lib/closein.h: Likewise.
94466         * lib/closeout.c: Likewise.
94467         * lib/closeout.h: Likewise.
94468         * lib/concat-filename.c: Likewise.
94469         * lib/copy-file.c: Likewise.
94470         * lib/copy-file.h: Likewise.
94471         * lib/count-one-bits.h: Likewise.
94472         * lib/crc.c: Likewise.
94473         * lib/crc.h: Likewise.
94474         * lib/creat-safer.c: Likewise.
94475         * lib/csharpcomp.c: Likewise.
94476         * lib/csharpcomp.h: Likewise.
94477         * lib/csharpexec.c: Likewise.
94478         * lib/csharpexec.h: Likewise.
94479         * lib/cycle-check.c: Likewise.
94480         * lib/cycle-check.h: Likewise.
94481         * lib/diacrit.c: Likewise.
94482         * lib/diacrit.h: Likewise.
94483         * lib/diffseq.h: Likewise.
94484         * lib/dirchownmod.c: Likewise.
94485         * lib/dirent.in.h: Likewise.
94486         * lib/dirfd.c: Likewise.
94487         * lib/dirfd.h: Likewise.
94488         * lib/dirname.c: Likewise.
94489         * lib/dirname.h: Likewise.
94490         * lib/dummy.c: Likewise.
94491         * lib/dup-safer.c: Likewise.
94492         * lib/dup2.c: Likewise.
94493         * lib/eealloc.h: Likewise.
94494         * lib/error.c: Likewise.
94495         * lib/error.h: Likewise.
94496         * lib/euidaccess.c: Likewise.
94497         * lib/exclude.c: Likewise.
94498         * lib/exclude.h: Likewise.
94499         * lib/execute.c: Likewise.
94500         * lib/execute.h: Likewise.
94501         * lib/exitfail.c: Likewise.
94502         * lib/exitfail.h: Likewise.
94503         * lib/expl.c: Likewise.
94504         * lib/fatal-signal.c: Likewise.
94505         * lib/fatal-signal.h: Likewise.
94506         * lib/fbufmode.c: Likewise.
94507         * lib/fbufmode.h: Likewise.
94508         * lib/fchdir.c: Likewise.
94509         * lib/fchmodat.c: Likewise.
94510         * lib/fchownat.c: Likewise.
94511         * lib/fcntl--.h: Likewise.
94512         * lib/fcntl-safer.h: Likewise.
94513         * lib/fcntl.in.h: Likewise.
94514         * lib/fd-safer.c: Likewise.
94515         * lib/fflush.c: Likewise.
94516         * lib/file-has-acl.c: Likewise.
94517         * lib/file-set.c: Likewise.
94518         * lib/file-type.c: Likewise.
94519         * lib/file-type.h: Likewise.
94520         * lib/fileblocks.c: Likewise.
94521         * lib/filemode.c: Likewise.
94522         * lib/filemode.h: Likewise.
94523         * lib/filename.h: Likewise.
94524         * lib/filenamecat.c: Likewise.
94525         * lib/filenamecat.h: Likewise.
94526         * lib/findprog.c: Likewise.
94527         * lib/findprog.h: Likewise.
94528         * lib/float.in.h: Likewise.
94529         * lib/floor.c: Likewise.
94530         * lib/floorf.c: Likewise.
94531         * lib/floorl.c: Likewise.
94532         * lib/fopen-safer.c: Likewise.
94533         * lib/fopen.c: Likewise.
94534         * lib/fpending.c: Likewise.
94535         * lib/fpending.h: Likewise.
94536         * lib/fprintf.c: Likewise.
94537         * lib/fprintftime.h: Likewise.
94538         * lib/fpucw.h: Likewise.
94539         * lib/fpurge.c: Likewise.
94540         * lib/fpurge.h: Likewise.
94541         * lib/freadable.c: Likewise.
94542         * lib/freadable.h: Likewise.
94543         * lib/freadahead.c: Likewise.
94544         * lib/freadahead.h: Likewise.
94545         * lib/freading.c: Likewise.
94546         * lib/freading.h: Likewise.
94547         * lib/free.c: Likewise.
94548         * lib/freopen.c: Likewise.
94549         * lib/frexp.c: Likewise.
94550         * lib/frexpl.c: Likewise.
94551         * lib/fseek.c: Likewise.
94552         * lib/fseterr.c: Likewise.
94553         * lib/fseterr.h: Likewise.
94554         * lib/fstatat.c: Likewise.
94555         * lib/fstrcmp.c: Likewise.
94556         * lib/fstrcmp.h: Likewise.
94557         * lib/fsusage.c: Likewise.
94558         * lib/fsusage.h: Likewise.
94559         * lib/ftell.c: Likewise.
94560         * lib/ftello.c: Likewise.
94561         * lib/fts-cycle.c: Likewise.
94562         * lib/fts.c: Likewise.
94563         * lib/fts_.h: Likewise.
94564         * lib/full-read.c: Likewise.
94565         * lib/full-read.h: Likewise.
94566         * lib/full-write.c: Likewise.
94567         * lib/full-write.h: Likewise.
94568         * lib/fwritable.c: Likewise.
94569         * lib/fwritable.h: Likewise.
94570         * lib/fwriteerror.c: Likewise.
94571         * lib/fwriteerror.h: Likewise.
94572         * lib/fwriting.c: Likewise.
94573         * lib/fwriting.h: Likewise.
94574         * lib/gcd.c: Likewise.
94575         * lib/gcd.h: Likewise.
94576         * lib/getcwd.c: Likewise.
94577         * lib/getdate.h: Likewise.
94578         * lib/getdate.y: Likewise.
94579         * lib/getdomainname.c: Likewise.
94580         * lib/getdomainname.h: Likewise.
94581         * lib/getgroups.c: Likewise.
94582         * lib/gethostname.c: Likewise.
94583         * lib/gethrxtime.c: Likewise.
94584         * lib/gethrxtime.h: Likewise.
94585         * lib/getloadavg.c: Likewise.
94586         * lib/getndelim2.c: Likewise.
94587         * lib/getndelim2.h: Likewise.
94588         * lib/getnline.c: Likewise.
94589         * lib/getnline.h: Likewise.
94590         * lib/getopt.c: Likewise.
94591         * lib/getopt.in.h: Likewise.
94592         * lib/getopt1.c: Likewise.
94593         * lib/getopt_int.h: Likewise.
94594         * lib/getpagesize.h: Likewise.
94595         * lib/getsubopt.c: Likewise.
94596         * lib/gettime.c: Likewise.
94597         * lib/getugroups.c: Likewise.
94598         * lib/getugroups.h: Likewise.
94599         * lib/getusershell.c: Likewise.
94600         * lib/gl_anyavltree_list1.h: Likewise.
94601         * lib/gl_anyavltree_list2.h: Likewise.
94602         * lib/gl_anyhash_list1.h: Likewise.
94603         * lib/gl_anyhash_list2.h: Likewise.
94604         * lib/gl_anylinked_list1.h: Likewise.
94605         * lib/gl_anylinked_list2.h: Likewise.
94606         * lib/gl_anyrbtree_list1.h: Likewise.
94607         * lib/gl_anyrbtree_list2.h: Likewise.
94608         * lib/gl_anytree_list1.h: Likewise.
94609         * lib/gl_anytree_list2.h: Likewise.
94610         * lib/gl_anytree_oset.h: Likewise.
94611         * lib/gl_anytreehash_list1.h: Likewise.
94612         * lib/gl_anytreehash_list2.h: Likewise.
94613         * lib/gl_array_list.c: Likewise.
94614         * lib/gl_array_list.h: Likewise.
94615         * lib/gl_array_oset.c: Likewise.
94616         * lib/gl_array_oset.h: Likewise.
94617         * lib/gl_avltree_list.c: Likewise.
94618         * lib/gl_avltree_list.h: Likewise.
94619         * lib/gl_avltree_oset.c: Likewise.
94620         * lib/gl_avltree_oset.h: Likewise.
94621         * lib/gl_avltreehash_list.c: Likewise.
94622         * lib/gl_avltreehash_list.h: Likewise.
94623         * lib/gl_carray_list.c: Likewise.
94624         * lib/gl_carray_list.h: Likewise.
94625         * lib/gl_linked_list.c: Likewise.
94626         * lib/gl_linked_list.h: Likewise.
94627         * lib/gl_linkedhash_list.c: Likewise.
94628         * lib/gl_linkedhash_list.h: Likewise.
94629         * lib/gl_list.c: Likewise.
94630         * lib/gl_list.h: Likewise.
94631         * lib/gl_oset.c: Likewise.
94632         * lib/gl_oset.h: Likewise.
94633         * lib/gl_rbtree_list.c: Likewise.
94634         * lib/gl_rbtree_list.h: Likewise.
94635         * lib/gl_rbtree_oset.c: Likewise.
94636         * lib/gl_rbtree_oset.h: Likewise.
94637         * lib/gl_rbtreehash_list.c: Likewise.
94638         * lib/gl_rbtreehash_list.h: Likewise.
94639         * lib/gl_sublist.c: Likewise.
94640         * lib/gl_sublist.h: Likewise.
94641         * lib/group-member.c: Likewise.
94642         * lib/group-member.h: Likewise.
94643         * lib/hard-locale.c: Likewise.
94644         * lib/hard-locale.h: Likewise.
94645         * lib/hash-pjw.c: Likewise.
94646         * lib/hash-pjw.h: Likewise.
94647         * lib/hash-triple.c: Likewise.
94648         * lib/hash.c: Likewise.
94649         * lib/hash.h: Likewise.
94650         * lib/human.c: Likewise.
94651         * lib/human.h: Likewise.
94652         * lib/i-ring.c: Likewise.
94653         * lib/i-ring.h: Likewise.
94654         * lib/idcache.c: Likewise.
94655         * lib/imaxabs.c: Likewise.
94656         * lib/imaxdiv.c: Likewise.
94657         * lib/inet_pton.c: Likewise.
94658         * lib/inet_pton.h: Likewise.
94659         * lib/intprops.h: Likewise.
94660         * lib/inttostr.c: Likewise.
94661         * lib/inttostr.h: Likewise.
94662         * lib/inttypes.in.h: Likewise.
94663         * lib/isapipe.c: Likewise.
94664         * lib/isdir.c: Likewise.
94665         * lib/isnan.c: Likewise.
94666         * lib/isnan.h: Likewise.
94667         * lib/isnanf.c: Likewise.
94668         * lib/isnanf.h: Likewise.
94669         * lib/isnanl-nolibm.h: Likewise.
94670         * lib/isnanl.c: Likewise.
94671         * lib/isnanl.h: Likewise.
94672         * lib/javacomp.c: Likewise.
94673         * lib/javacomp.h: Likewise.
94674         * lib/javaexec.c: Likewise.
94675         * lib/javaexec.h: Likewise.
94676         * lib/javaversion.c: Likewise.
94677         * lib/javaversion.h: Likewise.
94678         * lib/javaversion.java: Likewise.
94679         * lib/lbrkprop.h: Likewise.
94680         * lib/lchmod.h: Likewise.
94681         * lib/lchown.c: Likewise.
94682         * lib/ldexpl.c: Likewise.
94683         * lib/linebreak.c: Likewise.
94684         * lib/linebreak.h: Likewise.
94685         * lib/linebuffer.c: Likewise.
94686         * lib/linebuffer.h: Likewise.
94687         * lib/locale.in.h: Likewise.
94688         * lib/logl.c: Likewise.
94689         * lib/long-options.c: Likewise.
94690         * lib/long-options.h: Likewise.
94691         * lib/lstat.c: Likewise.
94692         * lib/lstat.h: Likewise.
94693         * lib/math.in.h: Likewise.
94694         * lib/mbchar.c: Likewise.
94695         * lib/mbchar.h: Likewise.
94696         * lib/mbfile.h: Likewise.
94697         * lib/mbiter.h: Likewise.
94698         * lib/mbscasecmp.c: Likewise.
94699         * lib/mbscasestr.c: Likewise.
94700         * lib/mbschr.c: Likewise.
94701         * lib/mbscspn.c: Likewise.
94702         * lib/mbslen.c: Likewise.
94703         * lib/mbsncasecmp.c: Likewise.
94704         * lib/mbsnlen.c: Likewise.
94705         * lib/mbspbrk.c: Likewise.
94706         * lib/mbspcasecmp.c: Likewise.
94707         * lib/mbsrchr.c: Likewise.
94708         * lib/mbssep.c: Likewise.
94709         * lib/mbsspn.c: Likewise.
94710         * lib/mbsstr.c: Likewise.
94711         * lib/mbstok_r.c: Likewise.
94712         * lib/mbswidth.c: Likewise.
94713         * lib/mbswidth.h: Likewise.
94714         * lib/mbuiter.h: Likewise.
94715         * lib/memcasecmp.c: Likewise.
94716         * lib/memcasecmp.h: Likewise.
94717         * lib/memchr.c: Likewise.
94718         * lib/memcmp.c: Likewise.
94719         * lib/memcoll.c: Likewise.
94720         * lib/memcoll.h: Likewise.
94721         * lib/memcpy.c: Likewise.
94722         * lib/memrchr.c: Likewise.
94723         * lib/mkancesdirs.c: Likewise.
94724         * lib/mkdir-p.c: Likewise.
94725         * lib/mkdir-p.h: Likewise.
94726         * lib/mkdir.c: Likewise.
94727         * lib/mkdirat.c: Likewise.
94728         * lib/mkdtemp.c: Likewise.
94729         * lib/mkstemp-safer.c: Likewise.
94730         * lib/mkstemp.c: Likewise.
94731         * lib/modechange.c: Likewise.
94732         * lib/modechange.h: Likewise.
94733         * lib/mountlist.c: Likewise.
94734         * lib/mountlist.h: Likewise.
94735         * lib/mpsort.c: Likewise.
94736         * lib/nanosleep.c: Likewise.
94737         * lib/obstack.c: Likewise.
94738         * lib/obstack.h: Likewise.
94739         * lib/open-safer.c: Likewise.
94740         * lib/open.c: Likewise.
94741         * lib/openat-die.c: Likewise.
94742         * lib/openat-priv.h: Likewise.
94743         * lib/openat-proc.c: Likewise.
94744         * lib/openat.c: Likewise.
94745         * lib/openat.h: Likewise.
94746         * lib/pagealign_alloc.c: Likewise.
94747         * lib/pagealign_alloc.h: Likewise.
94748         * lib/physmem.c: Likewise.
94749         * lib/physmem.h: Likewise.
94750         * lib/pipe-safer.c: Likewise.
94751         * lib/pipe.c: Likewise.
94752         * lib/pipe.h: Likewise.
94753         * lib/posixtm.c: Likewise.
94754         * lib/posixtm.h: Likewise.
94755         * lib/posixver.c: Likewise.
94756         * lib/printf-frexp.c: Likewise.
94757         * lib/printf-frexp.h: Likewise.
94758         * lib/printf-frexpl.c: Likewise.
94759         * lib/printf-frexpl.h: Likewise.
94760         * lib/printf.c: Likewise.
94761         * lib/progname.c: Likewise.
94762         * lib/progname.h: Likewise.
94763         * lib/progreloc.c: Likewise.
94764         * lib/putenv.c: Likewise.
94765         * lib/quote.c: Likewise.
94766         * lib/quote.h: Likewise.
94767         * lib/quotearg.c: Likewise.
94768         * lib/quotearg.h: Likewise.
94769         * lib/raise.c: Likewise.
94770         * lib/readline.c: Likewise.
94771         * lib/readline.h: Likewise.
94772         * lib/readlink.c: Likewise.
94773         * lib/readtokens.c: Likewise.
94774         * lib/readtokens.h: Likewise.
94775         * lib/readtokens0.c: Likewise.
94776         * lib/readtokens0.h: Likewise.
94777         * lib/readutmp.c: Likewise.
94778         * lib/readutmp.h: Likewise.
94779         * lib/realloc.c: Likewise.
94780         * lib/relocwrapper.c: Likewise.
94781         * lib/rename-dest-slash.c: Likewise.
94782         * lib/rename.c: Likewise.
94783         * lib/rmdir.c: Likewise.
94784         * lib/rpmatch.c: Likewise.
94785         * lib/safe-read.c: Likewise.
94786         * lib/safe-read.h: Likewise.
94787         * lib/safe-write.c: Likewise.
94788         * lib/safe-write.h: Likewise.
94789         * lib/same-inode.h: Likewise.
94790         * lib/same.c: Likewise.
94791         * lib/same.h: Likewise.
94792         * lib/save-cwd.c: Likewise.
94793         * lib/save-cwd.h: Likewise.
94794         * lib/savedir.c: Likewise.
94795         * lib/savedir.h: Likewise.
94796         * lib/savewd.c: Likewise.
94797         * lib/savewd.h: Likewise.
94798         * lib/search.in.h: Likewise.
94799         * lib/setenv.c: Likewise.
94800         * lib/setenv.h: Likewise.
94801         * lib/settime.c: Likewise.
94802         * lib/sh-quote.c: Likewise.
94803         * lib/sh-quote.h: Likewise.
94804         * lib/sig2str.c: Likewise.
94805         * lib/sig2str.h: Likewise.
94806         * lib/signal.in.h: Likewise.
94807         * lib/signbitd.c: Likewise.
94808         * lib/signbitf.c: Likewise.
94809         * lib/signbitl.c: Likewise.
94810         * lib/sigprocmask.c: Likewise.
94811         * lib/sincosl.c: Likewise.
94812         * lib/sleep.c: Likewise.
94813         * lib/sprintf.c: Likewise.
94814         * lib/sqrtl.c: Likewise.
94815         * lib/stat-time.h: Likewise.
94816         * lib/stdio--.h: Likewise.
94817         * lib/stdio-safer.h: Likewise.
94818         * lib/stdlib--.h: Likewise.
94819         * lib/stdlib-safer.h: Likewise.
94820         * lib/stdlib.in.h: Likewise.
94821         * lib/stpcpy.c: Likewise.
94822         * lib/stpncpy.c: Likewise.
94823         * lib/strchrnul.c: Likewise.
94824         * lib/strcspn.c: Likewise.
94825         * lib/strerror.c: Likewise.
94826         * lib/strftime.c: Likewise.
94827         * lib/strftime.h: Likewise.
94828         * lib/striconveh.c: Likewise.
94829         * lib/striconveh.h: Likewise.
94830         * lib/striconveha.c: Likewise.
94831         * lib/striconveha.h: Likewise.
94832         * lib/stripslash.c: Likewise.
94833         * lib/strnlen1.c: Likewise.
94834         * lib/strnlen1.h: Likewise.
94835         * lib/strtod.c: Likewise.
94836         * lib/strtoimax.c: Likewise.
94837         * lib/strtok_r.c: Likewise.
94838         * lib/strtol.c: Likewise.
94839         * lib/strtoll.c: Likewise.
94840         * lib/strtoul.c: Likewise.
94841         * lib/strtoull.c: Likewise.
94842         * lib/sysexits.in.h: Likewise.
94843         * lib/tempname.c: Likewise.
94844         * lib/tempname.h: Likewise.
94845         * lib/timespec.h: Likewise.
94846         * lib/tls.c: Likewise.
94847         * lib/tls.h: Likewise.
94848         * lib/tmpdir.c: Likewise.
94849         * lib/tmpdir.h: Likewise.
94850         * lib/tmpfile-safer.c: Likewise.
94851         * lib/tmpfile.c: Likewise.
94852         * lib/trigl.c: Likewise.
94853         * lib/trigl.h: Likewise.
94854         * lib/trim.c: Likewise.
94855         * lib/trim.h: Likewise.
94856         * lib/trunc.c: Likewise.
94857         * lib/truncf.c: Likewise.
94858         * lib/truncl.c: Likewise.
94859         * lib/tsearch.c: Likewise.
94860         * lib/unicodeio.c: Likewise.
94861         * lib/unicodeio.h: Likewise.
94862         * lib/unistd--.h: Likewise.
94863         * lib/unistd-safer.h: Likewise.
94864         * lib/unistdio/ulc-fprintf.c: Likewise.
94865         * lib/unistdio/ulc-vfprintf.c: Likewise.
94866         * lib/unlinkdir.c: Likewise.
94867         * lib/unlinkdir.h: Likewise.
94868         * lib/unlocked-io.h: Likewise.
94869         * lib/unsetenv.c: Likewise.
94870         * lib/userspec.c: Likewise.
94871         * lib/utime.c: Likewise.
94872         * lib/utimecmp.c: Likewise.
94873         * lib/utimecmp.h: Likewise.
94874         * lib/utimens.c: Likewise.
94875         * lib/verify.h: Likewise.
94876         * lib/verror.c: Likewise.
94877         * lib/verror.h: Likewise.
94878         * lib/version-etc-fsf.c: Likewise.
94879         * lib/version-etc.c: Likewise.
94880         * lib/version-etc.h: Likewise.
94881         * lib/vfprintf.c: Likewise.
94882         * lib/vprintf.c: Likewise.
94883         * lib/vsprintf.c: Likewise.
94884         * lib/w32spawn.h: Likewise.
94885         * lib/wait-process.c: Likewise.
94886         * lib/wait-process.h: Likewise.
94887         * lib/wcwidth.c: Likewise.
94888         * lib/write-any-file.c: Likewise.
94889         * lib/xalloc-die.c: Likewise.
94890         * lib/xalloc.h: Likewise.
94891         * lib/xasprintf.c: Likewise.
94892         * lib/xgetcwd.c: Likewise.
94893         * lib/xgetcwd.h: Likewise.
94894         * lib/xgetdomainname.c: Likewise.
94895         * lib/xgetdomainname.h: Likewise.
94896         * lib/xgethostname.c: Likewise.
94897         * lib/xmalloc.c: Likewise.
94898         * lib/xmalloca.c: Likewise.
94899         * lib/xmalloca.h: Likewise.
94900         * lib/xmemcoll.c: Likewise.
94901         * lib/xnanosleep.c: Likewise.
94902         * lib/xreadlink.c: Likewise.
94903         * lib/xreadlink.h: Likewise.
94904         * lib/xsetenv.c: Likewise.
94905         * lib/xsetenv.h: Likewise.
94906         * lib/xstriconv.c: Likewise.
94907         * lib/xstriconv.h: Likewise.
94908         * lib/xstrndup.c: Likewise.
94909         * lib/xstrndup.h: Likewise.
94910         * lib/xstrtod.c: Likewise.
94911         * lib/xstrtod.h: Likewise.
94912         * lib/xstrtol-error.c: Likewise.
94913         * lib/xstrtol.c: Likewise.
94914         * lib/xstrtol.h: Likewise.
94915         * lib/xtime.h: Likewise.
94916         * lib/xvasprintf.c: Likewise.
94917         * lib/xvasprintf.h: Likewise.
94918         * lib/yesno.c: Likewise.
94919         * lib/yesno.h: Likewise.
94920         * posix-modules: Likewise.
94921         * tests/test-alloca-opt.c: Likewise.
94922         * tests/test-arcfour.c: Likewise.
94923         * tests/test-arctwo.c: Likewise.
94924         * tests/test-argmatch.c: Likewise.
94925         * tests/test-argp-2.sh: Likewise.
94926         * tests/test-argp.c: Likewise.
94927         * tests/test-arpa_inet.c: Likewise.
94928         * tests/test-array_list.c: Likewise.
94929         * tests/test-array_oset.c: Likewise.
94930         * tests/test-atexit.c: Likewise.
94931         * tests/test-avltree_list.c: Likewise.
94932         * tests/test-avltree_oset.c: Likewise.
94933         * tests/test-avltreehash_list.c: Likewise.
94934         * tests/test-base64.c: Likewise.
94935         * tests/test-binary-io.c: Likewise.
94936         * tests/test-byteswap.c: Likewise.
94937         * tests/test-c-ctype.c: Likewise.
94938         * tests/test-c-strcasecmp.c: Likewise.
94939         * tests/test-c-strcasestr.c: Likewise.
94940         * tests/test-c-strncasecmp.c: Likewise.
94941         * tests/test-c-strstr.c: Likewise.
94942         * tests/test-canonicalize-lgpl.c: Likewise.
94943         * tests/test-canonicalize.c: Likewise.
94944         * tests/test-carray_list.c: Likewise.
94945         * tests/test-ceilf.c: Likewise.
94946         * tests/test-ceill.c: Likewise.
94947         * tests/test-count-one-bits.c: Likewise.
94948         * tests/test-crc.c: Likewise.
94949         * tests/test-dirname.c: Likewise.
94950         * tests/test-fbufmode.c: Likewise.
94951         * tests/test-fcntl.c: Likewise.
94952         * tests/test-fflush.c: Likewise.
94953         * tests/test-floorf.c: Likewise.
94954         * tests/test-floorl.c: Likewise.
94955         * tests/test-fopen.c: Likewise.
94956         * tests/test-fprintf-posix.c: Likewise.
94957         * tests/test-fprintf-posix.h: Likewise.
94958         * tests/test-fpurge.c: Likewise.
94959         * tests/test-freadable.c: Likewise.
94960         * tests/test-freadahead.c: Likewise.
94961         * tests/test-freading.c: Likewise.
94962         * tests/test-freopen.c: Likewise.
94963         * tests/test-frexp.c: Likewise.
94964         * tests/test-frexpl.c: Likewise.
94965         * tests/test-fseek.c: Likewise.
94966         * tests/test-fseeko.c: Likewise.
94967         * tests/test-fseterr.c: Likewise.
94968         * tests/test-fstrcmp.c: Likewise.
94969         * tests/test-ftell.c: Likewise.
94970         * tests/test-ftello.c: Likewise.
94971         * tests/test-fwritable.c: Likewise.
94972         * tests/test-fwriting.c: Likewise.
94973         * tests/test-getaddrinfo.c: Likewise.
94974         * tests/test-getpass.c: Likewise.
94975         * tests/test-gettimeofday.c: Likewise.
94976         * tests/test-hmac-md5.c: Likewise.
94977         * tests/test-hmac-sha1.c: Likewise.
94978         * tests/test-iconv.c: Likewise.
94979         * tests/test-iconvme.c: Likewise.
94980         * tests/test-inttypes.c: Likewise.
94981         * tests/test-isnan.c: Likewise.
94982         * tests/test-isnanf.c: Likewise.
94983         * tests/test-isnanl-nolibm.c: Likewise.
94984         * tests/test-isnanl.c: Likewise.
94985         * tests/test-isnanl.h: Likewise.
94986         * tests/test-ldexpl.c: Likewise.
94987         * tests/test-linked_list.c: Likewise.
94988         * tests/test-linkedhash_list.c: Likewise.
94989         * tests/test-locale.c: Likewise.
94990         * tests/test-localename.c: Likewise.
94991         * tests/test-lock.c: Likewise.
94992         * tests/test-lseek.c: Likewise.
94993         * tests/test-malloca.c: Likewise.
94994         * tests/test-math.c: Likewise.
94995         * tests/test-mbscasecmp.c: Likewise.
94996         * tests/test-mbscasestr1.c: Likewise.
94997         * tests/test-mbscasestr2.c: Likewise.
94998         * tests/test-mbscasestr3.c: Likewise.
94999         * tests/test-mbscasestr4.c: Likewise.
95000         * tests/test-mbschr.c: Likewise.
95001         * tests/test-mbscspn.c: Likewise.
95002         * tests/test-mbsncasecmp.c: Likewise.
95003         * tests/test-mbspbrk.c: Likewise.
95004         * tests/test-mbspcasecmp.c: Likewise.
95005         * tests/test-mbsrchr.c: Likewise.
95006         * tests/test-mbsspn.c: Likewise.
95007         * tests/test-mbsstr1.c: Likewise.
95008         * tests/test-mbsstr2.c: Likewise.
95009         * tests/test-mbsstr3.c: Likewise.
95010         * tests/test-md5.c: Likewise.
95011         * tests/test-memmem.c: Likewise.
95012         * tests/test-netinet_in.c: Likewise.
95013         * tests/test-open.c: Likewise.
95014         * tests/test-printf-frexp.c: Likewise.
95015         * tests/test-printf-frexpl.c: Likewise.
95016         * tests/test-printf-posix.c: Likewise.
95017         * tests/test-printf-posix.h: Likewise.
95018         * tests/test-rbtree_list.c: Likewise.
95019         * tests/test-rbtree_oset.c: Likewise.
95020         * tests/test-rbtreehash_list.c: Likewise.
95021         * tests/test-read-file.c: Likewise.
95022         * tests/test-rijndael.c: Likewise.
95023         * tests/test-search.c: Likewise.
95024         * tests/test-signbit.c: Likewise.
95025         * tests/test-sleep.c: Likewise.
95026         * tests/test-snprintf-posix.c: Likewise.
95027         * tests/test-snprintf-posix.h: Likewise.
95028         * tests/test-snprintf.c: Likewise.
95029         * tests/test-sprintf-posix.c: Likewise.
95030         * tests/test-sprintf-posix.h: Likewise.
95031         * tests/test-stat-time.c: Likewise.
95032         * tests/test-stdbool.c: Likewise.
95033         * tests/test-stdint.c: Likewise.
95034         * tests/test-stdio.c: Likewise.
95035         * tests/test-stdlib.c: Likewise.
95036         * tests/test-stpncpy.c: Likewise.
95037         * tests/test-strcasestr.c: Likewise.
95038         * tests/test-striconv.c: Likewise.
95039         * tests/test-striconveh.c: Likewise.
95040         * tests/test-striconveha.c: Likewise.
95041         * tests/test-string.c: Likewise.
95042         * tests/test-sys_select.c: Likewise.
95043         * tests/test-sys_socket.c: Likewise.
95044         * tests/test-sys_stat.c: Likewise.
95045         * tests/test-sys_time.c: Likewise.
95046         * tests/test-sysexits.c: Likewise.
95047         * tests/test-time.c: Likewise.
95048         * tests/test-tls.c: Likewise.
95049         * tests/test-trunc.c: Likewise.
95050         * tests/test-truncf.c: Likewise.
95051         * tests/test-truncl.c: Likewise.
95052         * tests/test-unistd.c: Likewise.
95053         * tests/test-vasnprintf-posix.c: Likewise.
95054         * tests/test-vasnprintf-posix2.c: Likewise.
95055         * tests/test-vasnprintf.c: Likewise.
95056         * tests/test-vasprintf-posix.c: Likewise.
95057         * tests/test-vasprintf.c: Likewise.
95058         * tests/test-verify.c: Likewise.
95059         * tests/test-vfprintf-posix.c: Likewise.
95060         * tests/test-vprintf-posix.c: Likewise.
95061         * tests/test-vsnprintf-posix.c: Likewise.
95062         * tests/test-vsnprintf.c: Likewise.
95063         * tests/test-vsprintf-posix.c: Likewise.
95064         * tests/test-wchar.c: Likewise.
95065         * tests/test-wctype.c: Likewise.
95066         * tests/test-wcwidth.c: Likewise.
95067         * tests/test-xstrtol.c: Likewise.
95068         * tests/test-xvasprintf.c: Likewise.
95069         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
95070         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
95071         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
95072         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
95073         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
95074         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
95075         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
95076         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
95077         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
95078         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
95079         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
95080         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
95081         * tests/uniname/test-uninames.c: Likewise.
95082         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
95083         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
95084         * tests/unistdio/test-u16-printf1.h: Likewise.
95085         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
95086         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
95087         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
95088         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
95089         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
95090         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
95091         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
95092         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
95093         * tests/unistdio/test-u32-printf1.h: Likewise.
95094         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
95095         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
95096         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
95097         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
95098         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
95099         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
95100         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
95101         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
95102         * tests/unistdio/test-u8-printf1.h: Likewise.
95103         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
95104         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
95105         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
95106         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
95107         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
95108         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
95109         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
95110         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
95111         * tests/unistdio/test-ulc-printf1.h: Likewise.
95112         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
95113         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
95114         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
95115         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
95116         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
95117         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
95118         * tests/uniwidth/test-u16-strwidth.c: Likewise.
95119         * tests/uniwidth/test-u16-width.c: Likewise.
95120         * tests/uniwidth/test-u32-strwidth.c: Likewise.
95121         * tests/uniwidth/test-u32-width.c: Likewise.
95122         * tests/uniwidth/test-u8-strwidth.c: Likewise.
95123         * tests/uniwidth/test-u8-width.c: Likewise.
95124         * tests/uniwidth/test-uc_width.c: Likewise.
95125         * config/srclist-update: Likewise.
95126         (fixlicense): Update to GPLv3+.
95128         Change copyright notice from LGPLv2.1+ to LGPLv3+.
95129         * tests/test-tsearch.c: Change copyright notice.
95131         Change copyright notice from LGPLv2.0+ to LGPLv3+.
95132         * lib/c-strcaseeq.h: Change copyright notice.
95133         * lib/streq.h: Likewise.
95134         * lib/uniconv.h: Likewise.
95135         * lib/uniconv/u-conv-from-enc.h: Likewise.
95136         * lib/uniconv/u-conv-to-enc.h: Likewise.
95137         * lib/uniconv/u-strconv-from-enc.h: Likewise.
95138         * lib/uniconv/u-strconv-to-enc.h: Likewise.
95139         * lib/uniconv/u16-conv-from-enc.c: Likewise.
95140         * lib/uniconv/u16-conv-to-enc.c: Likewise.
95141         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
95142         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
95143         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
95144         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
95145         * lib/uniconv/u32-conv-from-enc.c: Likewise.
95146         * lib/uniconv/u32-conv-to-enc.c: Likewise.
95147         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
95148         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
95149         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
95150         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
95151         * lib/uniconv/u8-conv-from-enc.c: Likewise.
95152         * lib/uniconv/u8-conv-to-enc.c: Likewise.
95153         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
95154         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
95155         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
95156         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
95157         * lib/uniname.h: Likewise.
95158         * lib/uniname/uniname.c: Likewise.
95159         * lib/unistdio.h: Likewise.
95160         * lib/unistdio/u-asnprintf.h: Likewise.
95161         * lib/unistdio/u-asprintf.h: Likewise.
95162         * lib/unistdio/u-printf-args.c: Likewise.
95163         * lib/unistdio/u-printf-args.h: Likewise.
95164         * lib/unistdio/u-printf-parse.h: Likewise.
95165         * lib/unistdio/u-snprintf.h: Likewise.
95166         * lib/unistdio/u-sprintf.h: Likewise.
95167         * lib/unistdio/u-vasprintf.h: Likewise.
95168         * lib/unistdio/u-vsnprintf.h: Likewise.
95169         * lib/unistdio/u-vsprintf.h: Likewise.
95170         * lib/unistdio/u16-asnprintf.c: Likewise.
95171         * lib/unistdio/u16-asprintf.c: Likewise.
95172         * lib/unistdio/u16-printf-parse.c: Likewise.
95173         * lib/unistdio/u16-snprintf.c: Likewise.
95174         * lib/unistdio/u16-sprintf.c: Likewise.
95175         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
95176         * lib/unistdio/u16-u16-asprintf.c: Likewise.
95177         * lib/unistdio/u16-u16-snprintf.c: Likewise.
95178         * lib/unistdio/u16-u16-sprintf.c: Likewise.
95179         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
95180         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
95181         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
95182         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
95183         * lib/unistdio/u16-vasnprintf.c: Likewise.
95184         * lib/unistdio/u16-vasprintf.c: Likewise.
95185         * lib/unistdio/u16-vsnprintf.c: Likewise.
95186         * lib/unistdio/u16-vsprintf.c: Likewise.
95187         * lib/unistdio/u32-asnprintf.c: Likewise.
95188         * lib/unistdio/u32-asprintf.c: Likewise.
95189         * lib/unistdio/u32-printf-parse.c: Likewise.
95190         * lib/unistdio/u32-snprintf.c: Likewise.
95191         * lib/unistdio/u32-sprintf.c: Likewise.
95192         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
95193         * lib/unistdio/u32-u32-asprintf.c: Likewise.
95194         * lib/unistdio/u32-u32-snprintf.c: Likewise.
95195         * lib/unistdio/u32-u32-sprintf.c: Likewise.
95196         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
95197         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
95198         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
95199         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
95200         * lib/unistdio/u32-vasnprintf.c: Likewise.
95201         * lib/unistdio/u32-vasprintf.c: Likewise.
95202         * lib/unistdio/u32-vsnprintf.c: Likewise.
95203         * lib/unistdio/u32-vsprintf.c: Likewise.
95204         * lib/unistdio/u8-asnprintf.c: Likewise.
95205         * lib/unistdio/u8-asprintf.c: Likewise.
95206         * lib/unistdio/u8-printf-parse.c: Likewise.
95207         * lib/unistdio/u8-snprintf.c: Likewise.
95208         * lib/unistdio/u8-sprintf.c: Likewise.
95209         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
95210         * lib/unistdio/u8-u8-asprintf.c: Likewise.
95211         * lib/unistdio/u8-u8-snprintf.c: Likewise.
95212         * lib/unistdio/u8-u8-sprintf.c: Likewise.
95213         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
95214         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
95215         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
95216         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
95217         * lib/unistdio/u8-vasnprintf.c: Likewise.
95218         * lib/unistdio/u8-vasprintf.c: Likewise.
95219         * lib/unistdio/u8-vsnprintf.c: Likewise.
95220         * lib/unistdio/u8-vsprintf.c: Likewise.
95221         * lib/unistdio/ulc-asnprintf.c: Likewise.
95222         * lib/unistdio/ulc-asprintf.c: Likewise.
95223         * lib/unistdio/ulc-printf-parse.c: Likewise.
95224         * lib/unistdio/ulc-snprintf.c: Likewise.
95225         * lib/unistdio/ulc-sprintf.c: Likewise.
95226         * lib/unistdio/ulc-vasnprintf.c: Likewise.
95227         * lib/unistdio/ulc-vasprintf.c: Likewise.
95228         * lib/unistdio/ulc-vsnprintf.c: Likewise.
95229         * lib/unistdio/ulc-vsprintf.c: Likewise.
95230         * lib/unistr.h: Likewise.
95231         * lib/unistr/u-cpy-alloc.h: Likewise.
95232         * lib/unistr/u-cpy.h: Likewise.
95233         * lib/unistr/u-endswith.h: Likewise.
95234         * lib/unistr/u-move.h: Likewise.
95235         * lib/unistr/u-set.h: Likewise.
95236         * lib/unistr/u-startswith.h: Likewise.
95237         * lib/unistr/u-stpcpy.h: Likewise.
95238         * lib/unistr/u-stpncpy.h: Likewise.
95239         * lib/unistr/u-strcat.h: Likewise.
95240         * lib/unistr/u-strcpy.h: Likewise.
95241         * lib/unistr/u-strcspn.h: Likewise.
95242         * lib/unistr/u-strdup.h: Likewise.
95243         * lib/unistr/u-strlen.h: Likewise.
95244         * lib/unistr/u-strncat.h: Likewise.
95245         * lib/unistr/u-strncpy.h: Likewise.
95246         * lib/unistr/u-strnlen.h: Likewise.
95247         * lib/unistr/u-strpbrk.h: Likewise.
95248         * lib/unistr/u-strspn.h: Likewise.
95249         * lib/unistr/u-strstr.h: Likewise.
95250         * lib/unistr/u-strtok.h: Likewise.
95251         * lib/unistr/u16-check.c: Likewise.
95252         * lib/unistr/u16-chr.c: Likewise.
95253         * lib/unistr/u16-cmp.c: Likewise.
95254         * lib/unistr/u16-cpy-alloc.c: Likewise.
95255         * lib/unistr/u16-cpy.c: Likewise.
95256         * lib/unistr/u16-endswith.c: Likewise.
95257         * lib/unistr/u16-mblen.c: Likewise.
95258         * lib/unistr/u16-mbsnlen.c: Likewise.
95259         * lib/unistr/u16-mbtouc-aux.c: Likewise.
95260         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
95261         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
95262         * lib/unistr/u16-mbtouc.c: Likewise.
95263         * lib/unistr/u16-mbtoucr.c: Likewise.
95264         * lib/unistr/u16-move.c: Likewise.
95265         * lib/unistr/u16-next.c: Likewise.
95266         * lib/unistr/u16-prev.c: Likewise.
95267         * lib/unistr/u16-set.c: Likewise.
95268         * lib/unistr/u16-startswith.c: Likewise.
95269         * lib/unistr/u16-stpcpy.c: Likewise.
95270         * lib/unistr/u16-stpncpy.c: Likewise.
95271         * lib/unistr/u16-strcat.c: Likewise.
95272         * lib/unistr/u16-strchr.c: Likewise.
95273         * lib/unistr/u16-strcmp.c: Likewise.
95274         * lib/unistr/u16-strcpy.c: Likewise.
95275         * lib/unistr/u16-strcspn.c: Likewise.
95276         * lib/unistr/u16-strdup.c: Likewise.
95277         * lib/unistr/u16-strlen.c: Likewise.
95278         * lib/unistr/u16-strmblen.c: Likewise.
95279         * lib/unistr/u16-strmbtouc.c: Likewise.
95280         * lib/unistr/u16-strncat.c: Likewise.
95281         * lib/unistr/u16-strncmp.c: Likewise.
95282         * lib/unistr/u16-strncpy.c: Likewise.
95283         * lib/unistr/u16-strnlen.c: Likewise.
95284         * lib/unistr/u16-strpbrk.c: Likewise.
95285         * lib/unistr/u16-strrchr.c: Likewise.
95286         * lib/unistr/u16-strspn.c: Likewise.
95287         * lib/unistr/u16-strstr.c: Likewise.
95288         * lib/unistr/u16-strtok.c: Likewise.
95289         * lib/unistr/u16-to-u32.c: Likewise.
95290         * lib/unistr/u16-to-u8.c: Likewise.
95291         * lib/unistr/u16-uctomb-aux.c: Likewise.
95292         * lib/unistr/u16-uctomb.c: Likewise.
95293         * lib/unistr/u32-check.c: Likewise.
95294         * lib/unistr/u32-chr.c: Likewise.
95295         * lib/unistr/u32-cmp.c: Likewise.
95296         * lib/unistr/u32-cpy-alloc.c: Likewise.
95297         * lib/unistr/u32-cpy.c: Likewise.
95298         * lib/unistr/u32-endswith.c: Likewise.
95299         * lib/unistr/u32-mblen.c: Likewise.
95300         * lib/unistr/u32-mbsnlen.c: Likewise.
95301         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
95302         * lib/unistr/u32-mbtouc.c: Likewise.
95303         * lib/unistr/u32-mbtoucr.c: Likewise.
95304         * lib/unistr/u32-move.c: Likewise.
95305         * lib/unistr/u32-next.c: Likewise.
95306         * lib/unistr/u32-prev.c: Likewise.
95307         * lib/unistr/u32-set.c: Likewise.
95308         * lib/unistr/u32-startswith.c: Likewise.
95309         * lib/unistr/u32-stpcpy.c: Likewise.
95310         * lib/unistr/u32-stpncpy.c: Likewise.
95311         * lib/unistr/u32-strcat.c: Likewise.
95312         * lib/unistr/u32-strchr.c: Likewise.
95313         * lib/unistr/u32-strcmp.c: Likewise.
95314         * lib/unistr/u32-strcpy.c: Likewise.
95315         * lib/unistr/u32-strcspn.c: Likewise.
95316         * lib/unistr/u32-strdup.c: Likewise.
95317         * lib/unistr/u32-strlen.c: Likewise.
95318         * lib/unistr/u32-strmblen.c: Likewise.
95319         * lib/unistr/u32-strmbtouc.c: Likewise.
95320         * lib/unistr/u32-strncat.c: Likewise.
95321         * lib/unistr/u32-strncmp.c: Likewise.
95322         * lib/unistr/u32-strncpy.c: Likewise.
95323         * lib/unistr/u32-strnlen.c: Likewise.
95324         * lib/unistr/u32-strpbrk.c: Likewise.
95325         * lib/unistr/u32-strrchr.c: Likewise.
95326         * lib/unistr/u32-strspn.c: Likewise.
95327         * lib/unistr/u32-strstr.c: Likewise.
95328         * lib/unistr/u32-strtok.c: Likewise.
95329         * lib/unistr/u32-to-u16.c: Likewise.
95330         * lib/unistr/u32-to-u8.c: Likewise.
95331         * lib/unistr/u32-uctomb.c: Likewise.
95332         * lib/unistr/u8-check.c: Likewise.
95333         * lib/unistr/u8-chr.c: Likewise.
95334         * lib/unistr/u8-cmp.c: Likewise.
95335         * lib/unistr/u8-cpy-alloc.c: Likewise.
95336         * lib/unistr/u8-cpy.c: Likewise.
95337         * lib/unistr/u8-endswith.c: Likewise.
95338         * lib/unistr/u8-mblen.c: Likewise.
95339         * lib/unistr/u8-mbsnlen.c: Likewise.
95340         * lib/unistr/u8-mbtouc-aux.c: Likewise.
95341         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
95342         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
95343         * lib/unistr/u8-mbtouc.c: Likewise.
95344         * lib/unistr/u8-mbtoucr.c: Likewise.
95345         * lib/unistr/u8-move.c: Likewise.
95346         * lib/unistr/u8-next.c: Likewise.
95347         * lib/unistr/u8-prev.c: Likewise.
95348         * lib/unistr/u8-set.c: Likewise.
95349         * lib/unistr/u8-startswith.c: Likewise.
95350         * lib/unistr/u8-stpcpy.c: Likewise.
95351         * lib/unistr/u8-stpncpy.c: Likewise.
95352         * lib/unistr/u8-strcat.c: Likewise.
95353         * lib/unistr/u8-strchr.c: Likewise.
95354         * lib/unistr/u8-strcmp.c: Likewise.
95355         * lib/unistr/u8-strcpy.c: Likewise.
95356         * lib/unistr/u8-strcspn.c: Likewise.
95357         * lib/unistr/u8-strdup.c: Likewise.
95358         * lib/unistr/u8-strlen.c: Likewise.
95359         * lib/unistr/u8-strmblen.c: Likewise.
95360         * lib/unistr/u8-strmbtouc.c: Likewise.
95361         * lib/unistr/u8-strncat.c: Likewise.
95362         * lib/unistr/u8-strncmp.c: Likewise.
95363         * lib/unistr/u8-strncpy.c: Likewise.
95364         * lib/unistr/u8-strnlen.c: Likewise.
95365         * lib/unistr/u8-strpbrk.c: Likewise.
95366         * lib/unistr/u8-strrchr.c: Likewise.
95367         * lib/unistr/u8-strspn.c: Likewise.
95368         * lib/unistr/u8-strstr.c: Likewise.
95369         * lib/unistr/u8-strtok.c: Likewise.
95370         * lib/unistr/u8-to-u16.c: Likewise.
95371         * lib/unistr/u8-to-u32.c: Likewise.
95372         * lib/unistr/u8-uctomb-aux.c: Likewise.
95373         * lib/unistr/u8-uctomb.c: Likewise.
95374         * lib/unitypes.h: Likewise.
95375         * lib/uniwidth.h: Likewise.
95376         * lib/uniwidth/cjk.h: Likewise.
95377         * lib/uniwidth/u16-strwidth.c: Likewise.
95378         * lib/uniwidth/u16-width.c: Likewise.
95379         * lib/uniwidth/u32-strwidth.c: Likewise.
95380         * lib/uniwidth/u32-width.c: Likewise.
95381         * lib/uniwidth/u8-strwidth.c: Likewise.
95382         * lib/uniwidth/u8-width.c: Likewise.
95383         * lib/uniwidth/width.c: Likewise.
95385 2007-10-07  Bruno Haible  <bruno@clisp.org>
95387         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
95388         The file is still under LGPL (see modules/inttypes).
95390 2007-10-06  Bruno Haible  <bruno@clisp.org>
95392         * modules/trunc (Dependencies): Add 'extensions'.
95393         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
95394         Reported by Ben Pfaff <blp@gnu.org>.
95396 2007-10-06  Bruno Haible  <bruno@clisp.org>
95398         * modules/freopen-tests: New file.
95399         * tests/test-freopen.c: New file.
95401         * modules/fopen-tests: New file.
95402         * tests/test-fopen.c: New file.
95404         * modules/fopen: New file.
95405         * lib/fopen.c: New file.
95406         * m4/fopen.m4: New file.
95407         * modules/freopen: New file.
95408         * lib/freopen.c: New file.
95409         * m4/freopen.m4: New file.
95410         * lib/stdio.in.h (fopen, freopen): New declarations.
95411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
95412         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
95413         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
95414         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
95415         * doc/functions/fopen.texi: Mention the 'fopen' module.
95416         * doc/functions/freopen.texi: Mention the 'freopen' module.
95418 2007-10-06  Bruno Haible  <bruno@clisp.org>
95420         * modules/open-tests: New file.
95421         * tests/test-open.c: New file.
95423         * modules/open: New file.
95424         * lib/open.c: New file.
95425         * m4/open.m4: New file.
95426         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
95427         lib/open.c does.
95428         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
95429         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
95430         macros.
95431         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
95432         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
95433         REPLACE_OPEN.
95434         * doc/functions/open.texi: Mention the 'open' module.
95436 2007-10-04  Bruno Haible  <bruno@clisp.org>
95438         * modules/ceill-tests: New file.
95439         * tests/test-ceill.c: New file.
95441         * modules/ceill: New file.
95442         * lib/ceill.c: Replace entire file.
95443         * m4/ceill.m4: New file.
95444         * lib/math.in.h (ceill): Replace declaration.
95445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
95446         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
95447         * doc/functions/ceill.texi: Mention the 'ceill' module.
95448         * modules/mathl (Files): Remove lib/ceill.c.
95449         (Depends-on): Add ceill.
95451 2007-10-04  Bruno Haible  <bruno@clisp.org>
95453         * modules/ceilf-tests: New file.
95454         * tests/test-ceilf.c: New file.
95456         * modules/ceilf: New file.
95457         * lib/ceil.c: New file.
95458         * lib/ceilf.c: New file.
95459         * m4/ceilf.m4: New file.
95460         * lib/math.in.h (ceilf): New declaration.
95461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
95462         HAVE_DECL_CEILF.
95463         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
95464         HAVE_DECL_CEILF.
95465         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
95467 2007-10-04  Bruno Haible  <bruno@clisp.org>
95469         * modules/floorl-tests: New file.
95470         * tests/test-floorl.c: New file.
95472         * modules/floorl: New file.
95473         * lib/floorl.c: Replace entire file.
95474         * m4/floorl.m4: New file.
95475         * lib/math.in.h (floorl): Replace declaration.
95476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
95477         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
95478         * doc/functions/floorl.texi: Mention the 'floorl' module.
95479         * modules/mathl (Files): Remove lib/floorl.c.
95480         (Depends-on): Add floorl.
95482 2007-10-04  Bruno Haible  <bruno@clisp.org>
95484         * modules/floorf-tests: New file.
95485         * tests/test-floorf.c: New file.
95487         * modules/floorf: New file.
95488         * lib/floor.c: New file.
95489         * lib/floorf.c: New file.
95490         * m4/floorf.m4: New file.
95491         * lib/math.in.h (floorf): New declaration.
95492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
95493         HAVE_DECL_FLOORF.
95494         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
95495         HAVE_DECL_FLOORF.
95496         * doc/functions/floorf.texi: Mention the 'floorf' module.
95498 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
95499             Bruno Haible  <bruno@clisp.org>
95501         Advertise for the Git server instead of the CVS server.
95502         * doc/gnulib-intro.texi (Steady Development): Mention the Git
95503         repository instead of the CVS one.
95504         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
95505         about all VCS systems generically.
95506         * doc/gnulib.texi (Introduction): Capitalize `Git'.
95508 2007-10-04  Bruno Haible  <bruno@clisp.org>
95510         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
95511         means.
95512         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
95514 2007-10-04  Bruno Haible  <bruno@clisp.org>
95516         * modules/truncl-tests: New file.
95517         * tests/test-truncl.c: New file.
95519         * modules/truncl: New file.
95520         * lib/truncl.c: New file.
95521         * m4/truncl.m4: New file.
95522         * lib/math.in.h (truncl): New declaration.
95523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
95524         HAVE_DECL_TRUNCL.
95525         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
95526         HAVE_DECL_TRUNCL.
95527         * doc/functions/truncl.texi: Mention the 'truncl' module.
95529 2007-10-04  Bruno Haible  <bruno@clisp.org>
95531         * modules/truncf-tests: New file.
95532         * tests/test-truncf.c: New file.
95534         * modules/truncf: New file.
95535         * lib/trunc.c: Make paramerizable through USE_* macros.
95536         * lib/truncf.c: New file.
95537         * m4/truncf.m4: New file.
95538         * lib/math.in.h (truncf): New declaration.
95539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
95540         HAVE_DECL_TRUNCF.
95541         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
95542         HAVE_DECL_TRUNCF.
95543         * doc/functions/truncf.texi: Mention the 'truncf' module.
95545 2007-10-03  Bruno Haible  <bruno@clisp.org>
95547         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95548         augmentation also for tests modules.
95549         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
95550         * modules/atexit-tests (Makefile.am): Likewise.
95551         * modules/binary-io-tests (Makefile.am): Likewise.
95552         * modules/c-strcase-tests (Makefile.am): Likewise.
95553         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
95554         * modules/canonicalize-tests (Makefile.am): Likewise.
95555         * modules/closein-tests (Makefile.am): Likewise.
95556         * modules/fprintf-posix-tests (Makefile.am): Likewise.
95557         * modules/freadahead-tests (Makefile.am): Likewise.
95558         * modules/fseek-tests (Makefile.am): Likewise.
95559         * modules/fseeko-tests (Makefile.am): Likewise.
95560         * modules/ftell-tests (Makefile.am): Likewise.
95561         * modules/ftello-tests (Makefile.am): Likewise.
95562         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
95563         * modules/isnanl-tests (Makefile.am): Likewise.
95564         * modules/lseek-tests (Makefile.am): Likewise.
95565         * modules/mbscasecmp-tests (Makefile.am): Likewise.
95566         * modules/mbscasestr-tests (Makefile.am): Likewise.
95567         * modules/mbschr-tests (Makefile.am): Likewise.
95568         * modules/mbscspn-tests (Makefile.am): Likewise.
95569         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
95570         * modules/mbspbrk-tests (Makefile.am): Likewise.
95571         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
95572         * modules/mbsrchr-tests (Makefile.am): Likewise.
95573         * modules/mbsspn-tests (Makefile.am): Likewise.
95574         * modules/mbsstr-tests (Makefile.am): Likewise.
95575         * modules/printf-posix-tests (Makefile.am): Likewise.
95576         * modules/snprintf-posix-tests (Makefile.am): Likewise.
95577         * modules/sprintf-posix-tests (Makefile.am): Likewise.
95578         * modules/tsearch-tests (Makefile.am): Likewise.
95579         * modules/uniname/uniname-tests (Makefile.am): Likewise.
95580         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
95581         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
95582         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
95583         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
95584         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
95585         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
95586         * modules/vprintf-posix-tests (Makefile.am): Likewise.
95587         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
95588         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
95589         * modules/xstrtoimax-tests (Makefile.am): Likewise.
95590         * modules/xstrtol-tests (Makefile.am): Likewise.
95591         * modules/xstrtoumax-tests (Makefile.am): Likewise.
95592         * modules/yesno-tests (Makefile.am): Likewise.
95594 2007-10-03  Bruno Haible  <bruno@clisp.org>
95596         * modules/trunc-tests: New file.
95597         * tests/test-trunc.c: New file.
95599         * modules/trunc: New file.
95600         * lib/trunc.c: New file.
95601         * m4/trunc.m4: New file.
95602         * lib/math.in.h (trunc): New declaration.
95603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
95604         HAVE_DECL_TRUNC.
95605         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
95606         HAVE_DECL_TRUNC.
95607         * doc/functions/trunc.texi: Mention the 'trunc' module.
95609 2007-10-03  Bruno Haible  <bruno@clisp.org>
95611         * tests/test-fpending.c: New file, mostly copied
95612         from coreutils/lib/t-fpending.c.
95613         * modules/fpending-tests: New file.
95615 2007-10-03  Bruno Haible  <bruno@clisp.org>
95617         Port the stdio extensions to QNX (untested).
95618         * lib/fseterr.c (fseterr): Add support for QNX.
95619         * lib/fbufmode.c (fbufmode): Likewise.
95620         * lib/freadable.c (freadable): Likewise.
95621         * lib/fwritable.c (fwritable): Likewise.
95622         * lib/freading.c (freading): Likewise.
95623         * lib/fwriting.c (fwriting): Likewise.
95624         * lib/freadahead.c (freadahed): Likewise.
95625         * lib/fpurge.c (fpurge): Likewise.
95626         * lib/fseeko.c (rpl_fseeko): Likewise.
95628 2007-10-03  Bruno Haible  <bruno@clisp.org>
95629             Jim Meyering  <jim@meyering.net>
95630             Eric Blake  <ebb9@byu.net>
95632         * doc/relocatable.texi: Use @command instead of @program.
95634 2007-10-02  Jim Meyering  <jim@meyering.net>
95636         Perform one more "_.h" -> ".in.h" substitution.
95637         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
95638         instead of unistd_.h here, too.
95640 2007-10-01  Bruno Haible  <bruno@clisp.org>
95642         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
95643         Needed for the alloca-opt module.
95645 2007-09-30  Bruno Haible  <bruno@clisp.org>
95647         * lib/alloca.in.h: Renamed from lib/alloca_.h.
95648         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
95649         alloca_.h.
95650         * lib/argz.in.h: Renamed from lib/argz_.h.
95651         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
95652         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
95653         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
95654         byteswap_.h.
95655         * lib/dirent.in.h: Renamed from lib/dirent_.h.
95656         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
95657         dirent_.h.
95658         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
95659         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
95660         fcntl_.h.
95661         * lib/float.in.h: Renamed from lib/float_.h.
95662         * modules/float (Files, Makefile.am): Use float.in.h instead of
95663         float_.h.
95664         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
95665         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
95666         fnmatch_.h.
95667         * lib/getopt.in.h: Renamed from lib/getopt_.h.
95668         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
95669         getopt_.h.
95670         * lib/glob.in.h: Renamed from lib/glob_.h.
95671         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
95672         * lib/iconv.in.h: Renamed from lib/iconv_.h.
95673         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
95674         iconv_.h.
95675         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
95676         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
95677         inttypes_.h.
95678         * lib/locale.in.h: Renamed from lib/locale_.h.
95679         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
95680         locale_.h.
95681         * lib/math.in.h: Renamed from lib/math_.h.
95682         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
95683         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
95684         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
95685         of netinet_in_.h. Add dependency.
95686         * lib/poll.in.h: Renamed from lib/poll_.h.
95687         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
95688         * lib/search.in.h: Renamed from lib/search_.h.
95689         * modules/search (Files, Makefile.am): Use search.in.h instead of
95690         search_.h.
95691         * lib/signal.in.h: Renamed from lib/signal_.h.
95692         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
95693         _signal.h.
95694         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
95695         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
95696         stdbool_.h.
95697         * lib/stdint.in.h: Renamed from lib/stdint_.h.
95698         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
95699         stdint_.h.
95700         * lib/stdio.in.h: Renamed from lib/stdio_.h.
95701         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
95702         stdio_.h.
95703         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
95704         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
95705         stdlib_.h.
95706         * lib/string.in.h: Renamed from lib/string_.h.
95707         * modules/string (Files, Makefile.am): Use string.in.h instead of
95708         string_.h.
95709         * doc/gnulib-tool.texi (Initial import): Update.
95710         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
95711         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
95712         of sys_select_.h. Add dependency.
95713         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
95714         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
95715         of sys_socket_.h.
95716         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
95717         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
95718         sys_stat_.h.
95719         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
95720         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
95721         sys_time_.h.
95722         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
95723         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
95724         sysexits_.h.
95725         * lib/time.in.h: Renamed from lib/time_.h.
95726         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
95727         * lib/unistd.in.h: Renamed from lib/unistd_.h.
95728         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
95729         unistd_.h.
95730         * lib/wchar.in.h: Renamed from lib/wchar_.h.
95731         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
95732         wchar_.h.
95733         * lib/wctype.in.h: Renamed from lib/wctype_.h.
95734         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
95735         wctype_.h.
95736         * build-aux/bootstrap (slurp): Update.
95737         * lib/.cppi-disable: Update.
95739 2007-09-30  Bruno Haible  <bruno@clisp.org>
95741         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
95742         Needed on BeOS.
95744 2007-09-30  Bruno Haible  <bruno@clisp.org>
95746         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
95748 2007-09-29  Bruno Haible  <bruno@clisp.org>
95750         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
95752 2007-09-29  Bruno Haible  <bruno@clisp.org>
95754         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
95755         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
95756         * build-aux/install-reloc: Compile also areadlink.c.
95757         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
95759 2007-09-29  Bruno Haible  <bruno@clisp.org>
95761         * gnulib-tool (func_emit_initmacro_done): Indentation.
95763 2007-09-29  Bruno Haible  <bruno@clisp.org>
95765         * README: Add CVS checkout update instructions.
95766         Info from Bob Proulx <bob@proulx.com>.
95768 2007-09-28  Eric Blake  <ebb9@byu.net>
95770         Provide move-if-change.
95771         * build-aux/move-if-change: New file, based on best practice
95772         rather than any canonical upstream location.
95774 2007-09-28  Jim Meyering  <jim@meyering.net>
95776         Fix canonicalize loop-detection corner case.
95777         Do not attempt to stat the symlink values stored via seen_triple.
95778         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
95779         on linux-2.6.18, (but not 2.6.22).
95780         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
95781         triple_compare.  The former compares dev,ino,filename, while the latter
95782         would actually stat dirname(filename) when dev and ino were equal.
95783         * lib/hash-triple.c: Install <string.h>.
95784         (STREQ): Define.
95785         (triple_compare_ino_str): New function.
95786         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
95788 2007-09-28  Eric Blake  <ebb9@byu.net>
95790         Enforce that AC_REPLACE_FUNCS files exist.
95791         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
95792         override check for typos.
95794         Fix test-closein on Solaris 10.
95795         * tests/test-closein.c (main): Don't assume stdin can be inherited
95796         closed on all systems.
95797         * tests/test-closein.sh: Likewise.
95798         Reported by Piotr Tarnowski.
95800 2007-09-28  Jim Meyering  <jim@meyering.net>
95802         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
95804 2007-09-27  Jim Meyering  <jim@meyering.net>
95806         canonicalize: Avoid a false-positive cycle failure.
95807         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
95808         Sort.  Remove cycle-check.
95809         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
95810         not cycle-check.h.
95811         (seen_triple): New function.
95812         (canonicalize_filename_mode): Use it instead of cycle-check.
95813         * tests/test-canonicalize.c: Add a test for this bug.
95814         * tests/test-canonicalize.sh: Set up and run the test.
95816         New module, file-set, from coreutils.
95817         * modules/file-set: Define it.
95818         * lib/file-set.c, lib/file-set.h: Implement.
95820         New module, hash-triple, from coreutils.
95821         * modules/hash-triple: Define it.
95822         * lib/hash-triple.c, lib/hash-triple.h: Implement.
95824 2007-09-25  Eric Blake  <ebb9@byu.net>
95826         Fix strerror on Interix.
95827         * lib/string_.h (strerror): Declare replacement.
95828         * doc/functions/strerror.texi (strerror): Document the Interix
95829         shortcoming.
95830         * modules/string (Makefile.am): Support new hooks.
95831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
95832         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
95833         gl_FUNC_STRERROR_SEPARATE.
95834         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
95835         * lib/strerror.c (rpl_strerror): Provide replacement.
95836         * modules/strerror (Depends-on): Add string.
95837         (configure.ac): Detect use of module.
95838         * tests/test-strerror.c: New file.
95839         * modules/strerror-tests: New test module.
95840         * modules/argp (Depends-on): Add strerror.
95841         * modules/error (Depends-on): Likewise.
95842         Reported by Martin Koeppe.
95844 2007-09-24  Bruno Haible  <bruno@clisp.org>
95846         * README: Update git instructions.
95848 2007-09-24  Eric Blake  <ebb9@byu.net>
95850         Revert fpending breakage from 2007-09-08.
95851         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
95852         __fpending.c.
95854 2007-09-24  Jim Meyering  <jim@meyering.net>
95856         filenamecat.c: Add a test.
95857         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
95858         showing how the function works when DIR is the empty string.
95860 2007-09-21  Simon Josefsson  <simon@josefsson.org>
95862         * tests/test-canonicalize.sh: Turn on executable bit.
95864 2007-09-19  Eric Blake  <ebb9@byu.net>
95866         * README: Update CVS instructions.
95868 2007-09-18  Bruno Haible  <bruno@clisp.org>
95870         * modules/areadlink: New file.
95871         * lib/areadlink.h (areadlink): New declaration.
95872         * lib/areadlink.c: New file, based on lib/xreadlink.c.
95874 2007-09-17  Jim Meyering  <jim@meyering.net>
95876         * lib/savewd.c (ESTALE) [!defined]: Define.
95877         Reported to be required on Interix by Martin Koeppe.
95879 2007-09-17  Bruno Haible  <bruno@clisp.org>
95881         * gnulib-tool (func_version): Use $version.
95883 2007-09-16  Bruno Haible  <bruno@clisp.org>
95885         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
95886         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
95887         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
95888         Reported by Greg Schafer <gschafer@zip.com.au>.
95890 2007-09-15  Bruno Haible  <bruno@clisp.org>
95892         * gnulib-tool (sed): Try a little harder to make bash understand the
95893         alias.
95894         Reported by Bruce Korb <bruce.korb@gmail.com>.
95896 2007-09-13  Eric Blake  <ebb9@byu.net>
95898         * ChangeLog: Remove conflict markers.
95900 2007-09-13  Simon Josefsson  <simon@josefsson.org>
95902         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
95903         Reported by Bruno Haible <bruno@clisp.org>.
95905 2007-09-12  Bruno Haible  <bruno@clisp.org>
95907         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
95908         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
95909         is not defined.
95911 2007-09-12  Eric Blake  <ebb9@byu.net>
95913         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
95914         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
95915         Autoconf definition.
95916         * modules/euidaccess (Depends-on): Add extensions, for
95917         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
95918         * modules/fnmatch (Depends-on): Likewise.
95919         * modules/getaddrinfo (Depends-on): Likewise.
95920         * modules/getdelim (Depends-on): Likewise.
95921         * modules/getline (Depends-on): Likewise.
95922         * modules/getsubopt (Depends-on): Likewise.
95923         * modules/gettext (Depends-on): Likewise.
95924         * modules/group-member (Depends-on): Likewise.
95925         * modules/mbchar (Depends-on): Likewise.
95926         * modules/memmem (Depends-on): Likewise.
95927         * modules/mempcpy (Depends-on): Likewise.
95928         * modules/memrchr (Depends-on): Likewise.
95929         * modules/pagealign_alloc (Depends-on): Likewise.
95930         * modules/readutmp (Depends-on): Likewise.
95931         * modules/stpcpy (Depends-on): Likewise.
95932         * modules/stpncpy (Depends-on): Likewise.
95933         * modules/strchrnul (Depends-on): Likewise.
95934         * modules/strndup (Depends-on): Likewise.
95935         * modules/strsep (Depends-on): Likewise.
95936         * modules/strverscmp (Depends-on): Likewise.
95937         * modules/vasprintf (Depends-on): Likewise.
95938         * modules/wcwidth (Depends-on): Likewise.
95939         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
95940         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
95941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
95942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
95943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
95944         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
95945         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
95946         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95947         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
95948         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
95949         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95950         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
95951         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
95952         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
95953         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
95954         * m4/readutmp.m4 (gl_READUTMP): Likewise.
95955         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
95956         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
95957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
95958         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
95959         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95960         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
95961         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
95962         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
95963         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
95964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
95965         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
95966         so that lock.m4 can be used in gettext without extensions module.
95968 2007-09-11  Bruno Haible  <bruno@clisp.org>
95970         * m4/isc-posix.m4: Remove file.
95971         Suggested by Eric Blake.
95973 2007-09-11  Eric Blake  <ebb9@byu.net>
95975         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
95977 2007-09-10  Bruno Haible  <bruno@clisp.org>
95979         * posix-modules: Fix typo in error message.
95980         Reported by Matt <mkraai@beckman.com>.
95982 2007-09-09  Bruno Haible  <bruno@clisp.org>
95984         * doc/functions/getdelim.texi: Update list of platforms lacking the
95985         function.
95986         * doc/functions/getline.texi: Likewise.
95988 2007-09-09  Jim Meyering  <jim@meyering.net>
95990         * lib/hash.c (hash_initialize): Detect calloc failure.
95991         Reported by Bruno Haible.
95993 2007-09-09  Bruno Haible  <bruno@clisp.org>
95995         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
95996         malloc or realloc fails.
95998 2007-09-09  Bruno Haible  <bruno@clisp.org>
96000         * modules/getcwd (Depends-on): Add malloc-posix.
96001         * modules/glob (Depends-on): Likewise.
96002         * modules/putenv (Depends-on): Likewise.
96003         * modules/strdup (Depends-on): Likewise.
96004         * modules/getdelim (Depends-on): Add realloc-posix.
96005         * modules/read-file (Depends-on): Likewise.
96007 2007-09-09  Bruno Haible  <bruno@clisp.org>
96009         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
96010         (gl_FUNC_MALLOC_POSIX): Require it.
96011         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
96012         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
96013         * modules/realloc (Files): Add m4/malloc.m4.
96014         * modules/calloc (Files): Likewise.
96016 2007-09-09  Bruno Haible  <bruno@clisp.org>
96018         * modules/malloc-posix: New file.
96019         * modules/malloc (Depends-on): Add malloc-posix.
96020         * lib/malloc.c: Include errno.h.
96021         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
96022         and a POSIX-compatible malloc into a single function. Set ENOMEM
96023         when returning NULL.
96024         * m4/malloc.m4: New file.
96025         * doc/functions/malloc.texi: Mention the malloc-posix module.
96026         * lib/stdlib_.h (malloc): New declaration.
96027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96028         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
96029         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
96030         and HAVE_MALLOC_POSIX.
96032 2007-09-09  Bruno Haible  <bruno@clisp.org>
96034         * modules/realloc-posix: New file.
96035         * modules/realloc (Depends-on): Add realloc-posix.
96036         * lib/realloc.c: Include errno.h.
96037         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
96038         and a POSIX-compatible realloc into a single function. Set ENOMEM
96039         when returning NULL.
96040         * m4/realloc.m4: New file.
96041         * doc/functions/realloc.texi: Mention the realloc-posix module.
96042         * lib/stdlib_.h (realloc): New declaration.
96043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96044         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
96045         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
96046         and HAVE_REALLOC_POSIX.
96048 2007-09-09  Bruno Haible  <bruno@clisp.org>
96050         * modules/calloc-posix: New file.
96051         * modules/calloc (Depends-on): Add calloc-posix.
96052         * lib/calloc.c: Include errno.h.
96053         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
96054         and a POSIX-compatible calloc into a single function. Set ENOMEM
96055         when returning NULL.
96056         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
96057         * doc/functions/calloc.texi: Mention the calloc-posix module.
96058         * lib/stdlib_.h (calloc): New declaration.
96059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
96060         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
96061         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
96062         and HAVE_CALLOC_POSIX.
96064 2007-09-09  Bruno Haible  <bruno@clisp.org>
96066         Allow for modules to show an arbitrary notice.
96067         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
96068         * gnulib-tool: New option --extract-notice.
96069         (func_usage): Document it.
96070         (sed_extract_prog): Update.
96071         (func_get_notice): New function.
96072         (func_modules_notice): New function.
96073         (func_import, func_create_testdir): Invoke it.
96074         Suggested by Jim Meyering.
96076 2007-09-09  Bruno Haible  <bruno@clisp.org>
96078         * gnulib-tool: New options --verbose, --quiet.
96079         (func_usage): Document them.
96080         (verbose): New variable.
96081         (func_execute_command): New function.
96082         (func_import): Don't show the module list and the file list if
96083         $verbose < 0.
96084         (func_create_testdir): Likewise. Use func_execute_command.
96085         (func_create_megatestdir): Use func_execute_command.
96087 2007-09-08  Bruno Haible  <bruno@clisp.org>
96089         * gnulib-tool (func_import): Prefer rsync over wget when available,
96090         for fetching the PO files.
96092 2007-09-08  Bruno Haible  <bruno@clisp.org>
96094         * posix-modules: New file. Portions copied from gnulib-tool.
96095         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
96097 2007-09-08  Jim Meyering  <jim@meyering.net>
96099         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
96100         * lib/fpending.h: Rename from __fpending.h.
96101         * lib/fpending.c: Rename from __fpending.c.
96102         Include "fpending.h", not "__fpending.h".
96103         * lib/__fpending.h, lib/__fpending.c: Remove files.
96104         * modules/fpending (Files): Reflect new file names.
96105         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
96107 2007-09-08  Bruno Haible  <bruno@clisp.org>
96109         * m4/inttypes-h.m4: Remove stub file.
96111 2007-09-07  Simon Josefsson  <simon@josefsson.org>
96113         * doc/headers/stdint.texi: Discuss #include_next issue.
96115 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96117         * build-aux/bootstrap: Remove obsolete comment about wget --help.
96119 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96121         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
96122         in variable name.
96124 2007-09-03  Jim Meyering  <jim@meyering.net>
96126         New module: git-version-gen.
96127         * modules/git-version-gen: New file.
96129         Import changes from coreutils for bootstrap script.
96131         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
96133         bootstrap: uses rsync to download the .po files
96134         * build-aux/bootstrap (po_download_command_format): New global.
96135         (download_po_files): Use rsync.
96136         (update_po_files): Don't remove .po files after download,
96137         so future rsync runs can take advantage of the copies.
96139         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
96141         Solve the unnecessary-.po-file-regeneration problem once and for all.
96142         * build-aux/bootstrap (download_po_files): New function, renamed from
96143         get_translations.  Now, downloads, but doesn't update LINGUAS.
96144         (update_po_files): New function.
96146         bootstrap: Ignore more.
96147         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
96148         uniwidth to e.g., lib/.gitignore.
96149         (slurp): Handle the sys_stat_.h -> sys mapping, too.
96151         * build-aux/bootstrap: New setting: vc_ignore.
96152         (insert_sorted_if_absent): Create $file if absent.
96153         Adapt to new, possibly empty, list: $vc_ignore.
96155         bootstrap: generate more ignorable names
96156         * build-aux/bootstrap (slurp): When generating ignorable names,
96157         also map .sin to .sed, .gperf to .c, and .y to .c.
96159 2007-09-03  Jim Meyering  <jim@meyering.net>
96161         * build-aux/git-version-gen: New file, from coreutils.  For details, see
96162         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
96164 2007-09-02  Bruno Haible  <bruno@clisp.org>
96166         Fix mis-recognition of 'mcs' on QNX 6.
96167         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
96168         output contains the string "Mono".
96169         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
96170         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
96172 2007-09-01  Bruno Haible  <bruno@clisp.org>
96174         Fix collision between uniwidth/* and linebreak modules.
96175         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
96176         u32_width): Remove declarations.
96177         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
96178         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
96179         streq3, streq2, streq1, streq0): Remove functions.
96180         (STREQ): Remove macro.
96181         (is_cjk_encoding): Remove function.
96182         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
96183         (uc_width, u8_width, u16_width, u32_width): Remove functions.
96184         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
96185         * NEWS: Document the change.
96187 2007-09-01  Bruno Haible  <bruno@clisp.org>
96189         * lib/streq.h: Add double-inclusion guard.
96191 2007-09-01  Karl Berry  <karl@gnu.org>
96193         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
96195 2007-08-28  Jim Meyering  <jim@meyering.net>
96197         Rename mreadlink_with_size to areadlink_with_size.
96198         * NEWS: Document the change.
96199         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
96200         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
96201         * lib/mreadlink.h: Rename this to...
96202         * lib/areadlink.h: ...this.
96203         * modules/mreadlink-with-size: Rename this to...
96204         * modules/areadlink-with-size: ...this.
96205         * lib/canonicalize.c: Reflect the renaming.
96206         * modules/canonicalize: Likewise.
96208 2007-08-26  Bruno Haible  <bruno@clisp.org>
96210         * gnulib-tool (func_import): When deciding which files to remove,
96211         consider also dangling symbolic links.
96212         Reported by Eric Blake.
96214 2007-08-26  Bruno Haible  <bruno@clisp.org>
96216         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
96218 2007-08-23  Simon Josefsson  <simon@josefsson.org>
96220         * lib/readline.c: Don't include getline.h, the prototype is now
96221         found in stdio.h.
96223 2007-08-23  Jim Meyering  <jim@meyering.net>
96225         Getdelim touchup.
96226         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
96227         around the funlockfile call, since funlockfile never sets errno.
96228         Don't set errno upon failed realloc.
96230 2007-08-22  Eric Blake  <ebb9@byu.net>
96232         Getline touchups.
96233         * lib/getdelim.c (getdelim): Revert regression that required *n to
96234         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
96235         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
96236         getdelim, rather than whether implementation is missing.
96237         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
96238         * lib/stdio_.h (getline): Also declare if replacement is
96239         required.
96240         * doc/functions/getdelim.texi: New file.
96241         * doc/functions/getline.texi: Likewise.
96242         * doc/gnulib.texi (Function Substitutes): Add new files.
96243         Reported by Bruno Haible.
96245 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
96247         * users.txt: Add Guile.
96249 2007-08-22  Eric Blake  <ebb9@byu.net>
96251         * tests/test-getdelim.c (main): Use remove, not unlink.
96252         * tests/test-getline.c (main): Likewise.
96254         Move getline and getdelim into stdio.h, per POSIX 200x.
96255         * modules/getline (Files): Remove getline.h.
96256         (Depends-on): Add stdio.
96257         (configure.ac): Add module indicator.
96258         * modules/getdelim (Files): Remove getdelim.h.
96259         (Depends-on): Add stdio.
96260         (configure.ac): Add module indicator.
96261         * modules/stdio (Makefile.am): Work with new indicators.
96262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
96263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
96264         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
96265         * lib/getdelim.h: Delete.
96266         * lib/getline.h: Delete.
96267         * lib/stdio_.h (getdelim, getline): Declare.
96268         * modules/getdelim-tests: New module.
96269         * modules/getline-tests: Likewise.
96270         * tests/test-getdelim.c: New file.
96271         * tests/test-getline.c: Likewise.
96272         * NEWS: Document the change.
96273         * lib/getline.c: Update choice of header.
96274         * lib/csharpcomp.c: Likewise.
96275         * lib/getpass.c: Likewise.
96276         * lib/javacomp.c: Likewise.
96277         * lib/javaversion.c: Likewise.
96278         * lib/yesno.c: Likewise.
96279         * lib/getdelim.c: Likewise.
96280         (getdelim): Set errno on failure, and avoid memory leak.
96282 2007-08-19  Bruno Haible  <bruno@clisp.org>
96284         * modules/closein (Depends-on): Add freadahead.
96285         * lib/closein.c: Include freadahead.h.
96286         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
96287         is zero.
96289 2007-08-19  Bruno Haible  <bruno@clisp.org>
96291         * modules/freadahead-tests: New file.
96292         * tests/test-freadahead.sh: New file.
96293         * tests/test-freadahead.c: New file.
96295         * modules/freadahead: New file.
96296         * lib/freadahead.h: New file.
96297         * lib/freadahead.c: New file.
96298         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
96299         fbufmode, fpurge, freadable, fwritable.
96301 2007-08-19  Eric Blake  <ebb9@byu.net>
96303         Test yesno in combination with closein.
96304         * lib/yesno.c (yesno): Document use of stdin.
96305         * modules/yesno-tests (Files): New module.
96306         * tests/test-yesno.c (main): New file.
96307         * tests/test-yesno.sh: Likewise.
96309 2007-08-19  Bruno Haible  <bruno@clisp.org>
96311         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
96312         * lib/fseeko.c (rpl_fseeko): Likewise.
96313         * lib/fseterr.c (fseterr): Likewise.
96315 2007-08-19  Bruno Haible  <bruno@clisp.org>
96317         * tests/test-lseek.c (main): Disable a test for BeOS.
96318         * doc/functions/lseek.texi: Document the BeOS bug.
96320 2007-08-19  Bruno Haible  <bruno@clisp.org>
96321             Eric Blake  <ebb9@byu.net>
96323         * lib/lseek.c: Include <sys/stat.h>.
96324         (rpl_lseek): Add workaround code also for Unix platforms.
96325         Needed for BeOS.
96326         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
96327         * doc/functions/lseek.texi: Document BeOS definiency.
96329 2007-08-18  Bruno Haible  <bruno@clisp.org>
96331         * modules/fstrcmp-tests: New file.
96332         * tests/test-fstrcmp.c: New file.
96334 2007-08-18  Bruno Haible  <bruno@clisp.org>
96336         * modules/fstrcmp: New file, from GNU gettext with modifications.
96337         * lib/fstrcmp.h: New file, from GNU gettext.
96338         * lib/fstrcmp.c: New file, from GNU gettext.
96339         * MODULES.html.sh (String handling): Add fstrcmp.
96341 2007-08-18  Bruno Haible  <bruno@clisp.org>
96343         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
96344         'bool'.
96345         (diag, compareseq): Remove const from the ctxt argument.
96346         (USE_HEURISTIC): Undefine at the end.
96348 2007-08-18  Jim Meyering  <jim@meyering.net>
96350         New file: lib/idcache.h
96351         * NEWS: Mention the addition.
96352         * modules/idcache (Files): Add lib/idcache.h
96353         * lib/idcache.c: Include "idcache.h".
96354         Don't include <sys/types.h>.
96355         Add a FIXME comment.
96356         Move file-scoped "static" declarations to the top.
96357         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
96359 2007-08-17  Bruno Haible  <bruno@clisp.org>
96360         and Paul Eggert  <eggert@cs.ucla.edu>
96362         * MODULES.html.sh: Add diffseq.
96363         * modules/diffseq: New file.
96364         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
96365         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
96367 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96369         Import changes from coreutils for bootstrap script.
96371         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
96373         * build-aux/bootstrap (slurp): Work even in environments where
96374         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
96375         current code does not slurp files whose names start with ".", and
96376         this looks like it might be a troublesome area.
96378         2007-07-11  Jim Meyering  <jim@meyering.net>
96380         If there's a GPL vN copyright comment, require that N == 3.
96382         2007-07-08  Jim Meyering  <jim@meyering.net>
96384         Run the coreutils-specific code only if tests/Makefile.am.in exists.
96385         * build-aux/bootstrap (mam_template): Move definition out of loop.
96387         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
96389         * build-aux/bootstrap (symlink_to_dir): Rename function from
96390         symlink_to_gnulib.  Add a directory parameter.  Update all
96391         callers.
96392         (cp_mark_as_generated): Also check for -- and link to -- files in
96393         gl/.
96395         2007-07-08  Jim Meyering  <jim@meyering.net>
96397         Adapt to deeper hierarchy in gnulib.
96398         * build-aux/bootstrap (symlink_to_dir): If the destination
96399         directory doesn't exist, create it. This is required at least for
96400         "lib/uniwidth/cjk.h".
96402         2007-05-15  Jim Meyering  <jim@meyering.net>
96404         * build-aux/bootstrap: Now that generated Makefile.am files
96405         are no longer under version control, they must be created at
96406         bootstrap time.
96408 2007-08-14  Ben Pfaff  <blp@gnu.org>
96410         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
96412 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96414         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
96415         given the changes below.
96416         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
96417         even on hosts that have padding bits beyond the supported 64.
96419 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96421         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
96422         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
96423         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
96424         depends on it.
96425         (xstrtol_error): Remove.
96426         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
96427         but with a different signature.
96428         (ATTRIBUTE_NORETURN, __attribute__): New macros.
96429         * lib/xstrtol-error.c: Include exitfail.h.
96430         (xstrtol_fatal): New function, with a different signature from the
96431         old xstrtol_error, so that the caller need not worry about passing
96432         in an exit status, or about storage management of the option argument.
96433         (xstrtol_error): Now a static function.  Redo signature to
96434         implement xstrtol_fatal.  Output the correct number of hyphens in
96435         front of the option so that the caller need not worry about
96436         storage management.
96437         (N_): New macro.
96438         (_): Remove; not used now.
96439         * modules/xstrtol: Depend on getopt.
96440         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
96441         of old STRTOL_FATAL_ERROR macro.
96442         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
96443         of test program.
96444         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
96445         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
96447 2007-08-08  Eric Blake  <ebb9@byu.net>
96449         * lib/xstrtol-error.c: Add missing include.
96451         Move xstrtol messages into gnulib domain, when --pobase is used.
96452         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
96453         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
96454         * modules/xstrtol (Files): Distribute new file.
96455         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
96456         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
96457         * tests/test-xstrtol.c: ...into new file.
96458         * tests/test-xstrtoul.c: Also test xstrtoul.
96459         * tests/test-xstrtoimax.c: Also test xstrtoimax.
96460         * tests/test-xstrtoumax.c: Also test xstrtoumax.
96461         * tests/test-xstrtol.sh: Drive the tests.
96462         * tests/test-xstrtoimax.sh: Likewise.
96463         * tests/test-xstrtoumax.sh: Likewise.
96464         * modules/xstrtol-tests: New module.
96465         * modules/xstrtoimax-tests: Likewise.
96466         * modules/xstrtoumax-tests: Likewise.
96468 2007-08-08  Jim Meyering  <jim@meyering.net>
96470         New function: mfile_name_concat.
96471         * lib/filenamecat.c (mfile_name_concat): New function, just like
96472         file_name_concat, but return NULL upon failure rather than exiting
96473         with a diagnostic.
96474         * lib/filenamecat.h: Declare it.
96476 2007-08-07  Bruno Haible  <bruno@clisp.org>
96478         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
96479         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
96480         warning from gcc.
96481         Reported by Eric Blake.
96483 2007-08-07  Simon Josefsson  <simon@josefsson.org>
96485         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
96486         * modules/crypto/arcfour (License): Likewise.
96487         * modules/crypto/des-tests (License): Likewise.
96488         * modules/crypto/gc-arctwo-tests (License): Likewise.
96489         * modules/crypto/gc-des-tests (License): Likewise.
96490         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
96491         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
96492         * modules/crypto/gc-md2-tests (License): Likewise.
96493         * modules/crypto/gc-md4-tests (License): Likewise.
96494         * modules/crypto/gc-md5-tests (License): Likewise.
96495         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
96496         * modules/crypto/gc-rijndael-tests (License): Likewise.
96497         * modules/crypto/gc-sha1-tests (License): Likewise.
96498         * modules/crypto/gc-tests (License): Likewise.
96499         * modules/crypto/hmac-md5 (License): Likewise.
96500         * modules/crypto/hmac-sha1 (License): Likewise.
96501         * modules/crypto/md2-tests (License): Likewise.
96502         * modules/crypto/md4-tests (License): Likewise.
96503         * modules/crypto/md5 (License): Likewise.
96504         * modules/crypto/rijndael (License): Likewise.
96505         * modules/crypto/sha1 (License): Likewise.
96506         * modules/memxor (License): Likewise.
96508 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
96509         and Bruno Haible  <bruno@clisp.org>
96511         * NEWS: Describe interface changes to human, xstrtol.
96512         * lib/human.h: Include <xstrtol.h>.
96513         (human_options): Return enum strtol_error, not int.  Remove
96514         bool arg; take int * instead.
96515         * lib/human.c: Don't include "gettext.h".
96516         (_): Remove; no longer used.
96517         Don't include <xstrtol.h>, since human.h does it.
96518         (human_options): Adjust to abovementioned interface changes.
96519         Do not report error to stderr; that's now the caller's
96520         responsibility.
96521         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
96522         interface change.
96523         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
96524         Str, Argument_type_string.  All uses changed.  Put " argument"
96525         in diagnostics to make them clearer.  Change wording of suffix
96526         message for clarity.
96527         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
96528         Argument_type_string.
96529         (STRTOL_FATAL_WARN): Remove; no longer used.
96530         * modules/human (Depends-on): Remove gettext-h.
96532 2007-08-06  Simon Josefsson  <simon@josefsson.org>
96534         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
96536 2007-07-31  Bruno Haible  <bruno@clisp.org>
96538         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
96539         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
96540         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
96542 2007-07-31  Bruno Haible  <bruno@clisp.org>
96544         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
96545         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
96547 2007-07-30  Bruno Haible  <bruno@clisp.org>
96549         * modules/base64 (License): Use the synonymous term "LGPLv2+".
96550         * modules/c-ctype (License): Likewise.
96551         * modules/c-strcase (License): Likewise.
96552         * modules/check-version (License): Likewise.
96553         * modules/iconv (License): Likewise.
96554         * modules/iconv_open (License): Likewise.
96555         * modules/read-file (License): Likewise.
96556         * modules/striconv (License): Likewise.
96557         * modules/strverscmp (License): Likewise.
96558         * modules/vasprintf (License): Likewise.
96559         * modules/crypto/des (License): Likewise.
96560         * modules/crypto/gc (License): Likewise.
96561         * modules/crypto/gc-arcfour (License): Likewise.
96562         * modules/crypto/gc-arctwo (License): Likewise.
96563         * modules/crypto/gc-des (License): Likewise.
96564         * modules/crypto/gc-hmac-md5 (License): Likewise.
96565         * modules/crypto/gc-hmac-sha1 (License): Likewise.
96566         * modules/crypto/gc-md2 (License): Likewise.
96567         * modules/crypto/gc-md4 (License): Likewise.
96568         * modules/crypto/gc-md5 (License): Likewise.
96569         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
96570         * modules/crypto/gc-random (License): Likewise.
96571         * modules/crypto/gc-rijndael (License): Likewise.
96572         * modules/crypto/gc-sha1 (License): Likewise.
96573         * modules/crypto/md2 (License): Likewise.
96574         * modules/crypto/md4 (License): Likewise.
96576 2007-07-30  Jim Meyering  <jim@meyering.net>
96578         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
96579         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
96580         it has valid stat data.  This bug would cause du not to count the
96581         sizes of inaccessible directories.
96582         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
96583         in <http://bugzilla.redhat.com/250077>.
96585 2007-07-25  Peter O'Gorman  <peter@pogma.com>
96586             Bruno Haible  <bruno@clisp.org>
96588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
96589         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
96590         #include_next, gives a diagnostic about it, but reports no error in
96591         the exit code.
96592         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
96594 2007-07-24  Ben Pfaff  <blp@gnu.org>
96596         Improve name: "count-one-bits" is better than "popcount".
96597         * MODULES.html.sh: Update name.
96598         * lib/popcount.h: Renamed lib/count-one-bits.h.
96599         (popcount): Renamed count_one_bits.
96600         (popcountl): Renamed count_one_bits_l.
96601         (popcountll): Renamed count_one_bits_ll.
96602         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
96603         * modules/popcount: Renamed module/count-one-bits.
96604         * modules/popcount-tests: Renamed module/count-one-bits-tests.
96605         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
96607 2007-07-23  Ben Pfaff  <blp@gnu.org>
96609         * lib/popcount.h (popcount32): Reduce size of constants, to allow
96610         better code generation, and add U to large constants to avoid
96611         warnings, in non-GCC case.
96612         Suggested by Bruno Haible.
96614 2007-07-23  Ben Pfaff  <blp@gnu.org>
96616         * lib/popcount.h: Use verify_true instead of if...abort.
96617         * modules/popcount: Depend on verify module.
96618         Suggested by Jim Meyering.
96620 2007-07-23  Bruno Haible  <bruno@clisp.org>
96622         * gnulib-tool (func_import): Create a .cvsignore file also when the
96623         directory is not yet in CVS but the toplevel directory is. When
96624         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
96625         Reported by Karl Berry.
96627 2007-07-22  Ben Pfaff  <blp@gnu.org>
96629         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
96630         case.
96631         Suggested by Eric Blake.
96633 2007-07-22  Ben Pfaff  <blp@gnu.org>
96635         New module: popcount.
96636         * MODULES.html.sh: Add popcount.
96637         * modules/popcount: New file.
96638         * modules/popcount-tests: New file.
96639         * tests/test-popcount.c: New file.
96640         * lib/popcount.h: New file.
96641         * m4/popcount.m4: New file.
96643 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
96645         * build-aux/announce-gen: Update to GPLv3.
96647         * build-aux/config.guess: Update from config.
96649 2007-07-21  Bruno Haible  <bruno@clisp.org>
96651         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
96652         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
96654 2007-07-20  Jim Meyering  <jim@meyering.net>
96656         * check-module: Diagnose a self-dependency.
96658 2007-07-19  Bruno Haible  <bruno@clisp.org>
96660         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
96661         empty.
96662         Reported by Eric Blake.
96664 2007-07-18  Bruno Haible  <bruno@clisp.org>
96666         * gnulib-tool: New options --po-base, --po-domain.
96667         (func_usage): Document them.
96668         (pobase, po_domain): New variables.
96669         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
96670         DEFAULT_TEXT_DOMAIN.
96671         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
96672         (func_import): Consider pobase and po_domain. Create a po/ directory.
96673         (func_create_testdir): Set pobase and po_domain to empty.
96674         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
96675         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
96677 2007-07-18  Bruno Haible  <bruno@clisp.org>
96679         * gnulib-tool (func_get_automake_snippet): Synthesize also an
96680         EXTRA_DIST augmentation for files in build-aux/.
96682 2007-07-16  Bruno Haible  <bruno@clisp.org>
96684         * modules/lseek (License): Use the synonymous term "LGPLv2+".
96685         * modules/getdelim (License): Likewise.
96687 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96689         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
96690         * modules/d-type (License): Likewise.
96691         * modules/extensions (License): Likewise.
96692         * modules/fnmatch (License): Likewise.
96693         * modules/fseeko (License): Likewise.
96694         * modules/getaddrinfo (License): Likewise.
96695         * modules/getline (License): Likewise.
96696         * modules/getlogin_r (License): Likewise.
96697         * modules/getpass (License): Likewise.
96698         * modules/gettimeofday (License): Likewise.
96699         * modules/glob (License): Likewise.
96700         * modules/inet_ntop (License): Likewise.
96701         * modules/malloc (License): Likewise.
96702         * modules/malloca (License): Likewise.
96703         * modules/memmem (License): Likewise.
96704         * modules/mempcpy (License): Likewise.
96705         * modules/memset (License): Likewise.
96706         * modules/minmax (License): Likewise.
96707         * modules/mktime (License): Likewise.
96708         * modules/netinet_in (License): Likewise.
96709         * modules/pathmax (License): Likewise.
96710         * modules/poll (License): Likewise.
96711         * modules/regex (License): Likewise.
96712         * modules/snprintf (License): Likewise.
96713         * modules/stdbool (License): Likewise.
96714         * modules/stdint (License): Likewise.
96715         * modules/stdio (License): Likewise.
96716         * modules/strcase (License): Likewise.
96717         * modules/strcasestr (License): Likewise.
96718         * modules/strdup (License): Likewise.
96719         * modules/string (License): Likewise.
96720         * modules/strndup (License): Likewise.
96721         * modules/strnlen (License): Likewise.
96722         * modules/strpbrk (License): Likewise.
96723         * modules/strptime (License): Likewise.
96724         * modules/strsep (License): Likewise.
96725         * modules/sys_select (License): Likewise.
96726         * modules/sys_socket (License): Likewise.
96727         * modules/sys_stat (License): Likewise.
96728         * modules/sys_time (License): Likewise.
96729         * modules/time (License): Likewise.
96730         * modules/time_r (License): Likewise.
96731         * modules/timegm (License): Likewise.
96732         * modules/unistd (License): Likewise.
96733         * modules/vsnprintf (License): Likewise.
96734         * modules/wctype (License): Likewise.
96736 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96738         * modules/argz (License): LGPLv2+.
96740 2007-07-15  Karl Berry  <karl@gnu.org>
96742         * doc/gnulib.texi: revise node structure per new fdl.texi.
96744 2007-07-14  Bruno Haible  <bruno@clisp.org>
96746         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
96747         the output file.
96748         * lib/uniname/uninames.h: Regenerated.
96750 2007-07-14  Karl Berry  <karl@gnu.org>
96752         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
96753         omitting sectioning and index commands.
96755 2007-07-13  Bruno Haible  <bruno@clisp.org>
96757         New gnulib-tool option --more-symlinks.
96758         * gnulib-tool (func_usage): Document --more-symlinks.
96759         (do_copyrights): New variable.
96760         Recognize option --more-symlinks.
96761         (func_import): Don't add a copyright notice transform to
96762         sed_transform_lib_file if do_copyrights is empty.
96764 2007-07-13  Bruno Haible  <bruno@clisp.org>
96766         * lib/vasnprintf.c (decimal_point_char): Define also if
96767         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
96768         && !NEED_PRINTF_DIRECTIVE_A.
96769         Reported by Clemens Koller <clemens.koller@anagramm.de> via
96770         Gary V. Vaughan <gary@gnu.org>.
96772 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
96774         * lib/inttypes_.h: Undo previous change, since it was fixed
96775         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
96777 2007-07-13  Bruno Haible  <bruno@clisp.org>
96779         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
96780         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
96782 2007-07-13  Jim Meyering  <jim@meyering.net>
96784         df: Don't fail for Tru64's "file-on-file mount".
96785         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
96786         so we fall through and use statfs instead.  Details here:
96787         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
96788         Reported by Albert Chin.
96790 2007-07-13  Bruno Haible  <bruno@clisp.org>
96792         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
96793         * modules/configmake (License): Likewise.
96794         * modules/gettext (License): Likewise.
96795         * modules/gettext-h (License): Likewise.
96796         * modules/include_next (License): Likewise.
96797         * modules/link-warning (License): Likewise.
96798         * modules/localcharset (License): Likewise.
96799         * modules/localename (License): Likewise.
96800         * modules/lock (License): Likewise.
96801         * modules/relocatable-lib-lgpl (License): Likewise.
96802         * modules/size_max (License): Likewise.
96803         * modules/vasnprintf (License): Likewise.
96804         * modules/wchar (License): Likewise.
96805         * modules/xsize (License): Likewise.
96807 2007-07-13  Bruno Haible  <bruno@clisp.org>
96809         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
96810         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
96812 2007-07-12  Bruno Haible  <bruno@clisp.org>
96814         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
96815         in the modules files.
96817 2007-07-11  Karl Berry  <karl@gnu.org>
96819         * MODULES.html.sh (func_module): use
96820          sed -e '\|^'"${includefile}"'$|d'
96821          instead of /.../d, to avoid errors on $includefile's containing /.
96823 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96825         * gnulib-tool (func_import): Avoid duplication of --avoid
96826         statements
96827         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
96828         names to `_' in variable names.
96830 2007-07-10  Eric Blake  <ebb9@byu.net>
96832         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
96833         * NEWS: Document this change.
96835 2007-07-08  Bruno Haible  <bruno@clisp.org>
96837         Update to Unicode 5.0.
96838         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
96839         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
96840         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
96841         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
96842         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
96843         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
96844         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
96845         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
96846         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
96847         U+10A3F, U+1D242..U+1D244.
96848         (nonspacing_table_ind): Update.
96849         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
96850         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
96852 2007-07-08  Bruno Haible  <bruno@clisp.org>
96854         Update to Unicode 5.0.
96855         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
96856         code transform. Extend the name index field of unicode_name_to_code and
96857         unicode_code_to_name from 16 to 24 bits.
96858         * lib/uniname/uniname.c (unicode_character_name,
96859         unicode_name_character): Add the range 0x12xxx to the code transform.
96860         * lib/uniname/uninames.h: Regenerated.
96861         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
96863 2007-07-07  Bruno Haible  <bruno@clisp.org>
96865         * modules/wcwidth-tests: New file.
96866         * tests/test-wcwidth.c: New file.
96868         Work around MacOS X wcwidth() bug.
96869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
96870         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
96871         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
96872         original wcwidth in non-UTF-8 locales.
96873         * modules/wcwidth (Depends-on): Add localcharset, streq,
96874         uniwidth/width.
96875         * doc/functions/wcwidth.texi: Update.
96877 2007-07-07  Bruno Haible  <bruno@clisp.org>
96879         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
96880         (wcwidth): New declaration.
96881         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
96882         macros.
96883         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
96884         here. Prepare for creating <wchar.h> unconditionally.
96885         * modules/wchar (Depends-on): Add link-warning.
96886         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
96887         REPLACE_WCWIDTH, and GL_LINK_WARNING.
96888         * lib/wcwidth.h: Remove file.
96889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
96890         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
96891         * modules/wcwidth (Files): Remove lib/wcwidth.h.
96892         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
96893         (Include): Replace wcwidth.h with <wchar.h>.
96894         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
96895         * lib/mbchar.h: Don't include wcwidth.h.
96896         * lib/mbswidth.c: Likewise.
96897         * NEWS: Mention the change.
96899 2007-07-07  Bruno Haible  <bruno@clisp.org>
96901         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
96902         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
96903         definition with an external declaration.
96904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
96905         defined as a function. Remove AC_C_INLINE requirement.
96906         * modules/wcwidth (Files): Add lib/wcwidth.c.
96907         (Makefile.am): Remove redundant statement.
96909 2007-07-07  Bruno Haible  <bruno@clisp.org>
96911         * MODULES.html.sh (Unicode string functions): Add the new modules.
96913         * tests/uniwidth/test-u32-strwidth.c: New file.
96914         * modules/uniwidth/u32-strwidth-tests: New file.
96916         * lib/uniwidth/u32-strwidth.c: New file.
96917         * modules/uniwidth/u32-strwidth: New file.
96919         * tests/uniwidth/test-u16-strwidth.c: New file.
96920         * modules/uniwidth/u16-strwidth-tests: New file.
96922         * lib/uniwidth/u16-strwidth.c: New file.
96923         * modules/uniwidth/u16-strwidth: New file.
96925         * tests/uniwidth/test-u8-strwidth.c: New file.
96926         * modules/uniwidth/u8-strwidth-tests: New file.
96928         * lib/uniwidth/u8-strwidth.c: New file.
96929         * modules/uniwidth/u8-strwidth: New file.
96931         * tests/uniwidth/test-u32-width.c: New file.
96932         * modules/uniwidth/u32-width-tests: New file.
96934         * lib/uniwidth/u32-width.c: New file.
96935         * modules/uniwidth/u32-width: New file.
96937         * tests/uniwidth/test-u16-width.c: New file.
96938         * modules/uniwidth/u16-width-tests: New file.
96940         * lib/uniwidth/u16-width.c: New file.
96941         * modules/uniwidth/u16-width: New file.
96943         * tests/uniwidth/test-u8-width.c: New file.
96944         * modules/uniwidth/u8-width-tests: New file.
96946         * lib/uniwidth/u8-width.c: New file.
96947         * modules/uniwidth/u8-width: New file.
96949         * tests/uniwidth/test-uc_width.c: New file.
96950         * modules/uniwidth/width-tests: New file.
96952         * lib/uniwidth/width.c: New file, from GNU libiconv.
96953         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
96954         * modules/uniwidth/width: New file.
96956         * lib/uniwidth.h: New file, from GNU libiconv.
96957         * modules/uniwidth/base: New file.
96959 2007-07-07  Bruno Haible  <bruno@clisp.org>
96961         * lib/uniname.h: New file, from GNU gettext.
96962         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
96963         * lib/uniname/uninames.h: New file, from GNU gettext.
96964         * lib/uniname/uniname.c: New file, from GNU gettext.
96965         * tests/uniname/test-uninames.sh: New file.
96966         * tests/uniname/test-uninames.c: New file, from GNU gettext.
96967         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
96968         * modules/uniname/base: New file.
96969         * modules/uniname/uniname: New file.
96970         * modules/uniname/uniname-tests: New file.
96971         * MODULES.html.sh (Unicode string functions): Add the new modules.
96973 2007-07-06  Bruno Haible  <bruno@clisp.org>
96975         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
96977 2007-07-06  Bruno Haible  <bruno@clisp.org>
96979         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
96980         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
96981         includes <cygwin/sys_time.h> which includes <sys/select.h> which
96982         include <sys/time.h>.
96983         Reported by Eric Blake.
96985 2007-07-06  Eric Blake  <ebb9@byu.net>
96987         Fix testing canonicalize on cygwin.
96988         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
96989         Revert patch from 2007-06-19.
96990         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
96991         canonicalize module is also in use.
96992         * tests/test-canonicalize.c: New file.
96993         * tests/test-canonicalize.sh: Likewise.
96994         * modules/canonicalize-tests: Likewise.
96996 2007-07-06  Jim Meyering  <jim@meyering.net>
96998         * lib/getugroups.c (getugroups): Detect getgrent failure.
96999         Adjust comment to reflect reality: this function may return -1.
97001 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
97003         * build-aux/bootstrap (TP_URL,get_translations): Update to use
97004         the new TP address.
97005         (usage): Fix typo
97006         (gnulib_mk): New variable.
97008 2007-07-05  Jim Meyering  <jim@meyering.net>
97010         Don't let endgrent clobber errno, no matter how improbable.
97011         * lib/getugroups.c (getugroups): Save and restore errno around
97012         endgrent call.
97014         Close the group DB even when failing with 2^31 or more members.
97015         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
97017 2007-07-04  Jim Meyering  <jim@meyering.net>
97019         * lib/getugroups.h: New file.
97020         * lib/getugroups.c: Include "getugroups.h".
97021         Remove uses of "register" keyword.
97022         Move local variable, "cp", down into scope where used.
97023         Give "username" parameter the "const" attribute.
97024         * modules/getugroups (Files): Add lib/getugroups.h
97026 2007-07-04  Karl Berry  <karl@gnu.org>
97028         * MODULES.html.sh (func_all_modules): Complete rename of
97029         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
97031 2007-07-02  Bruno Haible  <bruno@clisp.org>
97033         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
97034         mode, when inttypes.h comes from gnulib.
97035         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
97037 2007-07-02  Simon Josefsson  <simon@josefsson.org>
97039         * NEWS: Mention lgpl module name change.
97041         * modules/lgpl-2.1: Renamed from lgpl.
97043         * NEWS: Mention gpl module name change.
97045         * modules/gpl-3.0: New file, based on gpl-2.0.
97047         * modules/gpl-2.0: Renamed from gpl.
97049         * modules/gpl: Fix filename, doc/gpl.texi is now found at
97050         doc/gpl-2.0.texi.
97052 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
97054         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
97055         #define __STDC_LIMIT_MACROS temporarily while including
97056         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
97057         Problem reported by Joel E. Denny in
97058         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
97060 2007-07-01  Bruno Haible  <bruno@clisp.org>
97062         * lib/unistdio.h: New file.
97063         * lib/unistdio/u-asnprintf.h: New file.
97064         * lib/unistdio/u-asprintf.h: New file.
97065         * lib/unistdio/u-printf-args.c: New file.
97066         * lib/unistdio/u-printf-args.h: New file.
97067         * lib/unistdio/u-printf-parse.h: New file.
97068         * lib/unistdio/u-snprintf.h: New file.
97069         * lib/unistdio/u-sprintf.h: New file.
97070         * lib/unistdio/u-vasprintf.h: New file.
97071         * lib/unistdio/u-vsnprintf.h: New file.
97072         * lib/unistdio/u-vsprintf.h: New file.
97073         * lib/unistdio/ulc-asnprintf.c: New file.
97074         * lib/unistdio/ulc-asprintf.c: New file.
97075         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
97076         * lib/unistdio/ulc-printf-parse.c: New file.
97077         * lib/unistdio/ulc-snprintf.c: New file.
97078         * lib/unistdio/ulc-sprintf.c: New file.
97079         * lib/unistdio/ulc-vasnprintf.c: New file.
97080         * lib/unistdio/ulc-vasprintf.c: New file.
97081         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
97082         * lib/unistdio/ulc-vsnprintf.c: New file.
97083         * lib/unistdio/ulc-vsprintf.c: New file.
97084         * lib/unistdio/u8-asnprintf.c: New file.
97085         * lib/unistdio/u8-asprintf.c: New file.
97086         * lib/unistdio/u8-printf-parse.c: New file.
97087         * lib/unistdio/u8-snprintf.c: New file.
97088         * lib/unistdio/u8-sprintf.c: New file.
97089         * lib/unistdio/u8-vasnprintf.c: New file.
97090         * lib/unistdio/u8-vasprintf.c: New file.
97091         * lib/unistdio/u8-vsnprintf.c: New file.
97092         * lib/unistdio/u8-vsprintf.c: New file.
97093         * lib/unistdio/u8-u8-asnprintf.c: New file.
97094         * lib/unistdio/u8-u8-asprintf.c: New file.
97095         * lib/unistdio/u8-u8-snprintf.c: New file.
97096         * lib/unistdio/u8-u8-sprintf.c: New file.
97097         * lib/unistdio/u8-u8-vasnprintf.c: New file.
97098         * lib/unistdio/u8-u8-vasprintf.c: New file.
97099         * lib/unistdio/u8-u8-vsnprintf.c: New file.
97100         * lib/unistdio/u8-u8-vsprintf.c: New file.
97101         * lib/unistdio/u16-asnprintf.c: New file.
97102         * lib/unistdio/u16-asprintf.c: New file.
97103         * lib/unistdio/u16-printf-parse.c: New file.
97104         * lib/unistdio/u16-snprintf.c: New file.
97105         * lib/unistdio/u16-sprintf.c: New file.
97106         * lib/unistdio/u16-vasnprintf.c: New file.
97107         * lib/unistdio/u16-vasprintf.c: New file.
97108         * lib/unistdio/u16-vsnprintf.c: New file.
97109         * lib/unistdio/u16-vsprintf.c: New file.
97110         * lib/unistdio/u16-u16-asnprintf.c: New file.
97111         * lib/unistdio/u16-u16-asprintf.c: New file.
97112         * lib/unistdio/u16-u16-snprintf.c: New file.
97113         * lib/unistdio/u16-u16-sprintf.c: New file.
97114         * lib/unistdio/u16-u16-vasnprintf.c: New file.
97115         * lib/unistdio/u16-u16-vasprintf.c: New file.
97116         * lib/unistdio/u16-u16-vsnprintf.c: New file.
97117         * lib/unistdio/u16-u16-vsprintf.c: New file.
97118         * lib/unistdio/u32-asnprintf.c: New file.
97119         * lib/unistdio/u32-asprintf.c: New file.
97120         * lib/unistdio/u32-printf-parse.c: New file.
97121         * lib/unistdio/u32-snprintf.c: New file.
97122         * lib/unistdio/u32-sprintf.c: New file.
97123         * lib/unistdio/u32-vasnprintf.c: New file.
97124         * lib/unistdio/u32-vasprintf.c: New file.
97125         * lib/unistdio/u32-vsnprintf.c: New file.
97126         * lib/unistdio/u32-vsprintf.c: New file.
97127         * lib/unistdio/u32-u32-asnprintf.c: New file.
97128         * lib/unistdio/u32-u32-asprintf.c: New file.
97129         * lib/unistdio/u32-u32-snprintf.c: New file.
97130         * lib/unistdio/u32-u32-sprintf.c: New file.
97131         * lib/unistdio/u32-u32-vasnprintf.c: New file.
97132         * lib/unistdio/u32-u32-vasprintf.c: New file.
97133         * lib/unistdio/u32-u32-vsnprintf.c: New file.
97134         * lib/unistdio/u32-u32-vsprintf.c: New file.
97135         * tests/unistdio/test-ulc-asnprintf1.c: New file.
97136         * tests/unistdio/test-ulc-asnprintf1.h: New file.
97137         * tests/unistdio/test-ulc-printf1.h: New file.
97138         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
97139         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
97140         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
97141         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
97142         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
97143         * tests/unistdio/test-ulc-vasprintf1.c: New file.
97144         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
97145         * tests/unistdio/test-ulc-vsprintf1.c: New file.
97146         * tests/unistdio/test-u8-asnprintf1.c: New file.
97147         * tests/unistdio/test-u8-asnprintf1.h: New file.
97148         * tests/unistdio/test-u8-printf1.h: New file.
97149         * tests/unistdio/test-u8-vasnprintf1.c: New file.
97150         * tests/unistdio/test-u8-vasnprintf2.c: New file.
97151         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
97152         * tests/unistdio/test-u8-vasnprintf3.c: New file.
97153         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
97154         * tests/unistdio/test-u8-vasprintf1.c: New file.
97155         * tests/unistdio/test-u8-vsnprintf1.c: New file.
97156         * tests/unistdio/test-u8-vsprintf1.c: New file.
97157         * tests/unistdio/test-u16-asnprintf1.c: New file.
97158         * tests/unistdio/test-u16-asnprintf1.h: New file.
97159         * tests/unistdio/test-u16-printf1.h: New file.
97160         * tests/unistdio/test-u16-vasnprintf1.c: New file.
97161         * tests/unistdio/test-u16-vasnprintf2.c: New file.
97162         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
97163         * tests/unistdio/test-u16-vasnprintf3.c: New file.
97164         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
97165         * tests/unistdio/test-u16-vasprintf1.c: New file.
97166         * tests/unistdio/test-u16-vsnprintf1.c: New file.
97167         * tests/unistdio/test-u16-vsprintf1.c: New file.
97168         * tests/unistdio/test-u32-asnprintf1.c: New file.
97169         * tests/unistdio/test-u32-asnprintf1.h: New file.
97170         * tests/unistdio/test-u32-printf1.h: New file.
97171         * tests/unistdio/test-u32-vasnprintf1.c: New file.
97172         * tests/unistdio/test-u32-vasnprintf2.c: New file.
97173         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
97174         * tests/unistdio/test-u32-vasnprintf3.c: New file.
97175         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
97176         * tests/unistdio/test-u32-vasprintf1.c: New file.
97177         * tests/unistdio/test-u32-vsnprintf1.c: New file.
97178         * tests/unistdio/test-u32-vsprintf1.c: New file.
97179         * modules/unistdio/base: New file.
97180         * modules/unistdio/u-printf-args: New file.
97181         * modules/unistdio/ulc-asnprintf: New file.
97182         * modules/unistdio/ulc-asprintf: New file.
97183         * modules/unistdio/ulc-fprintf: New file.
97184         * modules/unistdio/ulc-printf-parse: New file.
97185         * modules/unistdio/ulc-snprintf: New file.
97186         * modules/unistdio/ulc-sprintf: New file.
97187         * modules/unistdio/ulc-vasnprintf: New file.
97188         * modules/unistdio/ulc-vasprintf: New file.
97189         * modules/unistdio/ulc-vfprintf: New file.
97190         * modules/unistdio/ulc-vsnprintf: New file.
97191         * modules/unistdio/ulc-vsprintf: New file.
97192         * modules/unistdio/u8-asnprintf: New file.
97193         * modules/unistdio/u8-asprintf: New file.
97194         * modules/unistdio/u8-printf-parse: New file.
97195         * modules/unistdio/u8-snprintf: New file.
97196         * modules/unistdio/u8-sprintf: New file.
97197         * modules/unistdio/u8-vasnprintf: New file.
97198         * modules/unistdio/u8-vasprintf: New file.
97199         * modules/unistdio/u8-vsnprintf: New file.
97200         * modules/unistdio/u8-vsprintf: New file.
97201         * modules/unistdio/u8-u8-asnprintf: New file.
97202         * modules/unistdio/u8-u8-asprintf: New file.
97203         * modules/unistdio/u8-u8-snprintf: New file.
97204         * modules/unistdio/u8-u8-sprintf: New file.
97205         * modules/unistdio/u8-u8-vasnprintf: New file.
97206         * modules/unistdio/u8-u8-vasprintf: New file.
97207         * modules/unistdio/u8-u8-vsnprintf: New file.
97208         * modules/unistdio/u8-u8-vsprintf: New file.
97209         * modules/unistdio/u16-asnprintf: New file.
97210         * modules/unistdio/u16-asprintf: New file.
97211         * modules/unistdio/u16-printf-parse: New file.
97212         * modules/unistdio/u16-snprintf: New file.
97213         * modules/unistdio/u16-sprintf: New file.
97214         * modules/unistdio/u16-vasnprintf: New file.
97215         * modules/unistdio/u16-vasprintf: New file.
97216         * modules/unistdio/u16-vsnprintf: New file.
97217         * modules/unistdio/u16-vsprintf: New file.
97218         * modules/unistdio/u16-u16-asnprintf: New file.
97219         * modules/unistdio/u16-u16-asprintf: New file.
97220         * modules/unistdio/u16-u16-snprintf: New file.
97221         * modules/unistdio/u16-u16-sprintf: New file.
97222         * modules/unistdio/u16-u16-vasnprintf: New file.
97223         * modules/unistdio/u16-u16-vasprintf: New file.
97224         * modules/unistdio/u16-u16-vsnprintf: New file.
97225         * modules/unistdio/u16-u16-vsprintf: New file.
97226         * modules/unistdio/u32-asnprintf: New file.
97227         * modules/unistdio/u32-asprintf: New file.
97228         * modules/unistdio/u32-printf-parse: New file.
97229         * modules/unistdio/u32-snprintf: New file.
97230         * modules/unistdio/u32-sprintf: New file.
97231         * modules/unistdio/u32-vasnprintf: New file.
97232         * modules/unistdio/u32-vasprintf: New file.
97233         * modules/unistdio/u32-vsnprintf: New file.
97234         * modules/unistdio/u32-vsprintf: New file.
97235         * modules/unistdio/u32-u32-asnprintf: New file.
97236         * modules/unistdio/u32-u32-asprintf: New file.
97237         * modules/unistdio/u32-u32-snprintf: New file.
97238         * modules/unistdio/u32-u32-sprintf: New file.
97239         * modules/unistdio/u32-u32-vasnprintf: New file.
97240         * modules/unistdio/u32-u32-vasprintf: New file.
97241         * modules/unistdio/u32-u32-vsnprintf: New file.
97242         * modules/unistdio/u32-u32-vsprintf: New file.
97243         * modules/unistdio/ulc-asnprintf-tests: New file.
97244         * modules/unistdio/ulc-vasnprintf-tests: New file.
97245         * modules/unistdio/ulc-vasprintf-tests: New file.
97246         * modules/unistdio/ulc-vsnprintf-tests: New file.
97247         * modules/unistdio/ulc-vsprintf-tests: New file.
97248         * modules/unistdio/u8-asnprintf-tests: New file.
97249         * modules/unistdio/u8-vasnprintf-tests: New file.
97250         * modules/unistdio/u8-vasprintf-tests: New file.
97251         * modules/unistdio/u8-vsnprintf-tests: New file.
97252         * modules/unistdio/u8-vsprintf-tests: New file.
97253         * modules/unistdio/u16-asnprintf-tests: New file.
97254         * modules/unistdio/u16-vasnprintf-tests: New file.
97255         * modules/unistdio/u16-vasprintf-tests: New file.
97256         * modules/unistdio/u16-vsnprintf-tests: New file.
97257         * modules/unistdio/u16-vsprintf-tests: New file.
97258         * modules/unistdio/u32-asnprintf-tests: New file.
97259         * modules/unistdio/u32-vasnprintf-tests: New file.
97260         * modules/unistdio/u32-vasprintf-tests: New file.
97261         * modules/unistdio/u32-vsnprintf-tests: New file.
97262         * modules/unistdio/u32-vsprintf-tests: New file.
97263         * MODULES.html.sh (Unicode string functions): Add the new modules.
97265 2007-07-01  Bruno Haible  <bruno@clisp.org>
97267         * lib/sprintf.c (sprintf): Limit the available length estimation,
97268         to avoid address wraparound.
97269         * lib/vsprintf.c (vsprintf): Likewise.
97270         * modules/sprintf-posix (Dependencies): Add stdint.
97271         * modules/vsprintf-posix (Dependencies): Likewise.
97273 2007-07-01  Bruno Haible  <bruno@clisp.org>
97275         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
97276         Windows PATH as well. Conservative double-quoting. Comments.
97278 2007-07-01  Bruno Haible  <bruno@clisp.org>
97279             Eric Blake  <ebb9@byu.net>
97280             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97282         * gnulib-tool (self_abspathname): Fix algorithm to cope with
97283         empty components in $PATH, denoting '.'.
97285 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97287         * gnulib-tool: Fix indentation.
97288         (func_create_megatestdir): Likewise.
97289         Report by Bruno Haible.
97291 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97293         Sync from Automake.
97294         * build-aux/gnupload: Fix shell portability issues with for loops.
97295         Report by Karl Berry.
97297 2007-06-29  Simon Josefsson  <simon@josefsson.org>
97299         * build-aux/maint.mk (POURL): Use translationproject.org.
97301 2007-06-27  Simon Josefsson  <simon@josefsson.org>
97302             Bruno Haible  <bruno@clisp.org>
97304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
97305         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
97306         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
97307         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
97308         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
97310 2007-06-27  Bruno Haible  <bruno@clisp.org>
97312         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
97313         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
97315 2007-06-26  Karl Berry  <karl@gnu.org>
97317         * MODULES.html.sh: remove xreadlink-with-size.
97319 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
97321         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
97322         method that I hope also handles the double-include problem noted
97323         by Bruno Haible in
97324         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
97326 2007-06-23  Bruno Haible  <bruno@clisp.org>
97328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97329         Don't let the 'mostlyclean' target fail if the last subdirectory could
97330         not be removed.
97331         Reported by Karl Berry.
97333 2007-06-23  Bruno Haible  <bruno@clisp.org>
97335         * gnulib-tool (echo): Add a speedier workaround for ksh.
97336         * tests/test-echo.sh: Likewise.
97338 2007-06-23  Bruno Haible  <bruno@clisp.org>
97340         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
97341         * tests/test-echo.sh: Likewise.
97343 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97345         * gnulib-tool (IFS): Initialize early, so we don't set it to
97346         empty later.
97347         (self_abspathname): Rewrite algorithm to set it, reindent.
97348         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
97349         (func_create_megatestdir): Merge some sed scripts.
97351 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
97353         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
97354         exposed by Sun Studio 11 cc on Solaris 8.
97356 2007-06-22  Bruno Haible  <bruno@clisp.org>
97358         * gnulib-tool (echo): Ensure the echo primitive does not interpret
97359         backslashes.
97360         * tests/test-echo.sh: New file.
97362 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97364         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
97365         simplify `sed_replace_build_aux' scripts, they are portable but
97366         echoing them with `echo' is not.
97367         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
97369 2007-06-21  Karl Berry  <karl@gnu.org>
97371         * config/srclist.txt: guess we can't handle the licenses via
97372         srclist at the moment.
97374 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
97376         * MODULES.html.sh: Add include_next.
97377         * modules/include_next: New file.
97379 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
97381         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
97382         INCLUDE_NEXT.
97383         (gl_CHECK_NEXT_HEADERS): New macro.
97384         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
97385         the obsolescent gl_ABSOLUTE_HEADER.
97386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
97387         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
97388         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
97389         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
97390         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
97391         * m4/math_h.m4 (gl_MATH_H): Likewise.
97392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
97393         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
97394         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
97395         * m4/stdint.m4 (gl_STDINT_H): Likewise.
97396         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
97397         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
97398         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
97399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
97400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
97401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
97402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
97403         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
97404         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
97405         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
97406         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
97407         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
97408         * m4/inttypes.m4 (gl_INTTYPES_H): Define
97409         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
97410         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
97411         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
97412         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
97413         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
97414         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
97415         * lib/float_.h: Likewise.
97416         * lib/inttypes_.h: Likewise.
97417         * lib/math_.h: Likewise.
97418         * lib/search_.h: Likewise.
97419         * lib/signal_.h: Likewise.
97420         * lib/stdint_.h: Likewise.
97421         * lib/stdio_.h: Likewise.
97422         * lib/stdlib_.h: Likewise.
97423         * lib/string_.h: Likewise.
97424         * lib/sys_stat_.h: Likewise.
97425         * lib/sys_time_.h: Likewise.
97426         * lib/time_.h: Likewise.
97427         * lib/unistd_.h: Likewise.
97428         * lib/wchar_.h: Likewise.
97429         * lib/wctype_.h: Likewise.
97430         * lib/dirent_.h: Likewise.
97431         * lib/iconv_.h: Likewise.
97432         * lib/locale_.h: Likewise.
97433         * lib/netinet_in_.h: Likewise.
97434         * lib/sys_select_.h: Likewise.
97435         * lib/sys_socket_.h: Likewise.
97436         * lib/sysexits_.h: Likewise.
97437         * modules/fcntl (Depends-on): Depend on include_next, not
97438         absolute_header.
97439         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
97440         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
97441         * modules/fchdir: Likewise.
97442         * modules/float: Likewise.
97443         * modules/iconv_open: Likewise.
97444         * modules/inttypes: Likewise.
97445         * modules/locale: Likewise.
97446         * modules/math: Likewise.
97447         * modules/netinet_in: Likewise.
97448         * modules/search: Likewise.
97449         * modules/signal: Likewise.
97450         * modules/stdint: Likewise.
97451         * modules/stdio: Likewise.
97452         * modules/stdlib: Likewise.
97453         * modules/string: Likewise.
97454         * modules/sys_select: Likewise.
97455         * modules/sys_socket: Likewise.
97456         * modules/sys_stat: Likewise.
97457         * modules/sys_time: Likewise.
97458         * modules/sysexits: Likewise.
97459         * modules/time: Likewise.
97460         * modules/unistd: Likewise.
97461         * modules/wchar: Likewise.
97462         * modules/wctype: Likewise.
97463         * modules/sys_stat: Change maintainer to "all".
97464         * modules/unistd: Likewise.
97466 2007-06-20  Karl Berry  <karl@gnu.org>
97468         * config/srclist.txt: track www changes in license files.
97470 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
97472         * build-aux/bootstrap: Remove stray dot.
97473         Make sure build_aux settings are honored when linking
97474         gnulib_extra_files.
97476 2007-06-19  Eric Blake  <ebb9@byu.net>
97478         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
97479         Allow compilation on cygwin.
97481 2007-06-19  Jim Meyering  <jim@meyering.net>
97483         xreadlink-with-size: Remove module.  No longer used.
97484         Ex-callers now use xreadlink or mreadlink-with-size.
97485         * modules/xreadlink-with-size: Remove module.
97486         * lib/xreadlink-with-size.c: Remove file.
97487         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
97488         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
97489         just before the function definition *is* accurate.
97491         Eliminate one way canonicalize_filename_mode could exit.
97492         * lib/canonicalize.c (canonicalize_filename_mode):
97493         Use mreadlink_with_size, not xreadlink_with_size.
97495 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
97497         Detect porting problems to FreeBSD/arm, which has time_t wider than
97498         long int.  Original problem reported for GNU diff by Xin Li in
97499         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
97500         * modules/getdate (Depends-on): Add intprops, verify.
97501         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
97502         is an integer type no wider than long int.
97504 2007-06-18  Jim Meyering  <jim@meyering.net>
97506         New module: mreadlink-with-size.
97507         * MODULES.html.sh: Add mreadlink-with-size.
97508         * modules/mreadlink-with-size: New module
97509         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
97510         not xreadlink-with-size.
97511         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
97513 2007-06-16  Bruno Haible  <bruno@clisp.org>
97515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
97516         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
97517         Reported by Gary V. Vaughan <gary@gnu.org>.
97519 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
97521         Revamp lchown so that it lives in unistd.h where it belongs.
97522         * lib/lchown.h: Remove.
97523         * lib/dirchownmod.c: Don't include lib/lchown.h.
97524         * lib/fchownat.c: Likewise.
97525         * lib/openat.c: Likewise.
97526         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
97527         does not follow symlinks.
97528         (EOPNOTSUPP): Define if not defined.
97529         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
97530         is defined to 0.
97531         (lchown): New decl.
97532         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
97533         Do not check for lchown decl.
97534         Set REPLACE_LCHOWN.
97535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
97536         REPLACE_LCHOWN.
97537         * modules/chown: Make it clear it follows symlinks.
97538         * modules/lchown: Make it clear it doesn't follow symlinks.
97539         (Files): Remove lib/lchown.h
97540         (Depends-on): Add unistd.
97541         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
97542         (Include): Include <unistd.h>, not "lchown.h".
97543         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
97544         REPLACE_LCHOWN.
97546 2007-06-15  Jim Meyering  <jim@meyering.net>
97548         Change license (GPL to LGPL) of fsusage and dependents.
97549         * modules/fsusage (License): Change to LGPL.
97550         * modules/full-read (License): Likewise.
97551         * modules/full-write (License): Likewise.
97552         * modules/safe-read (License): Likewise.
97553         * modules/safe-write (License): Likewise.
97555 2007-06-14  Ben Pfaff  <blp@gnu.org>
97557         Missing part of allocsa -> malloca transition.
97558         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
97559         gl_MALLOCA.
97561 2007-06-12  Bruno Haible  <bruno@clisp.org>
97563         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
97564         to ia64, x86_64, i386.
97565         Reported by Eric Blake.
97567 2007-06-12  Bruno Haible  <bruno@clisp.org>
97569         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
97570         cross-compiling to x86_64.
97572 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
97574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
97575         glitch reported by Ralf Wildenhues in
97576         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
97578         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
97579         Vin Shelton.
97581 2007-06-11  Bruno Haible  <bruno@clisp.org>
97583         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
97584         replacement string.
97585         Reported by Eric Blake.
97587 2007-06-10  Bruno Haible  <bruno@clisp.org>
97589         Prepare vasnprintf code for use with Unicode strings.
97590         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
97591         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
97592         TYPE_U32_STRING.
97593         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
97594         a_u32_string variants.
97595         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
97596         * lib/printf-args.c: Don't include config.h and the specification
97597         header if PRINTF_FETCHARGS is already defined.
97598         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
97599         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
97600         TYPE_U16_STRING, TYPE_U32_STRING.
97601         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
97602         u16_directive, u16_directives, u32_directive, u32_directives): New
97603         types.
97604         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
97605         New declarations.
97606         * lib/printf-parse.c: Don't include config.h and the specification
97607         header if PRINTF_PARSE is already defined. Eliminate the set of
97608         parameters for WIDE_CHAR_VERSION; the user of this file must provide
97609         them now. Include c-ctype.h.
97610         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
97611         directive and CHAR_T_ONLY_ASCII.
97612         * lib/vasnprintf.c: Don't include config.h and the specification header
97613         if VASNPRINTF is already defined.
97614         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
97615         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
97616         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
97617         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
97618         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
97619         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
97620         code accordingly.
97621         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
97622         pad_ourselves also in this case, with the 'c' and 's' directives, and
97623         with a different notion of "width".
97624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
97626 2007-06-10  Bruno Haible  <bruno@clisp.org>
97628         * modules/unistr/u32-mbsnlen: New file.
97629         * lib/unistr/u32-mbsnlen.c: New file.
97631         * modules/unistr/u16-mbsnlen: New file.
97632         * lib/unistr/u16-mbsnlen.c: New file.
97634         * modules/unistr/u8-mbsnlen: New file.
97635         * lib/unistr/u8-mbsnlen.c: New file.
97637         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
97638         declarations.
97640 2007-06-10  Bruno Haible  <bruno@clisp.org>
97642         * lib/string_.h (mbsnlen): New declaration.
97643         * lib/mbsnlen.c: New file.
97644         * m4/mbsnlen.m4: New file.
97645         * modules/mbsnlen: New file.
97646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
97647         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
97648         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
97650 2007-06-10  Bruno Haible  <bruno@clisp.org>
97652         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
97654 2007-06-10  Bruno Haible  <bruno@clisp.org>
97656         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
97657         * lib/mbuiter.h: Likewise.
97659 2007-06-10  Bruno Haible  <bruno@clisp.org>
97661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
97662         declaration.
97664 2007-06-10  Karl Berry  <karl@gnu.org>
97666         * config/srclist.txt: remove gettext entries, Bruno prefers
97667         to update individually.
97669 2007-06-10  Bruno Haible  <bruno@clisp.org>
97671         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
97672         'maxlen'. Ensure only length + width bytes are allocated, not
97673         length + 1 + width.
97675 2007-06-09  Bruno Haible  <bruno@clisp.org>
97677         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
97678         (CHAR_T): Remove macro.
97679         (VASNPRINTF): Update.
97681 2007-06-09  Bruno Haible  <bruno@clisp.org>
97683         * MODULES.html.sh (Unicode string functions): Add the new modules.
97685         * modules/uniconv/u32-conv-to-enc: New file.
97686         * lib/uniconv/u32-conv-to-enc.c: New file.
97687         * modules/uniconv/u32-conv-to-enc-tests: New file.
97688         * tests/uniconv/test-u32-conv-to-enc.c: New file.
97690         * modules/uniconv/u16-conv-to-enc: New file.
97691         * lib/uniconv/u16-conv-to-enc.c: New file.
97692         * lib/uniconv/u-conv-to-enc.h: New file.
97693         * modules/uniconv/u16-conv-to-enc-tests: New file.
97694         * tests/uniconv/test-u16-conv-to-enc.c: New file.
97696         * modules/uniconv/u8-conv-to-enc: New file.
97697         * lib/uniconv/u8-conv-to-enc.c: New file.
97698         * modules/uniconv/u8-conv-to-enc-tests: New file.
97699         * tests/uniconv/test-u8-conv-to-enc.c: New file.
97701         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
97702         u32_conv_to_encoding): New declarations.
97704 2007-06-09  Bruno Haible  <bruno@clisp.org>
97706         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
97708 2007-06-09  Bruno Haible  <bruno@clisp.org>
97710         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
97711         * modules/malloca: Renamed from modules/allocsa, updated.
97712         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
97713         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
97714         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
97715         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
97716         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
97717         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
97718         * modules/xmalloca: Renamed from modules/xallocsa, updated.
97719         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
97720         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
97721         * modules/c-strcasestr (Depends-on): Update.
97722         * lib/c-strcasestr.c: Update.
97723         * modules/c-strstr (Depends-on): Update.
97724         * lib/c-strstr.c: Update.
97725         * modules/canonicalize-lgpl (Depends-on): Update.
97726         * lib/canonicalize-lgpl.c: Update.
97727         * modules/clean-temp (Depends-on): Update.
97728         * lib/clean-temp.c: Update.
97729         * modules/csharpcomp (Depends-on): Update.
97730         * lib/csharpcomp.c: Update.
97731         * modules/csharpexec (Depends-on): Update.
97732         * lib/csharpexec.c: Update.
97733         * modules/javacomp (Depends-on): Update.
97734         * lib/javacomp.c: Update.
97735         * modules/javaexec (Depends-on): Update.
97736         * lib/javaexec.c: Update.
97737         * modules/mbscasestr (Depends-on): Update.
97738         * lib/mbscasestr.c: Update.
97739         * modules/mbsstr (Depends-on): Update.
97740         * lib/mbsstr.c: Update.
97741         * modules/setenv (Depends-on): Update.
97742         * lib/setenv.c: Update.
97743         * modules/strcasestr (Depends-on): Update.
97744         * lib/strcasestr.c: Update.
97745         * modules/striconveha (Depends-on): Update.
97746         * lib/striconveha.c: Update.
97747         * modules/relocatable-prog-wrapper (Files): Update.
97748         * lib/relocwrapper.c: Update.
97749         * build-aux/install-reloc: Update.
97750         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
97752 2007-06-08  Bruno Haible  <bruno@clisp.org>
97754         Port to uClibc.
97755         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
97756         * lib/fpurge.c (fpurge): Likewise.
97757         * lib/freading.c (freading): Likewise.
97758         * lib/fseeko.c (rpl_fseeko): Likewise.
97759         * lib/fseterr.c (fseterr): Likewise.
97760         * lib/fwriting.c (fwriting): Likewise.
97761         * tests/test-fflush.c (main): Avoid a failure on uClibc.
97763 2007-06-08  Bruno Haible  <bruno@clisp.org>
97765         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
97766         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
97767         * modules/gettext (Files): Add m4/intlmacosx.m4.
97769 2007-06-07  Bruno Haible  <bruno@clisp.org>
97771         * modules/localename-tests: New file.
97772         * tests/test-localename.c: New file.
97774         New module 'localename'.
97775         * lib/localename.h: New file.
97776         * lib/localename.c: New file, from GNU gettext.
97777         * m4/localename.m4: New file.
97778         * modules/localename: New file.
97780 2007-06-07  Bruno Haible  <bruno@clisp.org>
97782         Work around the lack of <wchar.h> on some builds of uClibc.
97783         * doc/headers/wchar.texi: Update.
97784         * lib/wchar_.h: Include <wchar.h> only if it exists.
97785         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
97786         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
97787         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
97788         doesn't exist.
97789         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
97790         * modules/mbfile (Depends-on): Add wchar.
97791         * modules/mbiter (Depends-on): Likewise.
97792         * modules/mbuiter (Depends-on): Likewise.
97793         Reported by Simon Josefsson.
97795 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
97797         Work around problem reported by Steven M. Schweda in
97798         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
97799         Tru64 5.1B with the Compaq compiler environment installed declares
97800         an 'isblank' function but does not define it in the C library.
97801         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
97802         * lib/regex_internal.h (isblank): Likewise.
97803         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
97804         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97806 2007-06-05  Bruno Haible  <bruno@clisp.org>
97808         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
97809         ia64.
97810         * modules/printf-safe: New file.
97811         * modules/fprintf-posix (Depends-on): Add printf-safe.
97812         * modules/printf-posix (Depends-on): Likewise.
97813         * modules/snprintf-posix (Depends-on): Likewise.
97814         * modules/sprintf-posix (Depends-on): Likewise.
97815         * modules/vasnprintf-posix (Depends-on): Likewise.
97816         * modules/vasprintf-posix (Depends-on): Likewise.
97817         * modules/vfprintf-posix (Depends-on): Likewise.
97818         * modules/vprintf-posix (Depends-on): Likewise.
97819         * modules/vsnprintf-posix (Depends-on): Likewise.
97820         * modules/vsprintf-posix (Depends-on): Likewise.
97821         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
97822         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
97823         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
97824         "no" on i386, x86_64, ia64.
97825         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
97826         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
97827         on i386, x86_64, ia64.
97828         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
97829         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
97830         on i386, x86_64, ia64.
97831         * tests/test-vasnprintf-posix.c: Include float.h.
97832         (LDBL80_WORDS): New macro.
97833         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
97834         on i386, x86_64, ia64.
97835         * tests/test-vasprintf-posix.c: Include float.h.
97836         (LDBL80_WORDS): New macro.
97837         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
97838         on i386, x86_64, ia64.
97839         * tests/test-snprintf-posix.c: Include float.h.
97840         * tests/test-sprintf-posix.c: Likewise.
97841         * tests/test-vsnprintf-posix.c: Likewise.
97842         * tests/test-vsprintf-posix.c: Likewise.
97844 2007-06-05  Bruno Haible  <bruno@clisp.org>
97846         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
97847         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
97848         non-IEEE numbers on i386, x86_64, ia64.
97849         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
97850         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
97851         * tests/test-isnanl.h: Include float.h.
97852         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
97854 2007-06-05  Bruno Haible  <bruno@clisp.org>
97856         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
97857         also the %a / %A. Handle the %a / %A code before this extra handling.
97859 2007-06-05  Bruno Haible  <bruno@clisp.org>
97861         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
97862         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
97864 2007-06-05  Bruno Haible  <bruno@clisp.org>
97866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
97867         typo in variable name.
97869 2007-06-05  Eric Blake  <ebb9@byu.net>
97871         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
97872         Reported by Simon Josefsson.
97874 2007-06-04  Bruno Haible  <bruno@clisp.org>
97876         Avoid test failures on some PowerPC platforms.
97877         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
97878         Define differently for PowerPC.
97879         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
97880         Reported by Gary V. Vaughan <gary@gnu.org>.
97882 2007-06-02  Bruno Haible  <bruno@clisp.org>
97884         Fix test-stdint failure on FreeBSD/ia64.
97885         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
97886         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
97887         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
97888         * doc/headers/stdint.texi: Update.
97890 2007-06-01  Bruno Haible  <bruno@clisp.org>
97892         * tests/test-binary-io.c (main): Pass a third argument to open().
97893         Reported by Gary V. Vaughan <gary@gnu.org>.
97895 2007-06-01  Bruno Haible  <bruno@clisp.org>
97897         * doc/functions/frexpl.texi: Update for mingw.
97899 2007-06-01  Bruno Haible  <bruno@clisp.org>
97901         * tests/test-lseek.c (main): Disable test of errno for invalid third
97902         argument.
97903         * doc/functions/lseek.texi: Update.
97904         Reported by Gary V. Vaughan <gary@gnu.org>.
97906 2007-05-28  Bruno Haible  <bruno@clisp.org>
97908         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
97910 2007-05-31  Eric Blake  <ebb9@byu.net>
97912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
97913         cross compiling.
97915 2007-05-30  Eric Blake  <ebb9@byu.net>
97916         and Bruno Haible  <bruno@clisp.org>
97918         Work around mingw test failures exposed by m4-1.4.9b.
97919         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
97920         * tests/test-unistd.c: Disable uid_t and git_t tests for the
97921         moment.
97923 2007-05-30  Bruno Haible  <bruno@clisp.org>
97925         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
97926         assuming that they are closed. Needed on HP-UX 11.
97928 2007-05-29  Bruno Haible  <bruno@clisp.org>
97930         Fix a problem with #include_next.
97931         * lib/dirent_.h: Split the double-inclusion guard.
97932         * lib/fcntl_.h: Likewise.
97933         * lib/float_.h: Likewise.
97934         * lib/iconv_.h: Likewise.
97935         * lib/inttypes_.h: Likewise.
97936         * lib/locale_.h: Likewise.
97937         * lib/math_.h: Likewise.
97938         * lib/netinet_in_.h: Likewise.
97939         * lib/search_.h: Likewise.
97940         * lib/signal_.h: Likewise.
97941         * lib/stdint_.h: Likewise.
97942         * lib/stdio_.h: Likewise.
97943         * lib/stdlib_.h: Likewise.
97944         * lib/string_.h: Likewise.
97945         * lib/sys_select_.h: Likewise.
97946         * lib/sys_socket_.h: Likewise.
97947         * lib/sys_stat_.h: Likewise.
97948         * lib/sys_time_.h: Likewise.
97949         * lib/sysexits_.h: Likewise.
97950         * lib/time_.h: Likewise.
97951         * lib/unistd_.h: Likewise.
97952         * lib/wchar_.h: Likewise.
97953         * lib/wctype_.h: Likewise.
97955 2007-05-29  Bruno Haible  <bruno@clisp.org>
97957         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
97958         for the moment.
97960 2007-05-29  Bruno Haible  <bruno@clisp.org>
97962         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
97963         invocation.
97964         Reported by Eric Blake.
97966 2007-05-29  Bruno Haible  <bruno@clisp.org>
97968         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
97969         compiling case.
97971 2007-05-29  Eric Blake  <ebb9@byu.net>
97972             Bruno Haible  <bruno@clisp.org>
97974         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
97975         cross compiles.
97977 2007-05-28  Eric Blake  <ebb9@byu.net>
97979         * modules/closein-tests (test_closein_LDADD): Support test on
97980         cygwin with libtool.
97982 2007-05-28  Bruno Haible  <bruno@clisp.org>
97984         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
97985         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
97986         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
97987         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
97988         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
97989         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
97990         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
97991         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
97992         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
97994 2007-05-28  Eric Blake  <ebb9@byu.net>
97996         Unconditionally include <config.h> in unit tests.
97997         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
97998         * tests/test-allocsa.c, tests/test-arcfour.c,
97999         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
98000         tests/test-array_list.c, tests/test-array_oset.c,
98001         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
98002         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
98003         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
98004         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
98005         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
98006         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
98007         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
98008         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
98009         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
98010         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
98011         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
98012         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
98013         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
98014         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
98015         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
98016         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
98017         test-md5.c, test-memmem.c, test-printf-posix.c,
98018         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
98019         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
98020         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
98021         test-strcasestr.c, test-striconv.c, test-striconveh.c,
98022         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
98023         test-vasnprintf-posix2.c, test-vasnprintf.c,
98024         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
98025         test-vfprintf-posix.c, test-vprintf-posix.c,
98026         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
98027         test-xvasprintf.c: Likewise.
98029 2007-05-28  Bruno Haible  <bruno@clisp.org>
98031         * gnulib-tool (func_import): Remember the --with-tests command-line
98032         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
98033         Reported by Eric Blake.
98035 2007-05-28  Bruno Haible  <bruno@clisp.org>
98037         * modules/ftell-tests: New file.
98038         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
98039         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
98041         * lib/ftell.c: New file.
98042         * modules/ftell: New file.
98043         * m4/ftell.m4: New file.
98044         * doc/functions/ftell.texi: Update.
98045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
98046         REPLACE_FTELL.
98047         * lib/stdio_.h (rpl_ftell): New declaration.
98048         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
98049         REPLACE_FTELL.
98051 2007-05-28  Eric Blake  <ebb9@byu.net>
98053         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
98055 2007-05-28  Bruno Haible  <bruno@clisp.org>
98057         * modules/fseek-tests: New file.
98058         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
98059         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
98061         * lib/fseek.c: New file.
98062         * modules/fseek: New file.
98063         * m4/fseek.m4: New file.
98064         * doc/functions/fseek.texi: Update.
98065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
98066         REPLACE_FSEEK.
98067         * lib/stdio_.h (rpl_fseek): New declaration.
98068         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
98069         REPLACE_FSEEK.
98071 2007-05-28  Bruno Haible  <bruno@clisp.org>
98073         * lib/stdio_.h (fflush): More comments.
98075 2007-05-28  Bruno Haible  <bruno@clisp.org>
98077         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
98078         runtime test.
98080 2007-05-28  Eric Blake  <ebb9@byu.net>
98082         Improve lseek module.
98083         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
98084         * lib/unistd_.h (lseek): Scale back link warning message.
98085         * tests/test-lseek.c: Beef up test.
98086         * tests/test-lseek.sh: Exercise more facets of lseek.
98087         Reported by Bruno Haible.
98089 2007-05-28  Bruno Haible  <bruno@clisp.org>
98091         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
98092         to define.
98094 2007-05-27  Bruno Haible  <bruno@clisp.org>
98096         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
98098 2007-05-27  Bruno Haible  <bruno@clisp.org>
98100         * modules/openmp: New file.
98101         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
98102         Noah Misch.
98104 2007-05-26  Bruno Haible  <bruno@clisp.org>
98106         * modules/chdir-long (Depends-on): Add fchdir.
98107         * modules/chdir-safer (Depends-on): Likewise.
98108         * modules/fts (Depends-on): Likewise.
98109         * modules/fts-lgpl (Depends-on): Likewise.
98110         * modules/openat (Depends-on): Likewise.
98111         * modules/savewd (Depends-on): Likewise.
98113 2007-05-24  Eric Blake  <ebb9@byu.net>
98115         Fix lseek on mingw.
98116         * modules/lseek: New module.
98117         * m4/lseek.m4: New file.
98118         * lib/lseek.c: New file.
98119         * modules/lseek-tests: New file.
98120         * tests/test-lseek.c: New file.
98121         * tests/test-lseek.sh: New file.
98122         * MODULES.html.sh: Document lseek module.
98123         * modules/fflush (Depends-on): Add lseek, fseeko.
98124         * modules/fseeko (Depends-on): Likewise.
98125         * modules/ftello (Depends-on): Likewise.
98126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
98127         broken.
98128         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
98129         broken.
98130         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
98131         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
98132         * lib/ftello.c (rpl_ftello): Likewise.
98133         * tests/test-fseeko.c (main): Test this.
98134         * tests/test-fseeko.sh: Likewise.
98135         * tests/test-ftello.c (main): Likewise.
98136         * tests/test-ftello.sh: Likewise.
98137         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
98138         implies replacing fseek.
98139         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
98140         HAVE_FTELLO.
98141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
98142         * modules/unistd (Makefile.am): Likewise.
98143         * lib/unistd_.h (lseek): Declare a replacement.
98144         * doc/functions/lseek.texi (lseek): Document this fix.
98145         * doc/functions/fseek.texi (fseek): Likewise.
98146         * doc/functions/ftell.texi (ftell): Likewise.
98148 2007-05-24  Bruno Haible  <bruno@clisp.org>
98150         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
98151         in the printed representation of a NaN.
98152         * tests/test-vasprintf-posix.c (test_function): Likewise.
98153         * tests/test-snprintf-posix.h (test_function): Likewise.
98154         * tests/test-sprintf-posix.h (test_function): Likewise.
98155         Reported by Eric Blake.
98157 2007-05-23  Eric Blake  <ebb9@byu.net>
98159         Fix fseeko/ftello on cygwin 1.5.24.
98160         * doc/functions/fseeko.texi (fseeko): Document the fix.
98161         * doc/functions/ftello.texi (ftello): Document the fix.
98162         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
98163         * doc/functions/stdout.text (stdout): New file.
98164         * doc/functions/stderr.text (stderr): New file.
98165         * doc/gnulib.texi (Function Substitutes): Use new files.
98166         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
98167         prior to 1.7.0.
98168         * tests/test-ftello.c (main): Likewise for ftello.
98169         * tests/test-fseeko.sh: New file.
98170         * tests/test-ftello.sh: New file.
98171         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
98172         with seekable stdin.
98173         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
98174         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
98175         (gl_REPLACE_FSEEKO): New macro.
98176         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
98177         * modules/fseeko (Files): Distribute fseeko.c.
98178         * modules/ftello (Files): Distribute ftello.c.
98179         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
98180         mode.
98181         * lib/ftello.c (rpl_ftello): New file.
98182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
98183         fseeko, ftello.
98184         (gl_STDIN_LARGE_OFFSET): New macro.
98185         * modules/stdio (Makefile.am): Perform the replacement.
98186         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
98188 2007-05-23  Bruno Haible  <bruno@clisp.org>
98190         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
98191         GNULIB_POSIXCHECK is defined.
98193 2007-05-21  Bruno Haible  <bruno@clisp.org>
98195         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
98196         Check also the output for NaN arguments. When cross-compiling, guess
98197         no on IRIX.
98198         * lib/vasnprintf.c: Update comments.
98199         * tests/test-vasnprintf-posix.c (strisnan): New function.
98200         (test_function): Use it.
98201         * tests/test-vasprintf-posix.c (strisnan): New function.
98202         (test_function): Use it.
98203         * tests/test-snprintf-posix.h (strisnan): New function.
98204         (test_function): Use it.
98205         * tests/test-sprintf-posix.h (strisnan): New function.
98206         (test_function): Use it.
98207         Reported by Eric Blake.
98209 2007-05-20  Bruno Haible  <bruno@clisp.org>
98211         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
98212         numbers that fails on BeOS.
98213         * doc/functions/frexpl.texi: Update.
98215 2007-05-20  Jim Meyering  <jim@meyering.net>
98217         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
98218         forced upon us by glibc-2.6.
98220 2007-05-20  Bruno Haible  <bruno@clisp.org>
98222         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
98223         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
98224         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
98225         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
98226         NEED_PRINTF_INFINITE.
98227         (is_infinitel): New function.
98228         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
98229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
98230         gl_PREREQ_VASNPRINTF_INFINITE.
98231         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
98232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98233         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
98234         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
98235         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
98236         gl_PREREQ_VASNPRINTF_INFINITE.
98237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98240         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98241         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98243         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98244         * doc/functions/fprintf.texi: Update.
98245         * doc/functions/printf.texi: Update.
98246         * doc/functions/snprintf.texi: Update.
98247         * doc/functions/sprintf.texi: Update.
98248         * doc/functions/vfprintf.texi: Update.
98249         * doc/functions/vprintf.texi: Update.
98250         * doc/functions/vsnprintf.texi: Update.
98251         * doc/functions/vsprintf.texi: Update.
98253 2007-05-20  Bruno Haible  <bruno@clisp.org>
98255         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
98256         was not found in libc.
98257         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
98259 2007-05-20  Bruno Haible  <bruno@clisp.org>
98261         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
98262         printed as "-nan" instead of "nan".
98263         * tests/test-vasprintf-posix.c (test_function): Likewise.
98264         * tests/test-snprintf-posix.h (test_function): Likewise.
98265         * tests/test-sprintf-posix.h (test_function): Likewise.
98266         Needed for HP-UX 11.
98268 2007-05-20  Jim Meyering  <jim@meyering.net>
98270         Fix buggy test for the fchownat-deref bug.
98271         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
98272         symlink required for the run-test.  Without it, this test would
98273         always declare that fchownat doesn't work, and client code would
98274         unnecessarily use the replacement function with fixed libc.
98275         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
98276         Reported by Greg Schafer.
98278 2007-05-19  Bruno Haible  <bruno@clisp.org>
98280         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
98281         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
98282         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
98283         Needed for IRIX 6.5 and Solaris 2.5.1.
98285 2007-05-19  Bruno Haible  <bruno@clisp.org>
98287         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
98288         (test_function): Skip tests involving -0.0 on platforms where
98289         -0.0 = 0.0.
98290         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
98291         (test_function): Skip tests involving -0.0 on platforms where
98292         -0.0 = 0.0.
98293         * tests/test-snprintf-posix.h (have_minus_zero): New function.
98294         (test_function): Skip tests involving -0.0 on platforms where
98295         -0.0 = 0.0.
98296         * tests/test-sprintf-posix.h (have_minus_zero): New function.
98297         (test_function): Skip tests involving -0.0 on platforms where
98298         -0.0 = 0.0.
98299         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
98300         tests.
98301         * tests/test-printf-posix.h (test_function): Likewise.
98302         * tests/test-printf-posix.output: Remove all -0.0 related results.
98303         Needed for IRIX 6.5.
98305 2007-05-19  Bruno Haible  <bruno@clisp.org>
98307         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
98308         printed as "nan0x7fffffff" instead of "nan".
98309         * tests/test-vasprintf-posix.c (test_function): Likewise.
98310         * tests/test-snprintf-posix.h (test_function): Likewise.
98311         * tests/test-sprintf-posix.h (test_function): Likewise.
98312         * tests/test-fprintf-posix.h (NaN): Remove macro.
98313         (test_function): Remove all NaN related tests.
98314         * tests/test-printf-posix.h (NaN): Remove macro.
98315         (test_function): Remove all NaN related tests.
98316         * tests/test-printf-posix.output: Remove all NaN related results.
98317         Needed for IRIX 6.5.
98319 2007-05-19  Bruno Haible  <bruno@clisp.org>
98321         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
98322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
98324 2007-05-19  Bruno Haible  <bruno@clisp.org>
98326         * lib/float_.h: New file.
98327         * m4/float_h.m4: New file.
98328         * modules/float: New file.
98329         * modules/isnanl (Dependencies): Add float.
98330         * modules/isnanl-nolibm (Dependencies): Likewise.
98331         * modules/mathl (Dependencies): Likewise.
98332         * modules/printf-frexpl (Dependencies): Likewise.
98333         * modules/signbit (Dependencies): Likewise.
98334         * modules/vasnprintf (Dependencies): Likewise.
98335         * doc/headers/float.texi: Update.
98337 2007-05-19  Jim Meyering  <jim@meyering.net>
98339         * lib/utimens.c (gl_futimens): Rename from futimens,
98340         now that glibc-2.6 declares futimens.
98341         * lib/utimens.h: Likewise.
98343 2007-05-19  Bruno Haible  <bruno@clisp.org>
98345         Avoid test failures on mingw.
98346         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
98347         * tests/test-printf-posix.sh: Likewise.
98348         * tests/test-vfprintf-posix.sh: Likewise.
98349         * tests/test-vprintf-posix.sh: Likewise.
98351 2007-05-19  Bruno Haible  <bruno@clisp.org>
98353         Fix *printf result for NaN, Inf, -0.0 on mingw.
98354         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
98355         * lib/vasnprintf.c: Include math.h and isnan.h.
98356         (is_infinite_or_zero): New function.
98357         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
98358         values in the %f, %F, %e, %E, %g, %G directives.
98359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
98360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98361         gl_PRINTF_INFINITE and test its result. Invoke
98362         gl_PREREQ_VASNPRINTF_INFINITE.
98363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98364         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98370         * doc/functions/fprintf.texi: Update.
98371         * doc/functions/printf.texi: Update.
98372         * doc/functions/snprintf.texi: Update.
98373         * doc/functions/sprintf.texi: Update.
98374         * doc/functions/vfprintf.texi: Update.
98375         * doc/functions/vprintf.texi: Update.
98376         * doc/functions/vsnprintf.texi: Update.
98377         * doc/functions/vsprintf.texi: Update.
98379 2007-05-19  Bruno Haible  <bruno@clisp.org>
98381         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
98382         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
98383         Instead of multiplying with 10^k, set extra_zeroes to k.
98384         (scale10_round_long_double): Remove function.
98386 2007-05-18  Bruno Haible  <bruno@clisp.org>
98388         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
98389         introduced on 2007-05-06.
98391 2007-05-18  Bruno Haible  <bruno@clisp.org>
98393         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
98394         %g directives.
98395         * tests/test-vasprintf-posix.c (test_function): Likewise.
98396         * tests/test-snprintf-posix.h (test_function): Likewise.
98397         * tests/test-sprintf-posix.h (test_function): Likewise.
98399 2007-05-18  Bruno Haible  <bruno@clisp.org>
98401         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
98402         (strmatch): New function.
98403         (test_function): Test the %f directive on numbers of various exponents.
98404         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
98405         (strmatch): New function.
98406         (test_function): Test the %f directive on numbers of various exponents.
98407         * tests/test-snprintf-posix.h (strmatch): New function.
98408         (test_function): Test the %f directive on numbers of various exponents.
98409         * tests/test-sprintf-posix.h (strmatch): New function.
98410         (test_function): Test the %f directive on numbers of various exponents.
98411         * tests/test-snprintf-posix.c (SIZEOF): New macro.
98412         * tests/test-sprintf-posix.c (SIZEOF): New macro.
98413         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
98414         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
98416 2007-05-18  Bruno Haible  <bruno@clisp.org>
98418         Add support for 'long double' number output.
98419         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
98420         * lib/vasnprintf.c: Include math.h and float+.h.
98421         (mp_limb_t): New type.
98422         (GMP_LIMB_BITS): New macro.
98423         (mp_twolimb_t): New type.
98424         (GMP_TWOLIMB_BITS): New macro.
98425         (mpn_t): New type.
98426         (multiply, divide, convert_to_decimal, decode_long_double,
98427         scale10_round_long_double, scale10_round_decimal_long_double,
98428         floorlog10l): New functions.
98429         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
98430         for the %f, %F, %e, %E, %g, %G directives.
98431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
98432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98433         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
98434         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
98435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98442         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
98443         * modules/snprintf-posix (Depends-on): Likewise.
98444         * modules/sprintf-posix (Depends-on): Likewise.
98445         * modules/vasnprintf-posix (Depends-on): Likewise.
98446         * modules/vasprintf-posix (Depends-on): Likewise.
98447         * modules/vfprintf-posix (Depends-on): Likewise.
98448         * modules/vsnprintf-posix (Depends-on): Likewise.
98449         * modules/vsprintf-posix (Depends-on): Likewise.
98450         * modules/vasnprintf (Files): Add lib/float+.h.
98451         * doc/functions/fprintf.texi: Update.
98452         * doc/functions/printf.texi: Update.
98453         * doc/functions/snprintf.texi: Update.
98454         * doc/functions/sprintf.texi: Update.
98455         * doc/functions/vfprintf.texi: Update.
98456         * doc/functions/vprintf.texi: Update.
98457         * doc/functions/vsnprintf.texi: Update.
98458         * doc/functions/vsprintf.texi: Update.
98460 2007-05-18  Bruno Haible  <bruno@clisp.org>
98462         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
98464 2007-05-18  Bruno Haible  <bruno@clisp.org>
98466         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
98467         for printing 64-bit integers. Needed for mingw.
98469 2007-05-18  Bruno Haible  <bruno@clisp.org>
98471         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
98472         gl_FUNC_FREXPL_WORKS.
98473         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
98475 2007-05-18  Bruno Haible  <bruno@clisp.org>
98477         * modules/frexpl-nolibm-tests: New file.
98479         * modules/frexpl-nolibm: New file.
98480         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
98482 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
98484         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
98485         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
98486         GCC 4.2, which otherwise issues a lot of warnings.
98487         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
98488         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
98489         Likewise.
98490         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
98491         * modules/iconv_open (iconv.h): Likewise.
98492         * modules/locale (locale.h): Likewise.
98493         * modules/netinet_in (netinet/in.h): Likewise.
98494         * modules/sys_select (sys_select.h): Likewise.
98495         * modules/sys_socket (sys/socket.h): Likewise.
98496         * modules/sys_stat (sys/stat.h): Likewise.
98497         * modules/sysexits (sysexits.h): Likewise.
98498         * modules/unistd (unistd.h): Likewise.
98500 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98502         * modules/closein-tests (Makefile.am): Distribute
98503         `test-closein.sh'.
98505 2007-05-17  Bruno Haible  <bruno@clisp.org>
98507         * tests/test-printf-posix.output: Renamed from
98508         tests/test-fprintf-posix.out.
98509         * modules/fprintf-posix-tests: Update.
98510         * modules/printf-posix-tests: Update.
98511         * modules/vfprintf-posix-tests: Update.
98512         * modules/vprintf-posix-tests: Update.
98513         * tests/test-fprintf-posix.sh: Update.
98514         * tests/test-printf-posix.sh: Update.
98515         * tests/test-vfprintf-posix.sh: Update.
98516         * tests/test-vprintf-posix.sh: Update.
98517         Reported by Ralf Wildenhues.
98519 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
98521         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
98522         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
98523         GCC 4.2, which otherwise issues a lot of warnings.
98524         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
98525         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
98526         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
98527         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
98528         it should no longer be needed.
98529         * lib/string_.h: Likewise.
98530         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
98531         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
98532         * modules/inttypes (inttypes.h): Likewise.
98533         * modules/math (math.h): Likewise.
98534         * modules/search (search.h): Likewise.
98535         * modules/signal (signal.h): Likewise.
98536         * modules/stdint (stdint.h): Likewise.
98537         * modules/stdio (stdio.h): Likewise.
98538         * modules/stdlib (stdlib.h): Likewise.
98539         * modules/string (string.h): Likewise.
98540         * modules/sys_time (sys/time.h): Likewise.
98541         * modules/time (time.h): Likewise.
98542         * modules/wchar (wchar.h): Likewise.
98543         * modules/wctype (wtype.h): Likewise.
98545 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
98547         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
98549 2007-05-13  Bruno Haible  <bruno@clisp.org>
98551         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
98552         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98553         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
98554         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98555         (gl_PREREQ_STRTOK_R): Don't require it here.
98557 2007-05-13  Bruno Haible  <bruno@clisp.org>
98559         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
98560         when used in C++ mode.
98562 2007-05-12  Bruno Haible  <bruno@clisp.org>
98564         * lib/linebuffer.h: Tweak doc.
98565         * lib/linebuffer.c: Likewise.
98567 2007-05-12  James Youngman  <jay@gnu.org>
98569         * lib/linebuffer.c (readlinebuffer_delim): New function,
98570         like readlinebuffer, but use a caller-specified delimiter.
98571         (readlinebuffer): Just call readlinebuffer_delim with '\n'
98572         as the delimiter.
98573         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
98575 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
98577         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
98578         * modules/openat (Files): Remove openat-die.c.
98579         (Depends-on): Add openat-die.
98580         * modules/openat-die: New module.
98582 2007-05-06  Bruno Haible  <bruno@clisp.org>
98584         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
98585         Update with info about Cygwin.
98586         * doc/functions/fprintf.texi: Update.
98587         * doc/functions/printf.texi: Update.
98588         * doc/functions/snprintf.texi: Update.
98589         * doc/functions/sprintf.texi: Update.
98590         * doc/functions/vfprintf.texi: Update.
98591         * doc/functions/vprintf.texi: Update.
98592         * doc/functions/vsnprintf.texi: Update.
98593         * doc/functions/vsprintf.texi: Update.
98594         Reported by Eric Blake.
98596 2007-05-06  Bruno Haible  <bruno@clisp.org>
98598         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
98599         padding ourselves for the floating-point directives.
98600         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
98601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
98602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
98603         gl_PRINTF_FLAG_ZERO and test its result. Invoke
98604         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
98605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
98607         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98608         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98609         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98611         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98612         * tests/test-snprintf-posix.h (test_function): Also check the width
98613         and some flags in the %f directive.
98614         * tests/test-sprintf-posix.h (test_function): Likewise.
98615         * tests/test-vasnprintf-posix.c (test_function): Likewise.
98616         * tests/test-vasprintf-posix.c (test_function): Likewise.
98617         * doc/functions/fprintf.texi: Update.
98618         * doc/functions/printf.texi: Update.
98619         * doc/functions/snprintf.texi: Update.
98620         * doc/functions/sprintf.texi: Update.
98621         * doc/functions/vfprintf.texi: Update.
98622         * doc/functions/vprintf.texi: Update.
98623         * doc/functions/vsnprintf.texi: Update.
98624         * doc/functions/vsprintf.texi: Update.
98626 2007-05-06  Bruno Haible  <bruno@clisp.org>
98628         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
98629         pass the ' flag character to sprintf or snprintf.
98630         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
98631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
98632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
98633         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
98634         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
98635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
98637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98642         * tests/test-snprintf-posix.h (test_function): Also check the grouping
98643         flag.
98644         * tests/test-sprintf-posix.h (test_function): Likewise.
98645         * tests/test-vasnprintf-posix.c (test_function): Likewise.
98646         * tests/test-vasprintf-posix.c (test_function): Likewise.
98647         * doc/functions/fprintf.texi: Update.
98648         * doc/functions/printf.texi: Update.
98649         * doc/functions/snprintf.texi: Update.
98650         * doc/functions/sprintf.texi: Update.
98651         * doc/functions/vfprintf.texi: Update.
98652         * doc/functions/vprintf.texi: Update.
98653         * doc/functions/vsnprintf.texi: Update.
98654         * doc/functions/vsprintf.texi: Update.
98656 2007-05-01  Bruno Haible  <bruno@clisp.org>
98658         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
98660 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
98662         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
98663         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
98665 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98667         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
98668         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
98669         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
98671 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
98673         * lib/argp-help.c (struct hol_entry): New member `ord'.
98674         (HOL_ENTRY_PTRCMP): Use ord for comparison
98675         (hol_sort): Initialize ord.
98677 2007-05-01  Bruno Haible  <bruno@clisp.org>
98679         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
98680         Reported by Eric Blake.
98681         * doc/gnulib.texi (Function Substitutes): Update.
98683 2007-05-01  Bruno Haible  <bruno@clisp.org>
98685         * doc/functions.texi: Remove file, now redundant through
98686         doc/functions/*.texi.
98688 2007-05-01  Bruno Haible  <bruno@clisp.org>
98690         * modules/argp (Depends-on): Add sleep.
98692 2007-05-01  Bruno Haible  <bruno@clisp.org>
98694         * modules/sleep-tests: New file.
98695         * tests/test-sleep.c: New file.
98697         * modules/sleep: New file.
98698         * lib/sleep.c: New file.
98699         * m4/sleep.m4: New file.
98700         * lib/unistd_.h (sleep): New declaration.
98701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
98702         HAVE_SLEEP.
98703         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
98704         * doc/functions/sleep.texi: Document the sleep module.
98706 2007-05-01  Bruno Haible  <bruno@clisp.org>
98708         * lib/sigprocmask.h: Remove file.
98709         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
98710         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
98711         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
98712         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
98713         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
98714         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
98715         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
98716         HAVE_SIGSET_T as a shell variable.
98717         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
98718         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
98719         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
98720         (Depends-on): Add signal. Remove verify.
98721         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
98722         (Include): Mention <signal.h> instead of sigprocmask.h.
98723         * NEWS: Mention the change.
98724         * lib/fatal-signal.c: Don't include sigprocmask.h.
98726 2007-05-01  Bruno Haible  <bruno@clisp.org>
98728         * modules/signal: New file.
98729         * lib/signal_.h: New file.
98730         * m4/signal_h.m4: New file.
98732 2007-05-01  Bruno Haible  <bruno@clisp.org>
98734         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
98735         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
98736         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
98737         HAVE_WCTYPE_CTMP_BUG into wctype.h.
98739 2007-05-01  Bruno Haible  <bruno@clisp.org>
98741         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
98742         configure time.
98743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
98744         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
98745         * modules/sys_stat (Makefile.am): Substitute their values into
98746         sys/stat.h.
98748 2007-05-01  Bruno Haible  <bruno@clisp.org>
98750         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
98751         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
98752         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
98754 2007-05-01  Bruno Haible  <bruno@clisp.org>
98756         * doc/header/assert.texi: Undo last change: don't mention the gnulib
98757         'assert' module here.
98759 2007-05-01  Bruno Haible  <bruno@clisp.org>
98761         * doc/functions/*.texi: New files.
98762         * doc/functions/google-ranking.txt: New file.
98763         * doc/gnulib.texi (Function Substitutes): New chapter.
98764         (ctime, inet_ntoa): Remove sections.
98765         * doc/ctime.texi: Remove file.
98766         * doc/inet_ntoa.texi: Remove file.
98767         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
98768         dependencies.
98769         (%.info): New rule, specifying a --reference-limit.
98771 2007-05-01  Bruno Haible  <bruno@clisp.org>
98773         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
98775 2007-05-01  Bruno Haible  <bruno@clisp.org>
98777         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
98778         the portability of 'mkdir' to mingw systems.
98780 2007-05-01  Bruno Haible  <bruno@clisp.org>
98782         * doc/headers/google-ranking.txt: New file.
98784 2007-04-30  Eric Blake  <ebb9@byu.net>
98786         Prefer fseeko to fseek.
98787         * modules/getpass (Depends-on): Add fseeko.
98788         * lib/getpass.c (getpass): Use fseeko, not fseek.
98790 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
98792         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
98793         assumes the sorting is stable, while most qsort implementations
98794         are not.  Use argument addresses to ensure they never compare as
98795         equal.
98797         * tests/test-argp-2.sh (usage-indent test): Fix output
98798         (func_compare): Restore diff options
98799         * tests/test-argp.c: Restore #include "progname.h"
98801 2007-04-29  Bruno Haible  <bruno@clisp.org>
98803         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
98804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
98805         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
98806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98807         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
98808         (configure.ac): Define CHECK_SNPRINTF_POSIX.
98809         (TESTS, check_PROGRAMS): Add test-snprintf.
98810         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
98811         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
98812         (TESTS, check_PROGRAMS): Add test-vsnprintf.
98813         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
98814         assertions that fail on HP-UX, OSF/1, or IRIX.
98815         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
98817 2007-04-29  Bruno Haible  <bruno@clisp.org>
98819         * MODULES.html.sh (posix_functions): Remove 'contents'.
98821 2007-04-29  Karl Berry  <karl@gnu.org>
98823         * config/srclist.txt (gendocs_template_min): new entry.
98825 2007-04-29  Bruno Haible  <bruno@clisp.org>
98827         Work around fpurge bug on BSD systems.
98828         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
98829         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
98830         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
98831         fpurge to rpl_fpurge if the system already has this function.
98832         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
98833         the case where the system already has this function. Correct invariants
98834         on BSD systems.
98835         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
98836         BSD systems.
98838 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
98840         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
98841         proposed by Sven Verdoolaege.
98843         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
98844         options.
98845         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
98846         (usage and help tests): Update
98848 2007-04-29  Bruno Haible  <bruno@clisp.org>
98850         * tests/test-fflush.c (main): Use a file of size 17, not 10.
98851         Print more information in case of failure. Disable a test on BeOS.
98853 2007-04-29  Bruno Haible  <bruno@clisp.org>
98855         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
98856         This helps debugging on systems on which no gdb is available.
98858 2007-04-29  Bruno Haible  <bruno@clisp.org>
98860         * lib/freading.h: Improve comments.
98861         * lib/fwriting.h: Likewise.
98862         * tests/test-freading.c (main): Don't check freading immediately after
98863         repositioning. Needed for glibc.
98865 2007-04-29  Bruno Haible  <bruno@clisp.org>
98867         * lib/freading.c (freading): Trivial simplification.
98869 2007-04-28  Bruno Haible  <bruno@clisp.org>
98871         * tests/test-fwriting.c (main): Also test the interaction between
98872         fflush and fwriting.
98873         * modules/fwriting-tests (Depends-on): Add fflush.
98875         * tests/test-freading.c (main): Also test the interaction between
98876         fflush and freading.
98877         * modules/freading-tests (Depends-on): Add fflush.
98879 2007-04-28  Bruno Haible  <bruno@clisp.org>
98881         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
98882         fseeko and ftello.
98883         Suggested by Eric Blake.
98885 2007-04-28  Jim Meyering  <jim@meyering.net>
98887         Avoid false-negative in gl_STDINT_H's C99 conformance test.
98888         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
98889         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
98891 2007-04-27  Eric Blake  <ebb9@byu.net>
98893         * doc/headers/assert.texi (assert.h): Document assert module use.
98895 2007-04-27  Bruno Haible  <bruno@clisp.org>
98897         * doc/headers/*.texi: New files.
98898         * doc/gnulib.texi (Header File Substitutes): New chapter.
98899         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
98900         dependencies.
98901         (standards.info ,standards.html, standards.dvi): Update dependencies.
98902         (mostlyclean, clean): New targets.
98904 2007-04-27  Bruno Haible  <bruno@clisp.org>
98906         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
98907         * modules/sysexits (Files, Makefile.am): Update.
98909         * lib/sys_socket_.h: Renamed from lib/socket_.h.
98910         * modules/sys_socket (Files, Makefile.am): Update.
98912         * lib/sys_stat_.h: Renamed from lib/stat_.h.
98913         * modules/sys_stat (Files, Makefile.am): Update.
98915 2007-04-27  Eric Blake  <ebb9@byu.net>
98917         * lib/freading.h: Improve comments.
98918         * lib/fwriting.h: Likewise.
98919         * lib/fflush.c: Likewise.
98921         Fix closein for mingw.
98922         * modules/closein-tests: Add tests for closein.
98923         * tests/test-closein.c: New file.
98924         * tests/test-closein.sh: Likewise.
98925         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
98926         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
98928 2007-04-27  Bruno Haible  <bruno@clisp.org>
98930         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
98931         version is < 6.
98932         * lib/math_.h [__DECC]: Likewise.
98933         * lib/stdio_.h [__DECC]: Likewise.
98934         * lib/stdlib_.h [__DECC]: Likewise.
98935         * lib/string_.h [__DECC]: Likewise.
98936         * lib/time_.h [__DECC]: Likewise.
98937         * lib/wchar_.h [__DECC]: Likewise.
98938         * lib/wctype_.h [__DECC]: Likewise.
98940 2007-04-27  Bruno Haible  <bruno@clisp.org>
98942         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
98944 2007-04-27  Bruno Haible  <bruno@clisp.org>
98946         * lib/fflush.c: Add comments.
98947         * modules/fpurge-tests (Depends-on): Add fflush.
98948         * modules/freadable-tests (Depends-on): Likewise.
98949         * modules/fwritable-tests (Depends-on): Likewise.
98951 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
98953         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
98954         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
98955         Report by Bruno Haible <bruno@clisp.org>.
98957 2007-04-26  Eric Blake  <ebb9@byu.net>
98959         Fix fflush on mingw.
98960         * modules/fflush (Depends-on): Add freading.
98961         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
98962         but unread data.
98964 2007-04-26  Eric Blake  <ebb9@byu.net>
98965         and Bruno Haible  <bruno@clisp.org>
98967         Implement freading and fwriting.
98968         * lib/freading.c: New file.
98969         * lib/freading.h: Likewise.
98970         * m4/freading.m4: Likewise.
98971         * modules/freading: Likewise.
98972         * modules/freading-tests: Likewise.
98973         * tests/test-freading.c: Likewise.
98974         * lib/fwriting.c: New file.
98975         * lib/fwriting.h: Likewise.
98976         * m4/fwriting.m4: Likewise.
98977         * modules/fwriting: Likewise.
98978         * modules/fwriting-tests: Likewise.
98979         * tests/test-fwriting.c: Likewise.
98980         * MODULES.html.sh (File stream based Input/Output): Mention them.
98982 2007-04-26  Bruno Haible  <bruno@clisp.org>
98984         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
98985         'long' when we assume it.
98986         Suggested by Eric Blake.
98988 2007-04-26  Bruno Haible  <bruno@clisp.org>
98990         Ensure fseeko, ftello are declared on glibc systems.
98991         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
98992         * modules/fseeko (configure.ac-early): Likewise.
98993         * modules/ftello (configure.ac-early): Likewise.
98994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
98995         AC_FUNC_FSEEKO for this.
98996         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
98997         (gl_CHECK_FSEEKO): Remove macro.
98999 2007-04-26  Bruno Haible  <bruno@clisp.org>
99001         * tests/test-fflush.c (main): Also check the ftell result after
99002         fflush and fseek/fseeko.
99003         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
99004         file descriptor position cache in the stream.
99005         * lib/fseeko.c (rpl_fseeko): Likewise.
99007 2007-04-26  Bruno Haible  <bruno@clisp.org>
99009         * modules/fflush-tests (Depends-on): Add fseeko.
99011 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
99012             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99014         * lib/argz_.h: ensure error_t definition is obtained in same
99015         mechanism system argz.h would have.
99016         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
99017         argz facilities are known bad.  Err on the side of caution if
99018         cross-compiling.
99020 2007-04-25  Eric Blake  <ebb9@byu.net>
99022         * lib/fpurge.c (includes): Use stdlib.h for free.
99023         * tests/test-fflush.c (main): Also test fflush-fseeko.
99025 2007-04-25  Bruno Haible  <bruno@clisp.org>
99027         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
99028         * lib/fseeko.c: New file.
99029         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
99030         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
99031         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
99032         gl_FUNC_FSEEKO.
99033         (gl_FUNC_FSEEKO): Invoke it.
99034         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
99035         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
99036         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
99038 2007-04-25  Bruno Haible  <bruno@clisp.org>
99040         * modules/fflush (Depends-on): Add ftello.
99042 2007-04-25  Bruno Haible  <bruno@clisp.org>
99044         * modules/ftello-tests: New file.
99045         * tests/test-ftello.c: New file.
99047         * modules/ftello: New file.
99048         * m4/ftello.m4: New file.
99049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
99050         HAVE_FTELLO.
99051         * lib/stdio_.h (ftello): New declaration.
99052         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
99053         HAVE_FTELLO.
99055 2007-04-25  Bruno Haible  <bruno@clisp.org>
99057         * modules/fseeko-tests: New file.
99058         * tests/test-fseeko.c: New file.
99060         * modules/fseeko: New file.
99061         * m4/fseeko.m4: New file.
99062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
99063         HAVE_FSEEKO.
99064         * lib/stdio_.h (fseeko): New declaration.
99065         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
99066         HAVE_FSEEKO.
99068 2007-04-25  Bruno Haible  <bruno@clisp.org>
99070         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
99072 2007-04-25  Bruno Haible  <bruno@clisp.org>
99074         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
99075         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
99076         * tests/test-unistd.c: Likewise.
99077         * tests/test-fcntl.c: Likewise.
99079 2007-04-23  Eric Blake  <ebb9@byu.net>
99081         * lib/fflush.c: Fix missing include.
99082         Reported by Bruno Haible.
99084 2007-04-23  Bruno Haible  <bruno@clisp.org>
99086         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
99087         Reported by Eric Blake.
99089 2007-04-23  Bruno Haible  <bruno@clisp.org>
99091         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
99093 2007-04-23  Bruno Haible  <bruno@clisp.org>
99095         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
99097 2007-04-23  Bruno Haible  <bruno@clisp.org>
99099         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
99100         Needed on HP-UX 11.
99102 2007-04-16  Eric Blake  <ebb9@byu.net>
99104         Make fflush rely on fpurge.
99105         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
99106         open coding all variants.
99107         * modules/fflush (Depends-on): Add fpurge and unistd.
99108         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
99109         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
99111         Fix --with-tests compilation on cygwin.
99112         * modules/argmatch-tests (Makefile.am): List gnulib library first
99113         in LDADD.
99114         * modules/argp-tests (Makefile.am): Likewise.
99115         * modules/array-list-tests (Makefile.am): Likewise.
99116         * modules/array-oset-tests (Makefile.am): Likewise.
99117         * modules/avltree-list-tests (Makefile.am): Likewise.
99118         * modules/avltree-oset-tests (Makefile.am): Likewise.
99119         * modules/avltreehash-list-tests (Makefile.am): Likewise.
99120         * modules/carray-list-tests (Makefile.am): Likewise.
99121         * modules/dirname-tests (Makefile.am): Likewise.
99122         * modules/frexp-tests (Makefile.am): Likewise.
99123         * modules/isnanl-tests (Makefile.am): Likewise.
99124         * modules/linked-list-tests (Makefile.am): Likewise.
99125         * modules/linkedhash-list-tests (Makefile.am): Likewise.
99126         * modules/lock-tests (Makefile.am): Likewise.
99127         * modules/rbtree-list-tests (Makefile.am): Likewise.
99128         * modules/rbtree-oset-tests (Makefile.am): Likewise.
99129         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
99130         * modules/tls-tests (Makefile.am): Likewise.
99131         * modules/tsearch-tests (Makefile.am): Likewise.
99132         * modules/xvasprintf-tests (Makefile.am): Likewise.
99134         Fix fpurge for cygwin.
99135         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
99136         value.
99137         * modules/fpurge-tests (Depends-on): Clean up trash.
99139 2007-04-16  Simon Josefsson  <simon@josefsson.org>
99141         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
99143         * m4/autobuild.m4: Re-indent.
99145 2007-04-13  Bruno Haible  <bruno@clisp.org>
99147         * modules/fpurge-tests: New file.
99148         * tests/test-fpurge.c: New file.
99150         * modules/fpurge: New file.
99151         * lib/fpurge.h: New file.
99152         * lib/fpurge.c: New file.
99153         * m4/fpurge.m4: New file.
99155 2007-04-13  Bruno Haible  <bruno@clisp.org>
99157         * modules/fbufmode-tests: New file.
99158         * tests/test-fbufmode.c: New file.
99160         * modules/fbufmode: New file.
99161         * lib/fbufmode.h: New file.
99162         * lib/fbufmode.c: New file.
99163         * m4/fbufmode.m4: New file.
99165 2007-04-13  Bruno Haible  <bruno@clisp.org>
99167         * modules/fwritable-tests: New file.
99168         * tests/test-fwritable.c: New file.
99170         * modules/fwritable: New file.
99171         * lib/fwritable.h: New file.
99172         * lib/fwritable.c: New file.
99173         * m4/fwritable.m4: New file.
99175 2007-04-13  Bruno Haible  <bruno@clisp.org>
99177         * modules/freadable-tests: New file.
99178         * tests/test-freadable.c: New file.
99180         * modules/freadable: New file.
99181         * lib/freadable.h: New file.
99182         * lib/freadable.c: New file.
99183         * m4/freadable.m4: New file.
99185 2007-04-13  Bruno Haible  <bruno@clisp.org>
99187         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
99188         MOSTLYCLEANFILES.
99190 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
99192         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
99193         gzip bootstrap.conf to avoid dragging in i18n machinery.
99194         (gnulib_tool_option): Use it.
99196 2007-04-13  Bruno Haible  <bruno@clisp.org>
99198         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
99199         %F directives.
99200         * tests/test-vasprintf-posix.c (test_function): Likewise.
99201         * tests/test-snprintf-posix.h (test_function): Likewise.
99202         * tests/test-sprintf-posix.h (test_function): Likewise.
99203         * tests/test-fprintf-posix.h (test_function): Likewise.
99204         * tests/test-printf-posix.h (test_function): Likewise.
99205         * tests/test-fprintf-posix.out: Likewise.
99207 2007-04-13  Bruno Haible  <bruno@clisp.org>
99209         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
99210         * modules/tls-tests (configure.ac): Likewise.
99211         Reported by Arto C. Nirkko <anirkko@insel.ch>.
99213 2007-04-13  Bruno Haible  <bruno@clisp.org>
99215         * lib/tls.c (glthread_tls_get): Fix return type.
99216         Patch by Arto C. Nirkko <anirkko@insel.ch>.
99218 2007-04-12  Eric Blake  <ebb9@byu.net>
99220         * modules/gettime (Depends-on): Remove gettime.
99221         Reported by Dmitry V. Levin.
99223 2007-04-12  Bruno Haible  <bruno@clisp.org>
99225         * modules/fflush (Include): Mention <stdio.h>.
99226         * modules/strtoimax (Include): Mention <inttypes.h>.
99227         * modules/strtoumax (Include): Likewise.
99229 2007-04-12  Eric Blake  <ebb9@byu.net>
99231         * .cvsignore: New file.
99232         * .gitignore: Likewise.
99234 2007-04-12  Bruno Haible  <bruno@clisp.org>
99236         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
99237         not before, since $(LDADD) often contains libgnu.a.
99238         * modules/striconv-tests (test_striconv_LDADD): Likewise.
99239         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
99240         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
99241         Needed on Cygwin.
99243 2007-04-12  Eric Blake  <ebb9@byu.net>
99245         Work around glibc's failure to flush stdin on fclose.
99246         * lib/closein.c (close_stdin): Flush stdin before closing.
99248         Work around glibc's failure to reset seekable stdin on exit.
99249         * modules/closein: New module.
99250         * lib/closein.c: New file.
99251         * lib/closein.h: Likewise.
99252         * m4/closein.m4: Likewise.
99253         * MODULES.html.sh (File stream based Input/Output): Document it.
99255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99257         * gnulib-tool: Rename generated 'autobuild' script to
99258         'do-autobuild' in --create-megatestdir output.
99260         * doc/gnulib.texi (Build robot for gnulib): Fix.
99262 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99264         * modules/sysexits (Depends-on): Add absolute-header.
99266 2007-04-12  Eric Blake  <ebb9@byu.net>
99268         No need to preserve errno on success.
99269         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
99270         Reported by Bruno Haible.
99272 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99274         * MODULES.html.sh (Support for maintaining and releasing
99275         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
99277 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99279         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
99281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
99283         * modules/autobuild: New module.
99285         * m4/autobuild.m4: New file.
99287 2007-04-11  Bruno Haible  <bruno@clisp.org>
99289         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
99290         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
99291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
99292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
99293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99294         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99295         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
99297         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99298         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
99300         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99301         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
99303         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99304         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
99306         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99307         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
99309         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99310         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
99312         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99313         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
99315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
99316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
99317         Reported by Eric Blake.
99319 2007-04-11  Bruno Haible  <bruno@clisp.org>
99321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
99323 2007-04-10  Bruno Haible  <bruno@clisp.org>
99325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
99326         for NaN and Infinity. Needed on FreeBSD 6.1.
99327         * tests/test-vasnprintf-posix.c (test_function): Undo last change
99328         regarding results for "%010a" of Infinity and NaN.
99329         * tests/test-vasprintf-posix.c (test_function): Likewise.
99330         * tests/test-snprintf-posix.h (test_function): Likewise.
99331         * tests/test-sprintf-posix.h (test_function): Likewise.
99332         * tests/test-fprintf-posix.h (test_function): Likewise.
99333         * tests/test-printf-posix.h (test_function): Likewise.
99334         * tests/test-fprintf-posix.out: Likewise.
99336 2007-04-10  Bruno Haible  <bruno@clisp.org>
99338         * modules/locale-tests: New file.
99339         * tests/test-locale.c: New file.
99341         * modules/locale: New file.
99342         * lib/locale_.h: New file.
99343         * m4/locale_h.m4: New file.
99345 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
99346             Bruno Haible  <bruno@clisp.org>
99348         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
99349         be determined, test for availability of the copysignf, copysign,
99350         copysignl functions.
99351         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
99352         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
99353         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
99355 2007-04-09  Eric Blake  <ebb9@byu.net>
99357         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
99358         * modules/stdio (Makefile.am): Support fflush.
99359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
99360         * modules/fflush: New file.
99361         * lib/fflush.c: Likewise.
99362         * m4/fflush.m4: Likewise.
99363         * modules/fflush-tests: New test.
99364         * tests/test-fflush.c: Likewise.
99365         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
99367 2007-04-06  Bruno Haible  <bruno@clisp.org>
99369         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
99370         (VASNPRINTF): Use signbit for faster determination whether to print a
99371         minus sign.
99372         * modules/vasnprintf (Files): Remove lib/float+.h.
99373         * modules/fprintf-posix (Depends-on): Add signbit.
99374         * modules/snprintf-posix (Depends-on): Likewise.
99375         * modules/sprintf-posix (Depends-on): Likewise.
99376         * modules/vasnprintf-posix (Depends-on): Likewise.
99377         * modules/vasprintf-posix (Depends-on): Likewise.
99378         * modules/vfprintf-posix (Depends-on): Likewise.
99379         * modules/vsnprintf-posix (Depends-on): Likewise.
99380         * modules/vsprintf-posix (Depends-on): Likewise.
99382 2007-04-06  Bruno Haible  <bruno@clisp.org>
99384         * tests/test-frexp.c (main): Test also the sign bit of zero results.
99385         * tests/test-frexpl.c (main): Likewise.
99386         * tests/test-ldexpl.c (main): Likewise.
99387         * modules/frexp-tests (Depends-on): Add signbit.
99388         * modules/frexpl-tests (Depdends-on): Likewise.
99389         * modules/ldexpl-tests (Depdends-on): Likewise.
99391 2007-04-06  Bruno Haible  <bruno@clisp.org>
99393         * modules/signbit-tests: New file.
99394         * tests/test-signbit.c: New file.
99396         * modules/signbit: New file.
99397         * lib/signbitf.c: New file.
99398         * lib/signbitd.c: New file.
99399         * lib/signbitl.c: New file.
99400         * m4/signbit.m4: New file.
99401         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
99402         (signbit): New macro.
99403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
99404         REPLACE_SIGNBIT.
99405         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
99406         REPLACE_FREXPL into math.h.
99408 2007-04-06  Bruno Haible  <bruno@clisp.org>
99410         * modules/isnanf-nolibm-tests: New file.
99411         * tests/test-isnanf.c: New file.
99413         * modules/isnanf-nolibm: New file.
99414         * lib/isnanf.h: New file.
99415         * lib/isnanf.c: New file.
99416         * lib/isnan.c: Consider the USE_FLOAT macro.
99417         * m4/isnanf.m4: New file.
99419 2007-04-06  Bruno Haible  <bruno@clisp.org>
99421         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
99422         (Link): New section.
99424         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
99426 2007-04-06  Bruno Haible  <bruno@clisp.org>
99428         Assume the 'long double' type.
99429         * m4/longdouble.m4: Remove file.
99430         * config/srclist.txt: Don't mention longdouble.m4.
99431         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
99432         * lib/float+.h: Likewise.
99433         * lib/frexp.c: Likewise.
99434         * lib/printf-args.h: Likewise.
99435         * lib/printf-args.c: Likewise.
99436         * lib/printf-frexp.c: Likewise.
99437         * lib/printf-parse.c: Likewise.
99438         * lib/vasnprintf.c: Likewise.
99439         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
99440         * m4/intl.m4: Likewise.
99441         * m4/isnanl.m4: Likewise.
99442         * m4/printf.m4: Likewise.
99443         * m4/printf-frexpl.m4: Likewise.
99444         * m4/vasnprintf.m4: Likewise.
99445         * modules/allocsa (Files): Remove m4/longdouble.m4.
99446         * modules/gettext (Files): Likewise.
99447         * modules/relocatable-prog-wrapper (Files): Likewise.
99448         * modules/vasnprintf (Files): Likewise.
99449         * modules/isnanl (Files): Likewise.
99450         (Include): Simplify.
99451         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
99452         (Include): Simplify.
99453         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
99454         (Include): Simplify.
99455         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
99456         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99457         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
99458         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99459         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
99460         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99461         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
99462         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99463         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
99464         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99465         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
99466         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
99467         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
99468         * tests/test-isnanl.c: Likewise.
99469         * tests/test-snprintf-posix.h: Likewise.
99470         * tests/test-sprintf-posix.h: Likewise.
99471         * tests/test-vasnprintf-posix.c: Likewise.
99472         * tests/test-vasnprintf-posix2.c: Likewise.
99473         * tests/test-vasprintf-posix.c: Likewise.
99475 2007-04-06  Bruno Haible  <bruno@clisp.org>
99477         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
99478         * lib/math_.h [__DECC]: Include the overridden include file through
99479         #include_next, outside the double-inclusion guard.
99480         * lib/stdio_.h [__DECC]: Likewise.
99481         * lib/stdlib_.h [__DECC]: Likewise.
99482         * lib/string_.h [__DECC]: Likewise.
99483         * lib/time_.h [__DECC]: Likewise.
99484         * lib/wchar_.h [__DECC]: Likewise.
99485         * lib/wctype_.h [__DECC]: Likewise.
99486         * lib/inttypes_.h [__DECC]: Likewise.
99487         Reported by Albert Chin <china@thewrittenword.com> in
99488         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
99490 2007-04-04  Eric Blake  <ebb9@byu.net>
99492         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
99493         1.5.x.
99495 2007-04-04  Bruno Haible  <bruno@clisp.org>
99497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
99498         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
99500 2007-04-04  Bruno Haible  <bruno@clisp.org>
99502         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
99503         results for "%010a" of Infinity and NaN.
99504         * tests/test-vasprintf-posix.c (test_function): Likewise.
99505         * tests/test-snprintf-posix.h (test_function): Likewise.
99506         * tests/test-sprintf-posix.h (test_function): Likewise.
99507         * tests/test-fprintf-posix.h (test_function): Remove these tests.
99508         * tests/test-printf-posix.h (test_function): Likewise.
99509         * tests/test-fprintf-posix.out: Update.
99510         Needed for FreeBSD 6.1.
99512 2007-04-04  Bruno Haible  <bruno@clisp.org>
99514         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
99515         directly used by the gnulib modules nor by gnulib-tool.
99517 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
99519         * DEPENDENCIES: Give overall description of version dependency
99520         desirability.  Use more-typical names for apps.
99521         Add shell, coreutils, diffutils, grep, tar, gzip.
99523 2007-04-04  Simon Josefsson  <simon@josefsson.org>
99525         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
99527 2007-04-04  Karl Berry  <karl@gnu.org>
99529         * MODULES.html.sh (func_module): missing '.
99531 2007-04-03  Bruno Haible  <bruno@clisp.org>
99533         * modules/argmatch-tests (Makefile.am): New variable
99534         test_argmatch_LDADD.
99535         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
99536         * modules/array-list-tests (Makefile.am): New variable
99537         test_array_list_LDADD.
99538         * modules/array-oset-tests (Makefile.am): New variable
99539         test_array_oset_LDADD.
99540         * modules/avltree-list-tests (Makefile.am): New variable
99541         test_avltree_list_LDADD.
99542         * modules/avltree-oset-tests (Makefile.am): New variable
99543         test_avltree_oset_LDADD.
99544         * modules/avltreehash-list-tests (Makefile.am): New variable
99545         test_avltreehash_list_LDADD.
99546         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
99547         test_canonicalize_lgpl_LDADD.
99548         * modules/carray-list-tests (Makefile.am): New variable
99549         test_carray_list_LDADD.
99550         * modules/dirname-tests (Makefile.am): New variable
99551         test_dirname_LDADD.
99552         * modules/linked-list-tests (Makefile.am): New variable
99553         test_linked_list_LDADD.
99554         * modules/linkedhash-list-tests (Makefile.am): New variable
99555         test_linkedhash_list_LDADD.
99556         * modules/rbtree-list-tests (Makefile.am): New variable
99557         test_rbtree_list_LDADD.
99558         * modules/rbtree-oset-tests (Makefile.am): New variable
99559         test_rbtree_oset_LDADD.
99560         * modules/rbtreehash-list-tests (Makefile.am): New variable
99561         test_rbtreehash_list_LDADD.
99562         * modules/xvasprintf-tests (Makefile.am): New variable
99563         test_xvasprintf_LDADD.
99564         Reported by Eric Blake.
99566 2007-04-03  Eric Blake  <ebb9@byu.net>
99568         * DEPENDENCIES: Weaken m4 requirements.
99570 2007-04-03  Bruno Haible  <bruno@clisp.org>
99572         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
99573         * modules/isnanl-tests (configure.ac): Likewise.
99575 2007-04-03  Ben Pfaff  <blp@gnu.org>
99577         * modules/iconv_open: Add $(srcdir)/ to source directory
99578         references in Makefile fragments that call gperf, to fix VPATH
99579         builds.
99581 2007-04-03  Bruno Haible  <bruno@clisp.org>
99583         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
99584         * lib/ldexpl.c: Undo last change.
99586 2007-04-03  Bruno Haible  <bruno@clisp.org>
99588         * modules/printf-frexpl (Depends-on): Undo last change.
99589         (Files): Add m4/ldexpl.m4.
99591 2007-04-03  Bruno Haible  <bruno@clisp.org>
99593         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
99594         * modules/isnanl (Link): New section.
99596         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
99597         * modules/frexp (Link): New section.
99599         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
99600         * modules/frexpl (Link): New section.
99602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
99603         * modules/ldexpl (Link): New section.
99605 2007-04-03  Bruno Haible  <bruno@clisp.org>
99607         * modules/TEMPLATE-EXTENDED: New file.
99608         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
99610 2007-04-03  Bruno Haible  <bruno@clisp.org>
99612         * DEPENDENCIES: New file.
99613         Suggested by Simon Josefsson.
99615 2007-04-03  Bruno Haible  <bruno@clisp.org>
99617         * doc/gnulib.texi: Escape @.
99619 2007-04-03  James Youngman  <jay@gnu.org>
99620         and Paul Eggert  <eggert@cs.ucla.edu>
99622         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
99623         birthtime on all systems that have birthtime, not just those which
99624         use st_birthtimensec rather than st_birthtim.  Putting zero in
99625         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
99626         that the birth time is not available for files on an NFS mount.
99628 2007-04-03  Simon Josefsson  <simon@josefsson.org>
99630         * modules/memxor: Move back from crypto/, suggested by Bruno.
99631         * modules/crypto/hmac-sha1: Fix memxor dependency.
99633         * modules/crypto/gc: Moved from ../.
99635 2007-04-02  Eric Blake  <ebb9@byu.net>
99637         * lib/ldexpl.c (includes): Avoid libm.
99639         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
99641 2007-04-02  Bruno Haible  <bruno@clisp.org>
99643         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
99644         on IRIX.
99646 2007-04-02  Bruno Haible  <bruno@clisp.org>
99648         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
99649         x86 or x86_64 platforms running MacOS X.
99650         Reported by Ryan Schmidt <@ryandesign.com>.
99652 2007-04-02  Bruno Haible  <bruno@clisp.org>
99654         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
99655         i386.
99657 2007-04-01  Simon Josefsson  <simon@josefsson.org>
99659         * modules/crypto/arcfour: Moved from ../.
99660         * modules/crypto/arcfour-tests: Moved from ../.
99661         * modules/crypto/arctwo: Moved from ../.
99662         * modules/crypto/arctwo-tests: Moved from ../.
99663         * modules/crypto/des: Moved from ../.
99664         * modules/crypto/des-tests: Moved from ../.
99665         * modules/crypto/gc-arcfour: Moved from ../.
99666         * modules/crypto/gc-arcfour-tests: Moved from ../.
99667         * modules/crypto/gc-arctwo: Moved from ../.
99668         * modules/crypto/gc-arctwo-tests: Moved from ../.
99669         * modules/crypto/gc-des: Moved from ../.
99670         * modules/crypto/gc-des-tests: Moved from ../.
99671         * modules/crypto/gc-hmac-md5: Moved from ../.
99672         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
99673         * modules/crypto/gc-hmac-sha1: Moved from ../.
99674         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
99675         * modules/crypto/gc-md2: Moved from ../.
99676         * modules/crypto/gc-md2-tests: Moved from ../.
99677         * modules/crypto/gc-md4: Moved from ../.
99678         * modules/crypto/gc-md4-tests: Moved from ../.
99679         * modules/crypto/gc-md5: Moved from ../.
99680         * modules/crypto/gc-md5-tests: Moved from ../.
99681         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
99682         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
99683         * modules/crypto/gc-random: Moved from ../.
99684         * modules/crypto/gc-rijndael: Moved from ../.
99685         * modules/crypto/gc-rijndael-tests: Moved from ../.
99686         * modules/crypto/gc-sha1: Moved from ../.
99687         * modules/crypto/gc-sha1-tests: Moved from ../.
99688         * modules/crypto/gc-tests: Moved from ../.
99689         * modules/crypto/hmac-md5: Moved from ../.
99690         * modules/crypto/hmac-md5-tests: Moved from ../.
99691         * modules/crypto/hmac-sha1: Moved from ../.
99692         * modules/crypto/hmac-sha1-tests: Moved from ../.
99693         * modules/crypto/md2: Moved from ../.
99694         * modules/crypto/md2-tests: Moved from ../.
99695         * modules/crypto/md4: Moved from ../.
99696         * modules/crypto/md4-tests: Moved from ../.
99697         * modules/crypto/md5: Moved from ../.
99698         * modules/crypto/md5-tests: Moved from ../.
99699         * modules/crypto/memxor: Moved from ../.
99700         * modules/crypto/rijndael: Moved from ../.
99701         * modules/crypto/rijndael-tests: Moved from ../.
99702         * modules/crypto/sha1: Moved from ../.
99704 2007-03-30  James Youngman  <jay@gnu.org>
99706         * tests/test-stat-time.c (prepare_test): use chmod() rather than
99707         rename() to change the ctime of a file (because ctime is unaffected
99708         by rename on jfs2 on AIX 5.1).
99709         (main): Start by doing cleanup, in case a previous run failed leaving
99710         test files behind.
99712 2007-03-31  Bruno Haible  <bruno@clisp.org>
99714         Support old proprietary implementations of iconv.
99715         * modules/iconv_open: New file.
99716         * lib/iconv_.h: New file.
99717         * m4/iconv_h.m4: New file.
99718         * lib/iconv_open.c: New file.
99719         * lib/iconv_open-aix.gperf: New file.
99720         * lib/iconv_open-hpux.gperf: New file.
99721         * lib/iconv_open-irix.gperf: New file.
99722         * lib/iconv_open-osf.gperf: New file.
99723         * m4/iconv_open.m4: New file.
99724         * modules/linebreak (Depends-on): Add iconv_open.
99725         * modules/striconv (Depends-on): Likewise.
99726         * modules/striconveh (Depends-on): Likewise.
99727         * modules/unicodeio (Depends-on): Likewise.
99728         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
99729         (iconv_t)(-1).
99730         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
99731         conversion if cd is (iconv_t)(-1).
99732         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
99733         is not possible.
99735 2007-03-31  Bruno Haible  <bruno@clisp.org>
99737         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
99738         work on Solaris either. Protect also second use of "autodetect_jp".
99740 2007-03-31  Bruno Haible  <bruno@clisp.org>
99742         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
99743         the function is not present.
99745 2007-03-31  Bruno Haible  <bruno@clisp.org>
99747         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
99748         the function is not present.
99750 2007-03-31  Bruno Haible  <bruno@clisp.org>
99752         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
99753         a bug in HP-UX iconv_open().
99755 2007-03-31  Bruno Haible  <bruno@clisp.org>
99757         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
99758         (Mathematics <math.h>): New section, add fpieee.
99759         (Input/output <stdio.h>): Add fseterr.
99760         (Mathematics <math.h>): New section, add printf-frexp.
99761         (Container data structures): Add sublist.
99762         (Core language properties): Add fpucw, inline.
99763         (Functions for greatest-width integer types <inttypes.h>): Add
99764         imaxabs, imaxdiv, inttypes.
99765         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
99766         isnanl-nolibm, ldexp.
99767         (Mathematics <math.h>): New section, add printf-frexpl.
99768         (Support for systems lacking POSIX:2001): Add fprintf-posix,
99769         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
99770         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
99771         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
99772         (Unicode string functions): Add unistr/u*-mbtoucr.
99773         (Java): Add javacomp-script, javaexec-script.
99774         (C#): Add csharpcomp-script, csharpexec-script.
99775         (Support for building libraries and executables): Add havelib,
99776         relocatable-*.
99777         (Support for maintaining and releasing projects): Renamed from
99778         'Support for maintaining and release projects'. Add announce-gen.
99780 2007-03-31  Bruno Haible  <bruno@clisp.org>
99782         * README: Talk primarily about git.
99783         (git and CVS): Renamed from CVS.
99784         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
99785         gnulib is available through git.
99786         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
99788 2007-03-30  Bruno Haible  <bruno@clisp.org>
99790         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
99791         * lib/poll_.h: Likewise.
99792         * lib/stat_.h: Likewise.
99793         * lib/sys_time_.h: Likewise.
99794         * lib/sysexit_.h: Likewise.
99795         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
99796         * lib/stdbool_.h: Likewise.
99797         * lib/byteswap_.h: Add double-inclusion guard.
99799 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
99801         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
99803 2007-03-30  Karl Berry  <karl@gnu.org>
99805         * config/srclist-update: double space after USA in the license
99806         substitution, since that's how it's usually (?) written.
99808 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
99810         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
99811         reported by Bruno Haible.
99813 2007-03-29  Bruno Haible  <bruno@clisp.org>
99815         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
99816         a bug in AIX iconv().
99818 2007-03-29  Bruno Haible  <bruno@clisp.org>
99820         * modules/ldexpl-tests: New file.
99821         * tests/test-ldexpl.c: New file.
99823 2007-03-29  Bruno Haible  <bruno@clisp.org>
99825         * lib/ldexpl.c: Include fpucw.h.
99826         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
99827         multiplication.
99828         * modules/ldexpl (Depends-on): Add fpucw.
99830 2007-03-29  Bruno Haible  <bruno@clisp.org>
99832         * modules/ldexpl: New file.
99833         * m4/ldexpl.m4: New file.
99834         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
99835         set.
99836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
99837         REPLACE_LDEXPL.
99838         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
99839         REPLACE_LDEXPL.
99840         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
99841         gl_FUNC_LDEXPL_WORKS.
99842         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
99843         * modules/mathl (Files): Remove lib/ldexpl.c.
99844         (Depends-on): Add ldexpl.
99846 2007-03-29  Bruno Haible  <bruno@clisp.org>
99848         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
99850 2007-03-29  Bruno Haible  <bruno@clisp.org>
99852         * tests/test-striconveh.c (main): Don't assume that a direct conversion
99853         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
99854         and possibly also HP-UX.
99855         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
99856         work on AIX, IRIX, HP-UX, OSF/1.
99857         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
99858         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
99859         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
99860         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
99861         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
99862         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
99864 2007-03-29  Bruno Haible  <bruno@clisp.org>
99866         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
99868 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
99870         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
99871         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
99873 2007-03-29  Eric Blake  <ebb9@byu.net>
99875         * lib/acl-internal.h: Remove redundant include.
99876         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
99877         Cygwin when a file is locked.
99879 2007-03-29  Bruno Haible  <bruno@clisp.org>
99881         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
99882         file.
99883         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
99885 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
99887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
99888         try to remove a parent directory if the child couldn't be removed
99889         (except for the first rmdir, which could fail because the child
99890         doesn't exist).  Problem reported by Jeff Blaine in
99891         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
99893 2007-03-28  Bruno Haible  <bruno@clisp.org>
99895         * lib/striconveh.c (utf8conv_carefully): New function.
99896         (mem_cd_iconveh_internal): Invoke it.
99898 2007-03-28  Bruno Haible  <bruno@clisp.org>
99900         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
99901         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
99902         input.
99903         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
99904         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
99905         unistr/u8-uctomb.
99907 2007-03-28  Bruno Haible  <bruno@clisp.org>
99909         * modules/unistr/u8-mbtoucr: New file.
99910         * lib/unistr/u8-mbtoucr.c: New file.
99911         * modules/unistr/u16-mbtoucr: New file.
99912         * lib/unistr/u16-mbtoucr.c: New file.
99913         * modules/unistr/u16-mbtoucr: New file.
99914         * lib/unistr/u16-mbtoucr.c: New file.
99915         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
99917 2007-03-27  Simon Josefsson  <simon@josefsson.org>
99918             Bruno Haible  <bruno@clisp.org>
99920         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
99921         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
99922         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
99924         * m4/stdio_h.m4: Add stubs for vasprintf too.
99926         * modules/stdio: Support vasprintf in sed command.
99928         * modules/vasprintf: Depend on stdio for prototypes.  Remove
99929         vasprintf.h.  Add stdio module indicator.
99931         * lib/stdio_.h: Declare asprintf and vasprintf, based on
99932         vasprintf.h.
99934         * lib/vasprintf.h: File removed.
99936         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
99937         * lib/vasprintf.c: Ditto.
99938         * lib/xvasprintf.c: Ditto.
99939         * tests/test-vasprintf-posix.c: Ditto.
99940         * tests/test-vasprintf.c: Ditto.
99942 2007-03-27  Bruno Haible  <bruno@clisp.org>
99944         Make vasnprintf multithread-safe.
99945         * lib/vasnprintf.c (decimal_point_char): New function.
99946         (VASNPRINTF): Use it.
99947         Suggested by Simon Josefsson.
99949 2007-03-27  Eric Blake  <ebb9@byu.net>
99951         Support sub-second birthtime on cygwin.
99952         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
99953         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
99954         (get_stat_birthtime): Also work with st_birthtim.
99956 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
99958         * lib/stat-time.h (USE_BIRTHTIME): Remove.
99959         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
99960         (get_stat_birthtime_ns): Do not try to use "spare" fields.
99961         (get_stat_birthtime_ns): Simplify compile-time tests.
99962         (get_stat_birthtime): Change the API to look like
99963         get_stat_mtime etc., except return a negative tv_nsec on error.
99964         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
99965         Don't check for "spare" fields.
99966         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
99967         or for struct stat.st_birthtime, as these tests aren't used.
99968         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
99970 2007-03-27  Bruno Haible  <bruno@clisp.org>
99972         * lib/stat-time.h: Include <sys/stat.h>.
99974 2007-03-27  James Youngman  <jay@gnu.org>
99976         * lib/stat-time.h (get_stat_birthtime): New function for
99977           retrieving st_birthtime as provided by UFS2 (hence *BSD).
99978         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
99979           and its variants.
99980         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
99981         * modules/stat-time-test: New file.
99982         * tests/test-stat-time.c: New test, devised by Bruno Haible.
99984 2007-03-26  Bruno Haible  <bruno@clisp.org>
99986         Better support of signalling NaNs.
99987         * lib/atanl.c: Include isnanl.h.
99988         (atanl): Perform test for NaN at the beginning of the function and
99989         through a call to isnanl.
99990         * lib/cosl.c: Include isnanl.h.
99991         (cosl): Perform test for NaN at the beginning of the function and
99992         through a call to isnanl.
99993         * lib/ldexpl.c: Include isnanl.h.
99994         (ldexpl): Perform test for NaN through a call to isnanl.
99995         * lib/logl.c: Include isnanl.h.
99996         (logl): Perform test for NaN at the beginning of the function and
99997         through a call to isnanl.
99998         * lib/sinl.c: Include isnanl.h.
99999         (sinl): Perform test for NaN at the beginning of the function and
100000         through a call to isnanl.
100001         * lib/sqrtl.c: Include isnanl.h.
100002         (sqrtl): Perform test for NaN at the beginning of the function and
100003         through a call to isnanl.
100004         * lib/tanl.c: Include isnanl.h.
100005         (tanl): Perform test for NaN at the beginning of the function and
100006         through a call to isnanl.
100007         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
100008         * modules/mathl (Depends-on): Add isnanl.
100010 2007-03-26  Eric Blake  <ebb9@byu.net>
100012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
100013         regression in logic sense of previous patch.
100015 2007-03-26  Bruno Haible  <bruno@clisp.org>
100017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
100018         unportable shell command "if ! ...".
100019         Reported by Ralf Wildenhues.
100021 2007-03-25  Bruno Haible  <bruno@clisp.org>
100023         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
100024         <sysexits.h> file, and only add EX_CONFIG.
100025         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
100026         absolute file name and whether it is sufficient. Substitute also
100027         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
100028         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
100029         ABSOLUTE_SYSEXITS_H into sysexits.h.
100031 2007-03-25  Bruno Haible  <bruno@clisp.org>
100033         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
100034         hints is NULL.
100036 2007-03-25  Bruno Haible  <bruno@clisp.org>
100038         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
100039         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
100041 2007-03-25  Bruno Haible  <bruno@clisp.org>
100043         * lib/vasnprintf.c: Include langinfo.h.
100044         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
100045         multithread-safe.
100046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
100047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
100048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100052         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
100054         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100055         Reported by Simon Josefsson.
100057 2007-03-25  Bruno Haible  <bruno@clisp.org>
100059         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
100060         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
100061         * modules/vasnprintf (Depends-on): Add stdint.
100063 2007-03-25  Bruno Haible  <bruno@clisp.org>
100065         * modules/fpieee: New file.
100066         * m4/fpieee.m4: New file.
100067         * modules/isnan-nolibm (Depends-on): Add fpieee.
100068         * modules/isnanl-nolibm (Depends-on): Add fpieee.
100069         * modules/isnanl (Depends-on): Add fpieee.
100071 2007-03-25  Bruno Haible  <bruno@clisp.org>
100073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
100075 2007-03-25  Bruno Haible  <bruno@clisp.org>
100077         Avoid test failures on IRIX 6.5.
100078         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
100079         (main): Use it.
100080         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
100081         macros.
100082         (main): Use them.
100084 2007-03-25  Bruno Haible  <bruno@clisp.org>
100086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
100087         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
100088         exists but doesn't work.
100089         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
100090         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
100091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
100092         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
100093         math.h.
100095 2007-03-25  Bruno Haible  <bruno@clisp.org>
100097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
100098         returns inf. Needed on IRIX 6.5.
100100 2007-03-25  Bruno Haible  <bruno@clisp.org>
100102         * tests/test-frexpl.c: Include isnanl-nolibm.h.
100103         (main): Use isnanl instead of x != x idiom.
100104         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
100106         * tests/test-frexp.c: Include isnan.h.
100107         (main): Use isnan instead of x != x idiom.
100108         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
100110 2007-03-25  Bruno Haible  <bruno@clisp.org>
100112         * tests/test-frexp.c (NaN): New function/macro.
100113         (main): Use it instead of 0.0 / 0.0.
100114         * tests/test-isnan.c (NaN): New function/macro.
100115         (main): Use it instead of 0.0 / 0.0.
100116         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
100117         (test_function): Use it instead of 0.0 / 0.0.
100118         * tests/test-vasprintf-posix.c (NaN): New function/macro.
100119         (test_function): Use it instead of 0.0 / 0.0.
100120         * tests/test-snprintf-posix.h (NaN): New function/macro.
100121         (test_function): Use it instead of 0.0 / 0.0.
100122         * tests/test-sprintf-posix.h (NaN): New function/macro.
100123         (test_function): Use it instead of 0.0 / 0.0.
100124         * tests/test-fprintf-posix.h (NaN): New function/macro.
100125         (test_function): Use it instead of 0.0 / 0.0.
100126         * tests/test-printf-posix.h (NaN): New function/macro.
100127         (test_function): Use it instead of 0.0 / 0.0.
100129         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
100131 2007-03-25  Bruno Haible  <bruno@clisp.org>
100133         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
100135 2007-03-25  Bruno Haible  <bruno@clisp.org>
100137         * lib/regexec.c (merge_state_with_log): Make static.
100139 2007-03-25  Bruno Haible  <bruno@clisp.org>
100141         * lib/trigl.c (kernel_rem_pio2): Make static.
100143 2007-03-25  Bruno Haible  <bruno@clisp.org>
100145         * lib/sincosl.c (sincosl_table): Make static.
100147 2007-03-25  Bruno Haible  <bruno@clisp.org>
100149         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
100150         if the compiler does not support C99.
100152 2007-03-25  Bruno Haible  <bruno@clisp.org>
100154         * modules/time (Makefile.am): Ensure all rule action lines start with a
100155         tab.
100157 2007-03-24  Bruno Haible  <bruno@clisp.org>
100159         * modules/tsearch-tests: New file.
100160         * tests/test-tsearch.sh: New file.
100161         * tests/test-tsearch.c: New file, mostly copied from glibc.
100163         * modules/search-tests: New file.
100164         * tests/test-search.c: New file.
100166         * modules/search: New file.
100167         * lib/search_.h: New file, incorporating lib/tsearch.h.
100168         * m4/search_h.m4: New file.
100169         * lib/tsearch.h: Remove file.
100170         * lib/tsearch.c: Include search.h instead of tsearch.h.
100171         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
100172         HAVE_TSEARCH.
100173         * modules/tsearch (Files): Remove lib/tsearch.h.
100174         (Depends-on): Add search.
100175         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
100176         (Include): Change tsearch.h into search.h.
100178 2007-03-24  Bruno Haible  <bruno@clisp.org>
100180         * modules/fpucw: New file.
100181         * lib/fpucw.h: New file.
100182         * lib/frexp.c: Include fpucw.h.
100183         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
100184         (FUNC): Use them.
100185         * lib/printf-frexp.c: Include fpucw.h.
100186         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
100187         (FUNC): Use them.
100188         * lib/vasnprintf.c: Include fpucw.h.
100189         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
100190         'long double' calculations.
100191         * tests/test-frexpl.c: Include fpucw.h.
100192         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
100193         * tests/test-printf-frexpl.c: Include fpucw.h.
100194         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
100195         * modules/frexpl (Depends-on): Add fpucw.
100196         * modules/printf-frexpl (Depends-on): Likewise.
100197         * modules/fprintf-posix (Depends-on): Likewise.
100198         * modules/snprintf-posix (Depends-on): Likewise.
100199         * modules/sprintf-posix (Depends-on): Likewise.
100200         * modules/vasnprintf-posix (Depends-on): Likewise.
100201         * modules/vasprintf-posix (Depends-on): Likewise.
100202         * modules/vfprintf-posix (Depends-on): Likewise.
100203         * modules/vsnprintf-posix (Depends-on): Likewise.
100204         * modules/vsprintf-posix (Depends-on): Likewise.
100205         * modules/frexpl-tests (Depends-on): Likewise.
100206         * modules/printf-frexpl-tests (Depends-on): Likewise.
100208 2007-03-24  Bruno Haible  <bruno@clisp.org>
100210         * lib/float+.h: New file.
100211         * lib/isnan.c: Include float+.h.
100212         (SIZE): New macro.
100213         (FUNC): Compare only SIZE bytes of the value.
100214         * lib/vasnprintf.c: Include float+.h.
100215         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
100216         SIZEOF_LDBL or SIZEOF_DBL bytes.
100217         * modules/isnan-nolibm (Files): Add lib/float+.h.
100218         * modules/isnanl-nolibm (Files): Add lib/float+.h.
100219         * modules/isnanl (Files): Add lib/float+.h.
100220         * modules/vasnprintf (Files): Add lib/float+.h.
100222 2007-03-24  Bruno Haible  <bruno@clisp.org>
100224         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
100225         include isnanl-nolibm.h.
100227 2007-03-24  Bruno Haible  <bruno@clisp.org>
100229         * tests/test-read-file.c (main): Don't produce spurious output for
100230         expected situations. Make the test fail if it encountered unexpected
100231         results.
100233 2007-03-24  Bruno Haible  <bruno@clisp.org>
100235         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
100236         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
100238 2007-03-24  Bruno Haible  <bruno@clisp.org>
100240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
100242 2007-03-24  Bruno Haible  <bruno@clisp.org>
100244         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
100245         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
100247         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
100248         * modules/utf8-ucs4: Turn into a symbolic link to module
100249         unistr/u8-mbtouc.
100251         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
100252         utf8-ucs4-unsafe.
100253         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
100254         unistr/u8-mbtouc-unsafe.
100256         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
100257         * modules/utf16-ucs4: Turn into a symbolic link to module
100258         unistr/u16-mbtouc.
100260         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
100261         utf16-ucs4-unsafe.
100262         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
100263         unistr/u16-mbtouc-unsafe.
100265         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
100266         * modules/ucs4-utf8: Turn into a symbolic link to module
100267         unistr/u8-ubtomb.
100269         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
100270         * modules/ucs4-utf16: Turn into a symbolic link to module
100271         unistr/u16-ubtomb.
100273 2007-03-24  Bruno Haible  <bruno@clisp.org>
100275         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
100276         Enable the function only if HAVE_INLINE.
100277         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
100278         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
100279         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
100280         Enable the function only if HAVE_INLINE.
100281         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
100282         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
100283         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
100284         Enable the function only if HAVE_INLINE.
100285         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
100286         Enable the function only if HAVE_INLINE.
100287         * modules/utf8-ucs4: Update.
100288         * modules/utf8-ucs4-unsafe: Update.
100289         * modules/utf16-ucs4: Update.
100290         * modules/utf16-ucs4-unsafe: Update.
100291         * modules/ucs4-utf8: Update.
100292         * modules/ucs4-utf16: Update.
100294 2007-03-24  Bruno Haible  <bruno@clisp.org>
100296         * lib/utf8-ucs4.h: Remove file.
100297         * lib/utf8-ucs4-unsafe.h: Remove file.
100298         * lib/utf16-ucs4.h: Remove file.
100299         * lib/utf16-ucs4-unsafe.h: Remove file.
100300         * lib/ucs4-utf8.h: Remove file.
100301         * lib/ucs4-utf16.h: Remove file.
100302         * lib/unistr.h: Include their previous contents.
100303         * m4/utf-ucs4.m4: Remove file.
100304         * m4/ucs4-utf.m4: Remove file.
100305         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
100306         (Depends-on): Add unistr/base.
100307         (configure.ac): Remove gl_UTF_UCS4.
100308         (Makefile.am): Update.
100309         (Include): Change to unistr.h.
100310         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
100311         (Depends-on): Add unistr/base.
100312         (configure.ac): Remove gl_UTF_UCS4.
100313         (Makefile.am): Update.
100314         (Include): Change to unistr.h.
100315         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
100316         (Depends-on): Add unistr/base.
100317         (configure.ac): Remove gl_UTF_UCS4.
100318         (Makefile.am): Update.
100319         (Include): Change to unistr.h.
100320         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
100321         (Depends-on): Add unistr/base.
100322         (configure.ac): Remove gl_UTF_UCS4.
100323         (Makefile.am): Update.
100324         (Include): Change to unistr.h.
100325         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
100326         (Depends-on): Add unistr/base.
100327         (configure.ac): Remove gl_UCS4_UTF.
100328         (Makefile.am): Update.
100329         (Include): Change to unistr.h.
100330         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
100331         (Depends-on): Add unistr/base.
100332         (configure.ac): Remove gl_UCS4_UTF.
100333         (Makefile.am): Update.
100334         (Include): Change to unistr.h.
100335         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
100336         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
100337         utf8-ucs4-unsafe.h.
100338         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
100339         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
100340         utf16-ucs4-unsafe.h.
100341         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
100342         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
100343         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
100344         * lib/unistr/u8-strchr.c: Likewise.
100345         * lib/unistr/u8-strrchr.c: Likewise.
100346         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
100347         * lib/unistr/u16-strchr.c: Likewise.
100348         * lib/unistr/u16-strrchr.c: Likewise.
100349         * lib/striconveh.c: Update.
100350         * lib/linebreak.c: Update.
100352 2007-03-24  Bruno Haible  <bruno@clisp.org>
100354         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
100355         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
100357 2007-03-22  Bruno Haible  <bruno@clisp.org>
100359         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
100361 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
100363         * MODULES.html.sh (File system functions): New module write-any-file.
100364         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
100365         * m4/write-any-file.m4: New files.
100367 2007-03-23  Eric Blake  <ebb9@byu.net>
100369         * gnulib-tool: Rearrange space-tab sequences, since some editors
100370         like to eat them.
100372 2007-03-23  Eric Blake  <ebb9@byu.net>
100374         * lib/version-etc.c (version_etc_va): Update license wording to
100375         be more concise.  Recommended by Richard Stallman.
100377 2007-03-22  Bruno Haible  <bruno@clisp.org>
100379         * lib/poll.c (MSG_PEEK): New fallback definition.
100381 2007-03-22  Bruno Haible  <bruno@clisp.org>
100383         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
100384         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
100385         (main): Update.
100386         Fixes a compilation error on BeOS.
100388 2007-03-22  Bruno Haible  <bruno@clisp.org>
100390         * modules/frexpl-tests: New file.
100391         * tests/test-frexpl.c: New file.
100393         * modules/frexpl: New file.
100394         * m4/frexpl.m4: New file.
100395         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
100396         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
100397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
100398         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
100399         (Depends-on): Add frexpl. Remove isnanl-nolibm.
100400         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
100402 2007-03-22  Bruno Haible  <bruno@clisp.org>
100404         * lib/frexpl.c: Share code with lib/frexp.c.
100405         * modules/mathl (Files): Add lib/frexp.c.
100406         (Depends-on): Add isnanl-nolibm.
100408 2007-03-22  Bruno Haible  <bruno@clisp.org>
100410         * modules/printf-frexp (Files): Add m4/frexp.m4.
100411         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
100412         only if the found frexp function actually works.
100414 2007-03-22  Bruno Haible  <bruno@clisp.org>
100416         * lib/frexp.c: Remove older implementation that uses divisions.
100418 2007-03-21  Bruno Haible  <bruno@clisp.org>
100420         * modules/frexp-tests: New file.
100421         * tests/test-frexp.c: New file.
100423         * modules/frexp: New file.
100424         * lib/frexp.c: New file.
100425         * m4/frexp.m4: New file.
100426         * lib/math_.h (frexp): New declaration.
100427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
100428         REPLACE_FREXP.
100429         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
100431 2007-03-21  Bruno Haible  <bruno@clisp.org>
100433         * modules/isnanl-tests: New file.
100434         * tests/test-isnanl.c: New file.
100436         * modules/isnanl: New file.
100437         * lib/isnanl.h: New file.
100438         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
100439         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
100440         gl_FUNC_ISNANL_WORKS.
100441         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
100442         New macros.
100444 2007-03-21  Bruno Haible  <bruno@clisp.org>
100446         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
100447         lib/isnanl.h.
100448         (Include): Update.
100449         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
100450         * lib/vasnprintf.c: Update.
100451         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
100452         tests/test-isnanl.h, remove tests/test-isnanl.c.
100453         (Makefile.am): Update.
100454         * tests/test-isnanl-nolibm.c: New file.
100455         * tests/test-isnanl.h: New file.
100456         * tests/test-isnanl.c: Remove file.
100458 2007-03-21  Jim Meyering  <jim@meyering.net>
100460         When trying to open ".", treat ESTALE like EACCES.
100461         * lib/savewd.c (savewd_save): Resort to forking not just upon
100462         failure with EACCES, but also when errno is ESTALE.
100464 2007-03-20  Bruno Haible  <bruno@clisp.org>
100466         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
100467         Needed on AIX 5.1. Reported by Matthew Woehlke.
100469 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100471         Suggestions by Bruno Haible:
100472         * lib/acl-internal.h: Include "gettext.h" rather than rolling
100473         our own.
100474         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
100475         * modules/acl (Depends-on): Add gettext.
100477 2007-03-19  Bruno Haible  <bruno@clisp.org>
100479         * modules/iconvme: Remove file.
100480         * lib/iconvme.h: Remove file.
100481         * lib/iconvme.c: Remove file.
100482         * m4/iconvme.m4: Remove file.
100484 2007-03-19  Bruno Haible  <bruno@clisp.org>
100486         * doc/relocatable-maint.texi: Break long shell script line.
100487         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
100489 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100491         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
100492         handle file_has_acl.
100493         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
100494         * lib/acl.c: Move header inclusions and related macro defns into
100495         lib/acl-internal.h.
100496         (S_ISLNK): Remove defn, since that's now done for us.
100497         (file_has_acl): Move to lib/file-has-acl.c.
100498         Call acl_trivial if available.  This is the crucial part of the fix.
100499         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
100500         shared within the library.  Rewrite a bit, partly to make it compatible
100501         with the GNU coding style.
100502         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
100503         Remove unnecessary double-quotes.
100504         Don't test for acl_to_text; the build will catch that.
100505         Replace acl_entries if it doesn't exist and it is needed.
100506         Check for -lsec and acl_trivial (as used on Solaris 10).
100507         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
100508         lib/file-has-acl.c.
100509         (Depends-on): Add sys_stat, for S_ISLNK.
100511 2007-03-19  Ben Pfaff  <blp@gnu.org>
100513         * doc/gnulib.texi: Fix typos.
100514         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
100516 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
100518         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
100519         If size is zero here, buf must be zero.
100521 2007-03-19  Simon Josefsson  <simon@josefsson.org>
100523         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
100524         <bruno@clisp.org>.
100526 2007-03-18  Bruno Haible  <bruno@clisp.org>
100528         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
100529         Suggested by Eric Blake.
100531 2007-03-18  Ben Pfaff  <blp@gnu.org>
100533         * doc/relocatable.texi: Recommend using as prefix a directory
100534         that does not exist and will never be created.  Based on
100535         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
100536         and others.
100538 2007-03-17  Bruno Haible  <bruno@clisp.org>
100540         * lib/fchownat.c: Include lchown.h.
100542 2007-03-17  Bruno Haible  <bruno@clisp.org>
100544         Fix endless loop when the given allocated size was > INT_MAX.
100545         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
100546         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
100547         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
100548         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
100549         * lib/sprintf.c (sprintf): Likewise.
100551 2007-03-17  Bruno Haible  <bruno@clisp.org>
100553         * tests/test-argp-2.sh (func_compare): Output a context diff.
100555 2007-03-17  Bruno Haible  <bruno@clisp.org>
100557         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
100558         locale's decimal-point character.
100560 2007-03-17  Bruno Haible  <bruno@clisp.org>
100562         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
100563         before comparing it. Needed because on some platforms (e.g. x86) a
100564         'long double' occupies less bytes than sizeof (long double).
100566 2007-03-17  Bruno Haible  <bruno@clisp.org>
100568         * tests/test-crc.c (main): Make printf statements 64-bit clean.
100569         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
100570         * tests/test-getaddrinfo.c (simple): Likewise.
100571         * tests/test-read-file.c (main): Likewise.
100573 2007-03-17  Bruno Haible  <bruno@clisp.org>
100575         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
100577 2007-03-17  Bruno Haible  <bruno@clisp.org>
100579         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
100580         unused variable.
100582 2007-03-17  Bruno Haible  <bruno@clisp.org>
100584         * tests/test-c-strcasecmp.c: Include c-strcase.h.
100585         * tests/test-c-strncasecmp.c: Likewise.
100587 2007-03-17  Bruno Haible  <bruno@clisp.org>
100589         * modules/stdlib (Depends-on): Add unistd.
100590         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
100591         Needed for MacOS X 10.3.
100593 2007-03-17  Bruno Haible  <bruno@clisp.org>
100595         * lib/unistr/u-strdup.h: Include <stdlib.h>.
100597 2007-03-17  Bruno Haible  <bruno@clisp.org>
100599         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
100601 2007-03-17  Bruno Haible  <bruno@clisp.org>
100603         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
100604         to reflect files copied from gnulib (with or without modifications).
100605         Suggested by Jim Meyering.
100607 2007-03-17  Eric Blake  <ebb9@byu.net>
100609         * NEWS: Document stdlib change from 2007-02-18.
100611 2007-03-17  Jim Meyering  <jim@meyering.net>
100613         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
100614         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
100615         someone uses a name containing shell meta-characters.
100616         Reported by Alfred M. Szmidt.
100618         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
100620 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
100622         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
100623         and copy gettext configuration files only if configure.ac contains
100624         a use of AM_GNU_GETTEXT_VERSION.
100626 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
100628         * build-aux/bootstrap (gnulib_name): New variable.
100629         (gnulib_tool_options): Use it.
100631 2007-03-13  Simon Josefsson  <simon@josefsson.org>
100633         * tests/test-des.c: Use new namespace.
100635 2007-03-15  Bruno Haible  <bruno@clisp.org>
100637         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
100638         Reported by James Youngman <jay@gnu.org>.
100640 2007-03-15  Bruno Haible  <bruno@clisp.org>
100642         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
100643         declared prototype. Needed with cc on OSF/1 5.1.
100645 2007-03-15  Bruno Haible  <bruno@clisp.org>
100647         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
100648         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
100649         (struct gl_list_implementation): Add dispose_fn argument to the
100650         'create_empty', 'create' methods.
100651         (struct gl_list_impl_base): Add field 'dispose_fn'.
100652         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
100653         argument.
100654         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
100655         dispose_fn argument.
100656         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
100657         dispose_fn on the dropped values.
100658         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
100659         dispose_fn argument.
100660         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
100661         dropped values.
100662         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
100663         (gl_tree_remove_node): Call dispose_fn on the dropped value.
100664         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
100665         (gl_tree_remove_node): Call dispose_fn on the dropped value.
100666         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
100667         argument.
100668         (gl_tree_list_free): Call dispose_fn on the dropped values.
100669         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
100670         the dropped values.
100671         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
100672         Add dispose_fn argument.
100673         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
100674         Call dispose_fn on the dropped values.
100675         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
100676         Add dispose_fn argument.
100677         (gl_sublist_create): Initialize the 'dispose_fn' field.
100678         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
100679         * tests/test-array_list.c (main): Update.
100680         * tests/test-carray_list.c (main): Update.
100681         * tests/test-avltree_list.c (main): Update.
100682         * tests/test-rbtree_list.c (main): Update.
100683         * tests/test-avltreehash_list.c (main): Update.
100684         * tests/test-rbtreehash_list.c (main): Update.
100685         * tests/test-linked_list.c (main): Update.
100686         * tests/test-linkedhash_list.c (main): Update.
100687         * tests/test-array_oset.c (main): Update.
100689 2007-03-15  Bruno Haible  <bruno@clisp.org>
100691         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
100692         (gl_oset_create_empty): Add dispose_fn argument.
100693         (struct gl_oset_implementation): Add dispose_fn argument to
100694         'create_empty' method.
100695         (struct gl_oset_impl_base): Add dispose_fn field.
100696         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
100697         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
100698         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
100699         values.
100700         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
100701         (gl_tree_oset_free): Call dispose_fn on the dropped values.
100702         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
100703         dropped value.
100704         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
100705         dropped value.
100706         * tests/test-array_oset.c (main): Update.
100707         * tests/test-avltree_oset.c (main): Update.
100708         * tests/test-rbtree_oset.c (main): Update.
100709         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
100711 2007-03-13  Bruno Haible  <bruno@clisp.org>
100713         * tests/test-stdbool.c (i): Update after last patch.
100715 2007-03-12  Bruno Haible  <bruno@clisp.org>
100717         * lib/quotearg.c: Include <wctype.h> early, before the definition of
100718         the iswprint macro. Needed on Solaris 2.5.1.
100720 2007-03-12  Bruno Haible  <bruno@clisp.org>
100722         * tests/test-printf-frexp.c (main): Declare x as volatile.
100724 2007-03-12  Simon Josefsson  <simon@josefsson.org>
100726         * doc/gnulib.texi (Build robot for gnulib): New section.
100728 2007-03-12  Jim Meyering  <jim@meyering.net>
100730         * build-aux/bootstrap: New file.
100731         * build-aux/bootstrap.conf: New file, from coreutils.
100733 2007-03-11  Bruno Haible  <bruno@clisp.org>
100735         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
100737 2007-03-12  Simon Josefsson  <simon@josefsson.org>
100739         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
100740         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
100741         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
100743 2007-03-11  Bruno Haible  <bruno@clisp.org>
100745         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
100746         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
100748 2007-03-11  Bruno Haible  <bruno@clisp.org>
100750         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
100751         formula. Needed for SunPRO C 5.0.
100753 2007-03-11  Bruno Haible  <bruno@clisp.org>
100755         * modules/long-options (Depends-on): Add getopt.
100757 2007-03-11  Bruno Haible  <bruno@clisp.org>
100759         * modules/modechange (Depends-on): Add stdbool.
100761 2007-03-11  Bruno Haible  <bruno@clisp.org>
100763         * modules/i-ring (Depends-on): Add stdbool.
100765 2007-03-11  Bruno Haible  <bruno@clisp.org>
100767         * modules/gc-des (Depends-on): Add stdbool.
100769 2007-03-11  Bruno Haible  <bruno@clisp.org>
100771         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
100773 2007-03-11  Bruno Haible  <bruno@clisp.org>
100775         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
100777 2007-03-11  Bruno Haible  <bruno@clisp.org>
100779         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
100781 2007-03-11  Bruno Haible  <bruno@clisp.org>
100783         * lib/vasnprintf.c (sprintf): Undefine.
100785 2007-03-11  Bruno Haible  <bruno@clisp.org>
100787         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
100788         initializers in SunPRO C and Compaq C compilers.
100790 2007-03-11  Bruno Haible  <bruno@clisp.org>
100792         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
100793         decrementing code ANSI C compliant.
100795 2007-03-11  Bruno Haible  <bruno@clisp.org>
100797         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
100798         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
100800 2007-03-11  Bruno Haible  <bruno@clisp.org>
100802         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
100803         <stdbool.h> substitute doesn't pass.
100805 2007-03-11  Bruno Haible  <bruno@clisp.org>
100807         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
100809 2007-03-11  Bruno Haible  <bruno@clisp.org>
100811         * gnulib-tool (func_create_megatestdir): Create also an autobuild
100812         script, for submission to autobuild.josefsson.org.
100814 2007-03-10  Bruno Haible  <bruno@clisp.org>
100816         * modules/canonicalize-lgpl-tests: New file.
100817         * tests/test-canonicalize-lgpl.sh: New file.
100818         * tests/test-canonicalize-lgpl.c: New file.
100820         * modules/c-strcase-tests: New file.
100821         * tests/test-c-strcase.sh: New file.
100822         * tests/test-c-strcasecmp.c: New file.
100823         * tests/test-c-strncasecmp.c: New file.
100825         * modules/atexit-tests: New file.
100826         * tests/test-atexit.sh: New file.
100827         * tests/test-atexit.c: New file.
100829 2007-03-10  Bruno Haible  <bruno@clisp.org>
100831         * tests/test-binary-io.sh: Use temporary filenames that are not so
100832         likely to clash with those of other tests (in a parallel make).
100833         * tests/test-binary-io.c: Likewise.
100835 2007-03-10  Bruno Haible  <bruno@clisp.org>
100837         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
100838         fallback; use #error instead.
100839         Suggested by Simon Josefsson.
100841 2007-03-10  Bruno Haible  <bruno@clisp.org>
100843         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
100844         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
100845         first and the last.
100847 2007-03-10  Bruno Haible  <bruno@clisp.org>
100849         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
100851 2007-03-10  Bruno Haible  <bruno@clisp.org>
100853         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
100854         "make distcheck".
100855         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
100856         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
100857         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
100859 2007-03-10  Bruno Haible  <bruno@clisp.org>
100861         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
100862         variable.
100863         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
100864         variable.
100866 2007-03-09  Eric Blake  <ebb9@byu.net>
100867         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
100869         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
100870         types are not being provided by gnulib.
100871         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
100872         types are supported.
100874 2007-03-10  Bruno Haible  <bruno@clisp.org>
100876         * lib/stdio_.h (__attribute__): New macro.
100877         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
100878         vsprintf): Specify __attribute__ __format__ for GCC.
100879         Suggested by Eric Blake.
100881 2007-03-09  Bruno Haible  <bruno@clisp.org>
100883         * modules/printf-posix-tests: New file.
100884         * tests/test-printf-posix.sh: New file.
100885         * tests/test-printf-posix.c: New file.
100887         * modules/printf-posix: New file.
100888         * lib/printf.c: New file.
100889         * m4/printf-posix-rpl.m4: New file.
100890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
100891         REPLACE_PRINTF.
100892         * lib/stdio_.h (printf): New declaration.
100893         (format, __format__, ____printf____, ____scanf____, ____strftime____,
100894         ____strfmon____): New macros.
100895         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
100896         REPLACE_PRINTF.
100898 2007-03-09  Bruno Haible  <bruno@clisp.org>
100900         * tests/test-vasnprintf-posix2.sh: New file.
100901         * tests/test-vasnprintf-posix2.c: New file.
100902         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
100903         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
100904         (Makefile.am): Activate test-vasnprintf-posix2.sh.
100906         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
100907         a locale dependent decimal point, rather than always '.'.
100909 2007-03-09  Eric Blake  <ebb9@byu.net>
100911         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
100912         spite of platforms like Tandem/NSK that define it to -1.
100914 2007-03-08  Bruno Haible  <bruno@clisp.org>
100916         * modules/vprintf-posix-tests: New file.
100917         * tests/test-vprintf-posix.sh: New file.
100918         * tests/test-vprintf-posix.c: New file.
100919         * tests/test-printf-posix.h: New file.
100921         * modules/vprintf-posix: New file.
100922         * lib/vprintf.c: New file.
100923         * m4/vprintf-posix.m4: New file.
100924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
100925         REPLACE_VPRINTF.
100926         * lib/stdio_.h (vprintf): New declaration.
100927         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
100928         REPLACE_VPRINTF.
100930 2007-03-08  Bruno Haible  <bruno@clisp.org>
100932         * modules/fprintf-posix-tests: New file.
100933         * tests/test-fprintf-posix.sh: New file.
100934         * tests/test-fprintf-posix.c: New file.
100936         * modules/fprintf-posix: New file.
100937         * lib/fprintf.c: New file.
100938         * m4/fprintf-posix.m4: New file.
100939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
100940         REPLACE_FPRINTF.
100941         * lib/stdio_.h (fprintf): New declaration.
100942         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
100943         REPLACE_FPRINTF.
100945 2007-03-08  Bruno Haible  <bruno@clisp.org>
100947         * modules/vfprintf-posix-tests: New file.
100948         * tests/test-vfprintf-posix.sh: New file.
100949         * tests/test-vfprintf-posix.c: New file.
100950         * tests/test-fprintf-posix.h: New file.
100951         * tests/test-fprintf-posix.out: New file.
100953         * modules/vfprintf-posix: New file.
100954         * lib/vfprintf.c: New file.
100955         * m4/vfprintf-posix.m4: New file.
100956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
100957         REPLACE_VFPRINTF.
100958         * lib/stdio_.h (vfprintf): New declaration.
100959         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
100960         REPLACE_VFPRINTF.
100962 2007-03-08  Bruno Haible  <bruno@clisp.org>
100964         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
100966 2007-03-08  Bruno Haible  <bruno@clisp.org>
100968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
100969         instead of 'expr' invocations.
100970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100975         Suggested by Paul Eggert.
100977 2007-03-08  Bruno Haible  <bruno@clisp.org>
100979         * modules/fseterr-tests: New file.
100980         * tests/test-fseterr.c: New file.
100982         * modules/fseterr: New file.
100983         * lib/fseterr.h: New file.
100984         * lib/fseterr.c: New file.
100986 2007-03-08  Bruno Haible  <bruno@clisp.org>
100988         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
100989         * lib/getopt_.h: Likewise.
100990         * lib/mbswidth.h: Likewise.
100991         * lib/setenv.h: Likewise.
100992         * lib/vasnprintf.h: Likewise.
100993         * lib/vasprintf.h: Likewise.
100994         * lib/verror.h: Likewise.
100995         * lib/xsetenv.h: Likewise.
100996         * lib/xvasprintf.h: Likewise.
100998 2007-03-08  Jim Meyering  <jim@meyering.net>
101000         * users.txt: Add parted.
101002         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
101004 2007-03-07  Bruno Haible  <bruno@clisp.org>
101006         * m4/printf.m4: Make the shell script snippets copy&pastable.
101008 2007-03-02  Bruno Haible  <bruno@clisp.org>
101010         * lib/netinet_in_.h: New file.
101011         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
101012         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
101013         * modules/netinet_in (Files): Add lib/netinet_in_.h.
101014         (Depends-on): Add absolute-header.
101015         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
101016         into netinet/in.h.
101018 2007-03-03  Bruno Haible  <bruno@clisp.org>
101020         * lib/sys_select_.h: New file.
101021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
101022         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
101023         * modules/sys_select (Files): Add lib/sys_select_.h.
101024         (Depends-on): Add absolute-header.
101025         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
101026         into sys/select.h.
101028 2007-03-02  Bruno Haible  <bruno@clisp.org>
101030         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
101031         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
101032         values.
101033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
101034         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
101035         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
101036         * modules/sys_socket (Depends-on): Add absolute-header.
101037         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
101038         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
101039         (Include): Remove requirement of inclusion of <sys/types.h>.
101041 2007-03-02  Bruno Haible  <bruno@clisp.org>
101043         * lib/byteswap_.h (bswap_32): Fix formula.
101045 2007-03-06  Bruno Haible  <bruno@clisp.org>
101047         * modules/sprintf-posix-tests: New file.
101048         * tests/test-sprintf-posix.c: New file.
101050         * modules/sprintf-posix: New file.
101051         * lib/sprintf.c: New file.
101052         * m4/sprintf-posix.m4: New file.
101053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
101054         REPLACE_SPRINTF.
101055         * lib/stdio_.h (sprintf): New declaration.
101056         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
101057         REPLACE_SPRINTF.
101059 2007-03-06  Bruno Haible  <bruno@clisp.org>
101061         * modules/vsprintf-posix-tests: New file.
101062         * tests/test-vsprintf-posix.c: New file.
101063         * tests/test-sprintf-posix.h: New file.
101065         * modules/vsprintf-posix: New file.
101066         * lib/vsprintf.c: New file.
101067         * m4/vsprintf-posix.m4: New file.
101068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
101069         REPLACE_VSPRINTF.
101070         * lib/stdio_.h (vsprintf): New declaration.
101071         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
101072         REPLACE_VSPRINTF.
101074 2007-03-06  Bruno Haible  <bruno@clisp.org>
101076         * modules/vsnprintf (Depend-on): Remove minmax.
101078 2007-03-06  Bruno Haible  <bruno@clisp.org>
101080         * modules/snprintf-posix-tests: New file.
101081         * tests/test-snprintf-posix.c: New file.
101083         * modules/snprintf-posix: New file.
101084         * m4/snprintf-posix.m4: New file.
101085         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
101086         gl_FUNC_SNPRINTF.
101087         (gl_FUNC_SNPRINTF): Invoke it.
101088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
101089         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
101090         is set.
101091         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
101093 2007-03-06  Bruno Haible  <bruno@clisp.org>
101095         * modules/vsnprintf-posix-tests: New file.
101096         * tests/test-vsnprintf-posix.c: New file.
101097         * tests/test-snprintf-posix.h: New file.
101099         * modules/vsnprintf-posix: New file.
101100         * m4/vsnprintf-posix.m4: New file.
101101         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
101102         gl_FUNC_VSNPRINTF.
101103         (gl_FUNC_VSNPRINTF): Invoke it.
101104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
101105         * lib/stdio_.h (vsnprintf): Define as a replacement if
101106         REPLACE_VSNPRINTF is set.
101107         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
101109 2007-03-06  Bruno Haible  <bruno@clisp.org>
101111         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
101112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
101114 2007-03-06  Bruno Haible  <bruno@clisp.org>
101116         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
101117         (asinl): Declare also if HAVE_DECL_ASINL is set.
101118         (atanl): Declare also if HAVE_DECL_ATANL is set.
101119         (ceill): Declare also if HAVE_DECL_CEILL is set.
101120         (cosl): Declare also if HAVE_DECL_COSL is set.
101121         (expl): Declare also if HAVE_DECL_EXPL is set.
101122         (floorl): Declare also if HAVE_DECL_FLOORL is set.
101123         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
101124         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
101125         (logl): Declare also if HAVE_DECL_LOGL is set.
101126         (sinl): Declare also if HAVE_DECL_SINL is set.
101127         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
101128         (tanl): Declare also if HAVE_DECL_TANL is set.
101129         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
101130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
101131         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
101132         declaration of frexpl, ldexpl.
101133         * modules/printf-frexpl (Depends-on): Add math.
101134         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
101136 2007-03-05  Bruno Haible  <bruno@clisp.org>
101138         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
101139         frexpl and ldexpl are declared.
101140         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
101142 2007-03-05  Bruno Haible  <bruno@clisp.org>
101144         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
101145         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
101147 2007-03-05  Bruno Haible  <bruno@clisp.org>
101149         * lib/stdio_.h: Include <stddef.h>.
101151 2007-03-05  Bruno Haible  <bruno@clisp.org>
101153         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
101155 2007-03-05  Bruno Haible  <bruno@clisp.org>
101157         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
101158         NetBSD 4, from Ralf Wildenhues.
101160 2007-03-04  Bruno Haible  <bruno@clisp.org>
101162         * lib/vasprintf.h: Update #if logic for the case when the functions
101163         exist but are overridden.
101165 2007-03-04  Bruno Haible  <bruno@clisp.org>
101167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
101168         implementations: glibc-2.4 and MacOS X 10.3.
101169         * tests/test-vasnprintf-posix.c (test_function): Test also the case
101170         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
101171         * tests/test-vasprintf-posix.c (test_function): Likewise.
101173 2007-03-04  Bruno Haible  <bruno@clisp.org>
101175         * modules/vasprintf-posix-tests: New file.
101176         * tests/test-vasprintf-posix.c: New file.
101178         * modules/vasprintf-posix: New file.
101179         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
101180         defined.
101181         * m4/vasprintf-posix.m4: New file.
101182         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
101183         gl_FUNC_VASPRINTF.
101184         (gl_FUNC_VASPRINTF): Invoke it.
101185         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
101186         here.
101187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
101189 2007-03-04  Bruno Haible  <bruno@clisp.org>
101191         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
101192         REPLACE_GETTIMEOFDAY.
101193         * modules/sys_time (Makefile.am): Likewise.
101194         * m4/sys_time_h.m4: Likewise.
101195         * m4/gettimeofday.m4: Likewise.
101197 2007-03-04  Bruno Haible  <bruno@clisp.org>
101199         * modules/vasnprintf-posix-tests: New file.
101200         * tests/test-vasnprintf-posix.c: New file.
101202         * modules/vasnprintf-posix: New file.
101203         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
101204         printf-frexpl.h.
101205         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
101206         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
101207         REPLACE_VASNPRINTF is defined.
101208         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
101209         gl_FUNC_VASNPRINTF.
101210         (gl_FUNC_VASNPRINTF): Invoke it.
101211         * m4/vasnprintf-posix.m4: New file.
101212         * m4/printf.m4: New file.
101214 2007-03-04  Bruno Haible  <bruno@clisp.org>
101216         Compile progreloc.c only if --enable-relocatable is specified.
101217         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
101218         if --enable-relocatable was specified.
101219         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
101220         lib_SOURCES.
101222 2007-03-04  Jim Meyering  <jim@meyering.net>
101224         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
101225         Use it consistently, rather than enumerating errno constants.
101227 2007-03-04  Bruno Haible  <bruno@clisp.org>
101229         * modules/xvasprintf-tests: New file.
101230         * tests/test-xvasprintf.c: New file.
101232         * modules/vasprintf-tests: New file.
101233         * tests/test-vasprintf.c: New file.
101235         * modules/vasnprintf-tests: New file.
101236         * tests/test-vasnprintf.c: New file.
101238         * modules/vsnprintf-tests: New file.
101239         * tests/test-vsnprintf.c: New file.
101241         * modules/snprintf-tests: New file.
101242         * tests/test-snprintf.c: New file.
101244 2007-03-04  Bruno Haible  <bruno@clisp.org>
101246         Compile relocatable.c only if --enable-relocatable is specified.
101247         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
101248         gl_RELOCATABLE_LIBRARY.
101249         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
101250         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
101251         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
101252         gl_RELOCATABLE_LIBRARY.
101253         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
101254         (Makefile.am): Remove lib_SOURCES.
101255         * modules/relocatable-lib-lgpl (configure.ac): Invoke
101256         gl_RELOCATABLE_LIBRARY.
101257         (Makefile.am): Remove lib_SOURCES.
101258         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
101259         always.
101260         * modules/relocatable-prog-wrapper (configure.ac): Invoke
101261         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
101263 2007-03-04  Bruno Haible  <bruno@clisp.org>
101265         * modules/argmatch-tests: New file.
101266         * tests/test-argmatch.c: New file.
101268         * tests/test-allocsa.c (main): Halve the number of loop runs.
101270         * modules/alloca-opt-tests: New file.
101271         * tests/test-alloca-opt.c: New file.
101273 2007-03-04  Jim Meyering  <jim@meyering.net>
101275         Work around difference between Linux ACLs and Solaris 10 ZFS.
101276         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
101277         for EINVAL.
101279 2007-03-03  Bruno Haible  <bruno@clisp.org>
101281         * modules/relocatable-prog (Depends-on): Add back progreloc's
101282         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
101284 2007-03-03  Bruno Haible  <bruno@clisp.org>
101286         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
101287         * modules/relocatable-lib: New file.
101289 2007-03-03  Bruno Haible  <bruno@clisp.org>
101291         * modules/relocatable-prog: Renamed from modules/relocatable.
101292         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
101294 2007-03-03  Bruno Haible  <bruno@clisp.org>
101296         * modules/relocatable-script (Files): Add doc/relocatable.texi,
101297         m4/relocatable-lib.m4.
101298         (Depends-on): Remove 'relocatable'.
101299         (configure.ac): Add gl_RELOCATABLE_NOP.
101301 2007-03-03  Bruno Haible  <bruno@clisp.org>
101303         * modules/relocatable-prog-wrapper: New file.
101304         * modules/relocatable (Depends-on): Add it. Remove all other
101305         dependencies except progname.
101306         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
101308         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
101309         (gl_FUNC_STRERROR): Nop.
101310         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
101312         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
101313         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
101315         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
101316         (gl_FUNC_READLINK): Update.
101318         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
101320 2007-03-03  Bruno Haible  <bruno@clisp.org>
101322         * lib/xreadlink.c: Include <unistd.h> unconditionally.
101323         * modules/xreadlink (Depends-on): Add unistd.
101324         * modules/xreadlink-with-size (Depends-on): Likewise.
101326 2007-03-03  Bruno Haible  <bruno@clisp.org>
101328         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
101329         extracted from gt_FUNC_SETENV.
101330         (gt_FUNC_SETENV): Remove macro.
101331         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
101332         remove gt_FUNC_SETENV.
101334 2007-03-03  Bruno Haible  <bruno@clisp.org>
101336         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
101337         ENABLE_RELOCATABLE here.
101338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
101340 2007-03-03  Bruno Haible  <bruno@clisp.org>
101342         * modules/rbtreehash-list-tests (Depends-on): Add progname.
101343         * tests/test-rbtreehash_list.c: Include progname.h.
101344         (main): Call set_program_name.
101346         * modules/rbtree-oset-tests (Depends-on): Add progname.
101347         * tests/test-rbtree_oset.c: Include progname.h.
101348         (main): Call set_program_name.
101350         * modules/rbtree-list-tests (Depends-on): Add progname.
101351         * tests/test-rbtree_list.c: Include progname.h.
101352         (main): Call set_program_name.
101354         * modules/linked-list-tests (Depends-on): Add progname.
101355         * tests/test-linked_list.c: Include progname.h.
101356         (main): Call set_program_name.
101358 2007-03-03  Bruno Haible  <bruno@clisp.org>
101360         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
101361         All uses of __restrict changed to _Restrict_.
101362         * lib/glob_.h (__restrict): Remove macro.
101364 2007-03-02  Bruno Haible  <bruno@clisp.org>
101366         * modules/gettext (configure.ac): Require gettext infrastructure
101367         from version 0.16.1.
101369 2007-03-02  Bruno Haible  <bruno@clisp.org>
101371         * modules/linkedhash-list-tests (Depends-on): Add progname.
101372         * tests/test-linkedhash_list.c: Include progname.h.
101373         (main): Call set_program_name.
101375         * modules/carray-list-tests (Depends-on): Add progname.
101376         * tests/test-carray_list.c: Include progname.h.
101377         (main): Call set_program_name.
101379         * modules/avltreehash-list-tests (Depends-on): Add progname.
101380         * tests/test-avltreehash_list.c: Include progname.h.
101381         (main): Call set_program_name.
101383         * modules/avltree-oset-tests (Depends-on): Add progname.
101384         * tests/test-avltree_oset.c: Include progname.h.
101385         (main): Call set_program_name.
101387         * modules/avltree-list-tests (Depends-on): Add progname.
101388         * tests/test-avltree_list.c: Include progname.h.
101389         (main): Call set_program_name.
101391         * modules/array-oset-tests (Depends-on): Add progname.
101392         * tests/test-array_oset.c: Include progname.h.
101393         (main): Call set_program_name.
101395         * modules/array-list-tests (Depends-on): Add progname.
101396         * tests/test-array_list.c: Include progname.h.
101397         (main): Call set_program_name.
101399         * modules/argp-tests (Depends-on): Add progname.
101400         * tests/test-argp.c: Include argp.h first. Include progname.h.
101401         (main): Call set_program_name.
101403 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
101405         * doc/gnulib-tool.texi (Initial import): Reword description of
101406         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
101407         limited effect even if defined after the first system include.
101409 2007-03-01  Bruno Haible  <bruno@clisp.org>
101411         * build-aux/config.libpath: Update to libtool-1.5.22.
101412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
101414 2007-03-01  Bruno Haible  <bruno@clisp.org>
101416         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
101417         foo_CFLAGS.
101418         Reported by Ralf Wildenhues.
101420 2007-03-01  Bruno Haible  <bruno@clisp.org>
101422         * build-aux/install-reloc: Remove object files left over by some
101423         compilers.
101424         Reported by Ralf Wildenhues.
101426 2007-03-01  Bruno Haible  <bruno@clisp.org>
101428         * build-aux/install-reloc: Break long lines.
101430 2007-03-01  Bruno Haible  <bruno@clisp.org>
101432         * doc/relocatable.texi: Document that it may not work on OpenBSD.
101433         Reported by Ralf Wildenhues.
101435 2007-03-01  Bruno Haible  <bruno@clisp.org>
101437         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
101438         include ordering constraints.
101440 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101442         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
101443         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
101444         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
101445         as another example.
101446         * lib/time_.h: Fix misspelling.
101447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
101448         Require gl_HEADER_TIME_H_DEFAULTS.
101449         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
101450         * m4/time_r.m4 (gl_TIME_R): Likewise.
101451         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
101453 2007-03-01  Bruno Haible  <bruno@clisp.org>
101455         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
101456         * m4/utimens.m4 (gl_UTIMENS): Likewise.
101458 2007-03-01  Jim Meyering  <jim@meyering.net>
101460         * modules/xreadlink (Maintainer): Add my name.
101461         * modules/xreadlink-with-size (Depends-on): Alphabetize.
101463 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
101464             Bruno Haible  <bruno@clisp.org>
101466         * build-aux/install-reloc: Compile also c-ctype.c.
101467         * build-aux/relocatable.sh.in: New file.
101468         * doc/relocatable.texi: New file.
101469         * doc/relocatable-maint.texi: New file.
101470         * doc/gnulib.texi: Include relocatable-maint.texi.
101471         * lib/progreloc.c: Include unistd.h unconditionally.
101472         * lib/relocwrapper.c: Include unistd.h unconditionally.
101473         Include c-ctype.h.
101474         (add_dotbin): Use c_tolower.
101475         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
101476         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
101477         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
101478         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
101479         to m4/relocatable-lib.m4.
101480         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
101481         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
101482         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
101483         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
101484         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
101485         * modules/relocatable: New file.
101486         * modules/relocatable-lib: New file.
101487         * modules/relocatable-script: New file.
101489 2007-02-28  Bruno Haible  <bruno@clisp.org>
101491         Import --enable-relocatable infrastructure.
101492         * build-aux/config.libpath: New file, from GNU gettext.
101493         * build-aux/install-reloc: New file, from GNU gettext.
101494         * build-aux/reloc-ldflags: New file, from GNU gettext.
101495         * lib/relocatable.h: New file, from GNU gettext.
101496         * lib/relocatable.c: New file, from GNU gettext.
101497         * lib/relocwrapper.c: New file, from GNU gettext.
101498         * m4/relocatable.m4: New file, from GNU gettext.
101500 2007-02-28  Bruno Haible  <bruno@clisp.org>
101502         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
101504         * modules/xreadlink: New file, from GNU gettext with modifications.
101505         * lib/xreadlink.c: New file, from GNU gettext.
101506         * lib/xreadlink.h: Add comments.
101507         (xreadlink): New declaration.
101509         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
101510         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
101511         lib/xreadlink-with-size.c.
101512         (configure.ac): Remove gl_XREADLINK invocation.
101513         (Makefile.am): Augment lib_SOURCES.
101514         * m4/xreadlink.m4: Remove file.
101515         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
101516         (xreadlink_with_size): Renamed from xreadink.
101517         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
101518         * modules/canonicalize (Depends-on): Replace xreadlink with
101519         xreadlink-with-size.
101520         * lib/canonicalize.c (canonicalize_filename_mode): Update.
101522 2007-02-25  Jim Meyering  <jim@meyering.net>
101524         * build-aux/announce-gen: When complaining about excess arguments,
101525         list them.
101527 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101529         * README: Document signed integer overflow situation more
101530         accurately.
101532 2007-02-25  Bruno Haible  <bruno@clisp.org>
101534         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
101535         'a' or 'A' conversion.
101537 2007-02-25  Bruno Haible  <bruno@clisp.org>
101539         * modules/filename: Renamed from modules/pathname.
101540         (Files): Replace lib/pathname.h with lib/filename.h. Replace
101541         lib/concatpath.c with lib/concat-filename.c.
101542         (Makefile.am): Update.
101543         (Include): Replace pathname.h with filename.h.
101544         * lib/filename.h: Renamed from lib/pathname.h.
101545         (concatenated_filename): Renamed from concatenated_pathname.
101546         * lib/concat-filename.c: Renamed from lib/concatpath.c.
101547         (concatenated_filename): Renamed from concatenated_pathname.
101548         * lib/findprog.c: Include filename.h instead of pathname.h.
101549         (find_in_path): Update.
101550         * lib/javacomp.c: Include filename.h instead of pathname.h.
101551         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
101552         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
101553         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
101554         is_oldgcj_14_13_usable, is_javac_usable): Update.
101555         * lib/javaexec.c: Include filename.h instead of pathname.h.
101556         (execute_java_class): Update.
101557         * modules/findprog: Update.
101558         * modules/javacomp: Update.
101559         * modules/javaexec: Update.
101560         * MODULES.html.sh (File system functions): Add 'filename', remove
101561         'pathname'.
101563 2007-02-25  Bruno Haible  <bruno@clisp.org>
101565         * modules/printf-frexpl-tests: New file.
101566         * tests/test-printf-frexpl.c: New file.
101568         * modules/printf-frexpl: New file.
101569         * lib/printf-frexpl.h: New file.
101570         * lib/printf-frexpl.c: New file.
101571         * m4/printf-frexpl.m4: New file.
101573 2007-02-25  Bruno Haible  <bruno@clisp.org>
101575         * modules/printf-frexp-tests: New file.
101576         * tests/test-printf-frexp.c: New file.
101578         * modules/printf-frexp: New file.
101579         * lib/printf-frexp.h: New file.
101580         * lib/printf-frexp.c: New file.
101581         * m4/printf-frexp.m4: New file.
101583 2007-02-25  Bruno Haible  <bruno@clisp.org>
101585         Assume automake >= 1.10 for the tests.
101586         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
101587         * modules/arctwo-tests: Likewise.
101588         * modules/argp-tests: Likewise.
101589         * modules/avltree-list-tests: Likewise.
101590         * modules/avltree-oset-tests: Likewise.
101591         * modules/avltreehash-list-tests: Likewise.
101592         * modules/carray-list-tests: Likewise.
101593         * modules/crc-tests: Likewise.
101594         * modules/des-tests: Likewise.
101595         * modules/gc-arcfour-tests: Likewise.
101596         * modules/gc-arctwo-tests: Likewise.
101597         * modules/gc-des-tests: Likewise.
101598         * modules/gc-hmac-md5-tests: Likewise.
101599         * modules/gc-hmac-sha1-tests: Likewise.
101600         * modules/gc-md2-tests: Likewise.
101601         * modules/gc-md4-tests: Likewise.
101602         * modules/gc-md5-tests: Likewise.
101603         * modules/gc-pbkdf2-sha1-tests: Likewise.
101604         * modules/gc-rijndael-tests: Likewise.
101605         * modules/gc-sha1-tests: Likewise.
101606         * modules/gc-tests: Likewise.
101607         * modules/getaddrinfo-tests: Likewise.
101608         * modules/hmac-md5-tests: Likewise.
101609         * modules/hmac-sha1-tests: Likewise.
101610         * modules/linked-list-tests: Likewise.
101611         * modules/linkedhash-list-tests: Likewise.
101612         * modules/lock-tests: Likewise.
101613         * modules/md2-tests: Likewise.
101614         * modules/md4-tests: Likewise.
101615         * modules/md5-tests: Likewise.
101616         * modules/rbtree-list-tests: Likewise.
101617         * modules/rbtree-oset-tests: Likewise.
101618         * modules/rbtreehash-list-tests: Likewise.
101619         * modules/read-file-tests: Likewise.
101620         * modules/rijndael-tests: Likewise.
101621         * modules/stdint-tests: Likewise.
101622         * modules/tls-tests: Likewise.
101624 2007-02-24  Bruno Haible  <bruno@clisp.org>
101626         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
101627         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
101628         function; instead check whether isnan with a double argument links.
101629         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
101630         function; instead check whether isnan with a 'long double' argument
101631         links.
101632         Reported by Eric Blake <ebb9@byu.net>.
101634 2007-02-24  Bruno Haible  <bruno@clisp.org>
101636         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
101637         defined.
101638         * lib/isnanl.c: Remove all code. Just include isnan.c.
101639         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
101641 2007-02-25  Jim Meyering  <jim@meyering.net>
101643         Avoid conflicting types for 'unsetenv' on FreeBSD.
101644         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
101645         conflicting with FreeBSD's (5.0 and 6.1) function declaration
101646         in stdlib.h.
101648 2007-02-24  Bruno Haible  <bruno@clisp.org>
101650         * modules/isnanl-nolibm-tests: New file.
101651         * tests/test-isnanl.c: New file.
101653         * modules/isnanl-nolibm: New file.
101654         * lib/isnanl.h: New file.
101655         * lib/isnanl.c: New file.
101656         * m4/isnanl.m4: New file.
101658 2007-02-24  Bruno Haible  <bruno@clisp.org>
101660         * modules/isnan-nolibm-tests: New file.
101661         * tests/test-isnan.c: New file.
101663         * modules/isnan-nolibm: New file.
101664         * lib/isnan.h: New file.
101665         * lib/isnan.c: New file.
101666         * m4/isnan.m4: New file.
101668 2007-02-24  Bruno Haible  <bruno@clisp.org>
101670         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
101671         assume that an exponent fits in 20 bits.
101673 2007-02-24  Jim Meyering  <jim@meyering.net>
101675         * m4/regex.m4: Update the description of the configure-time option,
101676         --without-included-regex, to state accurately what the defaults are,
101677         and perhaps to give people an idea why using this option is risky.
101679 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
101682         loops on small arguments.  This attempts to avoid the problem
101683         Bruno Haible reported for AIX 4.3.2 in
101684         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
101686 2007-02-23  Bruno Haible  <bruno@clisp.org>
101688         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
101689         Needed for help2man.
101691 2007-02-23  Karl Berry  <karl@gnu.org>
101693         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
101694         exists, foo.h should be cvs-ignored, not committed.
101696 2007-02-23  Eric Blake  <ebb9@byu.net>
101698         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
101699         * lib/stat-time.h (includes): Likewise.
101700         * lib/utimecmp.c (includes): Likewise.
101701         * lib/utimens.h (includes): Likewise.
101702         * lib/getdate.y (includes): Also include "timespec.h" for use
101703         internal to the module.
101704         * modules/utimens (Depends-on): Revert yesterday's patch.
101705         * modules/nanosleep (Depends-on): Add missing dependency.
101707 2007-02-22  Bruno Haible  <bruno@clisp.org>
101709         * lib/glob.c: Don't include getlogin_r.h.
101711 2007-02-22  Jim Meyering  <jim@meyering.net>
101713         * modules/utimens (Depends-on): Add timespec, required for
101714         utimens.h's inclusion of timespec.h.
101716 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
101718         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
101719         long unreadable paths in GNU/Linux.  Problem reported by Andreas
101720         Schwab in
101721         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
101722         I'll try to think of a better way to fix the Solaris problem.
101724         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
101725         like glibc; on Solaris 10, it fails with errno == EINVAL.
101726         POSIX says the behavior is unspecified if the first argument is NULL,
101727         so play it safe and never pass NULL to the system getcwd.
101729 2007-02-21  Jim Meyering  <jim@meyering.net>
101731         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
101732         of gettimeofday.  It would conflict with the one now always
101733         provided via sys_time_.h.  Reported by Matthew Woehlke, as
101734         an IRIX 6.5 build failure.
101736 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101738         Minor fixups to port to Solaris 10 with Sun C 5.8.
101739         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
101740         * modules/getcwd (Depends-on): Add dirfd.
101741         * lib/putenv.c (putenv): #undef it.
101742         (rpl_putenv): New decl.
101743         (malloc, free): Include <stdlib.h> rather than prototyping separately.
101745 2007-02-20  Bruno Haible  <bruno@clisp.org>
101747         * modules/stdio-tests: New file.
101748         * tests/test-stdio.c: New file.
101750         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
101751         (Depends-on): Add stdio.
101752         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
101753         (Include): Use <stdio.h> instead of vsnprintf.h.
101754         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
101755         HAVE_DECL_VSNPRINTF.
101756         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
101758         * modules/snprintf (Files): Remove lib/snprintf.h.
101759         (Depends-on): Add stdio.
101760         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
101761         (Include): Use <stdio.h> instead of snprintf.h.
101762         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
101763         HAVE_DECL_SNPRINTF.
101764         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
101765         * lib/getaddrinfo.c: Likewise.
101767         * modules/stdio: New file.
101768         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
101769         * lib/snprintf.h: Remove file.
101770         * lib/vsnprintf.h: Remove file.
101771         * lib/.cppi-disable: Remove snprintf.h.
101772         * m4/stdio_h.m4: New file.
101773         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
101775 2007-02-20  Jim Meyering  <jim@meyering.net>
101777         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
101778         used by e.g., mingw.  From Bruno Haible.
101780 2007-02-19  Bruno Haible  <bruno@clisp.org>
101782         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
101783         warnings.
101784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101786 2007-02-19  Bruno Haible  <bruno@clisp.org>
101788         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
101789         from mingw users.
101791 2007-02-19  Bruno Haible  <bruno@clisp.org>
101793         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
101794         warnings.
101795         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
101797 2007-02-19  Jim Meyering  <jim@meyering.net>
101799         Don't use FD after a successful "fdopendir (fd)".
101800         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
101801         Reset it by calling dirfd on the just-obtained DIR*.
101803         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
101804         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
101806 2007-02-18  Bruno Haible  <bruno@clisp.org>
101808         * lib/readlink.c: Include <unistd.h>.
101809         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
101810         HAVE_READLINK.
101811         * modules/readlink (Depends-on): Add unistd.
101812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101813         (Include): Add <unistd.h>.
101815         * lib/getlogin_r.h: Remove file.
101816         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
101817         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
101818         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
101819         HAVE_DECL_GETLOGIN_R.
101820         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
101821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101822         (Include): Use <unistd.h> instead of getlogin_r.h.
101824         * lib/getcwd.h: Remove file.
101825         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
101826         * lib/xgetcwd.c: Likewise.
101827         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
101828         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
101829         * modules/getcwd (Files): Remove lib/getcwd.h.
101830         (Depends-on): Add unistd.
101831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101832         (Include): Use <unistd.h> instad of getcwd.h.
101834         * lib/ftruncate.c: Include <unistd.h> first.
101835         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
101836         Set HAVE_FTRUNCATE.
101837         * modules/ftruncate (Depends-on): Add unistd.
101838         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101840         * lib/fchdir.c: Include <unistd.h> first.
101841         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
101842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
101843         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
101844         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101845         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
101847         * lib/dup2.c: Include <unistd.h> first.
101848         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
101849         HAVE_DUP2.
101850         * modules/dup2 (Depends-on): Add unistd.
101851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101853         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
101854         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
101855         REPLACE_CHOWN. Don't define chown as a macro here.
101856         * modules/chown (Depends-on): Add unistd.
101857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
101859         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
101860         Add definition for GL_LINK_WARNING.
101861         (chown, dup2): New declarations.
101862         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
101863         link warning.
101864         (ftruncate): New declaration.
101865         (getcwd): New declaration, taken from old getcwd.h.
101866         (getlogin_r): New declaration, taken from old getlogin_r.h.
101867         (readlink): New declaration.
101868         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
101869         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
101870         (gl_PREREQ_UNISTD): Remove macro.
101871         (gl_UNISTD_MODULE_INDICATOR): New macro.
101872         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
101873         many new variables. Don't set UNISTD_H.
101874         * modules/unistd (Description): Change.
101875         (Depends-on): Add link-warning.
101876         (configure.ac): Update.
101877         (Makefile.am): Create unistd.h always. Substitute many new variables
101878         into it.
101880 2007-02-18  Bruno Haible  <bruno@clisp.org>
101882         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
101883         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
101884         HAVE_GETSUBOPT.
101885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
101886         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
101887         * lib/getsubopt.h: Remove file.
101888         * modules/getsubopt (Files): Remove lib/getsubopt.h.
101889         (Depends-on): Add stdlib.
101890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
101891         (Includes): Use <stdlib.h> instead of getsubopt.h.
101892         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
101893         Set HAVE_GETSUBOPT.
101894         * lib/getsubopt.c: Don't include getsubopt.h.
101896 2007-02-18  Bruno Haible  <bruno@clisp.org>
101898         * modules/fchdir (Depends-on): Add dup2.
101900 2007-02-18  Bruno Haible  <bruno@clisp.org>
101902         * lib/stdlib_.h: Handle glibc's special invocation convention
101903         specially.
101905 2007-02-18  Bruno Haible  <bruno@clisp.org>
101907         * modules/stdlib-tests: New file.
101908         * tests/test-stdlib.c: New file.
101910         * modules/mkstemp (Files): Remove lib/mkstemp.h.
101911         (Depends-on): Add stdlib.
101912         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
101913         (Includes): Use <stdlib.h> instead of mkstemp.h.
101914         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
101915         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
101916         * lib/mkstemp.c: Don't include mkstemp.h.
101917         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
101918         * lib/stdlib--.h: Don't include mkstemp.h.
101920         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
101921         (Depends-on): Add stdlib.
101922         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
101923         (Includes): Use <stdlib.h> instead of mkdtemp.h.
101924         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
101925         HAVE_MKDTEMP.
101926         * lib/mkdtemp.c: Don't include mkdtemp.h.
101927         * lib/clean-temp.c: Don't include mkdtemp.h.
101929         * modules/exit (Files): Remove lib/exit.h.
101930         (Depends-on): Add stdlib.
101931         (Makefile.am): Remove lib_SOURCES.
101932         (Include): Use <stdlib.h> instead of exit.h.
101933         * lib/argmatch.c: Don't include exit.h.
101934         * lib/execute.c: Likewise.
101935         * lib/pagealign_alloc.c: Likewise.
101936         * lib/pipe.c: Likewise.
101937         * lib/wait-process.c: Likewise.
101938         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
101939         * lib/exitfail.c: Likewise.
101940         * lib/savewd.c: Likewise.
101941         * lib/xsetenv.c: Likewise.
101943         * modules/stdlib: New file.
101944         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
101945         and extra comments about mkstemp().
101946         * lib/exit.h: Remove file.
101947         * lib/mkdtemp.h: Remove file.
101948         * lib/mkstemp.h: Remove file.
101949         * m4/stdlib_h.m4: New file.
101950         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
101952 2007-02-18  Bruno Haible  <bruno@clisp.org>
101954         * modules/math-tests: New file.
101955         * tests/test-math.c: New file.
101957         * modules/math: New file.
101958         * modules/mathl (Files): Remove lib/mathl.h.
101959         (Depends-on): Add math.
101960         (Makefile.am): Don't mention mathl.h.
101961         (Include): Use <math.h> instead of mathl.h.
101962         * lib/math_.h: New file.
101963         * lib/mathl.h: Remove file.
101964         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
101965         mathl.h.
101966         * lib/asinl.c: Likewise.
101967         * lib/atanl.c: Likewise.
101968         * lib/ceill.c: Likewise.
101969         * lib/cosl.c: Likewise.
101970         * lib/expl.c: Likewise.
101971         * lib/floorl.c: Likewise.
101972         * lib/frexpl.c: Likewise.
101973         * lib/ldexpl.c: Likewise.
101974         * lib/logl.c: Likewise.
101975         * lib/sincosl.c: Likewise.
101976         * lib/sinl.c: Likewise.
101977         * lib/sqrtl.c: Likewise.
101978         * lib/tanl.c: Likewise.
101979         * lib/trigl.c: Likewise.
101980         * m4/math_h.m4: New file.
101981         * MODULES.html.sh (Mathematics): Add math.
101983 2007-02-17  Bruno Haible  <bruno@clisp.org>
101985         * modules/wctype-tests: New file.
101986         * tests/test-wctype.c: New file.
101988         * modules/wchar-tests: New file.
101989         * tests/test-wchar.c: New file.
101991         * modules/unistd-tests: New file.
101992         * tests/test-unistd.c: New file.
101994         * modules/time-tests: New file.
101995         * tests/test-time.c: New file.
101997         * modules/sysexits-tests: New file.
101998         * tests/test-sysexits.c: New file.
102000         * modules/sys_time-tests: New file.
102001         * tests/test-sys_time.c: New file.
102003         * modules/sys_stat-tests: New file.
102004         * tests/test-sys_stat.c: New file.
102006         * modules/sys_socket-tests: New file.
102007         * tests/test-sys_socket.c: New file.
102009         * modules/sys_select-tests: New file.
102010         * tests/test-sys_select.c: New file.
102012         * modules/string-tests: New file.
102013         * tests/test-string.c: New file.
102015         * modules/stdbool-tests: New file.
102016         * tests/test-stdbool.c: New file.
102018         * modules/netinet_in-tests: New file.
102019         * tests/test-netinet_in.c: New file.
102021         * modules/inttypes-tests: New file.
102022         * tests/test-inttypes.c: New file.
102024         * modules/fcntl-tests: New file.
102025         * tests/test-fcntl.c: New file.
102027         * modules/byteswap-tests: New file.
102028         * tests/test-byteswap.c: New file.
102030         * modules/arpa_inet-tests: New file.
102031         * tests/test-arpa_inet.c: New file.
102033 2007-02-17  Bruno Haible  <bruno@clisp.org>
102035         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
102036         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
102037         if the corresponding module is not enabled. Emit link warnings if
102038         the function is used nevertheless.
102039         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
102040         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
102041         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
102042         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
102043         * modules/inttypes (Depends-on): Add link-warning.
102044         (Makefile.am): Copy the contents of build-aux/link-warning.h into
102045         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
102046         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
102047         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
102048         * modules/imaxdiv (configure.ac): Likewise.
102049         * modules/strtoimax (configure.ac): Likewise.
102050         * modules/strtoumax (configure.ac): Likewise.
102052 2007-02-17  Bruno Haible  <bruno@clisp.org>
102054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
102055         gl_STRING_MODULE_INDICATOR_DEFAULTS.
102056         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
102057         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
102059 2007-02-17  Bruno Haible  <bruno@clisp.org>
102061         * modules/link-warning: New file.
102062         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
102063         * lib/string_.h (GL_LINK_WARNING): Remove definition.
102064         * modules/string (Depends-on): Add link-warning.
102065         (Makefile.am): Copy the contents of build-aux/link-warning.h into
102066         string.h.
102067         * MODULES.html.sh (Support for building libraries and executables): Add
102068         link-warning.
102070 2007-02-17  Bruno Haible  <bruno@clisp.org>
102072         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
102073         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
102074         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
102075         long lines.
102077 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
102078             Bruno Haible  <bruno@clisp.org>
102080         * modules/tmpfile: New file.
102081         * lib/tmpfile.c: New file.
102082         * m4/tmpfile.m4: New file.
102083         * MODULES.html.sh (func_all_modules): New section "Input/output".
102085 2007-02-15  Bruno Haible  <bruno@clisp.org>
102087         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
102088         (supports_delete_on_close): New function.
102089         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
102091 2007-02-14  Bruno Haible  <bruno@clisp.org>
102093         * modules/mbspcasecmp-tests: New file.
102094         * tests/test-mbspcasecmp.sh: New file.
102095         * tests/test-mbspcasecmp.c: New file.
102097         New module mbspcasecmp.
102098         * modules/mbspcasecmp: New file.
102099         * lib/mbspcasecmp.c: New file.
102100         * lib/string_.h (strncasecmp): Change warning message.
102101         (mbspcasecmp): New declaration.
102102         * m4/mbspcasecmp.m4: New file.
102103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102104         GNULIB_MBSPCASECMP.
102105         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
102106         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
102108 2007-02-14  Bruno Haible  <bruno@clisp.org>
102110         * modules/mbsncasecmp-tests: New file.
102111         * tests/test-mbsncasecmp.sh: New file.
102112         * tests/test-mbsncasecmp.c: New file.
102114         New module mbsncasecmp.
102115         * modules/mbsncasecmp: New file.
102116         * lib/mbsncasecmp.c: New file.
102117         * lib/string_.h (mbsncasecmp): New declaration.
102118         * m4/mbsncasecmp.m4: New file.
102119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102120         GNULIB_MBSNCASECMP.
102121         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
102122         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
102124 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
102126         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
102127         Verify that it doesn't overlap with our flags.
102128         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
102129         do not have the desired effect in multibyte locales; instead, use
102130         mbscasecmp.
102131         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
102132         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
102133         we don't require GNU fnmatch ourselves (if our users require it, they
102134         should do so explicitly).
102136         Fix regex code so it doesn't rely on strcasecmp.
102137         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
102138         Otherwise, include gnulib's langinfo.h.
102139         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
102140         undesirable behavior in non-C locales.  Instead, rely on localecharset.
102141         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
102142         * modules/regex (FILES): Remove m4/codeset.m4.
102143         (Depends-on): Add localcharset.  Remove strcase.
102145 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102147         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
102148         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
102150 2007-02-13  Bruno Haible  <bruno@clisp.org>
102152         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
102153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102155 2007-02-12  Bruno Haible  <bruno@clisp.org>
102157         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
102158         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
102159         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
102160         time warning rather than a link error.
102162 2007-02-12  Bruno Haible  <bruno@clisp.org>
102164         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
102165         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
102166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102168 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
102170         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
102171         args, not 2.
102173 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
102175         New module 'time', so that apps can include <time.h> as per
102176         POSIX and GNU instead of separate include files like time_r.h
102177         and timegm.h.  This implementation tries out a simpler approach
102178         for replacing decls in standard include files (as compared to
102179         the string module), somewhat as an experiment.
102181         * config/srclist.txt: Comment out mktime.c for now.
102182         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
102183         since it doesn't apply any more.  Use generic wording instead.
102184         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
102185         'time'.
102186         * lib/time_.h, m4/time_h.m4, modules/time: New files.
102187         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
102188         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
102189         Don't include <sys/types.h>; no longer needed since we assume C89.
102190         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
102191         * lib/strftime.c: Likewise.
102192         * lib/time_r.c: Likewise.
102193         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
102194         * lib/nanosleep.c: Include <time.h> first, to check interface.
102195         * lib/strptime.c: Likewise.
102196         * lib/time_r.c: Likewise.
102197         * lib/timegm.c: Likewise.
102198         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
102199         needed.
102200         * lib/timegm.c: Don't include timegm.h; no longer needed.
102201         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
102202         time.h now handles any problems in that area.
102203         (struct timespec, nanosleep): Remove; time.h now arranges for these.
102204         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
102205         that time.h defines struct timespec.
102206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
102207         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
102208         handles that.
102209         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
102210         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
102211         needed.  Set REPLACE_LOCALTIME.
102212         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
102213         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
102214         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
102215         nanosleep; time_h.m4 now does that.  Don't require
102216         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
102217         module handles this now.
102218         * modules/getdate (Depends-on): Remove timespec.  Add time.
102219         * modules/nanosleep (Depends-on): Likewise.
102220         * modules/stat-time (Depends-on): Likewise.
102221         * modules/nanosleep (Include): Include time.h, not timespec.h.
102222         * modules/strptime (Files): Remove lib/strptime.h.
102223         (Depends-on): Add extensions, time.
102224         (Include): Include time.h, not strptime.h.
102225         * modules/time_r (Files): Remove lib/time_r.h.
102226         (Depends-on): Add time.
102227         (Include): Include time.h, not time_r.h.
102228         * modules/timegm: Likewise.
102229         * modules/timespec (Description): Now does timespec-related decls
102230         of our own, instead of struct timespec itself.
102231         (Depends-on): Add time; remove extensions.
102232         (Maintainer): Add self.
102233         * modules/utimecmp (Depends-on): Add time; remove timespec.
102234         * modules/utimens (Depends-on): Likewise.
102235         * modules/xnanosleep (Depends-on): Likewise.
102237 2007-02-11  Bruno Haible  <bruno@clisp.org>
102239         * lib/c-strstr.c: Include allocsa.h.
102240         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102241         * lib/c-strcasestr.c: Include allocsa.h.
102242         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102243         * lib/strcasestr.c: Include allocsa.h.
102244         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
102245         * lib/mbsstr.c: Include allocsa.h.
102246         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
102247         allocsa/freesa instead of malloc/free.
102248         * lib/mbscasestr.c: Include allocsa.h.
102249         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
102250         allocsa/freesa instead of malloc/free.
102251         * modules/c-strstr (Depends-on): Add allocsa.
102252         * modules/c-strcasestr (Depends-on): Likewise.
102253         * modules/strcasestr (Depends-on): Likewise.
102254         * modules/mbsstr (Depends-on): Likewise.
102255         * modules/mbscasestr (Depends-on): Likewise.
102257 2007-02-11  Bruno Haible  <bruno@clisp.org>
102259         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
102261         * modules/mbsspn-tests: New file.
102262         * tests/test-mbsspn.sh: New file.
102263         * tests/test-mbsspn.c: New file.
102265 2007-02-11  Bruno Haible  <bruno@clisp.org>
102267         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
102269         * modules/mbspbrk-tests: New file.
102270         * tests/test-mbspbrk.sh: New file.
102271         * tests/test-mbspbrk.c: New file.
102273 2007-02-11  Bruno Haible  <bruno@clisp.org>
102275         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
102276         unneeded cast.
102278         * modules/mbscspn-tests: New file.
102279         * tests/test-mbscspn.sh: New file.
102280         * tests/test-mbscspn.c: New file.
102282 2007-02-11  Bruno Haible  <bruno@clisp.org>
102284         * modules/mbscasecmp-tests: New file.
102285         * tests/test-mbscasecmp.sh: New file.
102286         * tests/test-mbscasecmp.c: New file.
102288 2007-02-11  Bruno Haible  <bruno@clisp.org>
102290         Ensure O(n) worst-case complexity of mbscasestr.
102291         * lib/mbscasestr.c: Include stdbool.h.
102292         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
102293         functions.
102294         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
102295         the bookkeeping indicates that it's worth it.
102296         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
102298         * modules/mbscasestr-tests: New file.
102299         * tests/test-mbscasestr1.c: New file.
102300         * tests/test-mbscasestr2.sh: New file.
102301         * tests/test-mbscasestr2.c: New file.
102302         * tests/test-mbscasestr3.sh: New file.
102303         * tests/test-mbscasestr3.c: New file.
102304         * tests/test-mbscasestr4.sh: New file.
102305         * tests/test-mbscasestr4.c: New file.
102306         * m4/locale-tr.m4: New file.
102308 2007-02-11  Bruno Haible  <bruno@clisp.org>
102310         Ensure O(n) worst-case complexity of mbsstr.
102311         * lib/mbsstr.c: Include stdbool.h.
102312         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
102313         functions.
102314         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
102315         bookkeeping indicates that it's worth it.
102316         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
102318         * modules/mbsstr-tests: New file.
102319         * tests/test-mbsstr1.c: New file.
102320         * tests/test-mbsstr2.sh: New file.
102321         * tests/test-mbsstr2.c: New file.
102322         * tests/test-mbsstr3.sh: New file.
102323         * tests/test-mbsstr3.c: New file.
102324         * m4/locale-fr.m4: New file.
102326 2007-02-11  Bruno Haible  <bruno@clisp.org>
102328         * lib/mbsrchr.c (mbsrchr): Fix bug.
102330         * modules/mbsrchr-tests: New file.
102331         * tests/test-mbsrchr.sh: New file.
102332         * tests/test-mbsrchr.c: New file.
102334 2007-02-11  Bruno Haible  <bruno@clisp.org>
102336         * lib/mbschr.c (mbschr): Fix bug.
102338         * modules/mbschr-tests: New file.
102339         * tests/test-mbschr.sh: New file.
102340         * tests/test-mbschr.c: New file.
102341         * m4/locale-zh.m4: New file.
102343 2007-02-11  Bruno Haible  <bruno@clisp.org>
102345         Support for copying multibyte string iterators.
102346         * lib/mbiter.h: Include <string.h>.
102347         (mbiter_multi_copy): New function.
102348         (mbi_copy): New macro.
102349         * lib/mbuiter.h: Include <string.h>.
102350         (mbuiter_multi_copy): New function.
102351         (mbui_copy): New macro.
102353 2007-02-11  Bruno Haible  <bruno@clisp.org>
102355         New module mbslen.
102356         * modules/mbslen: New file.
102357         * lib/mbslen.c: New file.
102358         * lib/string_.h (mbslen): New declaration.
102359         * m4/mbslen.m4: New file.
102360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102361         GNULIB_MBSLEN.
102362         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
102363         * MODULES.html.sh (Internationalization functions): Add mbslen.
102365 2007-02-11  Bruno Haible  <bruno@clisp.org>
102367         Ensure O(n) worst-case complexity of strcasestr substitute.
102368         * lib/strcasestr.c: Include stdbool.h.
102369         (knuth_morris_pratt): New function.
102370         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
102371         bookkeeping indicates that it's worth it.
102372         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
102374         * modules/strcasestr-tests: New file.
102375         * tests/test-strcasestr.c: New file.
102377 2007-02-11  Bruno Haible  <bruno@clisp.org>
102379         Ensure O(n) worst-case complexity of c_strcasestr.
102380         * lib/c-strcasestr.c: Include stdbool.h, string.h.
102381         (knuth_morris_pratt): New function.
102382         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
102383         the bookkeeping indicates that it's worth it.
102384         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
102386         * modules/c-strcasestr-tests: New file.
102387         * tests/test-c-strcasestr.c: New file.
102389 2007-02-11  Bruno Haible  <bruno@clisp.org>
102391         Ensure O(n) worst-case complexity of c_strstr.
102392         * lib/c-strstr.c: Include stdbool.h, string.h.
102393         (knuth_morris_pratt): New function.
102394         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
102395         bookkeeping indicates that it's worth it.
102396         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
102398         * lib/c-strstr.c: Complete rewrite for maintainability.
102400         * modules/c-strstr-tests: New file.
102401         * tests/test-c-strstr.c: New file.
102403 2007-02-11  Bruno Haible  <bruno@clisp.org>
102405         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
102406         5.2.1 and earlier, whereby \055 was treated just like the range
102407         delimiter '-'.
102408         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102410 2007-02-08  Bruno Haible  <bruno@clisp.org>
102412         * modules/regex (Depends-on): Add stdbool.
102413         Reported by Dalibor Topic <robilad@kaffe.org>.
102415 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
102417         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
102418         Prefer returning from main to exiting from it.
102419         Remove unnecessary parens after sizeof.
102421 2007-02-05  Bruno Haible  <bruno@clisp.org>
102423         New module mbssep.
102424         * modules/mbssep: New file.
102425         * lib/mbssep.c: New file.
102426         * lib/string_.h (strsep): Add a conditional link warning.
102427         (mbssep): New declaration.
102428         * m4/mbssep.m4: New file.
102429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102430         GNULIB_MBSSEP.
102431         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
102432         * MODULES.html.sh (Internationalization functions): Add mbssep.
102434 2007-02-05  Bruno Haible  <bruno@clisp.org>
102436         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
102437         Optimize search in case of 1 delimiter.
102439 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
102441         * lib/acl.h: Include sys/types.h before sys/acl.h.
102443 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
102445         Merge upstream fix for glibc bugzilla #3957:
102447         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
102449         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
102450         bit for RE_HAT_LISTS_NOT_NEWLINE.
102451         (build_charclass_op): Remove bogus comment.
102453 2007-02-05  Simon Josefsson  <simon@josefsson.org>
102455         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
102457 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
102459         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
102460         * lib/memmem.c [!defined _LIBC]: Include config.h.
102462 2007-02-04  Bruno Haible  <bruno@clisp.org>
102464         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
102465         warning message.
102467 2007-02-04  Bruno Haible  <bruno@clisp.org>
102469         New module mbstok_r.
102470         * modules/mbstok_r: New file.
102471         * lib/mbstok_r.c: New file.
102472         * lib/string_.h (strtok_r): Change argument names to match the
102473         comments. Add a conditional link warning.
102474         (mbstok_r): New declaration.
102475         * m4/mbstok_r.m4: New file.
102476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102477         GNULIB_MBSTOK_R.
102478         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
102479         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
102481 2007-02-04  Bruno Haible  <bruno@clisp.org>
102483         New module mbsspn.
102484         * modules/mbsspn: New file.
102485         * lib/mbsspn.c: New file.
102486         * lib/string_.h (strspn): Add a conditional link warning.
102487         (mbsspn): New declaration.
102488         * m4/mbsspn.m4: New file.
102489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102490         GNULIB_MBSSPN.
102491         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
102492         * MODULES.html.sh (Internationalization functions): Add mbsspn.
102494 2007-02-04  Bruno Haible  <bruno@clisp.org>
102496         New module mbspbrk.
102497         * modules/mbspbrk: New file.
102498         * lib/mbspbrk.c: New file.
102499         * lib/string_.h (strpbrk): Add a conditional link warning.
102500         (mbspbrk): New declaration.
102501         * m4/mbspbrk.m4: New file.
102502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102503         GNULIB_MBSPBRK.
102504         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
102505         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
102507 2007-02-04  Bruno Haible  <bruno@clisp.org>
102509         New module mbscspn.
102510         * modules/mbscspn: New file.
102511         * lib/mbscspn.c: New file.
102512         * lib/string_.h (strcspn): Add a conditional link warning.
102513         (mbscspn): New declaration.
102514         * m4/mbscspn.m4: New file.
102515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102516         GNULIB_MBSCSPN.
102517         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
102518         * MODULES.html.sh (Internationalization functions): Add mbscspn.
102520 2007-02-04  Bruno Haible  <bruno@clisp.org>
102522         New module mbscasestr, reduced goal of strcasestr.
102523         * modules/mbscasestr: New file.
102524         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
102525         (mbscasestr): Renamed from strcasestr.
102526         * lib/strcasestr.c: Don't include mbuiter.h.
102527         (strcasestr): Remove support for multibyte locales.
102528         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
102529         Change the conditional link warning.
102530         (mbscasestr): New declaration.
102531         * m4/mbscasestr.m4: New file.
102532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
102533         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
102534         REPLACE_STRCASESTR.
102535         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
102536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
102537         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
102538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
102539         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
102540         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
102541         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
102542         (Depends-on): Remove mbuiter.
102543         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
102545 2007-02-04  Bruno Haible  <bruno@clisp.org>
102547         Simplify handling of strncasecmp.
102548         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
102549         the conditional link warning.
102550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
102551         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
102552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
102553         * modules/strcase (configure.ac): Don't invoke
102554         gl_STRING_MODULE_INDICATOR.
102555         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
102557 2007-02-04  Bruno Haible  <bruno@clisp.org>
102559         New module mbscasecmp, reduced goal of strcasecmp.
102560         * modules/mbscasecmp: New file.
102561         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
102562         (mbscasecmp): Renamed from strcasecmp.
102563         * lib/strcasecmp.c: Don't include mbuiter.h.
102564         (strcasecmp): Remove support for multibyte locales.
102565         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
102566         Change the conditional link warning.
102567         (mbscasecmp): New declaration.
102568         * m4/mbscasecmp.m4: New file.
102569         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
102570         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
102571         REPLACE_STRCASECMP.
102572         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
102573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102574         GNULIB_MBSCASECMP.
102575         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
102576         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
102577         * modules/strcase (Files): Remove m4/mbrtowc.m4.
102578         (Depends-on): Remove mbuiter.
102579         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
102581 2007-02-04  Bruno Haible  <bruno@clisp.org>
102583         New module mbsstr. Remove module strstr.
102584         * modules/mbsstr: New file.
102585         * modules/strstr: Remove file.
102586         * lib/mbsstr.c: Renamed from lib/strstr.c.
102587         (mbsstr): Renamed from strstr.
102588         * lib/string_.h (strstr): Remove declaration. Change the conditional
102589         link warning.
102590         (mbsstr): New declaration.
102591         * m4/mbsstr.m4: New file.
102592         * m4/strstr.m4: Remove file.
102593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
102594         REPLACE_STRSTR.
102595         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
102596         Don't initialize GNULIB_STRSTR.
102597         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
102598         substitute GNULIB_STRSTR and REPLACE_STRSTR.
102599         * MODULES.html.sh (Internationalization functions): Add mbsstr.
102600         (Support for systems lacking ANSI C 89): Remove strstr.
102602 2007-02-04  Bruno Haible  <bruno@clisp.org>
102604         New module mbsrchr.
102605         * modules/mbsrchr: New file.
102606         * lib/mbsrchr.c: New file.
102607         * lib/string_.h (strrchr): Add a conditional link warning.
102608         (mbsrchr): New declaration.
102609         * m4/mbsrchr.m4: New file.
102610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102611         GNULIB_MBSRCHR.
102612         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
102613         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
102615 2007-02-04  Bruno Haible  <bruno@clisp.org>
102617         New module mbschr.
102618         * modules/mbschr: New file.
102619         * lib/mbschr.c: New file.
102620         * lib/string_.h (strchr): Add a conditional link warning.
102621         (mbschr): New declaration.
102622         * m4/mbschr.m4: New file.
102623         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
102624         GNULIB_MBSCHR.
102625         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
102626         * MODULES.html.sh (Internationalization functions): Add mbschr.
102628 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
102630         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
102632         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
102634 2007-02-04  Bruno Haible  <bruno@clisp.org>
102636         New module description section 'configure.ac-early'.
102637         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
102638         (func_get_autoconf_early_snippet): New function.
102639         (func_import, func_create_testdir): Use it. Remove special cases for
102640         modules 'extensions' and 'lock'.
102641         * modules/extensions (configure.ac-early): Require
102642         gl_USE_SYSTEM_EXTENSIONS.
102643         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
102645 2007-02-04  Bruno Haible  <bruno@clisp.org>
102647         Make use of gcj-4.3's -fsource and -ftarget option.
102648         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
102649         and if so try the options -fsource and -ftarget.
102650         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
102651         source_version, ftarget_option, target_version arguments.
102652         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
102653         (is_envjavac_oldgcj_14_14_usable): Renamed from
102654         is_envjavac_gcj_14_14_usable.
102655         (is_envjavac_oldgcj_14_13_usable): Renamed from
102656         is_envjavac_gcj_14_13_usable.
102657         (is_gcj_present): Update.
102658         (is_gcj_43, is_gcj43_usable): New functions.
102659         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
102660         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
102661         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
102662         try the options -fsource and -ftarget.
102664 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102666         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
102667         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
102668         larger value.
102670 2007-02-03  Jim Meyering  <jim@meyering.net>
102672         Give tools a better chance to allocate space for very large buffers.
102673         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
102675         Make pwd and readlink work also when run with an unreadable parent dir
102676         on systems with openat support.
102677         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
102678         provided getcwd function, even when we have openat support.
102679         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
102681 2007-02-02  Bruno Haible  <bruno@clisp.org>
102683         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
102684         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
102685         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
102686         portability problems if one of these functions is only used on specific
102687         platforms.
102688         Reported by Paul Eggert.
102690 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
102692         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
102693         is causing more trouble than it's curing.
102694         * lib/regex_internal.h (__mempcpy): Remove.
102695         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
102696         (and make the code a tad smaller to boot).
102697         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
102699 2007-02-02  Jim Meyering  <jim@meyering.net>
102701         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
102702         section, not in the Makefile.am: one.
102704 2007-02-02  Eric Blake  <ebb9@byu.net>
102706         * lib/strchrnul.c: Always include config.h first.
102708         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
102709         gnulib strstr is not necessary here.
102711 2007-02-02  Simon Josefsson  <simon@josefsson.org>
102713         * m4/socklen.m4: Fix typo.
102715 2007-02-02  Eric Blake  <ebb9@byu.net>
102717         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
102718         * modules/netinet_in (Makefile.am): Likewise.
102720 2007-02-01  Bruno Haible  <bruno@clisp.org>
102722         * lib/string_.h (GL_LINK_WARNING): New macro.
102723         (strcasecmp, strstr, strcasestr): If provided by the system,
102724         conditionally define as a macro that leads to a warning instead of to
102725         an error.
102726         (strncasecmp): Conditionally define as a macro that leads to a warning.
102728 2007-02-01  Karl Berry  <karl@gnu.org>
102730         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
102732 2007-02-01  Bruno Haible  <bruno@clisp.org>
102734         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
102735         renamings.
102737 2007-02-01  Eric Blake  <ebb9@byu.net>
102739         * modules/regex (Depends-on): Revert dependence on mempcpy.
102740         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
102741         module's definition of mempcpy.
102742         Reported by Paul Eggert.
102744 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
102746         * lib/string_.h: If the gnulib module XYZ is not present, undefine
102747         the symbol XYZ before redefining it.  This fixes a problem with
102748         programs that don't use XYZ, when compiled on systems that define
102749         XYZ to something else.
102751 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
102753         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
102754         occurs when "mkdir -m foo" creates a setgid directory that is (1)
102755         writeable to group or other and (2) is intended to have a special
102756         mode bit that is set or cleared.  In such a case, the directory
102757         should be neither group- nor other-writeable until the special
102758         mode bits are right.
102760 2007-01-31  Eric Blake  <ebb9@byu.net>
102762         * modules/mountlist (Depends-on): Add strstr.
102764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
102765         bug.
102766         * modules/string (Makefile.am): Remove redundant replacement.
102767         * modules/regex (Depends-on): Add mempcpy.
102769 2007-01-31  Bruno Haible  <bruno@clisp.org>
102771         New module description field 'Link'.
102772         * gnulib-tool (func_usage): Document --extract-link-directive.
102773         (sed_extract_prog): Recognize 'Link' directive.
102774         (func_get_link_directive): New function.
102775         (func_import): Show summary of link directives.
102776         Handle --extract-link-directive option.
102777         * modules/acl (Link): New section.
102778         * modules/clock-time (Link): New section.
102779         * modules/euidaccess (Link): New section.
102780         * modules/gettext (Link): New section.
102781         * modules/iconv (Link): New section.
102782         * modules/lock (Link): New section.
102783         * modules/nanosleep (Link): New section.
102784         * modules/readline (Link): New section.
102786 2007-01-27  Bruno Haible  <bruno@clisp.org>
102788         Enforce the use of gnulib modules for unportable <string.h> functions.
102789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
102790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
102791         (gl_HEADER_STRING_H_BODY): Require it.
102792         * lib/string_.h: If the gnulib module XYZ is not present, redefine
102793         the symbol XYZ to one that gives a link error.
102794         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
102795         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
102796         * modules/mempcpy (configure.ac): Likewise.
102797         * modules/memrchr (configure.ac): Likewise.
102798         * modules/stpcpy (configure.ac): Likewise.
102799         * modules/stpncpy (configure.ac): Likewise.
102800         * modules/strcase (configure.ac): Likewise.
102801         * modules/strcasestr (configure.ac): Likewise.
102802         * modules/strchrnul (configure.ac): Likewise.
102803         * modules/strdup (configure.ac): Likewise.
102804         * modules/strndup (configure.ac): Likewise.
102805         * modules/strnlen (configure.ac): Likewise.
102806         * modules/strpbrk (configure.ac): Likewise.
102807         * modules/strsep (configure.ac): Likewise.
102808         * modules/strstr (configure.ac): Likewise.
102809         * modules/strtok_r (configure.ac): Likewise.
102811 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
102813         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
102815 2007-01-30  Jim Meyering  <jim@meyering.net>
102817         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
102819 2007-01-29  Bruno Haible  <bruno@clisp.org>
102821         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
102822         * lib/execute.c: Likewise.
102823         * lib/pipe.c: Likewise.
102824         * lib/printf-args.h: Likewise.
102825         * lib/printf-args.c: Likewise.
102826         * lib/printf-parse.c: Likewise.
102827         * lib/vasnprintf.c: Likewise.
102829 2007-01-29  Eric Blake  <ebb9@byu.net>
102831         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
102832         declaration.
102834 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
102836         * lib/strptime.h (strptime): Use 'restrict' for args where
102837         POSIX requires this.
102838         * lib/strptime.c (strptime): Likewise.
102839         Change license notice from LGPL to GPL, since gnulib-tool will
102840         change this as needed.
102841         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
102842         defined.
102843         Include "strptime.h" first, to check interface.
102844         Do not #undef _LIBC and _NL_CURRENT.
102845         Do not include <stdlib.h>; no longer needed.
102846         Include "time_r.h" and declare ptime_locale_status
102847         only if _LIBC is not defined.
102848         (__P): Remove unused macro.
102849         (match_string): Bring back glibc version, but use it only if _LIBC
102850         is defined.
102851         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
102852         Remove unnecessary assertion and abort() call.
102853         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
102854         * m4/strptime.m4: Fix serial number comment.
102855         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
102856         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
102857         (Depends-on): Add time_r.
102859 2007-01-29  Bruno Haible  <bruno@clisp.org>
102861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102862         strptime.
102863         * modules/strptime (Depends-on): Add stdbool.
102864         * lib/strptime.h: Include <time.h> always. Add comments.
102866 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102868         * modules/strptime: New file.
102869         * lib/strptime.h: New file.
102870         * lib/strptime.c: New file.
102871         * m4/strptime.m4: New file.
102873 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102875         * MODULES.html.sh: New module mpsort.
102876         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
102878         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
102879         a circularity problem with HP-UX ia64 reported by Bob Proulx in
102880         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
102881         All uses changed.
102882         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
102883         All uses changed.
102884         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
102885         to _Restrict_.
102886         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
102887         the parameter matches the prototype.
102889 2007-01-28  Jim Meyering  <jim@meyering.net>
102891         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
102892         sys/time.h here, reverting that part of the previous patch:
102893         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
102895 2007-01-28  Bruno Haible  <bruno@clisp.org>
102897         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
102898         value of $(SYS_TIME_H).
102899         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
102900         remove it conditionally, too. [added by Jim Meyering]
102901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
102902         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
102903         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
102904         GETTIMEOFDAY_REPLACEMENT to 1.
102906 2007-01-28  Bruno Haible  <bruno@clisp.org>
102908         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
102909         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
102910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
102911         Set UNISTD_H instead of UNISTD_H2.
102912         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
102914 2007-01-28  Bruno Haible  <bruno@clisp.org>
102916         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
102917         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
102919 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102921         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
102922         (func_create_testdir): Ensure C locale for `grep' and `tr'
102923         character ranges.
102924         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
102925         ACLOCAL_AMFLAGS parsing state machine.
102927 2007-01-27  Bruno Haible  <bruno@clisp.org>
102929         * modules/unistr/base: Update.
102931 2007-01-27  Bruno Haible  <bruno@clisp.org>
102933         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
102934         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
102935         * modules/unistr/u32-mbtouc-unsafe: Renamed from
102936         modules/unistr/u32-mbtouc.
102937         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
102938         * lib/unistr.h: Update.
102939         * lib/linebreak.c: Update.
102940         * modules/unistr/u32-mbtouc: Renamed from
102941         modules/unistr/u32-mbtouc-safe.
102942         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
102943         * lib/unistr.h: Update.
102944         * lib/unistr/u32-to-u8.c: Update.
102945         * lib/unistr/u32-to-u16.c: Update.
102947 2007-01-27  Bruno Haible  <bruno@clisp.org>
102949         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
102950         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
102951         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
102952         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
102953         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
102954         * modules/unistr/u16-mbtouc-unsafe: Renamed from
102955         modules/unistr/u16-mbtouc.
102956         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
102957         * lib/unistr.h: Update.
102958         * lib/linebreak.c: Update.
102959         * modules/linebreak: Update.
102960         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
102961         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
102962         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
102963         * modules/unistr/u16-mbtouc: Renamed from
102964         modules/unistr/u16-mbtouc-safe.
102965         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
102966         * lib/unistr.h: Update.
102967         * lib/unistr/u16-to-u8.c: Update.
102968         * modules/unistr/u16-to-u8: Update.
102969         * lib/unistr/u16-to-u32.c: Update.
102970         * modules/unistr/u16-to-u32: Update.
102972 2007-01-27  Bruno Haible  <bruno@clisp.org>
102974         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
102975         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
102976         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
102977         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
102978         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
102979         * modules/unistr/u8-mbtouc-unsafe: Renamed from
102980         modules/unistr/u8-mbtouc.
102981         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
102982         * lib/unistr.h: Update.
102983         * lib/striconveh.c: Update.
102984         * modules/striconveh: Update.
102985         * lib/linebreak.c: Update.
102986         * modules/linebreak: Update.
102987         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
102988         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
102989         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
102990         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
102991         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
102992         * lib/unistr.h: Update.
102993         * lib/striconveh.c: Update.
102994         * modules/striconveh: Update.
102995         * lib/unistr/u8-to-u16.c: Update.
102996         * modules/unistr/u8-to-u16: Update.
102997         * lib/unistr/u8-to-u32.c: Update.
102998         * modules/unistr/u8-to-u32: Update.
103000 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103002         Sync from Libtool.
103003         * lib/argz.c: Do not include strings.h nor memory.h, include
103004         string.h unconditionally.  Patch by Simon Josefsson.
103006 2007-01-27  Bruno Haible  <bruno@clisp.org>
103008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
103009         from gl_HEADER_STRING_H_BODY.
103010         (gl_HEADER_STRING_H_BODY): Require it.
103011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
103012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
103013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
103014         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
103015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103016         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
103017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
103018         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
103019         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
103020         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
103021         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
103022         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
103023         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
103024         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
103025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103027 2007-01-27  Bruno Haible  <bruno@clisp.org>
103029         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
103030         check_PROGRAMS into noinst_PROGRAMS.
103031         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
103032         check_PROGRAMS in this case.
103033         (func_import): Set for_test to false.
103034         (func_create_testdir): Set for_test to true.
103036 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103037             Bruno Haible  <bruno@clisp.org>
103039         * modules/strcasestr (Files): Remove lib/strcasestr.h.
103040         (Depends-on): Add string.
103041         (Includes): Use <string.h> instead of strcasestr.h.
103042         * modules/string (Makefile.am): Also substitute the value of
103043         REPLACE_STRCASESTR.
103044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
103045         assume strcasestr is declared in <string.h> not <strings.h>. Also
103046         set REPLACE_STRCASESTR.
103047         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
103048         REPLACE_STRCASESTR.
103049         * lib/strcasestr.h: Remove file.
103050         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
103051         * lib/string_.h (strcasestr): New declaration.
103053 2007-01-27  Bruno Haible  <bruno@clisp.org>
103055         * lib/string_.h: Use 'extern'.
103057 2007-01-27  Jim Meyering  <jim@meyering.net>
103059         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
103060         of set-but-not-used local, "q".
103062         * lib/mempcpy.c: Include <config.h> before <string.h>.
103063         This fixes a compilation error on HP-UX, due to the system's
103064         "restrict"-using mempcpy prototype.
103066 2007-01-26  Bruno Haible  <bruno@clisp.org>
103068         Small optimization.
103069         * lib/javacomp.c: Include c-strstr.h.
103070          (is_envjavac_gcj): Use c_strstr instead of strstr.
103071         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
103073 2007-01-26  Bruno Haible  <bruno@clisp.org>
103075         * MODULES.html.sh (Unicode string functions): Add the new modules.
103077         * modules/uniconv/u32-strconv-to-locale: New file.
103078         * lib/uniconv/u32-strconv-to-locale.c: New file.
103080         * modules/uniconv/u16-strconv-to-locale: New file.
103081         * lib/uniconv/u16-strconv-to-locale.c: New file.
103083         * modules/uniconv/u8-strconv-to-locale: New file.
103084         * lib/uniconv/u8-strconv-to-locale.c: New file.
103086         * modules/uniconv/u32-strconv-from-locale: New file.
103087         * lib/uniconv/u32-strconv-from-locale.c: New file.
103089         * modules/uniconv/u16-strconv-from-locale: New file.
103090         * lib/uniconv/u16-strconv-from-locale.c: New file.
103092         * modules/uniconv/u8-strconv-from-locale: New file.
103093         * lib/uniconv/u8-strconv-from-locale.c: New file.
103095         * modules/uniconv/u32-strconv-to-enc: New file.
103096         * lib/uniconv/u32-strconv-to-enc.c: New file.
103097         * modules/uniconv/u32-strconv-to-enc-tests: New file.
103098         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
103100         * modules/uniconv/u16-strconv-to-enc: New file.
103101         * lib/uniconv/u16-strconv-to-enc.c: New file.
103102         * lib/uniconv/u-strconv-to-enc.h: New file.
103103         * modules/uniconv/u16-strconv-to-enc-tests: New file.
103104         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
103106         * modules/uniconv/u8-strconv-to-enc: New file.
103107         * lib/uniconv/u8-strconv-to-enc.c: New file.
103108         * modules/uniconv/u8-strconv-to-enc-tests: New file.
103109         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
103111         * modules/uniconv/u32-strconv-from-enc: New file.
103112         * lib/uniconv/u32-strconv-from-enc.c: New file.
103113         * modules/uniconv/u32-strconv-from-enc-tests: New file.
103114         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
103116         * modules/uniconv/u16-strconv-from-enc: New file.
103117         * lib/uniconv/u16-strconv-from-enc.c: New file.
103118         * modules/uniconv/u16-strconv-from-enc-tests: New file.
103119         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
103121         * modules/uniconv/u8-strconv-from-enc: New file.
103122         * lib/uniconv/u8-strconv-from-enc.c: New file.
103123         * lib/uniconv/u-strconv-from-enc.h: New file.
103124         * modules/uniconv/u8-strconv-from-enc-tests: New file.
103125         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
103127         * modules/uniconv/u32-conv-from-enc: New file.
103128         * lib/uniconv/u32-conv-from-enc.c: New file.
103129         * modules/uniconv/u32-conv-from-enc-tests: New file.
103130         * tests/uniconv/test-u32-conv-from-enc.c: New file.
103132         * modules/uniconv/u16-conv-from-enc: New file.
103133         * lib/uniconv/u16-conv-from-enc.c: New file.
103134         * lib/uniconv/u-conv-from-enc.h: New file.
103135         * modules/uniconv/u16-conv-from-enc-tests: New file.
103136         * tests/uniconv/test-u16-conv-from-enc.c: New file.
103138         * modules/uniconv/u8-conv-from-enc: New file.
103139         * lib/uniconv/u8-conv-from-enc.c: New file.
103140         * modules/uniconv/u8-conv-from-enc-tests: New file.
103141         * tests/uniconv/test-u8-conv-from-enc.c: New file.
103143         * modules/uniconv/base: New file.
103144         * lib/uniconv.h: New file.
103146 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
103148         * doc/gnulib-tool.texi (Initial import): Update to match current
103149         behavior with strdup module.
103150         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
103151         * lib/memmem.h: Remove; all uses removed.  This is now done
103152         by <string.h>.
103153         * lib/mempcpy.h: Likewise.
103154         * lib/memrchr.h: Likewise.
103155         * lib/stpcpy.h: Likewise.
103156         * lib/stpncpy.h: Likewise.
103157         * lib/strcase.h: Likewise.
103158         * lib/strchrnul.h: Likewise.
103159         * lib/strdup.h: Likewise.
103160         * lib/strndup.h: Likewise.
103161         * lib/strnlen.h: Likewise.
103162         * lib/strpbrk.h: Likewise.
103163         * lib/strsep.h: Likewise.
103164         * lib/strstr.h: Likewise.
103165         * lib/strtok_r.h: Likewise.
103166         * lib/string_.h: New file.
103167         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
103168         Rely on <string.h> instead.
103169         * lib/canon-host.c: Likewise.
103170         * lib/chdir-long.c: Likewise.
103171         * lib/concatpath.c: Likewise.
103172         * lib/exclude.c: Likewise.
103173         * lib/fchdir.c: Likewise.
103174         * lib/getaddrinfo.c: Likewise.
103175         * lib/getcwd.c: Likewise.
103176         * lib/getsubopt.c: Likewise.
103177         * lib/glob.c: Likewise.
103178         * lib/hard-locale.c: Likewise.
103179         * lib/iconvme.c: Likewise.
103180         * lib/javacomp.c: Likewise.
103181         * lib/mempcpy.c: Likewise.
103182         * lib/memrchr.c: Likewise.
103183         * lib/regex_internal.h: Likewise.
103184         * lib/stpncpy.c: Likewise.
103185         * lib/strcasecmp.c: Likewise.
103186         * lib/strchrnul.c: Likewise.
103187         * lib/strdup.c: Likewise.
103188         * lib/striconv.c: Likewise.
103189         * lib/striconveh.c: Likewise.
103190         * lib/striconveha.c: Likewise.
103191         * lib/strncasecmp.c: Likewise.
103192         * lib/strndup.c: Likewise.
103193         * lib/strnlen.c: Likewise.
103194         * lib/strsep.c: Likewise.
103195         * lib/strstr.c: Likewise.
103196         * lib/strtok_r.c: Likewise.
103197         * lib/userspec.c: Likewise.
103198         * lib/w32spawn.h: Likewise.
103199         * lib/xstrndup.c: Likewise.
103200         * lib/mountlist.c (strstr): Remove decl.
103201         * m4/string_h.m4: New file.
103202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
103203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
103204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
103205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
103206         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
103207         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
103208         Set REPLACE_STRCASECMP if necessary.
103209         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
103210         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
103211         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
103212         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
103213         HAVE_DECL_STRDUP if necessary.
103214         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
103215         since gl_FUNC_STRNDUP does that now.
103216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
103217         Check for decl here...
103218         (gl_PREREQ_STRNLEN): ... not here.
103219         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
103220         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
103221         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
103222         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
103223         necessary.
103224         * modules/string: New file.
103225         * modules/memmem (Files): Remove special-purpose include file.
103226         (Depends-on): Add string.
103227         (Include): Include <string.h>, not the removed file.
103228         * modules/mempcpy: Likewise.
103229         * modules/memrchr: Likewise.
103230         * modules/stpcpy: Likewise.
103231         * modules/stpncpy: Likewise.
103232         * modules/strcase: Likewise.
103233         * modules/strchrnul: Likewise.
103234         * modules/strdup: Likewise.
103235         * modules/strndup: Likewise.
103236         * modules/strnlen: Likewise.
103237         * modules/strpbrk: Likewise.
103238         * modules/strsep: Likewise.
103239         * modules/strstr: Likewise.
103240         * modules/strtok_r: Likewise.
103241         * tests/test-dirname.c: Don't include "strdup.h", since
103242         <string.h> now suffices.
103243         * tests/test-memmem.c: Don't include "memmem.h", since
103244         <string.h> now suffices.
103246 2007-01-25  Bruno Haible  <bruno@clisp.org>
103248         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
103249         *resultp is 0.
103251         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
103252         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
103253         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
103254         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
103256         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
103257         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
103258         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
103259         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
103260         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
103261         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
103263 2007-01-24  Bruno Haible  <bruno@clisp.org>
103265         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
103266         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
103267         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
103268         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
103269         gl_FUNC_FTS_CORE.
103270         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
103271         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
103272         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103273         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
103274         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
103275         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
103276         gl_FUNC_FCHOWNAT.
103277         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
103278         gl_FUNC_STRFTIME.
103279         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
103280         Reported by Ralf Wildenhues.
103282 2007-01-24  Bruno Haible  <bruno@clisp.org>
103284         Drop AC_REQUIRE calls that are redundant with the module dependencies.
103285         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
103286         gl_GETADDRINFO.
103287         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
103288         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
103289         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
103291 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
103293         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
103294         Don't use 'exit'; just return from 'main'.
103295         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
103297         * lib/fnmatch_.h: Readjust white space and comments to match
103298         glibc, to avoid spurious diffs.
103300 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103302         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
103303         2004-12-01 change by Jakub Jelinek, since this code won't compile
103304         if !LIBC.  Problem reported by Bob Proulx.
103306 2007-01-23  Bruno Haible  <bruno@clisp.org>
103308         * lib/striconveh.c: Include c-strcaseeq.h.
103309         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
103310         * modules/striconveh (Depends-on): Add c-strcaseeq.
103312 2007-01-23  Bruno Haible  <bruno@clisp.org>
103314         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
103316         * modules/c-strcaseeq: New file.
103317         * lib/c-strcaseeq.h: New file.
103319         * modules/streq: New file.
103320         * lib/streq.h: New file.
103322 2007-01-23  Bruno Haible  <bruno@clisp.org>
103324         * modules/striconveha-tests: New file.
103325         * tests/test-striconveha.c: New file.
103327         * lib/striconveha.h: Include <stdbool.h>.
103328         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
103329         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
103330         (mem_iconveha_notranslit): Renamed from mem_iconveha.
103331         (mem_iconveha): New function.
103332         (str_iconveha_notranslit): Renamed from str_iconveha.
103333         (str_iconveha): New function.
103334         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
103335         c-strcase.
103337 2007-01-23  Bruno Haible  <bruno@clisp.org>
103339         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
103340         encodings without forgiving before trying any encoding with handler.
103341         (str_iconveha): Try all encodings without forgiving before trying any
103342         encoding with handler.
103344 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
103346         Import the following changes from libc.
103348         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
103350         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
103352         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
103354         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
103355         normal_bracket label.
103357         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
103359         [BZ #361]
103360         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
103361         to normal_bracket after fetching the next character.
103363 2007-01-22  Bruno Haible  <bruno@clisp.org>
103365         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
103366         argument.
103367         * lib/striconveh.c (iconv_carefully_1): New function.
103368         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
103369         argument.
103370         (str_cd_iconveh): Update.
103371         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
103372         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
103373         * tests/test-striconveh.c (MAGIC): New macro.
103374         (new_offsets): New function.
103375         (main): Test call with and without offsets.
103377 2007-01-22  Bruno Haible  <bruno@clisp.org>
103379         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
103380         * modules/sys_select (Makefile.am): Likewise.
103381         * modules/sys_socket (Makefile.am): Likewise.
103382         * modules/sys_time (Makefile.am): Likewise.
103384 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
103386         * modules/gettimeofday (License): Change from GPL to LGPL, since
103387         gettimeofday is a library function.
103389 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103391         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
103393 2007-01-21  Bruno Haible  <bruno@clisp.org>
103395         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
103397 2007-01-21  Bruno Haible  <bruno@clisp.org>
103399         * modules/striconveha: New file.
103400         * lib/striconveha.h: New file.
103401         * lib/striconveha.c: New file.
103402         * MODULES.html.sh (Internationalization functions): Add striconveha.
103403         * lib/striconv.c (str_iconv): Optimize the case of an empty input
103404         string.
103405         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
103407 2007-01-21  Bruno Haible  <bruno@clisp.org>
103409         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
103410         * lib/striconveh.c (str_iconveh): Likewise.
103412 2007-01-21  Bruno Haible  <bruno@clisp.org>
103414         * lib/striconveh.h (mem_iconveh): New declaration.
103415         * lib/striconveh.c (mem_iconveh): New function.
103416         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
103418 2007-01-21  Bruno Haible  <bruno@clisp.org>
103420         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
103422         * lib/striconveh.h (mem_cd_iconveh): Change specification.
103423         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
103424         original result buffer.
103425         (str_cd_iconveh): Update.
103426         * tests/test-striconveh.c (main): Update.
103428         * lib/striconv.h (mem_cd_iconv): Change specification.
103429         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
103430         result buffer.
103431         (str_cd_iconv): Update.
103432         * tests/test-striconv.c (main): Update.
103434 2007-01-21  Bruno Haible  <bruno@clisp.org>
103436         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
103438 2007-01-20  Jim Meyering  <jim@meyering.net>
103440         * lib/userspec.c (parse_with_separator): If a user or group string
103441         starts with "+", skip the corresponding name-to-ID look-up, since
103442         such a look-up must fail: user and group names may not include "+".
103444 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
103446         * lib/poll.c: Include sys/time.h and time.h unconditionally,
103447         since we now assume the sys_time module.
103448         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
103449         check for sys/time.h; no longer needed.
103450         * modules/poll (Depends-on): Depend on sys_time.
103452 2007-01-18  Bruno Haible  <bruno@clisp.org>
103454         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
103455         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
103457         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
103458         gettimeofday.
103460         * tests/test-gettimeofday.c: Include <time.h>.
103461         (dummy): Remove variable.
103463         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
103464         gl_HEADER_SYS_TIME_H.
103465         (gl_HEADER_SYS_TIME_H): New macro.
103467         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
103468         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
103470         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
103471         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103472         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
103473         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
103474         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103475         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
103476         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
103477         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103479         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
103480         last change; it caused a compilation error when cross-compiling to
103481         Cygwin.
103483 2007-01-18  Jim Meyering  <jim@meyering.net>
103485         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
103486         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
103487         than the race-prone "test -d sys || mkdir sys".
103488         (configure.ac): Use AC_PROG_MKDIR_P.
103489         * modules/sys_select: Likewise.
103490         * modules/sys_socket: Likewise.
103491         * modules/sys_time: Likewise.
103493 2007-01-18  Eric Blake  <ebb9@byu.net>
103495         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
103496         replace gettimeofday.
103497         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
103498         name, to avoid infinite recursion.
103500 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
103502         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
103503         module sys_time.
103504         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
103505         assume timespec.h defines struct timeval.
103506         * lib/settime.c: Likewise.
103507         * lib/utimens.c: Likewise.
103508         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
103509         since we now assume the gettimeofday module.
103510         * lib/tempname.c (__gen_tempname): Likewise.
103511         * lib/gettimeofday.h: Remove.
103512         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
103513         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
103514         Include <time.h>, for 'time()'.
103515         (localtime_buffer_addr): Also use this workaround if
103516         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
103517         to simplify the uses.  All uses changed.
103518         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
103519         that #undef is inside {}, and 'const' follows type name consistently.
103520         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
103521         (gettimeofday): Do not use the maximum possible value for
103522         tv->tv_usec, since that might break usages other than ls.c.
103523         Instead, we'll leave ls.c alone.  This undoes today's patch
103524         by Bruno.  Add a compile-time warning for 1s-clock resolution;
103525         we've never observed the problem but might as well keep the
103526         canary.
103527         * lib/nanosleep.c: Include timespec.h first, for interface check.
103528         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
103529         now assume the sys_time module.
103530         * lib/tempname.c: Likewise.
103531         * lib/timespec.h: Likewise.
103532         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
103533         needed.
103534         * lib/strftime.c: Likewise.
103535         * lib/timespec.h: Likewise.
103536         * lib/posixtm.c: Include posixtm.h first, for interface check.
103537         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
103538         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
103539         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
103540         * lib/sys_time_.h: New file.
103541         * lib/timespec.h (struct timespec): Use long int, not long.
103542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
103543         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
103544         Remove obsolescent call to AC_HEADER_TIME.
103545         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
103546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
103547         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
103548         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
103549         Likewise.
103550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
103551         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
103552         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
103553         into the sys_time module.  Check for gettimeofday just once.
103554         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
103555         for gettimeofday signature to just check the signature.  Merely
103556         compile it, since linking doesn't test signature.  Improve test for
103557         whether gettimeofday.o is actually needed.
103558         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
103559         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
103560         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
103561         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103562         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
103563         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
103564         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
103565         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
103566         than worrying about sys/time.h.
103567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103568         Don't bother worrying about TIME_WITH_SYS_TIME.
103569         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
103570         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
103571         * m4/sys_time_h.m4: New file.
103572         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
103573         Don't include sys/time.h.  Return from main rather than exiting.
103574         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
103575         all uses changed.
103576         * modules/gethrxtime (Depends-on): Add sys_time.
103577         * modules/gettime (Depends-on): Likewise.
103578         * modules/gettimeofday (Depends-on): Likewise.
103579         * modules/nanosleep (Depends-on): Likewise.
103580         * modules/settime (Depends-on): Likewise.
103581         * modules/tempname (Depends-on): Likewise.
103582         * modules/utimens (Depends-on): Likewise.
103583         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
103584         (Include): Change back to <sys/time.h>.
103585         (Maintainer): Add self.
103586         * modules/sys_time: New file.
103587         * modules/tempname (Depends-on): Add gettimeofday.
103588         * tests/test-gettimeofday.c: Include <sys/time.h>
103589         rather than gettimeofday.h.
103591 2007-01-17  Bruno Haible  <bruno@clisp.org>
103593         * gnulib-tool (func_get_license): Revert last patch. Instead, let
103594         the license default to GPL.
103595         (func_create_testdir): Don't complain if a module is LGPL and its
103596         tests module depends on GPLed modules.
103598 2007-01-17  Bruno Haible  <bruno@clisp.org>
103600         * lib/gettimeofday.c (gettimeofday): Add code for the case
103601         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
103602         maximum possible value for tv->tv_usec, rather than the minimum one.
103604 2005-10-08  Martin Lambers  <marlam@marlam.de>
103605 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
103606 2007-01-16  Bruno Haible  <bruno@clisp.org>
103608         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
103609         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
103610         gl_FUNC_GETTIMEOFDAY.
103611         (Include): Add gettimeofday.h.
103612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
103613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
103614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
103615         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
103616         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
103617         * lib/gettimeofday.h: New file.
103618         * lib/gettimeofday.c: Include <sys/timeb.h>.
103619         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
103620         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
103621         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
103622         fall back on time().
103624         * tests/test-gettimeofday.c: New file.
103625         * modules/gettimeofday-tests: New file.
103627 2007-01-16  Eric Blake  <ebb9@byu.net>
103629         * modules/fnmatch (Depends-on): Depend on wchar.
103630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
103631         * m4/fnmatch.m4: Likewise.
103632         * modules/mbchar (Makefile.am): Assume <wchar.h>.
103633         * m4/mbchar.m4: Likewise.
103634         * modules/mbswidth (Depends-on): Depend on wchar.
103635         * lib/mbswidth.c: Assume <wchar.h>.
103636         * m4/mbswidth.m4: Likewise.
103637         * modules/quotearg (Depends-on): Depend on wchar.
103638         * lib/quotearg.c: Assume <wchar.h>.
103639         * m4/quotearg.m4: Likewise.
103640         * modules/regex (Depends-on): Depend on wchar.
103641         * lib/regex_internal.h: Assume <wchar.h>.
103642         * m4/regex.m4: Likewise.
103643         * modules/stdint (Depends-on): Depend on wchar.
103644         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
103645         * m4/stdint.m4: Likewise.
103646         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
103647         * modules/strftime (Depends-on): Depend on wchar.
103648         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
103649         * modules/strtol (Depends-on): Depend on wchar.
103650         * lib/strtol.c: Assume <wchar.h>.
103651         * modules/wcwidth (Depends-on): Depend on wchar.
103652         * lib/wcwidth.h: Assume <wchar.h>.
103653         * m4/wcwidth.m4: Likewise.
103655 2007-01-16  Bruno Haible  <bruno@clisp.org>
103657         * modules/csharpexec-script: New, created from...
103658         * modules/csharpexec: ... this.
103660 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
103662         * modules/javaexec-script: New, created from...
103663         * modules/javaexec: ... this.
103665 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103667         * modules/poll (Dependencies): Add sys_select.
103669 2007-01-15  Jim Meyering  <jim@meyering.net>
103671         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
103672         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
103673         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
103674         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
103676 2007-01-15  Bruno Haible  <bruno@clisp.org>
103678         * modules/striconveh: New file.
103679         * lib/striconveh.h: New file.
103680         * lib/striconveh.c: New file.
103681         * MODULES.html.sh (Internationalization functions): Add striconveh.
103683         * modules/striconveh-tests: New file.
103684         * tests/test-striconveh.c: New file.
103686 2007-01-15  Bruno Haible  <bruno@clisp.org>
103688         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
103689         not from GNU libiconv or GNU libc.
103691 2007-01-15  Bruno Haible  <bruno@clisp.org>
103693         * doc/gnulib-intro.texi (Copyright): Explain the different license
103694         terms for module descriptions, autoconf macros, tests, documentation.
103696 2007-01-14  Bruno Haible  <bruno@clisp.org>
103698         * modules/striconv-tests: New file.
103699         * tests/test-striconv.c: New file.
103701 2007-01-14  Bruno Haible  <bruno@clisp.org>
103703         * modules/iconv-tests: New file.
103704         * tests/test-iconv.c: New file.
103706 2007-01-14  Bruno Haible  <bruno@clisp.org>
103708         * gnulib-tool (func_get_license): For test modules, use the license of
103709         the main module.
103711 2007-01-14  Bruno Haible  <bruno@clisp.org>
103713         * modules/iconv (Include): Clarify that <iconv.h> can only be included
103714         if iconv is found to exist.
103716 2007-01-14  Bruno Haible  <bruno@clisp.org>
103718         * modules/c-ctype-tests: New file.
103719         * tests/test-c-ctype.c: New file.
103721 2007-01-14  Bruno Haible  <bruno@clisp.org>
103723         * modules/binary-io-tests: New file.
103724         * tests/test-binary-io.sh: New file.
103725         * tests/test-binary-io.c: New file.
103727 2007-01-14  Bruno Haible  <bruno@clisp.org>
103729         * modules/array-oset-tests: New file.
103730         * tests/test-array_oset.c: New file.
103732 2007-01-14  Bruno Haible  <bruno@clisp.org>
103734         * modules/array-list-tests: New file.
103735         * tests/test-array_list.c: New file.
103737 2007-01-14  Bruno Haible  <bruno@clisp.org>
103739         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
103740         and make.
103741         Reported by Simon Josefsson in
103742         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
103744 2007-01-14  Bruno Haible  <bruno@clisp.org>
103746         * modules/allocsa-tests: New file.
103747         * tests/test-allocsa.c: New file.
103749 2007-01-14  Bruno Haible  <bruno@clisp.org>
103751         * modules/fchdir (Depends-on): Add absolute-header.
103752         * modules/unistd (Depends-on): Likewise.
103754 2006-12-30  Bruno Haible  <bruno@clisp.org>
103756         * modules/fchdir: New file.
103757         * modules/unistd (Files): Add lib/unistd_.h.
103758         (Makefile.am): Generate unistd.h from unistd_.h.
103759         * lib/fchdir.c: New file.
103760         * lib/dirent_.h: New file.
103761         * lib/unistd_.h: New file.
103762         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
103763         * m4/fchdir.m4: New file.
103764         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
103765         (gl_HEADER_UNISTD): Invoke it.
103766         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
103767         function.
103768         * lib/backupfile.c (opendir, closedir): Undefine.
103769         * lib/chown.c (open, close): Undefine.
103770         * lib/clean-temp.c (open, close): Undefine.
103771         * lib/copy-file.c (open, close): Undefine.
103772         * lib/execute.c (open, close): Undefine.
103773         * lib/fsusage.c (open, close): Undefine.
103774         * lib/gc-gnulib.c (open, close): Undefine.
103775         * lib/getcwd.c (opendir, closedir): Undefine.
103776         * lib/glob.c (opendir, closedir): Undefine.
103777         * lib/javacomp.c (open, close): Undefine.
103778         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
103779         * lib/openat-proc.c (open, close): Undefine.
103780         * lib/pagealign_alloc.c (open, close): Undefine.
103781         * lib/pipe.c (open, close): Undefine.
103782         * lib/progreloc.c (open, close): Undefine.
103783         * lib/savedir.c (opendir, closedir): Undefine.
103784         * lib/utime.c (open, close): Undefine.
103785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
103787 2007-01-10  Bruno Haible  <bruno@clisp.org>
103789         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
103791 2007-01-12  Eric Blake  <ebb9@byu.net>
103793         Provide a robust <wchar.h>.  Further simplifications are now
103794         possible in other modules, but not included here.
103795         * modules/wchar: New module.
103796         * m4/wchar.m4: New file.
103797         * lib/wchar_.h: Likewise.
103798         * modules/mbchar (Depends-on): Depend on wchar, as the first use
103799         of the new module.
103800         * MODULES.html.sh (Extended multibyte and wide character utilities):
103801         New section.
103803 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
103805         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
103806         to a reasonable default for memory allocation.
103807         (xreadlink): Don't allocate a huge buffer, to work around a buggy
103808         file system that reports garbage st_size values for symlinks.
103809         Problem reported by Liyang Hu.
103811 2007-01-11  Simon Josefsson  <simon@josefsson.org>
103813         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
103814         Emacs .#* auto-save files).
103816 2007-01-11  Bruno Haible  <bruno@clisp.org>
103818         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
103819         directory.
103821 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
103823         Use @...@ consistently in lib/wctype_.h.
103824         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
103825         on it being set to 1 or 0.
103826         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
103827         go back to AC_SUBSTing it.
103828         * modules/wctype (Makefile.am): Undo previous change.
103830 2007-01-10  Eric Blake  <ebb9@byu.net>
103832         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
103833         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
103834         * modules/wctype (Makefile.am): Likewise.
103835         Reported by Chris McGuire.
103837 2007-01-10  Jim Meyering  <jim@meyering.net>
103839         fts.c: a small readability/maintainability improvement
103840         * lib/fts.c (fts_read): Make this code slightly more readable and
103841         maintainable by hoisting the "sp->fts_cur = p" assignments to
103842         immediately follow the statements that set P.  Derived from
103843         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
103845 2007-01-10  Eric Blake  <ebb9@byu.net>
103847         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
103848         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
103849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
103850         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
103851         Reported by Chris McGuire.
103853 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103855         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
103856         in sed script.
103858 2007-01-09  Bruno Haible  <bruno@clisp.org>
103860         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
103861         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
103862         variables.
103863         (func_module): Use them.
103865 2007-01-09  Bruno Haible  <bruno@clisp.org>
103867         * modules/unistr/base: New file.
103868         * lib/unistr.h: New file.
103870         * modules/unistr/u8-to-u16: New file.
103871         * lib/unistr/u8-to-u16.c: New file.
103873         * modules/unistr/u8-to-u32: New file.
103874         * lib/unistr/u8-to-u32.c: New file.
103876         * modules/unistr/u16-to-u8: New file.
103877         * lib/unistr/u16-to-u8.c: New file.
103879         * modules/unistr/u16-to-u32: New file.
103880         * lib/unistr/u16-to-u32.c: New file.
103882         * modules/unistr/u32-to-u8: New file.
103883         * lib/unistr/u32-to-u8.c: New file.
103885         * modules/unistr/u32-to-u16: New file.
103886         * lib/unistr/u32-to-u16.c: New file.
103888         * modules/unistr/u8-check: New file.
103889         * modules/unistr/u16-check: New file.
103890         * modules/unistr/u32-check: New file.
103891         * lib/unistr/u8-check.c: New file.
103892         * lib/unistr/u16-check.c: New file.
103893         * lib/unistr/u32-check.c: New file.
103895         * modules/unistr/u8-chr: New file.
103896         * modules/unistr/u16-chr: New file.
103897         * modules/unistr/u32-chr: New file.
103898         * lib/unistr/u8-chr.c: New file.
103899         * lib/unistr/u16-chr.c: New file.
103900         * lib/unistr/u32-chr.c: New file.
103902         * modules/unistr/u8-cmp: New file.
103903         * modules/unistr/u16-cmp: New file.
103904         * modules/unistr/u32-cmp: New file.
103905         * lib/unistr/u8-cmp.c: New file.
103906         * lib/unistr/u16-cmp.c: New file.
103907         * lib/unistr/u32-cmp.c: New file.
103909         * modules/unistr/u8-cpy: New file.
103910         * modules/unistr/u16-cpy: New file.
103911         * modules/unistr/u32-cpy: New file.
103912         * lib/unistr/u8-cpy.c: New file.
103913         * lib/unistr/u16-cpy.c: New file.
103914         * lib/unistr/u32-cpy.c: New file.
103915         * lib/unistr/u-cpy.h: New file.
103917         * modules/unistr/u8-cpy-alloc: New file.
103918         * modules/unistr/u16-cpy-alloc: New file.
103919         * modules/unistr/u32-cpy-alloc: New file.
103920         * lib/unistr/u8-cpy-alloc.c: New file.
103921         * lib/unistr/u16-cpy-alloc.c: New file.
103922         * lib/unistr/u32-cpy-alloc.c: New file.
103923         * lib/unistr/u-cpy-alloc.h: New file.
103925         * modules/unistr/u8-endswith: New file.
103926         * modules/unistr/u16-endswith: New file.
103927         * modules/unistr/u32-endswith: New file.
103928         * lib/unistr/u8-endswith.c: New file.
103929         * lib/unistr/u16-endswith.c: New file.
103930         * lib/unistr/u32-endswith.c: New file.
103931         * lib/unistr/u-endswith.h: New file.
103933         * modules/unistr/u8-mblen: New file.
103934         * modules/unistr/u16-mblen: New file.
103935         * modules/unistr/u32-mblen: New file.
103936         * lib/unistr/u8-mblen.c: New file.
103937         * lib/unistr/u16-mblen.c: New file.
103938         * lib/unistr/u32-mblen.c: New file.
103940         * modules/unistr/u8-mbtouc: New file.
103941         * modules/unistr/u16-mbtouc: New file.
103942         * modules/unistr/u32-mbtouc: New file.
103943         * lib/unistr/u8-mbtouc.c: New file.
103944         * lib/unistr/u16-mbtouc.c: New file.
103945         * lib/unistr/u32-mbtouc.c: New file.
103947         * modules/unistr/u8-mbtouc-safe: New file.
103948         * modules/unistr/u16-mbtouc-safe: New file.
103949         * modules/unistr/u32-mbtouc-safe: New file.
103950         * lib/unistr/u8-mbtouc-safe.c: New file.
103951         * lib/unistr/u16-mbtouc-safe.c: New file.
103952         * lib/unistr/u32-mbtouc-safe.c: New file.
103954         * modules/unistr/u8-move: New file.
103955         * modules/unistr/u16-move: New file.
103956         * modules/unistr/u32-move: New file.
103957         * lib/unistr/u8-move.c: New file.
103958         * lib/unistr/u16-move.c: New file.
103959         * lib/unistr/u32-move.c: New file.
103960         * lib/unistr/u-move.h: New file.
103962         * modules/unistr/u8-next: New file.
103963         * modules/unistr/u16-next: New file.
103964         * modules/unistr/u32-next: New file.
103965         * lib/unistr/u8-next.c: New file.
103966         * lib/unistr/u16-next.c: New file.
103967         * lib/unistr/u32-next.c: New file.
103969         * modules/unistr/u8-prev: New file.
103970         * modules/unistr/u16-prev: New file.
103971         * modules/unistr/u32-prev: New file.
103972         * lib/unistr/u8-prev.c: New file.
103973         * lib/unistr/u16-prev.c: New file.
103974         * lib/unistr/u32-prev.c: New file.
103976         * modules/unistr/u8-set: New file.
103977         * modules/unistr/u16-set: New file.
103978         * modules/unistr/u32-set: New file.
103979         * lib/unistr/u8-set.c: New file.
103980         * lib/unistr/u16-set.c: New file.
103981         * lib/unistr/u32-set.c: New file.
103982         * lib/unistr/u-set.h: New file.
103984         * modules/unistr/u8-startswith: New file.
103985         * modules/unistr/u16-startswith: New file.
103986         * modules/unistr/u32-startswith: New file.
103987         * lib/unistr/u8-startswith.c: New file.
103988         * lib/unistr/u16-startswith.c: New file.
103989         * lib/unistr/u32-startswith.c: New file.
103990         * lib/unistr/u-startswith.h: New file.
103992         * modules/unistr/u8-stpcpy: New file.
103993         * modules/unistr/u16-stpcpy: New file.
103994         * modules/unistr/u32-stpcpy: New file.
103995         * lib/unistr/u8-stpcpy.c: New file.
103996         * lib/unistr/u16-stpcpy.c: New file.
103997         * lib/unistr/u32-stpcpy.c: New file.
103998         * lib/unistr/u-stpcpy.h: New file.
104000         * modules/unistr/u8-stpncpy: New file.
104001         * modules/unistr/u16-stpncpy: New file.
104002         * modules/unistr/u32-stpncpy: New file.
104003         * lib/unistr/u8-stpncpy.c: New file.
104004         * lib/unistr/u16-stpncpy.c: New file.
104005         * lib/unistr/u32-stpncpy.c: New file.
104006         * lib/unistr/u-stpncpy.h: New file.
104008         * modules/unistr/u8-strcat: New file.
104009         * modules/unistr/u16-strcat: New file.
104010         * modules/unistr/u32-strcat: New file.
104011         * lib/unistr/u8-strcat.c: New file.
104012         * lib/unistr/u16-strcat.c: New file.
104013         * lib/unistr/u32-strcat.c: New file.
104014         * lib/unistr/u-strcat.h: New file.
104016         * modules/unistr/u8-strchr: New file.
104017         * modules/unistr/u16-strchr: New file.
104018         * modules/unistr/u32-strchr: New file.
104019         * lib/unistr/u8-strchr.c: New file.
104020         * lib/unistr/u16-strchr.c: New file.
104021         * lib/unistr/u32-strchr.c: New file.
104023         * modules/unistr/u8-strcmp: New file.
104024         * modules/unistr/u16-strcmp: New file.
104025         * modules/unistr/u32-strcmp: New file.
104026         * lib/unistr/u8-strcmp.c: New file.
104027         * lib/unistr/u16-strcmp.c: New file.
104028         * lib/unistr/u32-strcmp.c: New file.
104030         * modules/unistr/u8-strcpy: New file.
104031         * modules/unistr/u16-strcpy: New file.
104032         * modules/unistr/u32-strcpy: New file.
104033         * lib/unistr/u8-strcpy.c: New file.
104034         * lib/unistr/u16-strcpy.c: New file.
104035         * lib/unistr/u32-strcpy.c: New file.
104036         * lib/unistr/u-strcpy.h: New file.
104038         * modules/unistr/u8-strcspn: New file.
104039         * modules/unistr/u16-strcspn: New file.
104040         * modules/unistr/u32-strcspn: New file.
104041         * lib/unistr/u8-strcspn.c: New file.
104042         * lib/unistr/u16-strcspn.c: New file.
104043         * lib/unistr/u32-strcspn.c: New file.
104044         * lib/unistr/u-strcspn.h: New file.
104046         * modules/unistr/u8-strdup: New file.
104047         * modules/unistr/u16-strdup: New file.
104048         * modules/unistr/u32-strdup: New file.
104049         * lib/unistr/u8-strdup.c: New file.
104050         * lib/unistr/u16-strdup.c: New file.
104051         * lib/unistr/u32-strdup.c: New file.
104052         * lib/unistr/u-strdup.h: New file.
104054         * modules/unistr/u8-strlen: New file.
104055         * modules/unistr/u16-strlen: New file.
104056         * modules/unistr/u32-strlen: New file.
104057         * lib/unistr/u8-strlen.c: New file.
104058         * lib/unistr/u16-strlen.c: New file.
104059         * lib/unistr/u32-strlen.c: New file.
104060         * lib/unistr/u-strlen.h: New file.
104062         * modules/unistr/u8-strmblen: New file.
104063         * modules/unistr/u16-strmblen: New file.
104064         * modules/unistr/u32-strmblen: New file.
104065         * lib/unistr/u8-strmblen.c: New file.
104066         * lib/unistr/u16-strmblen.c: New file.
104067         * lib/unistr/u32-strmblen.c: New file.
104069         * modules/unistr/u8-strmbtouc: New file.
104070         * modules/unistr/u16-strmbtouc: New file.
104071         * modules/unistr/u32-strmbtouc: New file.
104072         * lib/unistr/u8-strmbtouc.c: New file.
104073         * lib/unistr/u16-strmbtouc.c: New file.
104074         * lib/unistr/u32-strmbtouc.c: New file.
104076         * modules/unistr/u8-strncat: New file.
104077         * modules/unistr/u16-strncat: New file.
104078         * modules/unistr/u32-strncat: New file.
104079         * lib/unistr/u8-strncat.c: New file.
104080         * lib/unistr/u16-strncat.c: New file.
104081         * lib/unistr/u32-strncat.c: New file.
104082         * lib/unistr/u-strncat.h: New file.
104084         * modules/unistr/u8-strncmp: New file.
104085         * modules/unistr/u16-strncmp: New file.
104086         * modules/unistr/u32-strncmp: New file.
104087         * lib/unistr/u8-strncmp.c: New file.
104088         * lib/unistr/u16-strncmp.c: New file.
104089         * lib/unistr/u32-strncmp.c: New file.
104091         * modules/unistr/u8-strncpy: New file.
104092         * modules/unistr/u16-strncpy: New file.
104093         * modules/unistr/u32-strncpy: New file.
104094         * lib/unistr/u8-strncpy.c: New file.
104095         * lib/unistr/u16-strncpy.c: New file.
104096         * lib/unistr/u32-strncpy.c: New file.
104097         * lib/unistr/u-strncpy.h: New file.
104099         * modules/unistr/u8-strnlen: New file.
104100         * modules/unistr/u16-strnlen: New file.
104101         * modules/unistr/u32-strnlen: New file.
104102         * lib/unistr/u8-strnlen.c: New file.
104103         * lib/unistr/u16-strnlen.c: New file.
104104         * lib/unistr/u32-strnlen.c: New file.
104105         * lib/unistr/u-strnlen.h: New file.
104107         * modules/unistr/u8-strpbrk: New file.
104108         * modules/unistr/u16-strpbrk: New file.
104109         * modules/unistr/u32-strpbrk: New file.
104110         * lib/unistr/u8-strpbrk.c: New file.
104111         * lib/unistr/u16-strpbrk.c: New file.
104112         * lib/unistr/u32-strpbrk.c: New file.
104113         * lib/unistr/u-strpbrk.h: New file.
104115         * modules/unistr/u8-strrchr: New file.
104116         * modules/unistr/u16-strrchr: New file.
104117         * modules/unistr/u32-strrchr: New file.
104118         * lib/unistr/u8-strrchr.c: New file.
104119         * lib/unistr/u16-strrchr.c: New file.
104120         * lib/unistr/u32-strrchr.c: New file.
104122         * modules/unistr/u8-strspn: New file.
104123         * modules/unistr/u16-strspn: New file.
104124         * modules/unistr/u32-strspn: New file.
104125         * lib/unistr/u8-strspn.c: New file.
104126         * lib/unistr/u16-strspn.c: New file.
104127         * lib/unistr/u32-strspn.c: New file.
104128         * lib/unistr/u-strspn.h: New file.
104130         * modules/unistr/u8-strstr: New file.
104131         * modules/unistr/u16-strstr: New file.
104132         * modules/unistr/u32-strstr: New file.
104133         * lib/unistr/u8-strstr.c: New file.
104134         * lib/unistr/u16-strstr.c: New file.
104135         * lib/unistr/u32-strstr.c: New file.
104136         * lib/unistr/u-strstr.h: New file.
104138         * modules/unistr/u8-strtok: New file.
104139         * modules/unistr/u16-strtok: New file.
104140         * modules/unistr/u32-strtok: New file.
104141         * lib/unistr/u8-strtok.c: New file.
104142         * lib/unistr/u16-strtok.c: New file.
104143         * lib/unistr/u32-strtok.c: New file.
104144         * lib/unistr/u-strtok.h: New file.
104146         * modules/unistr/u8-uctomb: New file.
104147         * modules/unistr/u16-uctomb: New file.
104148         * modules/unistr/u32-uctomb: New file.
104149         * lib/unistr/u8-uctomb.c: New file.
104150         * lib/unistr/u16-uctomb.c: New file.
104151         * lib/unistr/u32-uctomb.c: New file.
104153         * MODULES.html.sh (Unicode string functions): Add the new modules.
104155 2007-01-08  Bruno Haible  <bruno@clisp.org>
104157         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
104158         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
104159         subdirectories.
104161 2007-01-08  Karl Berry  <karl@gnu.org>
104163         * doc/error.texi: mention that main() fns must set program_name
104164         when progname is used.
104166 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
104168         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
104169         WCTYPE_H is empty, for the benefit of builds from non-distclean
104170         directories.  Problem reported by Eric Blake in
104171         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
104173 2007-01-08  Bruno Haible  <bruno@clisp.org>
104175         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
104176         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
104177         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
104178         PROVIDE_CANONICALIZE_FILENAME_MODE.
104179         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
104181 2007-01-08  Bruno Haible  <bruno@clisp.org>
104183         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
104184         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
104185         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
104186         * lib/fts.c: Likewise.
104187         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
104189 2006-12-25  Bruno Haible  <bruno@clisp.org>
104191         * modules/utf8-ucs4-safe: New file.
104192         * lib/utf8-ucs4-safe.h: New file.
104193         * lib/unistr/utf8-ucs4-safe.c: New file.
104195         * modules/utf16-ucs4-safe: New file.
104196         * lib/utf16-ucs4-safe.h: New file.
104197         * lib/unistr/utf16-ucs4-safe.c: New file.
104199         * MODULES.html.sh (Unicode string functions): Add the new modules.
104201 2007-01-08  Bruno Haible  <bruno@clisp.org>
104203         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
104204         (Depends-on): Add unitypes.
104205         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
104206         (u8_mbtouc_aux): Move out to separate file.
104207         (u8_mbtouc): Use ucs4_t, uint8_t types.
104208         * lib/unistr/utf8-ucs4.c: New file.
104210         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
104211         (Depends-on): Add unitypes.
104212         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
104213         (u16_mbtouc_aux): Move out to separate file.
104214         (u16_mbtouc): Use ucs4_t, uint16_t types.
104215         * lib/unistr/utf16-ucs4.c: New file.
104217         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
104218         (Depends-on): Add unitypes.
104219         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
104220         (u8_uctomb_aux): Move out to separate file.
104221         (u8_uctomb): Use ucs4_t, uint8_t types.
104222         * lib/unistr/ucs4-utf8.c: New file.
104224         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
104225         (Depends-on): Add unitypes.
104226         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
104227         (u16_uctomb_aux): Move out to separate file.
104228         (u16_uctomb): Use ucs4_t, uint16_t types.
104229         * lib/unistr/ucs4-utf16.c: New file.
104231 2006-12-25  Bruno Haible  <bruno@clisp.org>
104233         * modules/unitypes: New file.
104234         * lib/unitypes.h: New file.
104235         * MODULES.html.sh (func_all_modules): New section "Unicode string
104236         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
104237         this section. Add unitypes.
104239 2007-01-08  Bruno Haible  <bruno@clisp.org>
104241         Avoid variable names that conflict with those from libtool.
104242         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
104243         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
104244         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
104245         library_names_spec to acl_library_names_spec, hardcode_* to
104246         acl_hardcode_*.
104247         Reported by Ralf Wildenhues.
104249 2007-01-08  Bruno Haible  <bruno@clisp.org>
104251         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
104252         definition.
104253         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
104254         definition.
104255         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
104256         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
104257         definition.
104258         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
104259         definition.
104260         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
104261         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
104262         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
104263         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
104264         definition.
104265         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
104266         definition.
104267         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
104268         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
104269         GC_USE_<algorithm>.
104270         * lib/gc-libgcrypt.c: Likewise.
104271         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
104272         * modules/gc-arctwo (configure.ac): Likewise.
104273         * modules/gc-des (configure.ac): Likewise.
104274         * modules/gc-hmac-md5 (configure.ac): Likewise.
104275         * modules/gc-hmac-sha1 (configure.ac): Likewise.
104276         * modules/gc-md2 (configure.ac): Likewise.
104277         * modules/gc-md4 (configure.ac): Likewise.
104278         * modules/gc-md5 (configure.ac): Likewise.
104279         * modules/gc-random (configure.ac): Likewise.
104280         * modules/gc-rijndael (configure.ac): Likewise.
104281         * modules/gc-sha1 (configure.ac): Likewise.
104283 2007-01-08  Bruno Haible  <bruno@clisp.org>
104285         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
104286         macro definition.
104287         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
104288         definition.
104289         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
104290         definition.
104291         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
104292         * modules/fcntl-safer (configure.ac): Likewise.
104293         * modules/fopen-safer (configure.ac): Likewise.
104294         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
104295         GNULIB_FWRITEERROR macro definition.
104297 2007-01-08  Bruno Haible  <bruno@clisp.org>
104299         * m4/gnulib-common.m4: New file.
104300         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
104301         (func_get_filelist): Add m4/gnulib-common.m4.
104303 2007-01-08  Bruno Haible  <bruno@clisp.org>
104305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
104306         command.
104308 2007-01-08  Jim Meyering  <jim@meyering.net>
104310         Use a more robust test for a "can't happen" condition.
104311         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
104312         narrowed the st_size value.  Presuming the "can't happen" condition
104313         is true, that narrowing could conceivably convert an invalid st_size
104314         value into a valid one.  Instead, use a change based on Matthew
104315         Woehlke's original patch.
104317         Slight readability improvement: use an assert-like macro
104318         in place of literal "abort ()" uses.
104319         * lib/fts.c (fts_assert): Define.
104320         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
104321         Use this macro instead of a bare 'abort'.
104323 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
104325         Don't worry about using IRIX 5.3's wctype.h broken definitions;
104326         simply work around them.
104327         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
104328         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
104329         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
104330         declaring.
104331         Don't bother to define as macros, since the standard doesn't require it.
104332         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
104333         longer worry about IRIX 5.3.
104334         (HAVE_WCTYPE_CTMP_BUG): Remove.
104336 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
104338         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
104339         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
104340         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
104341         Problems reported by Georg Schwarz for IRIX 5.3.
104343         * gnulib-tool (autoconf_minversion): Take the maximum version number
104344         found, not the minimum.  Problem reported by James Youngman.
104346 2007-01-03  Karl Berry  <karl@gnu.org>
104348         * doc/error.texi: new file, explaining interaction with progname.
104349         * doc/gnulib.texi: include it.  Update copyright.
104351 2007-01-03  Simon Josefsson  <simon@josefsson.org>
104353         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
104354         AC_CANONICAL_HOST, to improve autobuild outputs.
104356 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
104357             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
104359         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
104360         sockets, server sockets, and other file descriptors.  Count errors
104361         to compute the return value.  Reorder the code a bit to be easier
104362         to follow.  Don't set event bits that were not requested (except
104363         POLLERR and POLLHUP).
104365 2007-01-01  Bruno Haible  <bruno@clisp.org>
104367         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
104369 2007-01-03  Jim Meyering  <jim@meyering.net>
104371         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
104373 2007-01-02  Bruno Haible  <bruno@clisp.org>
104375         * modules/settime (Include): Require timespec.h.
104376         * modules/nanosleep (Include): Likewise.
104378 2007-01-01  Bruno Haible  <bruno@clisp.org>
104380         * gnulib-tool (func_emit_copyright_notice): Bump year.
104381         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
104383 2007-01-01  Bruno Haible  <bruno@clisp.org>
104385         Improve support for OpenBSD.
104386         * build-aux/config.rpath (libname_spec): Export.
104387         (library_names_spec): New variable. Export.
104388         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
104389         library_names_spec from the config.rpath output. Locate shared library
104390         through the name pattern in library_names_spec.
104392 2007-01-01  Eric Blake  <ebb9@byu.net>
104394         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
104396 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
104398         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
104399         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
104400         assume the C locale, and avoid an "eval" that could cause trouble.
104401         Problem with SORT reported by Bob Proulx.
104403         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
104404         Define.  Trivial patch from Henning Nielsen Lund, originally
104405         sent to bug-grep@gnu.org today.
104407 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
104409         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
104410         struct stat.  Problem reported by Henning Nielsen Lund.
104411         * lib/acl.c: Include acl.h first, to check interface.  Don't
104412         bother to include sys/types.h and sys/stat.h again.
104414 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
104416         Import the following change from libc; problem reported by
104417         Sven Verdoolaege.
104419         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
104421         [BZ #1373]
104422         * lib/argp.h: Remove __NTH for __argp_usage inline function.
104424 2006-12-28  Jim Meyering  <jim@meyering.net>
104426         * build-aux/announce-gen: Do not assume that the package
104427         builds any of tar.gz, tar.bz2, and .xdelta files.
104428         Suggestion from Simon Josefsson.
104430 2006-12-28  Simon Josefsson  <simon@josefsson.org>
104432         * modules/announce-gen: New file.
104434 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
104436         * lib/mbchar.h: Just include <wctype.h>; the wctype module
104437         handles its gotchas now.
104438         * lib/mbswidth.c: Likewise.
104439         * lib/wcwidth.h: Likewise.
104440         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
104441         and iswcntrl; the wctype module does this stuff now.
104442         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
104443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
104444         * modules/mbchar (Depends-on): Add wctype.
104445         * modules/mbswidth (Depends-on): Likewise.
104446         * modules/wcwidth (Depends-on): Likewise.
104448 2006-12-27  Eric Blake  <ebb9@byu.net>
104450         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
104451         module uses more than what <wctype.h> is required to provide.
104453 2006-12-26  Eric Blake  <ebb9@byu.net>
104455         * gnulib-tool (sed_extract_prog): Avoid space-tab.
104457 2006-12-26  Eric Blake  <ebb9@byu.net>
104459         * modules/absolute-header: New module.
104460         * modules/fcntl (Depends-on): Depend on it.
104461         * modules/inttypes (Depends-on): Likewise.
104462         * modules/stdint (Depends-on): Likewise.
104463         * modules/sys_stat (Depends-on): Likewise.
104464         * modules/wctype (Depends-on): Likewise.
104465         * MODULES.html.sh (Support for building libraries and
104466         executables): Document it.
104468 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
104470         * gnulib-tool (SED): Remove, undoing previous change.
104471         The problem was that it broke coreutils on Solaris, because
104472         "sed --posix" leaked into a makefile.
104473         (sed): New alias, if 'alias' and GNU sed.
104475 2006-12-24  Jim Meyering  <jim@meyering.net>
104477         Work around an fchownat bug in glibc-2.4:
104478         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
104479         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
104480         in spite of the -P option.
104481         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
104482         New macros.
104483         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
104484         * modules/openat (Files): Add lib/fchownat.c.
104485         * lib/openat.c (fchownat): Don't define here.  Move to...
104486         * lib/fchownat.c: ...this new file.
104488 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
104490         Fix bug reported by Bruno Haible in
104491         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
104492         where quotearg.c didn't compile on Mac OS X 10.2 because it
104493         lacks <wchar.h> and wint_t.
104494         * lib/wctype_.h (__wctype_wint_t): New type.
104495         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
104496         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
104497         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
104498         Arg is now of type __wctype_wint_t, not wint_t.
104499         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
104500         substitute HAVE_WINT_T.
104501         * modules/wctype (Files): Add m4/wint_t.m4.
104502         (wctype.h): Substitute HAVE_WINT_T.
104504 2006-12-23  Bruno Haible  <bruno@clisp.org>
104506         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
104508 2006-12-23  Bruno Haible  <bruno@clisp.org>
104510         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
104511         S_ISLNK.
104512         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
104513         mingw.
104515 2006-12-22  Bruno Haible  <bruno@clisp.org>
104517         * lib/copy-file.c: Include acl.h.
104518         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
104519         Close the file descriptors only after being done with copy_acl.
104520         * modules/copy-file (Depends-on): Add acl.
104522 2006-12-22  Bruno Haible  <bruno@clisp.org>
104524         * gnulib-tool (SED): New variable.
104525         Use $SED instead of sed everywhere.
104527 2006-12-22  Bruno Haible  <bruno@clisp.org>
104529         * modules/no-c++: New file.
104530         * m4/no-c++.m4: New file.
104531         * MODULES.html.sh (Support for building libraries and executables):
104532         Add no-c++.
104534 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
104536         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
104537         Include <limits.h>, and use its INT_MAX to rewrite the
104538         j loop so that it does not overflow 'int'.  Problem reported by
104539         Ralf Wildenhues in
104540         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
104541         Play it safe by shifting left by 1 rather than multiplying by 2,
104542         as GCC is less likely to optimize this away when the value
104543         is signed (when it assumes overflow leads to undefined behavior).
104544         Also, don't assume time_t uses two's complement.
104546 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
104548         * MODULES.html.sh: New module wctype.
104549         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
104550         * lib/fnmatch.c: Don't bother to include <wchar.h> before
104551         <wctype.h>, since the new wctype module should fix this.
104552         * lib/quotearg.c: Include <wctype.h> unconditionally, since
104553         the wctype module should arrange for it.
104554         * lib/regex_internal.h: Likewise.
104555         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
104556         since the wctype module should handle this now.
104557         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
104558         * modules/fnmatch (Depends-on): Add wctype.
104559         * modules/quotearg (Depends-on): Likewise.
104560         * modules/regex (Depends-on): Likewise.
104562 2006-12-19  Bruno Haible  <bruno@clisp.org>
104564         * lib/strdup.h [C++]: Wrap definitions in extern "C".
104565         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
104567 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104569         * modules/savewd (Depends-on): Fix dependency on fcntl.
104571 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
104573         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
104574         conforms to C99, rather than relying on the user's environment
104575         setting of STDINT_H.
104577 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
104578         and Eric Blake  <ebb9@byu.net>
104580         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
104581         This is more consistent with the other defines here.
104582         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
104583         Port to z/OS.  Problem reported by Paul Gilmartin.
104584         Change local vars to use gl_ prefix rather than ac_.
104585         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
104586         with other defines.
104587         * modules/double-slash-root: New module.
104588         * modules/dirname (Files): Remove m4/double-slash-root.m4.
104589         (Depends-on): Add double-slash-root.
104590         * MODULES.html.sh (File system functions): Mention new module.
104592 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
104594         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
104595         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
104596         This is for the benefit of gzip, which doesn't do i18n.
104598 2006-12-12  Jim Meyering  <jim@meyering.net>
104600         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
104601         Reported by Andreas Schwab <schwab@suse.de>.
104603 2006-12-12  Bruno Haible  <bruno@clisp.org>
104605         Merge these changes.
104606         2006-09-05  Bruno Haible  <bruno@clisp.org>
104607         * lib/iconvme.c (iconv_string): No need to save and restore errno when
104608         iconv_alloc succeeded.
104609         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
104610         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
104611         test for " && dest " at the end - dest is always != NULL there. Call
104612         iconv with 4xNULL arguments initially, to reset the state. Call iconv
104613         with 2xNULL arguments, also to flush the state storage. Handle the
104614         IRIX iconv behaviour. Realloc the final result, to throw away unused
104615         memory.
104617 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
104619         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
104620         and fchmodat unconditionally, since glibc 2.4 has them.
104621         Problem reported by Arkadiusz Miskiewicz.
104623 2006-12-10  Bruno Haible  <bruno@clisp.org>
104625         * gnulib-tool (func_import): Show the include files only for those
104626         modules that are copied and specified.
104627         Reported by Karl Berry.
104629 2006-12-08  Jim Meyering  <jim@meyering.net>
104631         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
104632         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
104634         * build-aux/announce-gen: Add two new options, both optional:
104635         --bootstrap-tools=TOOL_LIST
104636               a comma-separated list of tools, e.g.,
104637               autoconf,automake,bison,gnulib
104638         --gnulib-snapshot-date=DATE
104639               if gnulib is in the bootstrap tool list,
104640               then report this as the snapshot date.
104641               If not specified, use the current date/time.
104642               If you specify a date here, be sure it's UTC.
104644 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104646         * tests/test-argp-2.sh: Fix test to match actual output.
104647         (func_compare): Fix sed script to be portable.
104649 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
104651         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
104652         workaround for this case.  It is not autoconfigured now; offhand
104653         it's hard to see how to autoconfigure it.
104655 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
104657         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
104658         a directory that is about to be chowned.  Such a directory's
104659         initial file permissions should permit the owner only and this
104660         should not be changed until after the chown, since the group and
104661         other bits would be incorrect if they granted permission before
104662         the chown.
104664         Fix porting problem for iswctype reported by Georg Schwarz in:
104665         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
104666         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
104667         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
104668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
104669         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104671 2006-12-03  Jim Meyering  <jim@meyering.net>
104673         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
104674         p->fts_statp may not yet be defined.
104675         (fts_read): Instead, set it in the caller, once p->fts_statp is
104676         sure to be defined, and corresponds to a top-level directory.
104677         This bug made du -x fail.  Here's the coreutils test case:
104678         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
104679         Reported by Mike Frysinger.
104681 2006-12-01  Jim Meyering  <jim@meyering.net>
104683         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
104684         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
104685         Reported by Simon Josefsson.
104687 2006-11-30  Jim Meyering  <jim@meyering.net>
104689         * m4/warning.m4: Use the all-permissive copyright notice
104690         recommended by RMS (rather than LGPL).
104691         * m4/vararrays.m4: Likewise.
104692         * m4/flexmember.m4: Likewise.
104694 2006-11-29  Bruno Haible  <bruno@clisp.org>
104696         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
104697         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
104698         using +=.
104699         Reported by Simon Josefsson <simon@josefsson.org>.
104701 2006-11-28  James Youngman  <jay@gnu.org>
104703         * README: Advise users that they might find the bug-gnulib@gnu.org
104704         and autotools-announce@gnu.org mailing lists useful.
104706 2006-11-28  Bruno Haible  <bruno@clisp.org>
104708         * m4/ptrdiff_max.m4: Remove file.
104710 2006-11-21  Bruno Haible  <bruno@clisp.org>
104712         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
104713         _AC_COMPUTE_INT.
104714         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104715         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
104716         _AC_COMPUTE_INT.
104717         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104718         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
104719         _AC_COMPUTE_INT.
104720         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104722 2006-11-28  Jim Meyering  <jim@meyering.net>
104724         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
104725         warning from "gcc -Wshadow" about shadowing the builtin.
104727 2006-11-27  Bruno Haible  <bruno@clisp.org>
104729         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
104730         _AC_COMPUTE_INT.
104731         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
104733 2006-11-27  Bruno Haible  <bruno@clisp.org>
104734             Paul Eggert  <eggert@cs.ucla.edu>
104736         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
104738 2006-11-26  Bruno Haible  <bruno@clisp.org>
104740         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
104741         noinst_LTLIBRARIES.
104743 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
104744             Bruno Haible  <bruno@clisp.org>
104746         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
104747         if compiling with "gcc -ansi".
104749 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
104751         Fix some incompatibilities with gcc -ansi -pedantic.
104752         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
104753         if compiling pedantically with GCC, unless it's C99 or later.
104754         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
104755         it mishandles gcc -ansi -pedantic as well.
104756         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
104757         if gcc -pedantic.
104758         * lib/regexec.c (check_node_accept_bytes): Don't use auto
104759         initializers for struct if -pedantic, unless it's C99 or later.
104761 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
104763         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
104764         Don't close an fd more than once. Identical atimes indicate
104765         success, not failure.
104767 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
104769         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
104771 2006-11-23  Jim Meyering  <jim@meyering.net>
104773         * build-aux/announce-gen: New file.  From coreutils.
104775 2006-11-22  Jim Meyering  <jim@meyering.net>
104777         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
104778         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
104779         (fts_read): Use a temporary to narrow the overused st_size member
104780         before using it in a switch statement.  Reported by Matthew Woehlke.
104782         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
104783         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
104785 2006-11-20  Bruno Haible  <bruno@clisp.org>
104787         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
104788         changequote instead of pairs of brackets.
104789         Reported by Andreas Schwab <schwab@suse.de>.
104791 2006-11-21  Jim Meyering  <jim@meyering.net>
104793         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
104794         so as to remain compatible with older compilers.
104795         Patch from Michael Deutschmann.
104797 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
104799         * MODULES.html.sh (File system functions): Add openat.
104801         * lib/openat.h (rpl_fstatat): New macro, if
104802         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
104803         (fstatat): Define to rpl_fstatat under the same conditions,
104804         unless COMPILING_FSTATAT.
104805         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
104806         seems to have the bug.
104807         * lib/fstatat.c: New file.
104808         * modules/openat (Files): Add it.
104810 2006-11-20  Bruno Haible  <bruno@clisp.org>
104812         * Makefile: New file.
104814 2006-11-20  Jim Meyering  <jim@meyering.net>
104816         The beginnings of syntax-related checks for gnulib.
104817         * lib/Makefile: New file.
104818         * lib/t-idcache: New script.  Ensure that the two halves of
104819         idcache.c stay in sync.
104821         * lib/idcache.c: Adjust comments in user- and group- portions to
104822         be more accurate, and to be consistent with one another.
104824 2006-11-20  Jim Meyering  <jim@meyering.net>
104826         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
104827         continue using the flexible array member (thus, this module performs
104828         half as many malloc calls), with the addition that...
104829         (getgroup, getuser): Consistently record a non-match via an empty
104830         "name" string, and map an empty string match to a NULL return value.
104831         * modules/idcache (Depends-on): Re-add flexmember.
104833         * lib/idcache.c (getuser): Remove all uses of the register keyword.
104834         (getuidbyname, getgroup, getgidbyname): Likewise.
104836         Use cleaner syntax: NULL rather than 0.
104837         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
104839 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
104841         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
104842         It mishandled the case where the group was missing.
104843         Problem reported by Greg Schafer.
104844         * modules/idcache: Likewise.
104846 2006-11-18  Jim Meyering  <jim@meyering.net>
104848         * check-module (%exempt_header): Add exception for some
104849         conditionally-included headers.
104851         * modules/i-ring (Depends-on): Add verify.
104852         (License): Change to LGPL.
104854 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
104856         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
104857         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
104858         and inttostr.h.  Use snprintf rather than uinttostr, so that
104859         LGPLed code doesn't depend on GPLed.
104861 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
104863         * modules/inline (License): Change from GPL to LGPL.
104865 2006-11-17  Jim Meyering  <jim@meyering.net>
104867         * modules/d-type (License): Switch to LGPL.
104869 2006-11-15  Bruno Haible  <bruno@clisp.org>
104871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
104873 2006-11-15  Eric Blake  <ebb9@byu.net>
104875         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
104876         the module dependency.
104878 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104879             Bruno Haible  <bruno@clisp.org>
104881         * gnulib-tool (func_create_testdir): Add license consistency check.
104883 2006-11-15  Eric Blake  <ebb9@byu.net>
104885         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
104886         random "(cached)" in configure output.
104888 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104890         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
104891         test for conforming inttypes.h is both announced and cached.
104893         * MODULES.html.sh (seen_modules, seen_files): New variables.
104894         (func_module): Rewrite to use a few less gnulib-tool and sed
104895         invocations.  Avoid a couple of quadratic algorithms for ...
104896         (missed_modules, missed_files): ... these, with ...
104897         (func_append, func_tmpdir): ... these new functions, from
104898         gnulib-tool.  Analogously, install traps for cleanup.
104900         * tests/test-gc.c (main): Remove unused variables.
104901         * tests/test-read-file.c: Include stdlib.h, for 'free'.
104903 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
104905         * modules/inttostr (License): Change to LGPL.
104907 2006-11-14  Eric Blake  <ebb9@byu.net>
104909         * modules/tempname (License): Change to LGPL.
104911 2006-11-14  Eric Blake  <ebb9@byu.net>
104913         * doc/functions.texi (Function Portability): *printf functions on
104914         Cygwin now understand all POSIX size specifiers.
104916 2006-11-14  Bruno Haible  <bruno@clisp.org>
104918         * modules/c-ctype (License): Change to LGPL.
104920 2006-11-12  Bruno Haible  <bruno@clisp.org>
104922         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
104923         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
104924         for GNOME libraries, for which the include files are installed in
104925         subdirectories of $prefix/include.
104927 2006-11-12  Bruno Haible  <bruno@clisp.org>
104929         * m4/lib-link.m4: Require at least autoconf-2.54.
104930         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
104931         name to underscores for the --with option.
104933 2006-11-13  Bruno Haible  <bruno@clisp.org>
104935         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
104936         the tests directory.
104937         Reported by Ralf Wildenhues.
104939 2006-11-13  Bruno Haible  <bruno@clisp.org>
104941         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
104942         (func_emit_initmacro_end): Undo the override here.
104943         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
104944         Works around the famous automake error in coreutils.
104946 2006-11-13  Eric Blake  <ebb9@byu.net>
104948         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
104949         element, not its node.
104951 2006-11-12  Bruno Haible  <bruno@clisp.org>
104953         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
104954         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
104956 2006-11-12  Bruno Haible  <bruno@clisp.org>
104958         * gnulib-tool: New option --local-symlink.
104959         (func_usage): Document it.
104960         (lsymbolic): New variable.
104961         (func_import, func_create_testdir): If --symlink was not specified,
104962         test whether --local-symlink was specified and the file comes from
104963         the local_gnulib_dir.
104965 2006-11-12  Bruno Haible  <bruno@clisp.org>
104967         * gnulib-tool (func_ln): New function.
104968         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
104970 2006-11-12  Bruno Haible  <bruno@clisp.org>
104972         Finish support for source files in subdirectories.
104973         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
104974         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
104975         AUTOMAKE_OPTIONS.
104976         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
104978 2006-11-12  Bruno Haible  <bruno@clisp.org>
104980         * gnulib-tool (func_get_automake_snippet): Synthesize also an
104981         EXTRA_lib_SOURCES augmentation.
104982         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
104984 2006-11-12  Jim Meyering  <jim@meyering.net>
104986         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
104987         file descriptors.  This also averts a failure on systems with
104988         native openat support when a traversed directory lacks "x" access.
104989         * lib/fts_.h: Include "i-ring.h"
104990         (struct FTS) [fts_fd_ring]: New member.
104991         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
104992         (FCHDIR): Add parentheses.
104993         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
104994         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
104995         When descending, rather than simply closing the previous
104996         fts_cwd_fd value, push that file descriptor onto the ring.
104997         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
104998         (fts_open): Initialize the new fd_ring member.
104999         (fts_close): Clear the ring.
105000         (fts_safe_changedir): When possible, use our new fd_ring to skip
105001         the diropen and fstat and dev/ino comparison that would normally
105002         accompany a virtual `chdir ("..")'.
105004         * modules/fts (Depends-on): Add i-ring.
105005         * modules/i-ring: New module.
105006         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
105007         * m4/i-ring.m4: New file.
105009 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105011         * gnulib-tool (func_create_testdir): Fix replacement of
105012         `build-aux' in configure.ac.  Run autotools in gltests
105013         subdirectory.
105014         (func_create_testdir, func_create_megatestdir, test): There is
105015         no need for '--force' in most autotool invocations in a new
105016         tree.  Actually fail the whole test if any of the tools, or the
105017         configure or make stages fail.
105019         Sync from Automake.
105020         * build-aux/gnupload: Revert last change.  Add pointer to upload
105021         instructions of the GNU Maintenance Instructions.
105022         Suggestion by Karl Berry.
105024 2006-11-10  Jim Meyering  <jim@meyering.net>
105026         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
105028 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105030         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
105031         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
105032         (bind_textdomain_codeset) [! ENABLE_NLS]:
105033         Evaluate all the arguments.  That way, callers get compatible behavior
105034         if the arguments have side effects.  Also, it avoids some GCC
105035         diagnostics in some cases; Joel E. Denny reported problems when Bison
105036         was configured with --enable-gcc-warnigs.
105038 2006-11-10  Jim Meyering  <jim@meyering.net>
105040         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
105041         relevant options in CFLAGS (like -O, -fno-inline) are taken into
105042         account.
105044 2006-11-10  Jim Meyering  <jim@meyering.net>
105046         * modules/inline: New file/module.
105047         * modules/xalloc (Files): Remove m4/inline.m4.
105048         (Depends-on): Add inline, instead.
105049         * modules/oset: Likewise.
105050         * modules/list: Likewise.
105052 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105054         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
105055         Problem reported by Matthew Woehlke.
105057 2006-11-09  Bruno Haible  <bruno@clisp.org>
105059         * lib/tempname.c (gen_tempname): Remove variant that invokes
105060         __gen_tempname.
105061         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
105062         __gen_tempname.
105064 2006-11-08  Bruno Haible  <bruno@clisp.org>
105066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
105067         to 'yes' instead of 'cross-compiling'.
105069 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
105071         * lib/quotearg.h (quotearg_free): New decl.
105072         * lib/quotearg.c (quotearg_free): New function.
105073         (slot0, nslots, slotvec0, slotvec):
105074         Now file-scope so that quotearg_free can get at them.
105076 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105078         Sync from Automake.
105079         * build-aux/gnupload: Add missing 'gnu' to example URL.
105080         Report by Karl Berry.
105082 2006-11-08  Bruno Haible  <bruno@clisp.org>
105084         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
105085         Suggested by Paul Eggert.
105087 2006-11-08  Jim Meyering  <jim@meyering.net>
105089         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
105090         It's already included if !_LIBC.
105091         (fts_safe_changedir): Add a comment.
105093 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
105095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
105096         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
105097         Matthew Woehlke.
105099         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
105100         definitions up, to avoid colliding with change below.
105101         (static_inline) [HAVE_INLINE]: New macro.
105102         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
105103         Provide extern decls when !HAVE_INLINE.  Do not define unless
105104         static_inline is defined, either by us or by xmalloc.c.  Use
105105         static_inline rather than static inline.
105106         (XCALLOC): Optimize sizeof(T) = 1 case.
105107         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
105109 2006-11-07  Bruno Haible  <bruno@clisp.org>
105111         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
105112         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
105113         AC_C_INLINE.
105114         * modules/xalloc (Files): Add m4/inline.m4.
105116 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105118         * README: Fix typo.
105119         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
105120         (Miscellanous Notes): ...from this.
105122 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
105124         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
105125         Mention that offsetof should be used instead of sizeof.
105126         From Bruno Haible.
105128 2006-11-07  Bruno Haible  <bruno@clisp.org>
105130         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
105132 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
105134         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
105135         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
105136         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
105137         (gl_tree_add_before, gl_tree_add_after):
105138         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
105139         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
105140         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105141         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
105142         (gl_linked_add_after, gl_linked_add_at): Likewise.
105143         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
105144         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
105145         (gl_tree_add_before, gl_tree_add_after): Likewise.
105146         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
105147         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
105148         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
105150 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105152         * lib/gl_oset.h: Use C comment style, not C++ comment style.
105154 2006-11-06  Bruno Haible  <bruno@clisp.org>
105156         * m4/inline.m4: New file.
105157         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
105158         * modules/list (Files): Add m4/inline.m4.
105159         * modules/oset (Files): Likewise.
105161 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
105163         * lib/idcache.c: Include <stddef.h>, for offsetof.
105164         (struct userid.name): Change from char * to a flexible array member.
105165         All uses changed.
105166         * modules/idcache (Depends-on): Add flexmember.
105168         * MODULES.html.sh (Core language properties): New module flexmember.
105169         * modules/flexmember, m4/flexmember.m4: New files.
105171         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
105172         inline functions that are identical with the old xnmalloc_inline,
105173         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
105174         that we can avoid some unnecessary integer multiplications and
105175         divisions in the common case where the element size is known at
105176         compile time.
105177         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
105178         needed.
105179         (xnboundedmalloc): Remove.
105180         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
105181         arguments, for consistency with rest of this header.
105182         (xcharalloc): Rewrite using XNMALLOC.
105183         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
105184         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
105185         versions have been moved to lib/xalloc.h and renamed to be the
105186         non-*_inline versions.
105187         (xmalloc, xrealloc): Implement without reference to the xnmalloc
105188         and xnrealloc functions, since those functions are now inline and
105189         now call us.
105190         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
105191         renaming described above.
105192         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
105193         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
105194         captures the dependency in AC_C_INLINE.
105196         New module canonicalize-lgpl, proposed by Charles Wilson in
105197         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
105198         with a few small changes afterwards.
105199         * MODULES.html.sh (File system functions): New module
105200         canonicalize-lgpl.
105201         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
105202         and canonicalize_file_name.
105203         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
105204         * modules/canonicalize-lgpl: New files.
105206 2006-11-05  Bruno Haible  <bruno@clisp.org>
105208         * gnulib-tool (func_import, func_create_testdir): Create directories
105209         also for files in subdirectories of lib/.
105211 2006-11-05  Bruno Haible  <bruno@clisp.org>
105213         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
105214         ANSI C compliant.
105216 2006-11-03  Bruno Haible  <bruno@clisp.org>
105218         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
105219         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
105220         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
105221         (xnboundedmalloc): New inline function.
105222         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
105223         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
105224         xmalloc.
105225         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
105226         xmalloc.
105227         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
105228         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
105229         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
105230         xmalloc.
105231         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
105232         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
105233         xmalloc.
105234         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
105235         gl_tree_add_after): Use XMALLOC instead of xmalloc.
105236         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
105237         xmalloc.
105238         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
105239         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
105240         gl_tree_add_after): Use XMALLOC instead of xmalloc.
105241         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
105242         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
105243         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
105244         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
105246 2006-11-03  Bruno Haible  <bruno@clisp.org>
105248         * lib/c-ctype.h [C++]: Define functions without name mangling.
105249         * lib/fwriteerror.h [C++]: Likewise.
105250         * lib/gcd.h [C++]: Likewise.
105251         * lib/linebreak.h [C++]: Likewise.
105253 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105255         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
105256         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
105257         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
105258         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
105259         Check for functions and headers just once.
105260         Check for declaration of canonicalize_file_name.
105261         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
105263 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105265         * gnulib-tool (func_import): Fix typo in actioncmd.
105267 2006-11-02  Bruno Haible  <bruno@clisp.org>
105269         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
105270         newline sequence in the Makefile.am snippet as a space, like "make"
105271         does.
105272         Reported by Roger Persson <perrog@gmail.com>.
105274 2006-11-01  Bruno Haible  <bruno@clisp.org>
105276         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
105277         already declared in <string.h>.
105278         * lib/strcase.h (strncasecmp): Don't declare it if yes.
105280 2006-11-01  Bruno Haible  <bruno@clisp.org>
105282         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
105283         * lib/strcase.h: Include <string.h>.
105284         (strcasecmp): Define to rpl_strcasecmp here.
105286 2006-11-01  Bruno Haible  <bruno@clisp.org>
105288         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
105290 2006-11-01  Eric Blake  <ebb9@byu.net>
105292         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
105294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
105296 2006-10-29  Bruno Haible  <bruno@clisp.org>
105298         Make it compile in C++ mode.
105299         * lib/full-write.c (full_rw): Add a cast.
105301 2006-11-01  Bruno Haible  <bruno@clisp.org>
105303         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
105304         be POSIX compliant.
105305         Reported by Roger Persson <perrog@gmail.com>.
105307 2006-11-01  Eric Blake  <ebb9@byu.net>
105309         * lib/getopt_.h: Fix comments.
105311 2006-10-31  Eric Blake  <ebb9@byu.net>
105313         * modules/tmpdir (Depends-on): Add sys_stat.
105314         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
105315         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
105316         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
105317         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
105318         tempname.
105320 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
105322         Avoid some C++ diagnostics reported by Bruno Haible.
105323         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
105324         xmalloc.
105325         (quotearg_alloc): Use xcharalloc rather than xmalloc.
105326         (struct slotvec): Move to top level.
105327         (quotearg_n_options): Rewrite to avoid xmalloc.
105328         * lib/xalloc.h (xcharalloc): New function.
105329         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
105330         [defined __cplusplus]: Add function template that provides result
105331         type propagation.  This part of the change is from Bruno Haible.
105333 2006-10-29  Bruno Haible  <bruno@clisp.org>
105335         Make it compile in C++ mode.
105336         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
105337         * lib/strnlen1.c (strnlen1): Cast memchr result.
105338         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
105339         * lib/clean-temp.c (string_equals, string_hash): Add casts.
105340         (create_temp_dir): Rename local variable 'template'.
105341         (compile_csharp_using_sscli): Add cast.
105342         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
105343         * lib/findprog.c (find_in_path): Likewise.
105344         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
105345         * lib/wait-process.c (register_slave_subprocess): Likewise.
105347 2006-10-22  Bruno Haible  <bruno@clisp.org>
105349         * modules/tsearch: New file.
105350         * lib/tsearch.h: New file.
105351         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
105352         * m4/tsearch.m4: New file.
105353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
105355 2006-10-29  Eric Blake  <ebb9@byu.net>
105357         * lib/arcfour.c: Assume config.h.
105358         * lib/arctwo.c: Likewise.
105359         * lib/base64.c: Likewise.
105360         * lib/check-version.c: Likewise.
105361         * lib/crc.c: Likewise.
105362         * lib/des.c: Likewise.
105363         * lib/gc-gnulib.c: Likewise.
105364         * lib/gc-libgcrypt.c: Likewise.
105365         * lib/gc-pbkdf2-sha1.c: Likewise.
105366         * lib/getaddrinfo.c: Likewise.
105367         * lib/getdelim.c: Likewise.
105368         * lib/getline.c: Likewise.
105369         * lib/hmac-md5.c: Likewise.
105370         * lib/hmac-sha1.c: Likewise.
105371         * lib/iconvme.c: Likewise.
105372         * lib/md2.c: Likewise.
105373         * lib/md4.c: Likewise.
105374         * lib/memxor.c: Likewise.
105375         * lib/read-file.c: Likewise.
105376         * lib/readline.c: Likewise.
105377         * lib/rijndael-alg-fst.c: Likewise.
105378         * lib/rijndael-api-fst.c: Likewise.
105379         * lib/xgetdomainname.c: Likewise.
105381 2006-10-28  Eric Blake  <ebb9@byu.net>
105383         * lib/xstrndup.c: Assume config.h.
105385 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
105387         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
105388         stat-macros.h is now for our own macros, whereas stat_h is for
105389         macros in the <sys/stat.h> name space.
105390         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
105391         (STAT_MACROS_H): Remove.
105392         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
105393         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
105394         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
105395         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
105396         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
105397         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
105398         Move these macros to ...
105399         * lib/stat_.h: here.  Don't include stat-macros.h.
105400         * lib/canonicalize.c: Don't include stat-macros.h.
105401         * lib/chown.c: Likewise.
105402         * lib/euidaccess.c: Likewise.
105403         * lib/file-type.c: Likewise.
105404         * lib/filemode.c: Likewise.
105405         * lib/glob.c: Likewise.
105406         * lib/isapipe.c: Likewise.
105407         * lib/lchown.c: Likewise.
105408         * lib/lstat.c: Likewise.
105409         * lib/mkdir-p.c: Likewise.
105410         * lib/rmdir.c: Likewise.
105411         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
105412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
105413         unless mkdir isn't declared, to speed up 'configure'.
105414         Always create sys/stat.h, since it's unlikely any real sys/stat.h
105415         would define all the S_* symbols.
105416         * modules/canonicalize (Depends-on):
105417         Depend on sys_stat, not stat-macros.
105418         * modules/chown: Likewise.
105419         * modules/euidaccess: Likewise.
105420         * modules/filemode: Likewise.
105421         * modules/file-type: Likewise.
105422         * modules/glob: Likewise.
105423         * modules/isapipe: Likewise.
105424         * modules/lchown: Likewise.
105425         * modules/lstat: Likewise.
105426         * modules/mkancesdirs: Likewise.
105427         * modules/rmdir: Likewise.
105428         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
105429         * modules/modechange: Likewise.
105430         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
105431         (configure.ac): Remove gl_STAT_MACROS.
105432         * modules/sys_stat (Depends-on): Remove stat-macros.
105434 2006-10-27  Bruno Haible  <bruno@clisp.org>
105436         * m4/signed.m4: Remove file.
105437         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
105438         invocation.
105439         * modules/vasnprintf (Files): Remove m4/signed.m4.
105441 2006-10-27  Bruno Haible  <bruno@clisp.org>
105443         Update to GNU gettext 0.16.
105444         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
105445         m4/inttypes-h.m4, m4/signed.m4.
105446         * m4/gettext.m4: Update to GNU gettext 0.16.
105447         * m4/intl.m4: New file, from GNU gettext.
105448         * m4/intldir.m4: New file, from GNU gettext.
105449         * config/srclist.txt: Update
105451 2006-10-27  Eric Blake  <ebb9@byu.net>
105453         * MODULES.html.sh: Document tempname.
105454         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
105455         dependencies.
105456         (Files): Move lib/tempname.c...
105457         * modules/tempname: ...to this new module.
105458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
105459         (gl_PREREQ_TEMPNAME): Move...
105460         * m4/tempname.m4: ...to this new file.
105461         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
105462         * modules/sys_stat (Depends-on): Add stat-macros.
105463         * lib/stat_.h (includes): Pick up stat macros.
105464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
105465         if stat macros are broken.
105466         * lib/tempname.c (includes): No need to include "stat-macros.h".
105467         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
105468         (direxists, __path_search) [!_LIBC]: Don't compile these in
105469         gnulib; the tmpdir module covers that.
105470         * lib/tempname.h: New file.
105472 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
105474         * COPYING: Explain how gnulib-tool converts licence headers.
105475         Almost all wording by Eric Blake.
105477 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
105479         * lib/mbchar.h (is_basic_table): Make read-only.
105480         * lib/mbchar.c (is_basic_table): Likewise.
105481         Reported by John Darrington.
105483 2006-10-25  Bruno Haible  <bruno@clisp.org>
105485         * lib/progname.h (set_program_name): Undefine before defining.
105487 2006-10-25  Bruno Haible  <bruno@clisp.org>
105489         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
105490         false for non-gcc C++ compilers.
105491         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
105493 2006-10-24  Bruno Haible  <bruno@clisp.org>
105495         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
105496         iconv implementations like Irix iconv.
105498 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105500         * modules/vararrays: New file.
105501         * m4/vararrays.m4: New file, taken from diffutils.
105502         * MODULES.html.sh: New module vararrays.
105504 2006-10-24  Karl Berry  <karl@gnu.org>
105506         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
105507         Don't call GNU Unix.
105509 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105511         * users.txt: Add Libtool.
105513         Sync from Libtool:
105515         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105517         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
105518         to gnulib's policy of including config.h unconditionally.
105520 2006-10-24  Bruno Haible  <bruno@clisp.org>
105522         * modules/wcwidth (Files): Add m4/wint_t.m4.
105523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
105524         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
105526 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
105528         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
105529         to pacify GCC with some -W flags enabled.  Problem reported by
105530         Bruno Haible.
105532 2006-10-24  Jim Meyering  <jim@meyering.net>
105534         * MODULES.html.sh: Remove uinttostr.  It's not a module.
105535         Reported by Karl Berry.
105537 2006-10-23  Bruno Haible  <bruno@clisp.org>
105539         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
105541 2006-10-24  Bruno Haible  <bruno@clisp.org>
105543         * lib/gl_list.h: Use C comment style, not C++ comment style.
105545 2006-10-23  Eric Blake  <ebb9@byu.net>
105547         * lib/getaddrinfo.c (includes): Add missing include.
105549 2006-10-23  Bruno Haible  <bruno@clisp.org>
105550             Paul Eggert  <eggert@cs.ucla.edu>
105552         Ability to rename obstack_free.
105553         * lib/obstack.h (__obstack_free): New macro. Declare instead of
105554         obstack_free.
105555         (obstack_free): Invoke the __obstack_free macro.
105556         * lib/obstack.c (obstack_free): Use __obstack_free macro.
105558 2006-10-23  Bruno Haible  <bruno@clisp.org>
105559             Paul Eggert  <eggert@cs.ucla.edu>
105561         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
105562         __argc, __argv from the declaration. (They are defined as macros on
105563         mingw.)
105565 2006-10-22  Bruno Haible  <bruno@clisp.org>
105567         * doc/gnulib-intro.texi: New file.
105568         * doc/gnulib.texi: Include it.
105570 2006-10-21  Bruno Haible  <bruno@clisp.org>
105572         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
105573         "Introduction", "Miscellanous Notes", "Particular Modules".
105575 2006-10-21  Bruno Haible  <bruno@clisp.org>
105577         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
105578         Change mostlyclean-local rule to avoid sh syntax error from bash
105579         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
105581 2006-10-23  Jim Meyering  <jim@meyering.net>
105583         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
105584         in place of snprintf.
105586         * modules/inttostr (Files): Add lib/uinttostr.c.
105587         * lib/uinttostr.c (inttostr): New file/function.
105588         * lib/inttostr.h (uinttostr): Declare.
105589         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
105590         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
105591         Add uinttostr.
105592         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
105594 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
105596         * lib/canonicalize.c (ELOOP): Define if not already defined.
105597         Problem reported by Bruno Haible in
105598         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
105600 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
105602         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
105603         Problem reported by Perry Smith and Ville Laurikari.
105605         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
105606         uses.
105608 2006-10-19  Bruno Haible  <bruno@clisp.org>
105610         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
105611         for mingw.
105613 2006-10-19  Bruno Haible  <bruno@clisp.org>
105615         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
105616         Needed for mingw.
105618 2006-10-19  Bruno Haible  <bruno@clisp.org>
105620         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
105622 2006-10-19  Bruno Haible  <bruno@clisp.org>
105624         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
105625         it.
105627 2006-10-19  Bruno Haible  <bruno@clisp.org>
105629         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
105630         invocation.
105632 2006-10-19  Bruno Haible  <bruno@clisp.org>
105634         * gnulib-tool (func_create_testdir): Don't include ftruncate and
105635         mountlist by default.
105637 2006-10-16  Bruno Haible  <bruno@clisp.org>
105639         * lib/c-strstr.c: Include c-strstr.h.
105641 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105643         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
105644         in a slash.
105646 2006-10-18  Bruno Haible  <bruno@clisp.org>
105648         * lib/lock.h [C++]: Wrap definitions in extern "C".
105650 2006-10-18  Bruno Haible  <bruno@clisp.org>
105652         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
105653         gl_LIBOBJS list.
105655 2006-10-18  Bruno Haible  <bruno@clisp.org>
105657         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
105659 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
105661         * lib/xstrtol.h: Include gettext.h.
105662         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
105663         Problem reported by Eric Blake.
105664         * modules/xstrtol (Depends-on): Add gettext-h.
105666 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
105668         * lib/strftime.c (advance): New macro.
105669         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
105670         incomplete type, so you can't add 0 to it.  Problem and patch
105671         reported by Eelco Dolstra for dietlibc.
105673 2006-10-18  Jim Meyering  <jim@meyering.net>
105675         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
105676         type for a local, and rename it: s/up/user_proc/.
105678 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
105680         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
105681         READ_UTMP_USER_PROCESS.
105682         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
105684 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
105686         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
105687         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
105689 2006-10-17  Eric Blake  <ebb9@byu.net>
105691         * lib/sigprocmask.c (sigprocmask): Fix typo.
105693         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
105695         * modules/clean-temp (Makefile.am): Don't add to make output...
105696         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
105697         config.h.
105699 2006-10-17  Bruno Haible  <bruno@clisp.org>
105701         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
105702         differently if DEFAULT_TEXT_DOMAIN is set.
105704 2006-10-16  Bruno Haible  <bruno@clisp.org>
105706         * lib/clean-temp.c: Include fwriteerror.h.
105708 2006-10-16  Bruno Haible  <bruno@clisp.org>
105710         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
105712 2006-10-16  Bruno Haible  <bruno@clisp.org>
105714         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
105715         * lib/sigprocmask.h: Include <sys/types.h>.
105716         (sigset_t): Use the system's definition if present.
105718 2006-10-17  Eric Blake  <ebb9@byu.net>
105720         * lib/xvasprintf.c (includes): Assume config.h.
105721         * lib/xasprintf.c (includes): Likewise.
105723 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
105725         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
105726         at least as wide as intmax_t.
105728 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
105730         (Imported from Automake.)
105731         * build-aux/gnupload: Update to version 1.1 of directive file.
105733 2006-10-16  Eric Blake  <ebb9@byu.net>
105735         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
105736         match Automake 1.10a.
105738 2006-10-14  Bruno Haible  <bruno@clisp.org>
105740         * modules/sigprocmask: New file.
105741         * lib/sigprocmask.h: New file.
105742         * lib/sigprocmask.c: New file.
105743         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
105744         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
105745         request sigprocmask.o.
105746         (gl_PREREQ_SIGPROCMASK): New macro.
105747         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
105748         (Depends-on): Add sigprocmask.
105749         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
105750         gt_SIGNALBLOCKING. Test for 'raise' only once.
105751         * lib/fatal-signal.c: Include sigprocmask.h.
105752         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
105753         unblock_fatal_signals): Define always.
105754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105755         sigprocmask.
105757 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
105759         Sync from Automake.
105760         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
105761         which incorrectly sets the mode of an existing destination
105762         directory.  In some cases the unpatched install-sh could do the
105763         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
105764         system.  We hope this is rare in practice, but it's clearly worth
105765         fixing.  Problem reported by Alex Unleashed in
105766         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
105767         Also, don't bother to check for -m bugs unless we're using -m;
105768         suggested by Stepan Kasal.
105770 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105772         Sync from Automake.
105773         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
105774         `-c' flag, so they appear at the same position as in %FASTDEP%
105775         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
105776         which ignores unknown options only after the first non-option.
105777         Bug report against M4 by Nelson H. F. Beebe.
105779 2006-10-13  Jim Meyering  <jim@meyering.net>
105781         Fix a bug in yesterday's change.
105782         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
105783         p->fts_statp->st_dev would be used uninitialized.
105784         Ensures that we always call fts_stat on the very first entry.
105785         Miklos Szeredi reported that find -xdev stopped working.
105787 2006-10-12  Bruno Haible  <bruno@clisp.org>
105789         * gnulib-tool (func_get_automake_snippet): Append an automatically
105790         computed EXTRA_DIST augmentation.
105791         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
105792         * modules/alloca-opt (Makefile.am): Likewise.
105793         * modules/allocsa (Makefile.am): Likewise.
105794         * modules/arcfour (Makefile.am): Likewise.
105795         * modules/arctwo (Makefile.am): Likewise.
105796         * modules/argmatch (Makefile.am): Likewise.
105797         * modules/argz (Makefile.am): Likewise.
105798         * modules/atexit (Makefile.am): Likewise.
105799         * modules/backupfile (Makefile.am): Likewise.
105800         * modules/byteswap (Makefile.am): Likewise.
105801         * modules/c-strtod (Makefile.am): Likewise.
105802         * modules/c-strtold (Makefile.am): Likewise.
105803         * modules/calloc (Makefile.am): Likewise.
105804         * modules/canon-host (Makefile.am): Likewise.
105805         * modules/canonicalize (Makefile.am): Likewise.
105806         * modules/chdir-long (Makefile.am): Likewise.
105807         * modules/chdir-safer (Makefile.am): Likewise.
105808         * modules/check-version (Makefile.am): Likewise.
105809         * modules/chown (Makefile.am): Likewise.
105810         * modules/cloexec (Makefile.am): Likewise.
105811         * modules/close-stream (Makefile.am): Likewise.
105812         * modules/closeout (Makefile.am): Likewise.
105813         * modules/crc (Makefile.am): Likewise.
105814         * modules/csharpexec (Makefile.am): Likewise.
105815         * modules/cycle-check (Makefile.am): Likewise.
105816         * modules/des (Makefile.am): Likewise.
105817         * modules/dev-ino (Makefile.am): Likewise.
105818         * modules/dirfd (Makefile.am): Likewise.
105819         * modules/dirname (Makefile.am): Likewise.
105820         * modules/dup2 (Makefile.am): Likewise.
105821         * modules/eealloc (Makefile.am): Likewise.
105822         * modules/error (Makefile.am): Likewise.
105823         * modules/euidaccess (Makefile.am): Likewise.
105824         * modules/exclude (Makefile.am): Likewise.
105825         * modules/exitfail (Makefile.am): Likewise.
105826         * modules/fcntl-safer (Makefile.am): Likewise.
105827         * modules/fcntl (Makefile.am): Likewise.
105828         * modules/file-type (Makefile.am): Likewise.
105829         * modules/fileblocks (Makefile.am): Likewise.
105830         * modules/filemode (Makefile.am): Likewise.
105831         * modules/filenamecat (Makefile.am): Likewise.
105832         * modules/fnmatch (Makefile.am): Likewise.
105833         * modules/fopen-safer (Makefile.am): Likewise.
105834         * modules/fpending (Makefile.am): Likewise.
105835         * modules/fprintftime (Makefile.am): Likewise.
105836         * modules/free (Makefile.am): Likewise.
105837         * modules/fsusage (Makefile.am): Likewise.
105838         * modules/ftruncate (Makefile.am): Likewise.
105839         * modules/fts (Makefile.am): Likewise.
105840         * modules/gc-arcfour (Makefile.am): Likewise.
105841         * modules/gc-des (Makefile.am): Likewise.
105842         * modules/gc-hmac-md5 (Makefile.am): Likewise.
105843         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
105844         * modules/gc-md4 (Makefile.am): Likewise.
105845         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
105846         * modules/gc-sha1 (Makefile.am): Likewise.
105847         * modules/gc (Makefile.am): Likewise.
105848         * modules/getaddrinfo (Makefile.am): Likewise.
105849         * modules/getcwd (Makefile.am): Likewise.
105850         * modules/getdelim (Makefile.am): Likewise.
105851         * modules/getdomainname (Makefile.am): Likewise.
105852         * modules/getgroups (Makefile.am): Likewise.
105853         * modules/gethostname (Makefile.am): Likewise.
105854         * modules/gethrxtime (Makefile.am): Likewise.
105855         * modules/getline (Makefile.am): Likewise.
105856         * modules/getloadavg (Makefile.am): Likewise.
105857         * modules/getlogin_r (Makefile.am): Likewise.
105858         * modules/getndelim2 (Makefile.am): Likewise.
105859         * modules/getopt (Makefile.am): Likewise.
105860         * modules/getpagesize (Makefile.am): Likewise.
105861         * modules/getpass-gnu (Makefile.am): Likewise.
105862         * modules/getpass (Makefile.am): Likewise.
105863         * modules/getsubopt (Makefile.am): Likewise.
105864         * modules/gettime (Makefile.am): Likewise.
105865         * modules/gettimeofday (Makefile.am): Likewise.
105866         * modules/getugroups (Makefile.am): Likewise.
105867         * modules/getusershell (Makefile.am): Likewise.
105868         * modules/glob (Makefile.am): Likewise.
105869         * modules/group-member (Makefile.am): Likewise.
105870         * modules/hard-locale (Makefile.am): Likewise.
105871         * modules/hash (Makefile.am): Likewise.
105872         * modules/hmac-md5 (Makefile.am): Likewise.
105873         * modules/hmac-sha1 (Makefile.am): Likewise.
105874         * modules/human (Makefile.am): Likewise.
105875         * modules/idcache (Makefile.am): Likewise.
105876         * modules/imaxabs (Makefile.am): Likewise.
105877         * modules/imaxdiv (Makefile.am): Likewise.
105878         * modules/inet_ntop (Makefile.am): Likewise.
105879         * modules/inet_pton (Makefile.am): Likewise.
105880         * modules/intprops (Makefile.am): Likewise.
105881         * modules/inttostr (Makefile.am): Likewise.
105882         * modules/inttypes (Makefile.am): Likewise.
105883         * modules/isapipe (Makefile.am): Likewise.
105884         * modules/javaversion (Makefile.am): Likewise.
105885         * modules/lchmod (Makefile.am): Likewise.
105886         * modules/lchown (Makefile.am): Likewise.
105887         * modules/localcharset (Makefile.am): Likewise.
105888         * modules/long-options (Makefile.am): Likewise.
105889         * modules/lstat (Makefile.am): Likewise.
105890         * modules/malloc (Makefile.am): Likewise.
105891         * modules/mathl (Makefile.am): Likewise.
105892         * modules/mbchar (Makefile.am): Likewise.
105893         * modules/md2 (Makefile.am): Likewise.
105894         * modules/md4 (Makefile.am): Likewise.
105895         * modules/md5 (Makefile.am): Likewise.
105896         * modules/memcasecmp (Makefile.am): Likewise.
105897         * modules/memchr (Makefile.am): Likewise.
105898         * modules/memcmp (Makefile.am): Likewise.
105899         * modules/memcoll (Makefile.am): Likewise.
105900         * modules/memcpy (Makefile.am): Likewise.
105901         * modules/memmem (Makefile.am): Likewise.
105902         * modules/memmove (Makefile.am): Likewise.
105903         * modules/mempcpy (Makefile.am): Likewise.
105904         * modules/memrchr (Makefile.am): Likewise.
105905         * modules/memset (Makefile.am): Likewise.
105906         * modules/memxor (Makefile.am): Likewise.
105907         * modules/mkancesdirs (Makefile.am): Likewise.
105908         * modules/mkdir-p (Makefile.am): Likewise.
105909         * modules/mkdir (Makefile.am): Likewise.
105910         * modules/mkdtemp (Makefile.am): Likewise.
105911         * modules/mkstemp (Makefile.am): Likewise.
105912         * modules/mktime (Makefile.am): Likewise.
105913         * modules/modechange (Makefile.am): Likewise.
105914         * modules/mountlist (Makefile.am): Likewise.
105915         * modules/nanosleep (Makefile.am): Likewise.
105916         * modules/obstack (Makefile.am): Likewise.
105917         * modules/openat (Makefile.am): Likewise.
105918         * modules/pagealign_alloc (Makefile.am): Likewise.
105919         * modules/pathmax (Makefile.am): Likewise.
105920         * modules/physmem (Makefile.am): Likewise.
105921         * modules/poll (Makefile.am): Likewise.
105922         * modules/posixtm (Makefile.am): Likewise.
105923         * modules/posixver (Makefile.am): Likewise.
105924         * modules/putenv (Makefile.am): Likewise.
105925         * modules/quote (Makefile.am): Likewise.
105926         * modules/quotearg (Makefile.am): Likewise.
105927         * modules/raise (Makefile.am): Likewise.
105928         * modules/read-file (Makefile.am): Likewise.
105929         * modules/readline (Makefile.am): Likewise.
105930         * modules/readlink (Makefile.am): Likewise.
105931         * modules/readtokens (Makefile.am): Likewise.
105932         * modules/readutmp (Makefile.am): Likewise.
105933         * modules/realloc (Makefile.am): Likewise.
105934         * modules/regex (Makefile.am): Likewise.
105935         * modules/rename-dest-slash (Makefile.am): Likewise.
105936         * modules/rename (Makefile.am): Likewise.
105937         * modules/rijndael (Makefile.am): Likewise.
105938         * modules/rmdir (Makefile.am): Likewise.
105939         * modules/rpmatch (Makefile.am): Likewise.
105940         * modules/safe-read (Makefile.am): Likewise.
105941         * modules/safe-write (Makefile.am): Likewise.
105942         * modules/same-inode (Makefile.am): Likewise.
105943         * modules/same (Makefile.am): Likewise.
105944         * modules/save-cwd (Makefile.am): Likewise.
105945         * modules/savedir (Makefile.am): Likewise.
105946         * modules/setenv (Makefile.am): Likewise.
105947         * modules/settime (Makefile.am): Likewise.
105948         * modules/sha1 (Makefile.am): Likewise.
105949         * modules/sig2str (Makefile.am): Likewise.
105950         * modules/snprintf (Makefile.am): Likewise.
105951         * modules/stat-macros (Makefile.am): Likewise.
105952         * modules/stat-time (Makefile.am): Likewise.
105953         * modules/stdbool (Makefile.am): Likewise.
105954         * modules/stdint (Makefile.am): Likewise.
105955         * modules/stdlib-safer (Makefile.am): Likewise.
105956         * modules/stpcpy (Makefile.am): Likewise.
105957         * modules/stpncpy (Makefile.am): Likewise.
105958         * modules/strcase (Makefile.am): Likewise.
105959         * modules/strcasestr (Makefile.am): Likewise.
105960         * modules/strchrnul (Makefile.am): Likewise.
105961         * modules/strcspn (Makefile.am): Likewise.
105962         * modules/strdup (Makefile.am): Likewise.
105963         * modules/strerror (Makefile.am): Likewise.
105964         * modules/strftime (Makefile.am): Likewise.
105965         * modules/strndup (Makefile.am): Likewise.
105966         * modules/strnlen (Makefile.am): Likewise.
105967         * modules/strpbrk (Makefile.am): Likewise.
105968         * modules/strsep (Makefile.am): Likewise.
105969         * modules/strstr (Makefile.am): Likewise.
105970         * modules/strtod (Makefile.am): Likewise.
105971         * modules/strtoimax (Makefile.am): Likewise.
105972         * modules/strtok_r (Makefile.am): Likewise.
105973         * modules/strtol (Makefile.am): Likewise.
105974         * modules/strtoll (Makefile.am): Likewise.
105975         * modules/strtoul (Makefile.am): Likewise.
105976         * modules/strtoull (Makefile.am): Likewise.
105977         * modules/strtoumax (Makefile.am): Likewise.
105978         * modules/strverscmp (Makefile.am): Likewise.
105979         * modules/sys_socket (Makefile.am): Likewise.
105980         * modules/sys_stat (Makefile.am): Likewise.
105981         * modules/sysexits (Makefile.am): Likewise.
105982         * modules/time_r (Makefile.am): Likewise.
105983         * modules/timegm (Makefile.am): Likewise.
105984         * modules/timespec (Makefile.am): Likewise.
105985         * modules/tmpfile-safer (Makefile.am): Likewise.
105986         * modules/trim (Makefile.am): Likewise.
105987         * modules/unistd-safer (Makefile.am): Likewise.
105988         * modules/unlinkdir (Makefile.am): Likewise.
105989         * modules/unlocked-io (Makefile.am): Likewise.
105990         * modules/userspec (Makefile.am): Likewise.
105991         * modules/utime (Makefile.am): Likewise.
105992         * modules/utimecmp (Makefile.am): Likewise.
105993         * modules/utimens (Makefile.am): Likewise.
105994         * modules/vasnprintf (Makefile.am): Likewise.
105995         * modules/vasprintf (Makefile.am): Likewise.
105996         * modules/vsnprintf (Makefile.am): Likewise.
105997         * modules/xalloc (Makefile.am): Likewise.
105998         * modules/xgetcwd (Makefile.am): Likewise.
105999         * modules/xnanosleep (Makefile.am): Likewise.
106000         * modules/xreadlink (Makefile.am): Likewise.
106001         * modules/xstrtod (Makefile.am): Likewise.
106002         * modules/xstrtol (Makefile.am): Likewise.
106003         * modules/xstrtold (Makefile.am): Likewise.
106004         * modules/yesno (Makefile.am): Likewise.
106005         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
106007 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
106009         * modules/error (Makefile.am): Distribute files through
106010         EXTRA_DIST, not lib_SOURCES.
106012 2006-10-12  Eric Blake  <ebb9@byu.net>
106014         * modules/error (Makefile.am): Distribute files in /lib.
106015         * modules/obstack (Makefile.am): Likewise.
106017 2006-10-12  Bruno Haible  <bruno@clisp.org>
106019         * modules/acl (Makefile.am): Distribute all files in lib/ through
106020         EXTRA_DIST.
106021         * modules/arcfour (Makefile.am): Likewise.
106022         * modules/arctwo (Makefile.am): Likewise.
106023         * modules/argmatch (Makefile.am): Likewise.
106024         * modules/argz (Makefile.am): Likewise.
106025         * modules/atexit (Makefile.am): Likewise.
106026         * modules/backupfile (Makefile.am): Likewise.
106027         * modules/c-strtod (Makefile.am): Likewise.
106028         * modules/c-strtold (Makefile.am): Likewise.
106029         * modules/calloc (Makefile.am): Likewise.
106030         * modules/canon-host (Makefile.am): Likewise.
106031         * modules/canonicalize (Makefile.am): Likewise.
106032         * modules/chdir-long (Makefile.am): Likewise.
106033         * modules/chdir-safer (Makefile.am): Likewise.
106034         * modules/check-version (Makefile.am): Likewise.
106035         * modules/chown (Makefile.am): Likewise.
106036         * modules/cloexec (Makefile.am): Likewise.
106037         * modules/close-stream (Makefile.am): Likewise.
106038         * modules/closeout (Makefile.am): Likewise.
106039         * modules/crc (Makefile.am): Likewise.
106040         * modules/cycle-check (Makefile.am): Likewise.
106041         * modules/des (Makefile.am): Likewise.
106042         * modules/dirfd (Makefile.am): Likewise.
106043         * modules/dirname (Makefile.am): Likewise.
106044         * modules/dup2 (Makefile.am): Likewise.
106045         * modules/euidaccess (Makefile.am): Likewise.
106046         * modules/exclude (Makefile.am): Likewise.
106047         * modules/exitfail (Makefile.am): Likewise.
106048         * modules/fcntl-safer (Makefile.am): Likewise.
106049         * modules/file-type (Makefile.am): Likewise.
106050         * modules/fileblocks (Makefile.am): Likewise.
106051         * modules/filemode (Makefile.am): Likewise.
106052         * modules/filenamecat (Makefile.am): Likewise.
106053         * modules/fnmatch (Makefile.am): Likewise.
106054         * modules/fopen-safer (Makefile.am): Likewise.
106055         * modules/fpending (Makefile.am): Likewise.
106056         * modules/fprintftime (Makefile.am): Likewise.
106057         * modules/free (Makefile.am): Likewise.
106058         * modules/fsusage (Makefile.am): Likewise.
106059         * modules/ftruncate (Makefile.am): Likewise.
106060         * modules/fts (Makefile.am): Likewise.
106061         * modules/gc (Makefile.am): Likewise.
106062         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
106063         * modules/getaddrinfo (Makefile.am): Likewise.
106064         * modules/getcwd (Makefile.am): Likewise.
106065         * modules/getdelim (Makefile.am): Likewise.
106066         * modules/getdomainname (Makefile.am): Likewise.
106067         * modules/getgroups (Makefile.am): Likewise.
106068         * modules/gethostname (Makefile.am): Likewise.
106069         * modules/gethrxtime (Makefile.am): Likewise.
106070         * modules/getline (Makefile.am): Likewise.
106071         * modules/getloadavg (Makefile.am): Likewise.
106072         * modules/getlogin_r (Makefile.am): Likewise.
106073         * modules/getopt (Makefile.am): Likewise.
106074         * modules/getpass (Makefile.am): Likewise.
106075         * modules/getpass-gnu (Makefile.am): Likewise.
106076         * modules/getsubopt (Makefile.am): Likewise.
106077         * modules/gettime (Makefile.am): Likewise.
106078         * modules/gettimeofday (Makefile.am): Likewise.
106079         * modules/getugroups (Makefile.am): Likewise.
106080         * modules/getusershell (Makefile.am): Likewise.
106081         * modules/glob (Makefile.am): Likewise.
106082         * modules/group-member (Makefile.am): Likewise.
106083         * modules/hard-locale (Makefile.am): Likewise.
106084         * modules/hash (Makefile.am): Likewise.
106085         * modules/hmac-md5 (Makefile.am): Likewise.
106086         * modules/hmac-sha1 (Makefile.am): Likewise.
106087         * modules/human (Makefile.am): Likewise.
106088         * modules/idcache (Makefile.am): Likewise.
106089         * modules/imaxabs (Makefile.am): Likewise.
106090         * modules/imaxdiv (Makefile.am): Likewise.
106091         * modules/inet_ntop (Makefile.am): Likewise.
106092         * modules/inet_pton (Makefile.am): Likewise.
106093         * modules/inttostr (Makefile.am): Likewise.
106094         * modules/isapipe (Makefile.am): Likewise.
106095         * modules/lchown (Makefile.am): Likewise.
106096         * modules/long-options (Makefile.am): Likewise.
106097         * modules/lstat (Makefile.am): Likewise.
106098         * modules/malloc (Makefile.am): Likewise.
106099         * modules/mathl (Makefile.am): Likewise.
106100         * modules/mbchar (Makefile.am): Likewise.
106101         * modules/md2 (Makefile.am): Likewise.
106102         * modules/md4 (Makefile.am): Likewise.
106103         * modules/md5 (Makefile.am): Likewise.
106104         * modules/memcasecmp (Makefile.am): Likewise.
106105         * modules/memchr (Makefile.am): Likewise.
106106         * modules/memcmp (Makefile.am): Likewise.
106107         * modules/memcoll (Makefile.am): Likewise.
106108         * modules/memcpy (Makefile.am): Likewise.
106109         * modules/memmem (Makefile.am): Likewise.
106110         * modules/memmove (Makefile.am): Likewise.
106111         * modules/mempcpy (Makefile.am): Likewise.
106112         * modules/memrchr (Makefile.am): Likewise.
106113         * modules/memset (Makefile.am): Likewise.
106114         * modules/memxor (Makefile.am): Likewise.
106115         * modules/mkancesdirs (Makefile.am): Likewise.
106116         * modules/mkdir (Makefile.am): Likewise.
106117         * modules/mkdir-p (Makefile.am): Likewise.
106118         * modules/mkdtemp (Makefile.am): Likewise.
106119         * modules/mkstemp (Makefile.am): Likewise.
106120         * modules/mktime (Makefile.am): Likewise.
106121         * modules/modechange (Makefile.am): Likewise.
106122         * modules/mountlist (Makefile.am): Likewise.
106123         * modules/nanosleep (Makefile.am): Likewise.
106124         * modules/openat (Makefile.am): Likewise.
106125         * modules/pagealign_alloc (Makefile.am): Likewise.
106126         * modules/physmem (Makefile.am): Likewise.
106127         * modules/poll (Makefile.am): Likewise.
106128         * modules/posixtm (Makefile.am): Likewise.
106129         * modules/posixver (Makefile.am): Likewise.
106130         * modules/putenv (Makefile.am): Likewise.
106131         * modules/quote (Makefile.am): Likewise.
106132         * modules/quotearg (Makefile.am): Likewise.
106133         * modules/raise (Makefile.am): Likewise.
106134         * modules/read-file (Makefile.am): Likewise.
106135         * modules/readline (Makefile.am): Likewise.
106136         * modules/readlink (Makefile.am): Likewise.
106137         * modules/readtokens (Makefile.am): Likewise.
106138         * modules/readutmp (Makefile.am): Likewise.
106139         * modules/realloc (Makefile.am): Likewise.
106140         * modules/regex (Makefile.am): Likewise.
106141         * modules/rename (Makefile.am): Likewise.
106142         * modules/rename-dest-slash (Makefile.am): Likewise.
106143         * modules/rijndael (Makefile.am): Likewise.
106144         * modules/rmdir (Makefile.am): Likewise.
106145         * modules/rpmatch (Makefile.am): Likewise.
106146         * modules/safe-read (Makefile.am): Likewise.
106147         * modules/safe-write (Makefile.am): Likewise.
106148         * modules/same (Makefile.am): Likewise.
106149         * modules/save-cwd (Makefile.am): Likewise.
106150         * modules/savedir (Makefile.am): Likewise.
106151         * modules/setenv (Makefile.am): Likewise.
106152         * modules/settime (Makefile.am): Likewise.
106153         * modules/sha1 (Makefile.am): Likewise.
106154         * modules/sig2str (Makefile.am): Likewise.
106155         * modules/snprintf (Makefile.am): Likewise.
106156         * modules/stdlib-safer (Makefile.am): Likewise.
106157         * modules/stpcpy (Makefile.am): Likewise.
106158         * modules/stpncpy (Makefile.am): Likewise.
106159         * modules/strcase (Makefile.am): Likewise.
106160         * modules/strcasestr (Makefile.am): Likewise.
106161         * modules/strchrnul (Makefile.am): Likewise.
106162         * modules/strcspn (Makefile.am): Likewise.
106163         * modules/strdup (Makefile.am): Likewise.
106164         * modules/strerror (Makefile.am): Likewise.
106165         * modules/strftime (Makefile.am): Likewise.
106166         * modules/strndup (Makefile.am): Likewise.
106167         * modules/strnlen (Makefile.am): Likewise.
106168         * modules/strpbrk (Makefile.am): Likewise.
106169         * modules/strsep (Makefile.am): Likewise.
106170         * modules/strstr (Makefile.am): Likewise.
106171         * modules/strtod (Makefile.am): Likewise.
106172         * modules/strtoimax (Makefile.am): Likewise.
106173         * modules/strtok_r (Makefile.am): Likewise.
106174         * modules/strtol (Makefile.am): Likewise.
106175         * modules/strtoll (Makefile.am): Likewise.
106176         * modules/strtoul (Makefile.am): Likewise.
106177         * modules/strtoull (Makefile.am): Likewise.
106178         * modules/strtoumax (Makefile.am): Likewise.
106179         * modules/strverscmp (Makefile.am): Likewise.
106180         * modules/time_r (Makefile.am): Likewise.
106181         * modules/timegm (Makefile.am): Likewise.
106182         * modules/tmpfile-safer (Makefile.am): Likewise.
106183         * modules/unistd-safer (Makefile.am): Likewise.
106184         * modules/unlinkdir (Makefile.am): Likewise.
106185         * modules/userspec (Makefile.am): Likewise.
106186         * modules/utime (Makefile.am): Likewise.
106187         * modules/utimecmp (Makefile.am): Likewise.
106188         * modules/utimens (Makefile.am): Likewise.
106189         * modules/vasnprintf (Makefile.am): Likewise.
106190         * modules/vasprintf (Makefile.am): Likewise.
106191         * modules/vsnprintf (Makefile.am): Likewise.
106192         * modules/xalloc (Makefile.am): Likewise.
106193         * modules/xgetcwd (Makefile.am): Likewise.
106194         * modules/xnanosleep (Makefile.am): Likewise.
106195         * modules/xreadlink (Makefile.am): Likewise.
106196         * modules/xstrtod (Makefile.am): Likewise.
106197         * modules/xstrtol (Makefile.am): Likewise.
106198         * modules/xstrtold (Makefile.am): Likewise.
106199         * modules/yesno (Makefile.am): Likewise.
106201 2006-10-12  Jim Meyering  <jim@meyering.net>
106203         * m4/getloadavg.m4: Revert the change below.
106205         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
106206         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
106207         fail with a symlink, which is what coreutils' ./bootstrap now
106208         creates by default.
106210 2006-10-12  Bruno Haible  <bruno@clisp.org>
106212         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
106213         mingw.
106214         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
106215         MSVC and mingw explicitly.
106217 2006-10-11  Simon Josefsson  <jas@extundo.com>
106218             Bruno Haible  <bruno@clisp.org>
106220         Add support for multiple gnulib-tool invocations in the scope of a
106221         single configure.ac file.
106222         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
106223         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
106224         with the same contents as the _LIBADD variable.
106225         (func_emit_initmacro_start, func_emit_initmacro_end,
106226         func_emit_initmacro_done): New functions.
106227         (func_import, func_create_testdir): Invoke them. Allow the identifiers
106228         gl_LIBOBJS and gl_LTLIBOBJS.
106230 2006-10-11  Bruno Haible  <bruno@clisp.org>
106232         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
106233         (func_create_testdir): Don't create po/Makefile.am, don't invoke
106234         autoreconf. Instead, invoke autopoint explicitly but move back the
106235         *.m4 files from gnulib.
106237 2006-10-11  Bruno Haible  <bruno@clisp.org>
106239         * gnulib-tool (func_usage): Make module names after --create-testdir
106240         optional.
106241         (func_create_testdir): If no module was specified, use nearly all
106242         modules.
106244 2006-10-12  Jim Meyering  <jim@meyering.net>
106246         Big performance improvement for fts-based tools that use FTS_NOSTAT.
106247         Avoid spurious inode-mismatch problems on non-POSIX file systems.
106248         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
106249         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
106250         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
106251         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
106252         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
106253         (fts_set_stat_required): New function.
106254         (fts_open): Defer the calls to fts_stat, if possible or requested.
106255         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
106256         into fts_stat itself.
106257         (fts_read): Perform any required (deferred) fts_stat call.
106258         (fts_build): Likewise, for the directory we're about to open and read.
106259         In the readdir loop, carefully decide whether each entry will require
106260         an eventual call to fts_stat, using dirent.d_type info if available.
106261         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
106262         a command line argument into this function.  Update all callers.
106263         Map a return value of FTS_DOT to FTS_D for a command line argument.
106264         * modules/fts (Depends-on): Add d-type.  Alphabetize.
106265         Thanks to Miklos Szeredi for his tenacity and for the initial
106266         bug report about "find" failing on a FUSE-based file system.
106268         * lib/fts.c (fts_open): Use consistent indentation.
106270 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
106272         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
106273         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
106274         reported by Jim Meyering.  All uses of cache variables renamed
106275         to match Autoconf's.
106276         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
106277         the other one.
106279         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
106280         Fix misspelling in diagnostic.
106282 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
106284         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
106285         defined.  Problem reported by Matthew Woehlke.
106287         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
106288         Add support for Tandem NonStop R series.
106289         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
106290         Use new macro.
106292         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
106293         (has_trailing_slash): Omit size arg; all callers changed.
106294         Omit 'inline', since it doesn't help performance and we'd
106295         need to configure it.
106296         Don't count //, ///, etc. as having a trailing slash.
106297         As a side effect, this removes a C99ism reported by Matthew Woehlke.
106298         (rpl_rename_dest_slash): On failure, use rename's errno rather
106299         than (in some cases) an incorrect or junk errno.
106300         Simplify code by removing need to compute length; this does
106301         cause it to make two passes instead of one over the file name,
106302         but it's worth it.
106304         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
106305         change, since Autoconf's version may no longer be appropriate now
106306         that we are using CVS Autoconf's version.  Add support for Tandem.
106308 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
106309             Bruno Haible  <bruno@clisp.org>
106311         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
106312         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
106313         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
106314         gl_AC_TYPE_LONG_LONG.
106316         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
106317         instead of HAVE_LONG_LONG.
106318         * lib/printf-args.c (printf_fetchargs): Likewise.
106319         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
106320         * lib/vasnprintf.c (VASNPRINTF): Likewise.
106321         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
106322         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
106323         gl_AC_TYPE_LONG_LONG.
106325 2006-10-11  Bruno Haible  <bruno@clisp.org>
106327         * m4/longlong.m4: Add comments.
106328         * m4/ulonglong.m4: Likewise.
106330 2006-10-10  Bruno Haible  <bruno@clisp.org>
106332         Make it possible to #define stpcpy, strdup to aliases.
106333         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
106334         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
106336 2006-10-10  Bruno Haible  <bruno@clisp.org>
106338         Make it possible to #define gcd to an alias.
106339         * lib/gcd.c: Include config.h.
106341 2006-10-10  Bruno Haible  <bruno@clisp.org>
106343         Make it possible to #define c_isascii to an alias.
106344         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
106345         defined. Undefine the macros before defining them, to avoid gcc
106346         warnings.
106347         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
106348         define NO_C_CTYPE_MACROS early.
106350 2006-10-10  Bruno Haible  <bruno@clisp.org>
106352         Make it possible to #define set_program_name to an alias.
106353         * lib/progname.c: Don't undefine set_program_name; instead, undefine
106354         ENABLE_RELOCATABLE early.
106356 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
106358         Port to Tandem NSK OSS, which has 64-bit signed int but at most
106359         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
106360         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
106361         More generally, don't assume that 64-bit signed int is available
106362         if unsigned int is, and vice versa.
106363         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
106364         unsigned symbols, not on their signed counterparts.
106365         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
106366         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
106367         (UINT64_C, UINTMAX_C):
106368         Likewise.
106369         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
106370         unsigned counterparts.
106371         (Have_long_long, Unsigned): New macros.
106372         (Int): Renamed from INT.
106373         (strtoimax): Use the new macros.
106374         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
106375         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
106376         * modules/inttypes (inttypes.h): Substitute
106377         HAVE_UNSIGNED_LONG_LONG_INT.
106378         * modules/stdint (stdint.h): Likewise.
106379         (Files): Add m4/ulonglong.m4.
106381 2006-10-10  Bruno Haible  <bruno@clisp.org>
106383         Fix a gcc -Wshadow warning.
106384         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
106385         to 'bucket'.
106386         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
106387         gl_linked_indexof_from_to): Likewise.
106388         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
106389         Likewise.
106390         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
106391         Likewise.
106392         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
106393         Reported by Eric Blake.
106395 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
106397         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
106398         for NetBSD.  Problem reported by Bruno Haible.
106400 2006-10-09  Jim Meyering  <jim@meyering.net>
106402         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
106403         Patch from Bruno Haible.
106405 2006-10-09  Jim Meyering  <jim@meyering.net>
106407         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
106408         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
106409         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
106411 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106413         Don't include <config.h> twice; this doesn't work in some cases,
106414         e.g., when config.h has "#define intmax_t long long int" and
106415         we include <config.h>, <inttypes.h>, <config.h> in that order.
106416         Problem reported by Matthew Woehlke in:
106417         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
106418         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
106419         * lib/fts-cycle.c: Don't include config.h.
106420         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
106421         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
106422         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
106423         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
106424         inttypes.h.
106425         * lib/xstrtoumax.c: Likewise.
106426         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
106427         __strtol and the like, so that this module is more like its siblings.
106428         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
106429         Remove; no longer needed now that we assume gnulib inttypes.h.
106431 2006-10-08  Bruno Haible  <bruno@clisp.org>
106433         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
106434         option.
106436 2006-10-07  Jim Meyering  <jim@meyering.net>
106438         * modules/inttypes (inttypes.h): Revert what seems to have been
106439         an inadvertent part of today's change: use "|", not "/" in the
106440         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
106442 2006-10-07  Bruno Haible  <bruno@clisp.org>
106444         * modules/sublist: New file.
106446 2006-10-07  Bruno Haible  <bruno@clisp.org>
106448         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
106449         * modules/argz (argz.h): Likewise.
106450         * modules/arpa_inet (arpa/inet.h): Likewise.
106451         * modules/byteswap (byteswap.h): Likewise.
106452         * modules/configmake (configmake.h): Likewise.
106453         * modules/fcntl (fcntl.h): Likewise.
106454         * modules/fnmatch (fnmatch.h): Likewise.
106455         * modules/getopt (getopt.h): Likewise.
106456         * modules/glob (glob.h): Likewise.
106457         * modules/inttypes (inttypes.h): Likewise.
106458         * modules/netinet_in (netinet/in.h): Likewise.
106459         * modules/poll (poll.h): Likewise.
106460         * modules/stdbool (stdbool.h): Likewise.
106461         * modules/stdint (stdint.h): Likewise.
106462         * modules/sys_select (sys/select.h): Likewise.
106463         * modules/sys_socket (sys/socket.h): Likewise.
106464         * modules/sys_stat (sys/stat.h): Likewise.
106465         * modules/sysexits (sysexits.h): Likewise.
106466         * modules/unistd (unistd.h): Likewise.
106467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106468         Add a "DO NOT EDIT" comment to the generated file.
106469         (func_import): Likewise for gnulib-comp.m4.
106471 2006-10-07  Bruno Haible  <bruno@clisp.org>
106473         * lib/gl_sublist.h: New file.
106474         * lib/gl_sublist.c: New file.
106476 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
106478         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
106479         name (relative to the original working directory) and the file
106480         name component (relative to the temporary working directory).  All
106481         callers changed.
106482         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
106483         * lib/mkdir-p.c (make_dir_parents): Likewise.
106484         * lib/mkdir-p.h (make_dir_parents): Likewise.
106486 2006-10-06  Eric Blake  <ebb9@byu.net>
106488         Define several macros for use by the clean-temp module.
106489         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
106490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
106491         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
106493         * lib/clean-temp.h (close_stream_temp): New declaration.
106494         * lib/clean-temp.c (includes): Pull in headers according to what
106495         other modules are in use.
106496         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
106498 2006-10-06  Bruno Haible  <bruno@clisp.org>
106500         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
106501         instead of fopen, fwriteerror.
106503 2006-10-06  Bruno Haible  <bruno@clisp.org>
106505         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
106506         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
106507         int.
106508         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
106509         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
106510         Return an error indicator.
106511         Suggested by Eric Blake.
106513 2006-10-06  Bruno Haible  <bruno@clisp.org>
106515         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
106516         Reported by Eric Blake.
106518 2006-10-06  Bruno Haible  <bruno@clisp.org>
106520         * modules/closeout (Description): Mention stderr too.
106522 2006-10-06  Bruno Haible  <bruno@clisp.org>
106523         and Paul Eggert  <eggert@cs.ucla.edu>
106525         * lib/closeout.c (close_stdout): Also close stderr.
106526         * lib/closeout.h: Update comment.
106528 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
106530         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
106531         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
106532         * lib/dirchownmod.c: Include lchown.h.
106533         * lib/lchown.c: Don't include files that lchown.h now includes.
106534         Don't declare chown, since lchown.h now does that.
106535         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
106536         (lchown): Define to rpl_chown if lchown is declared but
106537         does not exist.  Declare using a prototype if lchown is not
106538         declared.  Add a copyright notice.
106539         * lib/mkstemp.h: Include <unistd.h>.
106540         * lib/openat.c: Include lchown.h.
106542         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
106543         we now test for that separately.
106544         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
106545         rather than O_NOFOLLOW, when testing whether it's possible to
106546         avoid a race condition reliably.
106547         * lib/savewd.c (savewd_chdir): Likewise.
106549         Remove macros that are no longer needed now that stdint.h is
106550         reliable.
106551         * lib/fsusage.c (UINTMAX_MAX): Remove.
106552         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
106553         * lib/utimecmp.c (SIZE_MAX): Remove.
106555         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
106557         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
106558         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
106559         O_NOATIME works.
106561 2006-10-05  Bruno Haible  <bruno@clisp.org>
106563         * lib/gl_list.h (gl_sortedlist_search_from_to,
106564         gl_sortedlist_indexof_from_to): New declarations.
106565         (gl_list_implementation): New fields sortedlist_search_from_to,
106566         sortedlist_indexof_from_to.
106567         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
106568         inline functions.
106569         * lib/gl_list.c (gl_sortedlist_search_from_to,
106570         gl_sortedlist_indexof_from_to): New functions.
106571         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
106572         function.
106573         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
106574         (gl_array_sortedlist_search_from_to): New function.
106575         (gl_array_list_implementation): Update.
106576         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
106577         function.
106578         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
106579         (gl_carray_sortedlist_search_from_to): New function.
106580         (gl_carray_list_implementation): Update.
106581         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
106582         gl_linked_sortedlist_indexof_from_to): New functions.
106583         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
106584         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
106585         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
106586         gl_tree_sortedlist_indexof_from_to): New functions.
106587         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
106588         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
106589         Update.
106590         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
106591         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
106592         Update.
106594 2006-10-05  Bruno Haible  <bruno@clisp.org>
106596         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
106597         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
106598         (struct gl_list_implementation): Add fields search_from_to,
106599         indexof_from_to. Remove fields search, indexof.
106600         (gl_list_search): Use the search_from_to method.
106601         (gl_list_search_from, gl_list_search_from_to): New functions.
106602         (gl_list_indexof): Use the indexof_from_to method.
106603         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
106604         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
106605         (gl_list_search_from, gl_list_search_from_to): New functions.
106606         (gl_list_indexof): Use the indexof_from_to method.
106607         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
106608         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
106609         gl_array_indexof. Add start_index, end_index arguments.
106610         (gl_array_search_from_to): Renamed from gl_array_search. Add
106611         start_index, end_index arguments.
106612         (gl_array_remove, gl_array_list_implementation): Update.
106613         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
106614         gl_carray_indexof. Add start_index, end_index arguments.
106615         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
106616         start_index, end_index arguments.
106617         (gl_carray_remove, gl_carray_list_implementation): Update.
106618         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
106619         gl_linked_search. Add start_index, end_index arguments.
106620         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
106621         start_index, end_index arguments.
106622         (gl_linked_remove): Update.
106623         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
106624         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
106625         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
106626         field to 'size_t'.
106627         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
106628         gl_tree_search. Add start_index, end_index arguments.
106629         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
106630         start_index, end_index arguments.
106631         (gl_tree_remove): Update.
106632         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
106633         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
106634         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
106635         function.
106636         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
106637         gl_tree_search. Add start_index, end_index arguments.
106638         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
106639         start_index, end_index arguments.
106640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
106641         Update.
106642         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
106644 2006-10-05  Bruno Haible  <bruno@clisp.org>
106646         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
106648         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
106649         fwriteerror_temp): New declarations.
106650         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
106651         (descriptors): New variable.
106652         (cleanup): First, close the descriptors.
106653         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
106654         fclose_temp, fwriteerror_temp): New functions.
106656 2006-10-04  Jim Meyering  <jim@meyering.net>
106658         * lib/fts.c (fts_open): Tiny comment change.
106660 2006-10-04  Bruno Haible  <bruno@clisp.org>
106662         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
106663         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
106664         gl_LOCK_BODY.
106665         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
106666         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
106667         gl_LOCK_EARLY_BODY.
106668         (gl_LOCK): Require gl_LOCK_BODY.
106670 2006-10-04  Bruno Haible  <bruno@clisp.org>
106672         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
106673         (gl_oset_search_atleast): New declaration.
106674         (struct gl_oset_implementation): Add field 'search_atleast'.
106675         (gl_oset_search_atleast): New inline function.
106676         * lib/gl_oset.c (gl_oset_search_atleast): New function.
106677         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
106678         (gl_array_oset_implementation): Update.
106679         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
106680         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
106681         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
106683 2006-10-04  Bruno Haible  <bruno@clisp.org>
106685         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
106687 2006-10-03  Bruno Haible  <bruno@clisp.org>
106689         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
106690         from gl_avltreehash_list_implementation.
106692 2006-10-03  Bruno Haible  <bruno@clisp.org>
106694         * lib/gl_oset.c (gl_oset_add): Fix return type.
106696 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
106698         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
106700 2006-10-02  Eric Blake  <ebb9@byu.net>
106702         * modules/strnlen (Depends-on): Add extensions.
106704 2006-10-02  Eric Blake  <ebb9@byu.net>
106706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
106707         definition in 2.60+.
106709 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
106711         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
106712         checks.
106714 2006-10-02  Bruno Haible  <bruno@clisp.org>
106716         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
106717         to the AUTOMAKE_OPTIONS.
106718         Reported by Jim Meyering.
106720 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
106722         Work around bug in Solaris 10 /proc file system:
106723         /proc/self/fd/NNN/.. isn't the parent directory of
106724         the directory whose file descriptor is NNN.  This needs to
106725         be worked around at run time, not compile time, since a
106726         program might be built on Solaris 8, where things work, and
106727         run on Solaris 10.
106728         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
106729         to use the following interface instead:
106730         (OPENAT_BUFFER_SIZE): New macro.
106731         (openat_proc_name): New function.
106732         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
106733         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
106734         Likewise.
106735         * lib/openat-proc.c: New file.
106736         * modules/openat (Files): Add lib/openat-proc.c.
106737         (Depends-on): Add same-inode, stdbool.
106738         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
106740 2006-09-29  Bruno Haible  <bruno@clisp.org>
106742         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
106743         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
106744         argument. Set stdout_closed before testing for ferror, not after.
106745         (fwriteerror, fwriteerror_no_ebadf): New functions.
106747 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106749         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
106751 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
106753         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
106754         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
106756 2006-09-28  Jim Meyering  <jim@meyering.net>
106758         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
106759         Include <unistd.h>.
106761 2006-09-28  Bruno Haible  <bruno@clisp.org>
106763         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
106764         * modules/linkedhash-list (Depends-on): Likewise.
106765         * modules/rbtreehash-list (Depends-on): Likewise.
106767 2006-09-28  Bruno Haible  <bruno@clisp.org>
106769         * lib/strndup.h: Simplify the redefinition of strndup.
106770         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
106771         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
106773 2006-09-28  Bruno Haible  <bruno@clisp.org>
106775         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
106776         * lib/gl_linkedhash_list.c: Likewise.
106777         * lib/gl_rbtreehash_list.c: Likewise.
106779 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
106781         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
106782         getaddrinfo.
106784         * lib/__fpending.h: Don't include <stdio_ext.h> unless
106785         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
106786         it causes <stdio_ext.h> to cause a compile-time error.
106787         Problem reported by Nelson H. F. Beebe.
106788         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
106789         of HAVE_DECL___PENDING.
106791         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
106792         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
106793         declaration.
106795 2006-09-27  Jim Meyering  <jim@meyering.net>
106797         This file could end up with a definition for a function
106798         named __strndup, rather than rpl_strndup on a system with
106799         incomplete weak_alias support.
106800         * lib/strndup.c (strndup): Rename from __strndup.
106801         Remove #defines that used to map __strndup to strndup.
106802         Don't use K&R prototypes.
106803         Remove LIBC-related code, since this file is not sync'd with glibc.
106804         * lib/strndup.h: Revamp, accordingly.
106805         * m4/strndup.m4: Modernize.
106807 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
106809         * modules/savewd (Depends-on): Add 'raise'.
106810         * lib/savewd.c: Include <signal.h>, for 'raise'.
106812 2006-09-26  Jim Meyering  <jim@meyering.net>
106814         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
106815         when we detect Darwin 8.7.0's acl_get_file bug.
106816         Rearrange to perform the new (below) run-test while $LIBS
106817         contains any acl-related library.  Set USE_ACL at the end.
106818         (gl_ACL_GET_FILE): New function.
106820 2006-09-26  Eric Blake  <ebb9@byu.net>
106822         * lib/verror.c: Include <config.h> unconditionally.
106824 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
106826         * modules/clock-time (Maintainer): Add self.
106827         * modules/getlogin_r (Depends-on): Add extensions.
106829 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106831         * modules/clock-time: New module.
106832         * modules/nanosleep (Depends-on): Add clock-time.
106833         * modules/gethrxtime (Depends-on): Likewise.
106834         * modules/gettime (Depends-on): Likewise.
106835         * modules/settime (Depends-on): Likewise.
106837         * modules/fts-lgpl: Depend on openat.
106838         * modules/mkancesdirs: Depend on savewd.
106839         * modules/mkdir-p: Likewise.
106841 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106843         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
106845         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
106846         `gl_have_arbitrary_file_name_length_limit' to
106847         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
106848         actually works between configure runs.
106850 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106851             Bruno Haible  <bruno@clisp.org>
106853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
106855 2006-09-25  Jim Meyering  <jim@meyering.net>
106857         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
106858         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
106860 2006-09-25  Eric Blake  <ebb9@byu.net>
106862         * gnulib-tool (func_import, func_create_testdir): Fix typos in
106863         exec's in 2006-09-18 patch when shuffling fds.
106865 2006-09-25  Bruno Haible  <bruno@clisp.org>
106867         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
106868         Reported by Jim Meyering.
106870 2006-09-24  Jim Meyering  <jim@meyering.net>
106872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
106873         compare a pointer against a literal "0".  That caused failures with
106874         at least HP-UX's hpcc.
106876 2006-09-22  Simon Josefsson  <jas@extundo.com>
106878         * modules/gc-sha1:
106879         * modules/gc-md4:
106880         * modules/gc-hmac-sha1:
106881         * modules/gc-hmac-md5:
106882         * modules/gc-des:
106883         * modules/gc-arcfour: Distribute more files.
106885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106887         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
106888         (gl_linked_iterator_from_to): Initialize struct completely.
106889         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
106890         (gl_tree_iterator_from_to): Likewise
106891         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
106892         * lib/gl_array_list.c [lint] (gl_array_iterator)
106893         (gl_array_iterator_from_to): Likewise.
106894         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
106895         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
106896         (gl_carray_iterator_from_to): Likewise.
106898         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
106899         * lib/md4.c (md4_process_block): Remove unused variable.
106900         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
106901         parentheses for clarity.
106903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106905         * modules/bison-i18n (Depends-on): Add gettext.
106907 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106909         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
106910         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
106911         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
106912         also add missing comma that caused broken test.
106913         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
106914         stdlib.h, for `abort'.
106915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
106916         variables.
106917         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
106918         include unistd.h if present, for `rmdir'.
106919         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
106920         variables.
106921         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
106922         in the process include standard headers for prototypes.
106923         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
106924         gets declared on GNU/Linux.
106925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
106926         unistd.h, for `rmdir'.
106927         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
106929         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
106930         always true.
106931         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
106933         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
106935 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106937         * gnulib-tool (func_version): Create output all at once.  This
106938         may help avoid triggering unnecessary SIGPIPEs, and at any
106939         rate it doesn't hurt.
106941 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106942             Bruno Haible  <bruno@clisp.org>
106944         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
106945         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106946         * m4/signed.m4 (bh_C_SIGNED): Likewise.
106948         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
106949         (gl_FUNC_VASPRINTF): Invoke it.
106951 2006-09-22  Bruno Haible  <bruno@clisp.org>
106953         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
106954         getloadavg.c as first argument.
106956 2006-09-22  Bruno Haible  <bruno@clisp.org>
106958         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
106959         at the beginning of the gl_INIT macro.
106960         * modules/getloadavg (configure.ac): Pass $gl_source_base to
106961         gl_GETLOADAVG.
106963 2006-09-22  Bruno Haible  <bruno@clisp.org>
106965         * gnulib-tool (func_create_megatestdir): Don't include the config-h
106966         module.
106967         Suggested by Ralf Wildenhues.
106969 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106971         Import this patch from libc:
106973         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
106975         * lib/regex_internal.c (re_string_reconstruct): Handle
106976         offset < pstr->valid_raw_len && pstr->offsets_needed case.
106977         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
106978         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
106979         re_string_context_at.
106981         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
106982         now requires it.
106983         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
106984         gl_REGEX now does it for us.
106985         (gl_REGEX): Add test taken from
106986         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
106988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
106989         Check that large offsets work.  Modernize Autoconf usages.
106990         Prefer "yes" to mean a good thing rather than a bad.
106991         Don't put "#define mkstemp" in config.h, as this might interfere
106992         with standard system headers that "#define mkstemp mkstemp64".
106994         * modules/mkstemp (Depends-on): Add extensions, so that
106995         mkstemp is visible on some platforms.
106996         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
106997         (Include): Change to "mkstemp.h" from <stdlib.h>.
106998         (Files): Add mkstemp.h.
107000         * lib/mkstemp.h: New file, since some standard headers
107001         #define mkstemp.
107002         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
107003         Include "mkstemp.h".
107004         Make the _LIBC code resemble glibc original more,
107005         e.g., use K&R style.
107006         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
107007         (mkstemp): Remove, since mkstemp.h does this for us.
107008         * lib/stdlib--.h: Include mkstemp.h.
107010         Import this patch from libc:
107012         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
107014         * lib/tempname.c (__gen_tempname): Change attempts_min
107015         into a macro.  Use preprocessor to decide how to initialize
107016         attempts [Coverity CID 67].
107018 2006-09-20  Bruno Haible  <bruno@clisp.org>
107020         * lib/mkdtemp.c: Import from libc.
107021         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
107022                 * sysdeps/posix/tempname.c (__gen_tempname): Change
107023                 attempts_min into a macro.  Use preprocessor to decide how to
107024                 initialize attempts [Coverity CID 67].
107025         2001-11-27  Paul Eggert  <eggert@twinsun.com>
107026                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
107027                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
107029 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107031         * gnulib-tool (func_exit): New function, to allow to pass the
107032         exit status portably through the trap.  Use everywhere.
107033         (--help, --version): Signal a write error.
107034         (trap): catch SIGPIPE, for write errors.
107035         Exit at the end of the trap, with the correct exit status.
107037 2006-09-19  Karl Berry  <karl@gnu.org>
107039         * doc/gnulib.texi: note about the license texinfo files.
107041 2006-09-19  Eric Blake  <ebb9@byu.net>
107043         * gnulib-tool: Avoid space-tab.
107045 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
107047         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
107048         that prevented coreutils 6.1 from building.  Problem reported
107049         by Petter Reinholdtsen.
107051 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
107053         * gnulib-tool (avoidlist): Fix typo that broke options like
107054         --avoid=lock that are used by coreutils bootstrap.
107056 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
107058         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
107059         more systematically.
107061 2006-09-18  Jim Meyering  <jim@meyering.net>
107063         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
107065 2006-09-18  Bruno Haible  <bruno@clisp.org>
107067         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
107069 2006-09-18  Bruno Haible  <bruno@clisp.org>
107071         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
107072         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
107073         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
107074         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
107075         * m4/gettext.m4: Require autoconf >= 2.52.
107076         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
107077         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
107078         of gl_cv_header_inttypes_h.
107080 2006-09-18  Bruno Haible  <bruno@clisp.org>
107082         * lib/javaversion.c: Include configmake.h.
107084 2006-09-18  Bruno Haible  <bruno@clisp.org>
107086         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
107087         avoid that the while loops be executed in a subshell.
107089 2006-09-18  Bruno Haible  <bruno@clisp.org>
107091         * MODULES.html.sh (func_module): Break long lines.
107092         Suggested by Bruce Korb <bkorb@gnu.org>.
107094 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107096         Speed up by a factor of 1.12.
107097         * gnulib-tool (nl): New variable.
107098         (func_import): Rewrite include directive extraction to only read each
107099         directive once.
107101 2006-09-17  Bruno Haible  <bruno@clisp.org>
107103         * modules/javaversion (Makefile.am): Remove DEFS setting.
107104         (Depends-on): Add configmake, for PKGDATADIR definition.
107106 2006-09-17  Bruno Haible  <bruno@clisp.org>
107108         * gnulib-tool (func_create_testdir): Rewrite all files at once.
107110 2006-09-17  Bruno Haible  <bruno@clisp.org>
107112         * gnulib-tool (func_append): New function, stolen from libtool.m4.
107113         (func_modules_transitive_closure, func_modules_add_dummy,
107114         func_modules_to_filelist, func_import, func_create_testdir,
107115         func_create_megatestdir, ...): Use it wherever possible.
107116         Suggested by Ralf Wildenhues.
107118 2006-09-16  Karl Berry  <karl@gnu.org>
107120         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
107121         to avoid sectioning errors.
107122         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
107123         [ifinfo]: blank line after @center-ed titles.
107124         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
107125         Spell FSF address consistently with others.
107126         (These changes approved by rms.)
107128 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107130         Speed up by a factor of 1.61.
107131         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
107132         already checked module names again.
107134 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107136         Speed up by a factor of 1.13.
107137         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
107138         for new_files, and the input to func_add_or_update.
107140 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107142         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
107143         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
107145 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107147         * modules/mkancesdirs (Depends-on): Add fcntl.
107148         * modules/savewd: New file.
107149         * MODULES.html.sh (File system functions): Add savewd.
107151         * modules/configmake (Makefile.am): Add support for the
107152         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
107154 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107156         * m4/savewd.m4: New file.
107158 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
107160         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
107161         (dirchownmod): New arg FD.  All callers changed.
107162         Use FD rather than opening the directory ourself, as opening is
107163         now the caller's responsibility.
107164         * lib/dirchownmod.h: Likewise.
107165         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
107166         hosts that require <sys/types.h> before <sys/stat.h>.  Include
107167         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
107168         (test_dir): Remove.
107169         (mkancesdirs): Return length of prefix of FILE that has already
107170         been made, or -2 if there is a child doing the work.  Redo
107171         algorithm so that it is O(N) rather than O(N**2).  Optimize away
107172         ".", and treat ".." specially since it might stray back into
107173         already-created areas.  Use a subprocess if necessary.  New arg
107174         WD; all users changed.  MAKE_DIR function should now return 1
107175         if it creates a directory that is not readable.  Return -2 if
107176         a child process is spun off.
107177         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
107178         Adjust signature to match code.
107179         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
107180         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
107181         all users changed.
107182         * lib/savewd.c, lib/savewd.h: New files.
107184 2006-09-15  Jim Meyering  <jim@meyering.net>
107186         * modules/rename-dest-slash: New module.
107187         * MODULES.html.sh (posix_compat): Add it here.
107189         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
107191 2006-09-15  Jim Meyering  <jim@meyering.net>
107193         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
107194         file.
107196         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
107198 2006-09-15  Jim Meyering  <jim@meyering.net>
107200         * lib/rename-dest-slash.c (has_trailing_slash): Use
107201         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
107202         (rpl_rename_dest_slash): Perform the cheaper trailing slash
107203         test before testing whether SRC is a directory.
107204         Suggestions from Bruno Haible.
107206         Avoid a warning about an unused variable.
107207         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
107208         into the #ifdef block where it's used.
107210         * lib/rename-dest-slash.c: New file.
107212 2006-09-14  Bruno Haible  <bruno@clisp.org>
107214         * lib/allocsa.c: Include <config.h> unconditionally.
107215         * lib/asnprintf.c: Likewise.
107216         * lib/asprintf.c: Likewise.
107217         * lib/c-strcasecmp.c: Likewise.
107218         * lib/c-strcasestr.c: Likewise.
107219         * lib/c-strncasecmp.c: Likewise.
107220         * lib/c-strstr.c: Likewise.
107221         * lib/classpath.c: Likewise.
107222         * lib/clean-temp.c: Likewise.
107223         * lib/concatpath.c: Likewise.
107224         * lib/copy-file.c: Likewise.
107225         * lib/csharpcomp.c: Likewise.
107226         * lib/csharpexec.c: Likewise.
107227         * lib/execute.c: Likewise.
107228         * lib/fatal-signal.c: Likewise.
107229         * lib/findprog.c: Likewise.
107230         * lib/fwriteerror.c: Likewise.
107231         * lib/gl_array_list.c: Likewise.
107232         * lib/gl_array_oset.c: Likewise.
107233         * lib/gl_avltree_list.c: Likewise.
107234         * lib/gl_avltree_oset.c: Likewise.
107235         * lib/gl_avltreehash_list.c: Likewise.
107236         * lib/gl_carray_list.c: Likewise.
107237         * lib/gl_linked_list.c: Likewise.
107238         * lib/gl_linkedhash_list.c: Likewise.
107239         * lib/gl_list.c: Likewise.
107240         * lib/gl_oset.c: Likewise.
107241         * lib/gl_rbtree_list.c: Likewise.
107242         * lib/gl_rbtree_oset.c: Likewise.
107243         * lib/gl_rbtreehash_list.c: Likewise.
107244         * lib/imaxabs.c: Likewise.
107245         * lib/imaxdiv.c: Likewise.
107246         * lib/javacomp.c: Likewise.
107247         * lib/javaexec.c: Likewise.
107248         * lib/javaversion.c: Likewise.
107249         * lib/linebreak.c: Likewise.
107250         * lib/localcharset.c: Likewise.
107251         * lib/lock.c: Likewise.
107252         * lib/mbchar.c: Likewise.
107253         * lib/mbswidth.c: Likewise.
107254         * lib/mkdtemp.c: Likewise.
107255         * lib/pipe.c: Likewise.
107256         * lib/printf-args.c: Likewise.
107257         * lib/printf-parse.c: Likewise.
107258         * lib/progname.c: Likewise.
107259         * lib/progreloc.c: Likewise.
107260         * lib/readlink.c: Likewise.
107261         * lib/sh-quote.c: Likewise.
107262         * lib/stpcpy.c: Likewise.
107263         * lib/stpncpy.c: Likewise.
107264         * lib/strcasecmp.c: Likewise.
107265         * lib/strcasestr.c: Likewise.
107266         * lib/strcspn.c: Likewise.
107267         * lib/striconv.c: Likewise.
107268         * lib/strncasecmp.c: Likewise.
107269         * lib/strnlen1.c: Likewise.
107270         * lib/strstr.c: Likewise.
107271         * lib/strtok_r.c: Likewise.
107272         * lib/tls.c: Likewise.
107273         * lib/tmpdir.c: Likewise.
107274         * lib/unicodeio.c: Likewise.
107275         * lib/unsetenv.c: Likewise.
107276         * lib/vasnprintf.c: Likewise.
107277         * lib/vasprintf.c: Likewise.
107278         * lib/wait-process.c: Likewise.
107279         * lib/xallocsa.c: Likewise.
107280         * lib/xsetenv.c: Likewise.
107281         * lib/xstriconv.c: Likewise.
107283 2006-09-13  Simon Josefsson  <jas@extundo.com>
107285         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
107286         that internally, suggested by Ralf Wildenhues
107287         <Ralf.Wildenhues@gmx.de>.
107289 2006-09-13  Simon Josefsson  <jas@extundo.com>
107291         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
107292         @LIBOBJS@.
107293         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107295 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
107297         * lib/_fpending.c: Include <config.h> unconditionally, since we no
107298         longer worry about uses that don't define HAVE_CONFIG_H.
107299         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
107300         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
107301         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
107302         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
107303         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
107304         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
107305         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
107306         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
107307         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
107308         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
107309         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
107310         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
107311         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
107312         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
107313         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
107314         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
107315         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
107316         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
107317         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
107318         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
107319         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
107320         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
107321         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
107322         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
107323         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
107324         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
107325         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
107326         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
107327         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
107328         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
107329         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
107330         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
107331         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
107332         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
107333         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
107334         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
107335         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
107336         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
107337         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
107338         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
107339         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
107340         Likewise.
107342 2006-09-13  Eric Blake  <ebb9@byu.net>
107344         * lib/getopt.c: Fix typo in last commit.
107346 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
107348         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
107349         dgettext.
107351 2006-09-12  Jim Meyering  <jim@meyering.net>
107353         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
107354         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
107355         Reported by Nelson H. F. Beebe.
107357 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
107359         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
107360         program_invocation_name and program_invocation_short_name are
107361         initialized.
107362         * lib/argp-namefrob.h: Move declarations of program_invocation_name
107363         and program_invocation_short_name to argp.h, so they are visible
107364         to user programs.
107365         * lib/argp.h: Likewise
107367 2006-09-10  Bruno Haible  <bruno@clisp.org>
107369         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
107370         m4/inttypes_h.m4, m4/uintmax_t.m4.
107372 2006-09-10  Bruno Haible  <bruno@clisp.org>
107374         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
107375         gl_AC_TYPE_UINTMAX_T.
107377 2006-09-10  Bruno Haible  <bruno@clisp.org>
107379         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
107381 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
107383         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
107384         convention.  Text proposed by Bruno Haible.
107385         (struct argp_option): Document the use of N_() wrappers.
107387         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
107388         '\v', and translate the two parts separately, instead of feeding
107389         the whole string to gettext.  This allows to exclude
107390         '\v' from the strings visible to the translator by writing doc
107391         strings as N_("..") "\v" N_("..").
107393 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
107395         * config/srclist.txt: Undo latest change; the bug was fixed.
107397 2006-09-09  Bruno Haible  <bruno@clisp.org>
107399         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
107400         assignments if building a library without libtool.
107401         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
107402         in func_emit_lib_Makefile_am.
107403         (func_import): When building a static library libfoo.a, arrange to
107404         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
107405         (func_create_testdir): Likewise.
107406         * modules/gc (configure.ac, Makefile.am): If building statically,
107407         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
107408         * modules/iconvme (configure.ac, Makefile.am): Likewise.
107409         * modules/striconv (configure.ac, Makefile.am): Likewise.
107410         Based on a suggestion by Ralf Wildenhues.
107412 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107414         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107415         Check for unistd.h too, since Autoconf doesn't assume POSIX.
107416         Also:
107418         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107419         Add year_2050_test to catch glibc bug 2821
107420         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
107422         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
107423         Prefer #ifdef to #if.
107425         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
107426         Return from 'main' instead of calling 'exit'.
107428 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107430         * lib/mktime.c (guess_time_tm): Fix bug where mktime
107431         returned the maximum time_t value rather than (time_t) -1.
107432         Problem originally reported by William Bardwell
107433         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
107435         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
107436         Moved to here ...
107437         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
107438         ... from here.
107440 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
107442         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
107443         2821 is fixed.
107445 2006-09-08  Jim Meyering  <jim@meyering.net>
107447         Don't make generated files read-only.  That would bother too many
107448         people.  However, do retain the ability to work when targets are
107449         read-only: remove the destination and temporary files before writing
107450         them (when generated via sed or echo), or by using the -f option for
107451         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
107452         * modules/alloca-opt, modules/argz, modules/arpa_inet:
107453         * modules/byteswap, modules/configmake, modules/fcntl:
107454         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
107455         * modules/localcharset, modules/netinet_in, modules/poll:
107456         * modules/stdbool, modules/stdint, modules/sys_select:
107457         * modules/sys_socket, modules/sys_stat, modules/sysexits:
107459 2006-09-08  Jim Meyering  <jim@meyering.net>
107461         Avoid new build failure on FreeBSD 6.0.
107462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
107463         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
107464         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
107466 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
107470 2006-09-07  Jim Meyering  <jim@meyering.net>
107472         Fix global typo in last change: use chmod u-w, not chmod u-x.
107473         Spotted by Paul Eggert and Bruce Korb.
107474         * modules/alloca-opt, modules/argz, modules/arpa_inet:
107475         * modules/byteswap, modules/configmake, modules/fcntl:
107476         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
107477         * modules/localcharset, modules/netinet_in, modules/poll:
107478         * modules/stdbool, modules/stdint, modules/sys_select:
107479         * modules/sys_socket, modules/sys_stat, modules/sysexits:
107481 2006-09-06  Jim Meyering  <jim@meyering.net>
107483         Make generated files be read-only.
107484         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
107485         Ensure that each generated file is now read-only.
107486         * modules/argz: Likewise.
107487         * modules/arpa_inet: Likewise.
107488         * modules/byteswap: Likewise.
107489         * modules/configmake: Likewise.
107490         * modules/fcntl: Likewise.
107491         * modules/fnmatch: Likewise.
107492         * modules/getopt: Likewise.
107493         * modules/glob: Likewise.
107494         * modules/inttypes: Likewise.
107495         * modules/netinet_in: Likewise.
107496         * modules/poll: Likewise.
107497         * modules/stdbool: Likewise.
107498         * modules/stdint: Likewise.
107499         * modules/sys_select: Likewise.
107500         * modules/sys_socket: Likewise.
107501         * modules/sys_stat: Likewise.
107502         * modules/sysexits: Likewise.
107503         * modules/localcharset: Same as above, but continue using temporary
107504         file named "t-$@" (why different?) rather than the "$@-t" used
107505         everywhere else.
107507         * modules/sysexits (Makefile.am): Replace literal occurrences
107508         of "sysexit.h" more readable, and more consistent, "$@".
107510 2006-09-06  Bruno Haible  <bruno@clisp.org>
107512         * modules/striconv: New file.
107513         * modules/xstriconv: New file.
107514         * MODULES.html.sh (Internationalization functions): Add striconv,
107515         xstriconv.
107517 2006-09-06  Bruno Haible  <bruno@clisp.org>
107519         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
107520         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
107521         not using libtool correctly.
107523 2006-09-06  Bruno Haible  <bruno@clisp.org>
107525         * lib/striconv.h: New file.
107526         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
107527         iconvstring.c.
107528         * lib/xstriconv.h: New file.
107529         * lib/xstriconv.c: New file.
107531 2006-09-06  Bruno Haible  <bruno@clisp.org>
107533         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107534         lib_..._LDFLAGS.
107536 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107538         * lib/argz_.h: Sync from Libtool.
107540         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
107541                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
107543         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
107545 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
107547         * modules/trim: New file.
107549 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
107551         * lib/trim.h: New file.
107552         * lib/trim.c: New file.
107554 2006-09-05  Bruno Haible  <bruno@clisp.org>
107556         * MODULES.html.sh (String handling): Add trim.
107558 2006-09-04  Karl Berry  <karl@gnu.org>
107560         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
107561         until next release.
107563 2006-09-03  Bruno Haible  <bruno@clisp.org>
107565         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
107566         correctly.
107568 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107570         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
107571         not gl_GETLOADAVG.  Omit unneeded semicolons.
107572         Problems reported by Ralf Wildenhues in
107573         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
107574         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
107575         at the end, which is the usual gnulib style.
107577         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
107578         of doing all the work ourselves.
107579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
107580         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
107582 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107584         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
107585         Problem reported by Ralf Wildenhues in
107586         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
107588         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
107589         HAVE_STRUCT_STATFS_F_FSTYPENAME.
107591 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
107593         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
107594         yesterday's patch by changing test -n to test -z.
107596 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107598         * modules/getloadavg (Files): Add m4/getloadavg.m4.
107599         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
107600         the former is now obsolescent.
107602         * modules/chdir-long (Depends-on): Add fcntl.
107604 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107606         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
107607         obsolescent, and programs should use gnulib instead.
107608         * m4/getloadavg.m4: New file, with contents taken from Autoconf
107609         but with prefixes changed.
107611 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
107613         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
107614         or stdbool.h, because they might not exist while configuring.
107616         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
107617         Don't include unistd.h or limits.h; not needed, since chdir-long.h
107618         does that for us.
107619         (O_DIRECTORY): Remove.
107621 2006-08-31  Eric Blake  <ebb9@byu.net>
107623         * gnulib-tool: Don't let emacs change spaces to TAB.
107625 2006-08-31  Bruno Haible  <bruno@clisp.org>
107627         * gnulib-tool: When calling func_import more than once, do it in a
107628         subshell.
107629         Reported by Eric Blake <ebb9@byu.net>.
107631 2006-08-31  Bruno Haible  <bruno@clisp.org>
107633         * gnulib-tool (nl): Remove variable.
107634         (sed_transform_lib_file): Use more robust test for config-h module.
107635         (func_import): Fix typo in 2006-08-25 patch.
107637 2006-08-31  Bruno Haible  <bruno@clisp.org>
107639         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
107640         specified, augment Makefile.am variables instead of assigning them.
107642 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107644         Work around a bug in both the Linux and SunOS 64-bit kernels:
107645         nanosleep mishandles sleeps for longer than 2**31 seconds.
107646         Problem reported by Frank v Waveren in
107647         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
107648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
107649         Check for nanosleep bug.
107650         (LIB_NANOSLEEP): Append clock_gettime library if needed.
107652 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107654         Work around a bug in both the Linux and SunOS 64-bit kernels:
107655         nanosleep mishandles sleeps for longer than 2**31 seconds.
107656         Problem reported by Frank v Waveren in
107657         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
107658         * lib/nanosleep.c (BILLION): New constant.
107659         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
107660         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
107661         implementation.
107663 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107665         * modules/nanosleep (Depends-on): Add gettime.
107667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
107668         and Simon Josefsson  <jas@extundo.com>
107669         and Oskar Liljeblad  <oskar@osk.mine.nu>
107671         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
107672         * gnulib-tool (func_import): New license type 'unmodifiable license
107673         text'.
107674         * modules/fdl: Use it.  Longer description.
107675         * module/gpl, module/lgpl: New files.
107677 2006-08-30  Jim Meyering  <jim@meyering.net>
107679         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
107680         shadowing the parameter.
107682 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107684         Sync from Libtool:
107686         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107688         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
107689         sharing with gnulib.  Report by Eric Blake.
107691 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107693         * modules/isapipe: New file.
107694         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
107696 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107698         * modules/configmake (Makefile.am): Add a comment, and omit
107699         the CONFIGMAKE_ prefix from generated macro names.  Suggested
107700         by Bruno Haible.
107702 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107704         * m4/isapipe.m4: New file.
107706 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
107708         * lib/isapipe.c, lib/isapipe.h: New files.
107710 2006-08-29  Jim Meyering  <jim@meyering.net>
107712         * modules/configmake (Makefile.am): Make configmake.h depend on
107713         Makefile.  Otherwise, a stale configmake.h could hang around.
107715 2006-08-29  Eric Blake  <ebb9@byu.net>
107717         * lib/error.c (error_at_line, print_errno_message): Match libc, after
107718         resolution of upstream bug 3044.
107720 2006-08-29  Bruno Haible  <bruno@clisp.org>
107722         * modules/localcharset (Depends-on): Add configmake.
107723         (Makefile.am): Remove setting of LIBDIR through DEFS.
107725 2006-08-29  Bruno Haible  <bruno@clisp.org>
107727         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
107728         defined.
107730 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
107732         * modules/fcntl: New file.
107733         * modules/chdir-safer (Depends-on): Add fcntl.
107734         * modules/fts: Likewise.
107735         * modules/mkdir-p: Likewise.
107737         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
107738         This undoes the most recent change, since we're now addressing the
107739         problem in a different way.
107741         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
107742         into output, since the output might be called Makefile.am even
107743         if $makefile_name is something different.
107744         (func_import): Use $makefile_am rather than
107745         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
107746         empty.
107748         * modules/inttypes (Files): Add m4/inttypes-h.m4.
107750 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
107752         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
107753         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
107754         recent change to stdint.m4, since we're now addressing the problem in a
107755         different way.
107757 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
107759         * m4/fcntl_h.m4: New file.
107761 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
107763         * lib/fcntl_.h: New file.
107764         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
107765         the fcntl module.
107766         * lib/dirchownmod.c: Likewise.
107767         * lib/fts.c: Likewise.
107769         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
107770         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
107771         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
107772         just before including <inttypes.h>, to avoid circular inclusion.
107774 2006-08-28  Jim Meyering  <jim@meyering.net>
107776         * doc/visibility.texi: Actually read and correct the grammar of the
107777         sentence affected by yesterday's change.
107779 2006-08-28  Eric Blake  <ebb9@byu.net>
107781         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
107782         needs wrapper.
107784 2006-08-28  Eric Blake  <ebb9@byu.net>
107786         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
107788 2006-08-28  Eric Blake  <ebb9@byu.net>
107790         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
107792 2006-08-28  Bruno Haible  <bruno@clisp.org>
107794         * modules/c-strstr: New file, from GNU gettext.
107795         * MODULES.html.sh (String handling): Add c-strstr.
107797 2006-08-28  Bruno Haible  <bruno@clisp.org>
107799         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
107800         macros.
107801         Reported by Eric Blake.
107803 2006-08-28  Bruno Haible  <bruno@clisp.org>
107805         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
107806         (VASNPRINTF): Return a string of length > INT_MAX without failing.
107807         * lib/vasprintf.c: Include errno.h, limits.h.
107808         (EOVERFLOW): New fallback definition.
107809         (vasprintf): Test here whether the string length is > INT_MAX.
107810         * lib/vsnprintf.c: Include errno.h, limits.h.
107811         (EOVERFLOW): New fallback definition.
107812         (vsnprintf): Fix bug when generated string was too long for the buffer.
107813         Test here whether the string length is > INT_MAX.
107815 2006-08-28  Bruno Haible  <bruno@clisp.org>
107817         * lib/inttypes_.h (SCNX*): Remove definitions.
107818         Reported by Eric Blake.
107820 2006-08-28  Bruno Haible  <bruno@clisp.org>
107822         * lib/c-strstr.h: New file, from GNU gettext.
107823         * lib/c-strstr.c: New file, from GNU gettext.
107825 2006-08-28  Bruno Haible  <bruno@clisp.org>
107827         * gnulib-tool: Reorder some statements.
107829 2006-08-28  Bruno Haible  <bruno@clisp.org>
107831         * gnulib-tool: New option --makefile-name.
107832         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
107833         $makefile_name.
107834         (func_import): Write $makefile_name to the cache file, and read it from
107835         there unless explicitly specified. Use $makefile_name as file name
107836         instead of Makefile.am. Adjust the recommendations accordingly.
107838 2006-08-28  Bruno Haible  <bruno@clisp.org>
107840         * gnulib-tool (func_verify_module): Check against misapplying patch.
107842 2006-08-28  Bruno Haible  <bruno@clisp.org>
107844         * gnulib-tool (func_relativize, func_relconcat): New functions.
107845         Give an error if --local-dir is given with --update.
107846         Remove trailing slashes from $local_gnulib_dir.
107847         (func_import): Store the relativized $local_gnulib_dir in
107848         gnulib-cache.m4, and read it from there if not specified explicitly.
107850 2006-08-28  Bruno Haible  <bruno@clisp.org>
107852         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
107853         is the current directory. Respect also $local_gnulib_dir.
107855 2006-08-28  Bruno Haible  <bruno@clisp.org>
107856             Simon Josefsson  <jas@extundo.com>
107858         BeOS portability.
107859         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
107861 2006-08-27  Jim Meyering  <jim@meyering.net>
107863         * doc/visibility.texi: Remove duplicate word: "pointer".
107865 2006-08-26  Bruno Haible  <bruno@clisp.org>
107867         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
107868         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
107869         (Makefile.am): Create inttypes.h from inttypes_.h.
107870         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
107872         * modules/imaxabs: New file.
107874         * modules/imaxdiv: New file.
107876 2006-08-26  Bruno Haible  <bruno@clisp.org>
107878         * m4/inttypes.m4: New file.
107879         * m4/_inttypes_h.m4: Remove file.
107880         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
107881         PRI_MACROS_BROKEN.
107882         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
107884         * m4/imaxabs.m4: New file.
107886         * m4/imaxdiv.m4: New file.
107888 2006-08-26  Bruno Haible  <bruno@clisp.org>
107890         * lib/inttypes_.h: New file.
107891         * lib/inttypes.h: Remove file.
107892         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
107894         * lib/imaxabs.c: New file.
107896         * lib/imaxdiv.c: New file.
107898 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
107900         New config-h module, so that "make" output needn't be cluttered
107901         by -DHAVE_CONFIG_H.
107902         * MODULES.html.sh (Support for building libraries and executables):
107903         Add config-h.
107904         * modules/config-h: New file.
107905         * gnulib-tool (nl, sed_transform_lib_file): New vars.
107906         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
107907         the config-h module is used.
107909         New configmake module, so that "make" output needn't be cluttered
107910         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
107911         * MODULES.html.sh (Support for building libraries and executables):
107912         Add configmake.
107913         * modules/configmake: New file.
107915 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
107917         * m4/config-h.m4: New file.
107919 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
107921         * config/srclist.txt: Add elisp-comp.
107923 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
107925         * MODULES.html.sh (Support for building libraries and executables):
107926         Add elisp-comp.
107927         * build-aux/elisp-comp: New file.
107928         * modules/elisp-comp: New file.
107930 2006-08-24  Bruno Haible  <bruno@clisp.org>
107932         * gnulib-tool (func_create_testdir): Use non-default values of
107933         sourcebase and m4base.
107935 2006-08-24  Bruno Haible  <bruno@clisp.org>
107937         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
107938         HTML structure.
107940 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
107942         * modules/openat (Depends-on): Add lchown.
107944 2006-08-23  Bruno Haible  <bruno@clisp.org>
107946         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
107947         of gl_LOCK_EARLY instead of gl_LOCK.
107949 2006-08-23  Bruno Haible  <bruno@clisp.org>
107951         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
107952         on OSF/1 to no.
107953         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
107955 2006-08-23  Bruno Haible  <bruno@clisp.org>
107957         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
107958         as unusable.
107960         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
107961         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
107962         (gl_LOCK): New macro.
107964 2006-08-22  Simon Josefsson  <jas@extundo.com>
107966         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
107967         to md5 module.
107969 2006-08-22  Simon Josefsson  <jas@extundo.com>
107971         * MODULES.html.sh: Add "Support for maintaining and release
107972         projects".
107974         * build-aux/gnupload: New file, from coreutils.
107976 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
107978         Avoid the need for AC_LIBSOURCES in m4 macros.
107979         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
107980         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
107981         * modules/check-version (EXTRA_DIST): Add check-version.h.
107982         * modules/crc (EXTRA_DIST): Add crc.h.
107983         * modules/des (EXTRA_DIST): Add des.h.
107984         * modules/gc (EXTRA_DIST): Add gc.h.
107985         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
107986         * modules/getline (EXTRA_DIST): Add getline.h.
107987         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
107988         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
107989         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
107990         * modules/md2 (EXTRA_DIST): Add md2.h.
107991         * modules/md4 (EXTRA_DIST): Add md4.h.
107992         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
107993         * modules/read-file (EXTRA_DIST): Add read-file.h.
107994         * modules/readline (EXTRA_DIST): Add readline.h.
107995         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
107996         rijndael-api-fst.h.
107998 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
108000         * m4/rijndael.m4 (gl_ARCFOUR):
108001         * m4/arctwo.m4 (gl_ARCTWO):
108002         * m4/check-version.m4 (gl_CHECK_VERSION):
108003         * m4/crc.m4 (gl_CRC):
108004         * m4/des.m4 (gl_DES):
108005         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
108006         * m4/gc.m4 (gl_GC):
108007         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
108008         * m4/getline.m4 (gl_FUNC_GETLINE):
108009         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
108010         * m4/hmac-md5.m4 (gl_HMAC_MD5):
108011         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
108012         * m4/md2.m4 (gl_MD2):
108013         * m4/md4.m4 (gl_MD4):
108014         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
108015         * m4/read-file.m4 (gl_FUNC_READ_FILE):
108016         * m4/readline.m4 (gl_FUNC_READLINE):
108017         * m4/rijndael.m4 (gl_RIJNDAEL):
108018         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
108019         to get the necessary .h files and whatnot.
108021 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
108023         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
108024         gnulib rather than the other way around.
108025         * config/srclistvars.sh (COREUTILS): Remove.
108027 2006-08-22  Jim Meyering  <jim@meyering.net>
108029         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
108031         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
108033 2006-08-22  Eric Blake  <ebb9@byu.net>
108035         * modules/regexprops-generic: New file.
108036         * MODULES.html.sh (Support for building documentation): List it.
108038 2006-08-22  Eric Blake  <ebb9@byu.net>
108040         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
108041         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
108042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
108043         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
108045 2006-08-22  Bruno Haible  <bruno@clisp.org>
108047         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
108048         and lib_LTLIBRARIES like the other lib_* variables.
108050 2006-08-22  Bruno Haible  <bruno@clisp.org>
108052         * build-aux/x-to-1.in: New file, from GNU gettext.
108054 2006-08-22  Bruno Haible  <bruno@clisp.org>
108056         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
108057         <utmpx.h> exists.
108059 2006-08-22  Bruno Haible  <bruno@clisp.org>
108061         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
108062         <utmpx.h> exists.
108064 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108066         BeOS portability.
108067         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
108068         exist.
108069         Problem reported by Bruno Haible.
108071 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108073         Avoid the need for AC_LIBSOURCES in m4 macros.
108074         * modules/acl (EXTRA_DIST): Add acl.h.
108075         * modules/argmatch (Files): Add m4/argmatch.m4.
108076         (configure.ac): Add gl_ARGMATCH.
108077         (EXTRA_DIST): Renamed from lib_SOURCES, for
108078         consistency with the other modules.  Remove argmatch.c.
108079         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
108080         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
108081         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
108082         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
108083         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
108084         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
108085         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
108086         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
108087         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
108088         * modules/closeout (EXTRA_DIST): Add closeout.h.
108089         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
108090         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
108091         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
108092         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
108093         dirname.h; remove basename.c and stripslash.c.
108094         * modules/exclude (EXTRA_DIST): Add exclude.h.
108095         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
108096         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
108097         * modules/file-type (EXTRA_DIST): Add file-type.h.
108098         * modules/filemode (EXTRA_DIST): Add filemode.h.
108099         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
108100         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
108101         * modules/fpending (EXTRA_DIST): Add __fpending.h.
108102         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
108103         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
108104         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
108105         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
108106         * modules/getdate (EXTRA_DIST): Add getdate.c.
108107         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
108108         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
108109         * modules/getpass (EXTRA_DIST): Add getpass.h.
108110         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
108111         * modules/group-member (EXTRA_DIST): Add group-member.h.
108112         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
108113         * modules/hash (EXTRA_DIST): Add hash.h.
108114         * modules/human (EXTRA_DIST): Add human.h.
108115         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
108116         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
108117         * modules/lchown (EXTRA_DIST): Add lchown.h.
108118         * modules/long-options (EXTRA_DIST): Add long-options.h.
108119         * modules/lstat (EXTRA_DIST): Add lstat.h.
108120         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
108121         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
108122         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
108123         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
108124         * modules/memxor (EXTRA_DIST): Add memxor.h.
108125         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
108126         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
108127         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
108128         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
108129         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
108130         * modules/physmem (EXTRA_DIST): Add physmem.h.
108131         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
108132         * modules/posixver (EXTRA_DIST): Add posixver.h.
108133         * modules/quote (EXTRA_DIST): Add quote.h.
108134         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
108135         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
108136         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
108137         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
108138         regex_internal.h regexec.c.
108139         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
108140         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
108141         * modules/same (EXTRA_DIST): Add same.h.
108142         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
108143         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
108144         * modules/savedir (EXTRA_DIST): Add savedir.h.
108145         * modules/sha1 (EXTRA_DIST): Add sha1.h.
108146         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
108147         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
108148         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
108149         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
108150         * modules/strdup (EXTRA_DIST): Add strdup.h.
108151         * modules/strftime (EXTRA_DIST): Add strftime.h.
108152         * modules/strndup (EXTRA_DIST): Add strndup.h.
108153         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
108154         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
108155         * modules/time_r (EXTRA_DIST): Add time_r.h.
108156         * modules/timespec (EXTRA_DIST): Add timespec.h.
108157         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
108158         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
108159         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
108160         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
108161         * modules/userspec (EXTRA_DIST): Add userspec.h.
108162         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
108163         * modules/utimens (EXTRA_DIST): Add utimens.h.
108164         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
108165         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
108166         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
108167         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
108168         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
108169         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
108170         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
108171         * modules/yesno (EXTRA_DIST): Add yesno.h.
108173 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
108175         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
108177         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
108178         * m4/dev-ino.m4, same-inode.m4: Remove.
108180         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
108181         * m4/acl.m4 (AC_FUNC_ACL):
108182         * m4/backupfile.m4 (gl_BACKUPFILE):
108183         * m4/c-strtod.m4 (gl_C99_STRTOLD):
108184         * m4/canon-host.m4 (gl_CANON_HOST):
108185         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
108187         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
108188         * m4/cloexec.m4 (gl_CLOEXEC):
108189         * m4/close-stream.m4 (gl_CLOSE_STREAM):
108190         * m4/closeout.m4 (gl_CLOSEOUT):
108191         * m4/dirfd.m4 (gl_FUNC_DIRFD):
108192         * m4/dirname.m4 (gl_DIRNAME):
108193         * m4/exclude.m4 (gl_EXCLUDE):
108194         * m4/exitfail.m4 (gl_EXITFAIL):
108195         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
108196         * m4/file-type.m4 (gl_FILE_TYPE):
108197         * m4/filemode.m4 (gl_FILEMODE):
108198         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
108199         * m4/fpending.m4 (gl_FUNC_FPENDING):
108200         * m4/fprintftime.m4 (gl_FPRINTFTIME):
108201         * m4/fts.m4 (gl_FUNC_FTS):
108202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
108203         * m4/getdate.m4 (gl_GETDATE):
108204         * m4/gethrxtime.m4 (gl_GETHRXTIME):
108205         * m4/getpagesize.m4 (gl_GETPAGESIZE):
108206         * m4/getpass.m4 (gl_FUNC_GETPASS):
108207         * m4/gettime.m4 (gl_GETTIME):
108208         * m4/getugroups.m4 (gl_GETUGROUPS):
108209         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
108210         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
108211         * m4/hard-locale.m4 (gl_HARD_LOCALE):
108212         * m4/hash.m4 (gl_HASH):
108213         * m4/idcache.m4 (gl_IDCACHE):
108214         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
108215         * m4/lchown.m4 (gl_FUNC_LCHOWN):
108216         * m4/long-options.m4 (gl_LONG_OPTIONS):
108217         * m4/lstat.m4 (gl_FUNC_LSTAT):
108218         * m4/md5.m4 (gl_MD5):
108219         * m4/memcasecmp.m4 (gl_MEMCASECMP):
108220         * m4/memcoll.m4 (gl_MEMCOLL):
108221         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
108222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
108223         * m4/memxor.m4 (gl_MEMXOR):
108224         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
108225         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
108226         * m4/modechange.m4 (gl_MODECHANGE):
108227         * m4/mountlist.m4 (gl_MOUNTLIST):
108228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108229         * m4/openat.m4 (gl_FUNC_OPENAT):
108230         * m4/pathmax.m4 (gl_PATHMAX):
108231         * m4/physmem.m4 (gl_PHYSMEM):
108232         * m4/posixtm.m4 (gl_POSIXTM):
108233         * m4/posixver.m4 (gl_POSIXVER):
108234         * m4/quote.m4 (gl_QUOTE):
108235         * m4/quotearg.m4 (gl_QUOTEARG):
108236         * m4/readtokens.m4 (gl_READTOKENS):
108237         * m4/readutmp.m4 (gl_READUTMP):
108238         * m4/regex.m4 (gl_REGEX):
108239         * m4/safe-read.m4 (gl_SAFE_READ):
108240         * m4/safe-write.m4 (gl_SAFE_WRITE):
108241         * m4/same.m4 (gl_SAME):
108242         * m4/save-cwd.m4 (gl_SAVE_CWD):
108243         * m4/savedir.m4 (gl_SAVEDIR):
108244         * m4/settime.m4 (gl_SETTIME):
108245         * m4/sha1.m4 (gl_SHA1):
108246         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
108247         * m4/stat-macros.m4 (gl_STAT_MACROS):
108248         * m4/stat-time.m4 (gl_STAT_TIME):
108249         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
108250         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
108251         * m4/strdup.m4 (gl_FUNC_STRDUP):
108252         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
108253         * m4/strndup.m4 (gl_FUNC_STRNDUP):
108254         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
108255         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
108256         * m4/time_r.m4 (gl_TIME_R):
108257         * m4/timespec.m4 (gl_TIMESPEC):
108258         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
108259         * m4/unlinkdir.m4 (gl_UNLINKDIR):
108260         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
108261         * m4/userspec.m4 (gl_USERSPEC):
108262         * m4/utimecmp.m4 (gl_UTIMECMP):
108263         * m4/utimens.m4 (gl_UTIMENS):
108264         * m4/xalloc.m4 (gl_XALLOC):
108265         * m4/xgetcwd.m4 (gl_XGETCWD):
108266         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
108267         * m4/xreadlink.m4 (gl_XREADLINK):
108268         * m4/xstrtod.m4 (gl_XSTRTOD):
108269         * m4/yesno.m4 (gl_YESNO):
108270         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
108271         to get the necessary .h files and whatnot.
108273 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
108274             Bruno Haible  <bruno@clisp.org>
108276         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
108277         /bin/sh understanding of '!' conditional negation.
108279 2006-08-21  Jim Meyering  <jim@meyering.net>
108281         * modules/openat (Depends-on): Really alphabetize.
108283         * modules/acl (Depends-on): Add error and quote.
108285         * check-module (find_included_lib_files): Add at-func.c to the
108286         ok-to-include-more-than-once white list.
108288         * modules/openat (Depends-on): Add lstat.  Alphabetize.
108290 2006-08-21  Bruno Haible  <bruno@clisp.org>
108292         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108293         Emit a pkgdata_DATA variable only if some snippets add contents to it.
108294         Reported by Martin Lambers <marlam@marlam.de>.
108296 2006-08-21  Bruno Haible  <bruno@clisp.org>
108298         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
108299         specify an installation location, don't emit a noinst_LIBRARIES or
108300         noinst_LTLIBRARIES assignment.
108302 2006-08-21  Bruno Haible  <bruno@clisp.org>
108304         BeOS portability.
108305         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
108306         BeOS has mbrtowc() but no <wctype.h>.
108308 2006-08-21  Bruno Haible  <bruno@clisp.org>
108310         BeOS portability.
108311         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
108312         exist.
108314 2006-08-21  Bruno Haible  <bruno@clisp.org>
108316         BeOS portability.
108317         * lib/mbchar.h: Include <wctype.h> only if it exists.
108319 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108321         Remove files that are no longer needed by their respective modules.
108322         * m4/obstack.m4: Remove.
108323         * m4/strerror_r.m4: Remove.
108324         * m4/uint32_t.m4: Remove.
108325         * m4/uintptr_t.m4: Remove.
108326         * m4/ullong_max.m4: Remove.
108327         * m4/xstrtoimax.m4: Remove.
108328         * m4/xstrtoumax.m4: Remove.
108330         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
108331         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
108332         dependencies now capture this.
108334         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
108335         Do not use AC_LIBSOURCES, since gnulib modules now do this.
108336         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
108337         * m4/human.m4 (gl_HUMAN): Likewise.
108338         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
108339         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
108341         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
108343         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
108344         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
108345         stdint.
108346         * m4/human.m4 (gl_HUMAN): Likewise.
108347         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
108348         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
108349         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
108350         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
108351         * m4/xstrtol (gl_XSTRTOL): Likewise.
108353         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
108354         AC_TYPE_LONG_LONG_INT.
108355         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
108356         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
108357         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
108358         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
108360         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
108361         on stdbool.
108363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
108364         (gl_PREREQ_XSTRTOUL): Remove.
108366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
108368         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
108369         mode.
108371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108373         Add and change modules to make it easier for coreutils to use
108374         gnulib-tool.
108375         * modules/backupfile (Files): Remove m4/d-ino.m4.
108376         (Depends-on): Add d-ino.
108377         * modules/cycle-check (Depends-on): Add stdint.
108378         (lib_SOURCES): Add cycle-check.h.
108379         * modules/d-ino: New module.
108380         * modules/d-type: New module.
108381         * modules/error (Files): Remove m4/strerror_r.m4.
108382         * modules/filemode (Files): Add m4/st_dm_mode.m4.
108383         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
108384         m4/inttypes_h.m4, m4/uintmax_t.m4.
108385         (Depends-on): Add stdint.
108386         (lib_SOURCES): Add fsusage.h.
108387         * modules/getcwd (Files): Remove d-ino.m4.
108388         (Depends-on): Add d-ino.
108389         * modules/getndelim2 (Depends-on): Add stdint.
108390         * modules/glob (Files): Remove m4/d-type.m4.
108391         (Depends-on): Add d-type.
108392         * modules/host-os: New module.
108393         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
108394         m4/inttypes_h.m4, m4/uintmax_t.m4.
108395         * Depends-on: Add stdint.
108396         (lib_SOURCES): Add human.h.
108397         * modules/inttostr (Files): Remove m4/intmax_t.m4,
108398         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
108399         m4/uintmax_t.m4, m4/ulonglong.m4.
108400         (Depends-on): Add stdint.
108401         (EXTRA_DIST): Add inttostr.h.
108402         * modules/lchmod: New module.
108403         * modules/link-follow: New module.
108404         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
108405         (Depends-on): Add lchmod.
108406         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
108407         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
108408         (Depends-on): Add stdint.
108409         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
108410         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
108411         (Depends-on): Add stdint.
108412         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
108413         * modules/perl: New module.
108414         * modules/regex (Depends-on): Add stdint.
108415         * modules/rmdir-errno: New module.
108416         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
108417         m4/intmax_t.m4.
108418         (Depends-on): Add stdint.
108419         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
108420         m4/uintmax_t.m4.
108421         (Depends-on): Add stdint.
108422         * modules/unlink-busy: New module.
108423         * modules/utimecmp (Depends-on): Add stdint.
108424         * modules/uptime: New module.
108425         * modules/winsz-ioctl: New module.
108426         * modules/winsz-termios: New module.
108427         * modules/xnanosleep (Depends-on): Add nanosleep.
108428         * modules/ullong_max: Remove.
108429         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
108430         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
108431         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
108432         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
108433         (Depends-on): Add inttypes.
108434         (lib_SOURCES): Add xstrtol.h.
108435         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
108436         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
108437         * MODULES.html.sh: Move 'assert' into the assert section.
108438         Move 'dummy' into the linking section.
108439         Remove ullong_max.
108440         Add section for compatibility checks for POSIX:2001 functions,
108441         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
108442         winsz-ioctl, and winsz-termios into it.
108443         Add lchmod.
108444         Add top-level Misc section and put host-os, perl, and uptime
108445         into it.
108447 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
108449         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
108450         now assume the stdint module.  Do not include inttypes.h.
108451         * lib/fsusage.h: Likewise.
108452         * lib/getndelim2.c: Likewise.
108453         * lib/human.h: Likewise.
108454         * lib/inttostr.h: Likewise.
108455         * lib/obstack.c: Likewise.
108456         * lib/regex_internal.h: Likewise.
108457         * lib/tempname.c: Likewise.
108458         * lib/utimecmp.c: Likewise.
108459         * lib/xstrtol.h: Likewise.
108461         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
108463         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
108464         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
108465         * lib/xtime.h: Likewise.
108467 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108469         * modules/openat (Files): Add lib/fchmodat.c.
108470         Fixes problem reported by Jay Youngman.
108472 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108474         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
108475         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
108477 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
108478             Bruno Haible  <bruno@clisp.org>
108480         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
108481         and is a script that invokes bison. Tighten the code. Add comments.
108483 2006-08-18  Jim Meyering  <jim@meyering.net>
108485         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
108486         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
108487         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
108488         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
108490 2006-08-18  Bruno Haible  <bruno@clisp.org>
108492         * modules/bison-i18n: New file.
108493         * MODULES.html.sh (Internationalization functions): Add it.
108495 2006-08-18  Bruno Haible  <bruno@clisp.org>
108497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
108498         sys/statvfs.h. When getmntinfo was found, check its declaration and
108499         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
108501 2006-08-18  Bruno Haible  <bruno@clisp.org>
108503         * m4/bison-i18n.m4: New file, from bison.
108505 2006-08-18  Bruno Haible  <bruno@clisp.org>
108507         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
108508         (ME_DUMMY): Treat "kernfs" as a dummy.
108509         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
108511 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108513         Update from coreutils.
108515         2006-08-15  Jim Meyering  <jim@meyering.net>
108517         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
108519         2006-01-17  Jim Meyering  <jim@meyering.net>
108521         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
108523         2006-01-11  Jim Meyering  <jim@meyering.net>
108525         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
108526         Check for the lchmod function.
108528 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108530         Update from coreutils.
108532         * lib/__fpending.h: Add copyright notice.
108533         * lib/fprintftime.h: Likewise.
108534         * lib/savedir.c: Use (C) in copyright notice.
108535         * lib/savedir.h: Likewise.
108537         2006-08-15  Jim Meyering  <jim@meyering.net>
108539         * lib/at-func.c: New file, with the logic of all emulated at-functions.
108540         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
108541         in support of the EXPECTED_ERRNO macro.
108542         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
108543         definitions.  Instead, define the appropriate symbols and include
108544         "at-func.c".
108545         * lib/mkdirat.c (mkdirat): Likewise.
108546         * lib/fchmodat.c (fchmodat): Likewise.
108547         (ENOSYS): Remove definition.
108548         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
108549         it.  Don't include "unistd--.h" -- it wasn't ever used.
108551         2006-01-17  Jim Meyering  <jim@meyering.net>
108553         Rewrite fts.c not to change the current working directory,
108554         by using openat, fstatat, fdopendir, etc..
108556         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
108557         (HAVE_OPENAT_SUPPORT): Define.
108558         [_LIBC] (fchdir): Don't undef or define; no longer used.
108559         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
108560         Now, this `function' always succeeds, and consumes its file descriptor
108561         parameter -- so callers must not close such FDs.  Update callers.
108562         (diropen_fd, opendirat, cwd_advance_fd): New functions.
108563         (diropen): Add parameter, SP.  Adjust all callers.
108564         Implement using diropen_fd, rather than open.
108565         (fts_open): Initialize new member, fts_cwd_fd.
108566         Remove fts_rft-setting code.
108567         (fts_close): Close fts_cwd_fd, if necessary.
108568         (__opendir2): Define in terms of opendir or opendirat,
108569         depending on whether the FST_NOCHDIR flag is set.
108570         (fts_build): Since fts_safe_changedir consumes its FD, and since
108571         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
108572         and close the dup'd file descriptor upon failure.
108573         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
108574         (fts_safe_changedir): Tweak semantics to reflect that this function
108575         now calls cwd_advance_fd and hence consumes its FD argument.
108576         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
108577         [struct FTS] (fts_rft): Remove now-unused member.
108578         [struct FTS] (fts_cycle.state): Improve comment.
108580         * lib/openat.c (openat_needs_fchdir): New function.
108581         * lib/openat.h (openat_needs_fchdir): Declare it.
108583 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
108585         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
108586         Problem and fix reported by Pádraig Brady in
108587         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
108589 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108591         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
108593 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108595         * lib/memcoll.c (memcoll): Optimize for the common case where the
108596         arguments are bytewise equal.
108598 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
108600         * doc/regexprops-generic.texi: Add a copyright notice.
108602 2006-08-15  Bruno Haible  <bruno@clisp.org>
108604         * modules/tmpdir (License): Change to LGPL.
108606 2006-08-15  Bruno Haible  <bruno@clisp.org>
108608         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
108609         module.
108611 2006-08-14  Simon Josefsson  <jas@extundo.com>
108613         * config/srclist.txt: Add gnupload.
108615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108617         Change copyright notice from LGPL 2 to GPL 2, since that's the
108618         standard form used in the gnulib repository.
108619         * tests/test-lock.c: Likewise.
108620         * tests/test-stdint.c: Likewise.
108621         * tests/test-tls.c: Likewise.
108623         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
108624         prelude-manager.  User shorter URLs for GNU projects, without '?'.
108625         Add copyright notice.
108627         * check-module: Add copyright notice.  Output a copyright
108628         notice if "--version" is specified.
108629         * modules/COPYING: New file.
108630         * tests/test-getaddrinfo.c: Add copyright notice.
108631         * tests/test-verify.c: Likewise.
108633 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108635         Change copyright notice from LGPL 2 to GPL 2, since that's the
108636         standard form used in the gnulib repository.
108637         * lib/lock.c: LGPL -> GPL.
108638         * lib/lock.h: Likewise.
108639         * lib/strnlen1.c: Likewise.
108640         * lib/strnlen1.h: Likewise.
108641         * lib/tls.c: Likewise.
108642         * lib/tls.h: Likewise.
108643         * lib/tmpdir.c: Likewise.
108645         * lib/TODO: Remove; this belongs only in coreutils.
108647 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108649         Add copyright notices to long-enough files that lack them, since
108650         otherwise the files aren't clearly free.  Use the same notice that
108651         getdate.texi already uses.
108652         * doc/alloca-opt.texi: Add copyright notice.
108653         * doc/alloca.texi: Likewise.
108654         * doc/ctime.texi: Likewise.
108655         * doc/functions.texi: Likewise.
108656         * doc/gcd.texi: Likewise.
108657         * doc/gnulib-tool.texi: Likewise.
108658         * doc/inet_ntoa.texi: Likewise.
108659         * doc/visibility.texi: Likewise.
108661         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
108662         * doc/quote.texi: Add copyright notice.
108664         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
108665         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
108666         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
108667         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
108668         is now obsolete, and give a pointer to the Sun list.
108669         Add copyright notice.
108671 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
108673         * config/srclistvars.sh: Add copyright notice.
108675 2006-08-14  Eric Blake  <ebb9@byu.net>
108677         Import the following change from libc:
108679         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
108681         Upstream bug 2997.
108682         * lib/misc/error.c: Add space between program name and message if file
108683         name is missing.
108685 2006-08-12  Karl Berry  <karl@gnu.org>
108687         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
108688         remove, these originate in gnulib now.
108690 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108692         * doc/Makefile (standards.info standards.html standards.dvi):
108693         Also depend on make-stds.texi.
108695 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108697         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
108698         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
108700         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
108701         in wchar_t.  Problem reported by Eric Blake.
108703         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
108704         LEN is smaller than SIZE.  Suggested by Bruno Haible.
108705         Also, help the compiler to keep LEN in a register.
108707 2006-08-11  Eric Blake  <ebb9@byu.net>
108709         * users.txt: Sort.  Add tar.
108711 2006-08-11  Bruno Haible  <bruno@clisp.org>
108713         * users.txt: New file.
108715 2006-08-11  Bruno Haible  <bruno@clisp.org>
108717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
108718         before <wchar.h>. Needed for OSF/1 and BSD/OS.
108720 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
108722         * modules/snprintf (Depends-on): Remove minmax.
108723         (Maintainer): Add self and Bruno.
108725 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
108727         * lib/.cppi-disable: Add snprintf.h, socket_.h.
108728         * lib/snprintf.c: Include <errno.h> and <limits.h>.
108729         (EOVERFLOW): Define if the system does not.
108730         Do not include "minmax.h"; it wasn't used.
108731         (snprintf): Don't assume size_t promotes to an unsigned type.
108732         Fix bug when generated string was too long for the buffer: the
108733         buffer's contents are supposed to be the initial prefix of the
108734         output.  Don't assume vasnprintf returns EOVERFLOW if the size
108735         exceeds INT_MAX; do the check ourselves.
108737         Import the following changes from libc:
108739         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
108741         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
108742         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
108743         set wc to the byte which couldn't be converted.
108744         (re_string_reconstruct): Don't clear valid_raw_len before calling
108745         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
108746         tip_context using re_string_context_at.
108748         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
108750         * lib/posix/regex.h: g++ still cannot handled [restrict].
108752         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
108754         * lib/posix/regex.h: Remove special handling for VMS.
108756 2006-08-10  Jim Meyering  <jim@meyering.net>
108758         * modules/same-inode: New module.
108759         * modules/dev-ino: New module.
108760         * modules/cycle-check: Depend on these modules, rather than simply
108761         including their .h files.
108762         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
108763         required via m4/cycle-check.m4.
108764         * modules/same: Depend on new same-inode module, rather than
108765         including same-inode.h.
108766         * modules/chdir-safer: New file.
108768         * modules/chown (Depends-on): Add stat-macros.
108770 2006-08-10  Jim Meyering  <jim@meyering.net>
108772         * m4/cycle-check.m4: New file.
108773         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
108774         * m4/dev-ino.m4, m4/same-inode.m4: New files.
108776 2006-08-10  Eric Blake  <ebb9@byu.net>
108778         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
108779         in from original proposal.
108781 2006-08-10  Eric Blake  <ebb9@byu.net>
108782         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
108784         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
108785         namespace.
108787 2006-08-10  Bruno Haible  <bruno@clisp.org>
108789         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
108790         as well.
108792 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108794         Sync from coreutils.
108796         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
108798         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
108799         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
108801 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108803         * modules/restrict: Remove; no longer needed now that we assume
108804         Autoconf 2.59 or later.
108805         * MODULES.html.sh: Remove 'restrict'.
108806         * modules/argp (Depends-on): Remove 'restrict'.
108807         * modules/base64 (Depends-on): Likewise.
108808         * modules/gc (Depends-on): Likewise.
108809         * modules/getaddrinfo (Depends-on): Likewise.
108810         * modules/glob (Depends-on): Likewise.
108811         * modules/inet_ntop (Depends-on): Likewise.
108812         * modules/inet_pton (Depends-on): Likewise.
108813         * modules/memxor (Depends-on): Likewise.
108814         * modules/regex (Depends-on): Likewise.
108815         * modules/strtok_r (Depends-on): Likewise.
108816         * modules/time_r (Depends-on): Likewise.
108818 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108820         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
108821         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
108822         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
108823         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
108824         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
108825         * m4/memxor.m4 (gl_MEMXOR): Likewise.
108826         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
108827         gl_C_RESTRICT replaced by AC_C_RESTRICT.
108829         Merge from coreutils.
108830         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
108831         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
108832         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108833         * m4/time_r.m4 (gl_TIME_R): Likewise.
108835 2006-08-09  Karl Berry  <karl@gnu.org>
108837         * config/srclist.txt: no more gettext-tools, per Bruno.
108839 2006-08-08  Eric Blake  <ebb9@byu.net>
108841         * modules/verror: New module.
108842         * MODULES.html.sh: Document it.
108844 2006-08-08  Eric Blake  <ebb9@byu.net>
108846         * lib/verror.h, lib/verror.c: New files.
108848 2006-08-08  Eric Blake  <ebb9@byu.net>
108850         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
108851         verror_at_line output complies with GNU Coding Standards even when
108852         file is NULL.
108854 2006-08-07  Bruno Haible  <bruno@clisp.org>
108856         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
108857         versions of AIX.
108858         Reported by Ralf Wildenhues.
108860 2006-08-07  Bruno Haible  <bruno@clisp.org>
108862         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
108863         in an AC_DEFUN. Needed so that the autoconf snippets can use
108864         AC_REQUIRE.
108866 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108869         Initialize pkgdata_DATA.
108870         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
108871         overriding it.
108873 2006-08-06  Eric Blake  <ebb9@byu.net>
108875         * lib/error.h: Fold in some upstream changes from glibc.
108876         * lib/error.c: Likewise.
108878 2006-08-04  Bruno Haible  <bruno@clisp.org>
108880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108881         Make the mostlyclean-local rule depend on mostlyclean-generic.
108882         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
108884 2006-07-31  Bruno Haible  <bruno@clisp.org>
108886         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
108887         <stdlib.h>, <string.h>.
108889 2006-07-30  Bruno Haible  <bruno@clisp.org>
108891         * modules/readlink (License): Change to LGPL.
108893 2006-07-30  Bruno Haible  <bruno@clisp.org>
108895         * modules/javaversion (Makefile.am): Distribute javaversion.java and
108896         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
108897         set PKGDATADIR to point to it.
108899 2006-07-30  Bruno Haible  <bruno@clisp.org>
108901         * modules/csharpexec (configure.ac): Comment out macro invocation.
108902         * modules/javaexec (configure.ac): Likewise.
108903         * modules/javacomp-script (configure.ac): Likewise.
108905         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
108907 2006-07-30  Bruno Haible  <bruno@clisp.org>
108909         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
108910         linked-list.
108912 2006-07-30  Bruno Haible  <bruno@clisp.org>
108914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
108916 2006-07-30  Bruno Haible  <bruno@clisp.org>
108918         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108919         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
108920         get removed.
108922 2006-07-29  Bruno Haible  <bruno@clisp.org>
108924         Make it possible for gnulib-tool to work with locally modified or
108925         augmented gnulib repositories.
108926         * gnulib-tool (func_usage): Document --local-dir option.
108927         (local_gnulib_dir): New variable.
108928         Handle --local-dir option.
108929         (func_lookup_file): New function.
108930         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
108931         (func_get_description, func_get_filelist, func_get_description,
108932         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
108933         func_get_automake_snippet, func_get_include_directive,
108934         func_get_license, func_get_maintainer): Use func_lookup_file.
108935         (func_import, func_create_testdir): Use func_lookup_file.
108937 2006-07-29  Bruno Haible  <bruno@clisp.org>
108939         * modules/setenv (Depends-on): Add unistd.
108941 2006-07-29  Bruno Haible  <bruno@clisp.org>
108943         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
108945 2006-07-29  Bruno Haible  <bruno@clisp.org>
108947         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
108949 2006-07-29  Bruno Haible  <bruno@clisp.org>
108951         * gnulib-tool (import, update): If there is no Makefile.am, look at
108952         aclocal.m4, instead of bailing out.
108954 2006-07-29  Bruno Haible  <bruno@clisp.org>
108956         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
108957         Categorize the options by when they are useful.
108959 2006-07-29  Bruno Haible  <bruno@clisp.org>
108961         * gnulib-tool (func_usage): Document option --no-libtool.
108962         Handle option --no-libtool.
108963         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
108964         for changed semantics of $libtool variable.
108965         (func_import): Likewise. If libtool is not used, show this through
108966         an option --no-libtool.
108967         (func_create_testdir): Update.
108969 2006-07-29  Bruno Haible  <bruno@clisp.org>
108971         * gnulib-tool (func_import): Extend error message about missing
108972         --doc-base.
108974 2006-07-29  Bruno Haible  <bruno@clisp.org>
108976         * gnulib-tool (func_import): Don't create the $docbase directory if
108977         there is no file to store there.
108979 2006-07-29  Bruno Haible  <bruno@clisp.org>
108981         * gnulib-tool (autoconf_minversion): If a --dir option is given and
108982         relevant, look for configure.ac there, not in the current directory.
108983         Also use a simple search for AC_PREREQ, not "autoconf --trace".
108985 2006-07-29  Bruno Haible  <bruno@clisp.org>
108987         * gnulib-tool (SORT): New variable.
108988         (func_usage): Undocument --assume-autoconf option.
108989         Remove --assume-autoconf option handling.
108990         (autoconf_minversion): Determine from the contents of configure.ac.
108991         (func_import): Remove autoconf_minversion handling.
108992         Suggested by Eric Blake.
108994 2006-07-29  Bruno Haible  <bruno@clisp.org>
108996         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
108998 2006-07-29  Bruno Haible  <bruno@clisp.org>
109000         * config/srclist.txt (*setenv.[ch]): Remove rules.
109002 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109004         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
109006 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109008         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
109009         arpa/inet.h.
109011 2006-07-28  Simon Josefsson  <jas@extundo.com>
109013         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
109014         * modules/inet_pton (Depends-on): Likewise.
109016 2006-07-28  Simon Josefsson  <jas@extundo.com>
109018         * m4/netinet_in_h.m4: New file.
109020 2006-07-28  Simon Josefsson  <jas@extundo.com>
109022         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
109023         #include's.
109025 2006-07-28  Simon Josefsson  <jas@extundo.com>
109027         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
109028         #include's.
109030 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
109032         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
109033         setgid on directories only if they set these bits.
109034         * lib/modechange.h: Remove obsolete comment about masks.
109036 2006-07-28  Eric Blake  <ebb9@byu.net>
109038         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
109039         macro expansion.
109041 2006-07-28  Bruno Haible  <bruno@clisp.org>
109043         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
109045 2006-07-28  Bruno Haible  <bruno@clisp.org>
109047         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
109049 2006-07-28  Bruno Haible  <bruno@clisp.org>
109051         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
109052         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
109053         Define fallbacks.
109054         Avoids link error on FreeBSD 4.x.
109055         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
109057         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
109058         encoding.
109059         * lib/mbswidth.c (iswcntrl): Likewise.
109061 2006-07-27  Bruno Haible  <bruno@clisp.org>
109063         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
109064         test.
109066 2006-07-27  Bruno Haible  <bruno@clisp.org>
109068         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
109069         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
109070         defined.
109072 2006-07-26  Eric Blake  <ebb9@byu.net>
109074         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
109076 2006-07-26  Eric Blake  <ebb9@byu.net>
109078         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
109079         like mingw that lack mkstemp.
109080         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
109081         avoid compilation warning on mingw.
109083 2006-07-26  Bruno Haible  <bruno@clisp.org>
109085         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
109086         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
109087         INT_FAST*_MIN, INTPTR_MIN.
109089 2006-07-25  Bruno Haible  <bruno@clisp.org>
109091         * modules/version-etc (Depends-on): Add stdarg.
109093 2006-07-25  Bruno Haible  <bruno@clisp.org>
109095         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
109096         complex commands.
109098 2006-07-25  Bruno Haible  <bruno@clisp.org>
109100         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
109101         defined in <stdarg.h> or config.h.
109103 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
109105         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
109106         (gl_STDIO_SAFER): Remove.
109108 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
109110         * MODULES.html.sh (File stream based Input/Output):
109111         Add fopen-safer, tmpfile-safer; remove stdio-safer.
109112         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
109113         * modules/fopen-safer, modules/tmpfile-safer: New files.
109114         * modules/stdio-safer: Remove.
109116 2006-07-24  Bruno Haible  <bruno@clisp.org>
109118         * modules/tmpdir: New file.
109119         * MODULES.html.sh (File system functions): Add it.
109121 2006-07-24  Bruno Haible  <bruno@clisp.org>
109123         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
109124         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
109126 2006-07-24  Bruno Haible  <bruno@clisp.org>
109128         * modules/clean-temp: New file.
109130 2006-07-24  Bruno Haible  <bruno@clisp.org>
109132         * m4/tmpdir.m4: New file, from GNU gettext.
109134 2006-07-24  Bruno Haible  <bruno@clisp.org>
109136         * lib/tmpdir.h: New file, from GNU gettext.
109137         * lib/tmpdir.c: New file, from GNU gettext.
109139 2006-07-24  Bruno Haible  <bruno@clisp.org>
109141         * lib/clean-temp.h: New file, from GNU gettext.
109142         * lib/clean-temp.c: New file, from GNU gettext.
109144 2006-07-23  Eric Blake  <ebb9@byu.net>
109146         * modules/stdio-safer (Files): Add tmpfile-safer.c.
109147         (Depends-on): Add binary-io.
109149 2006-07-23  Eric Blake  <ebb9@byu.net>
109151         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
109153 2006-07-23  Eric Blake  <ebb9@byu.net>
109155         * lib/tmpfile-safer.c: New file.
109156         * lib/stdio-safer.h (fopen_safer): Add prototype.
109157         * lib/stdio--.h (tmpfile): Make safer.
109159 2006-07-23  Bruno Haible  <bruno@clisp.org>
109161         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
109162         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
109163         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
109164         gl_linked_remove_at): Use it.
109166 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109167         and Simon Josefsson <jas@extundo.com>
109169         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
109171         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
109173 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109175         * modules/close-stream: New file.
109176         * modules/closeout (Description): Make it clear that it exits
109177         with a diagnostic on error.
109178         (Depends-on): Add close-stream.  Remove fpending, stdbool.
109179         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
109181 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109183         * m4/close-stream.m4: New file.
109185 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
109187         * lib/close-stream.c, lib/close-stream.h: New files.
109189 2006-07-22  Bruno Haible  <bruno@clisp.org>
109191         Merge from GNU gettext 0.15.
109193         2006-05-01  Bruno Haible  <bruno@clisp.org>
109195                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
109197         2006-07-22  Bruno Haible  <bruno@clisp.org>
109199                 * modules/javaversion: New file.
109200                 * MODULES.html.sh (Java): Add javaversion.
109202         2006-03-12  Bruno Haible  <bruno@clisp.org>
109204                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
109206         2005-12-04  Bruno Haible  <bruno@clisp.org>
109208                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
109209                 (untested).
109211         2006-06-21  Bruno Haible  <bruno@clisp.org>
109213                 Avoid warnings from recent versions of mcs.
109214                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
109215                 -o, -L, -r any more. Use options documented since mcs-1.0
109216                 instead. Similarly for -g.
109218         2005-12-04  Bruno Haible  <bruno@clisp.org>
109220                 * build-aux/csharpcomp.sh.in: Suffix for resources is
109221                 .resources, not .resource.
109223         2005-07-09  Bruno Haible  <bruno@clisp.org>
109225                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
109226                 add a .dll suffix.
109227                 Reported by Mark Junker <mjscod@gmx.de>.
109229         2006-07-22  Bruno Haible  <bruno@clisp.org>
109231                 * modules/gettext: Upgrade to gettext-0.15.
109232                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
109233                 m4/visibility.m4.
109234                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
109236 2006-07-22  Bruno Haible  <bruno@clisp.org>
109238         Merge from GNU gettext 0.15.
109240         2006-03-25  Bruno Haible  <bruno@clisp.org>
109242                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
109244         2006-07-21  Bruno Haible  <bruno@clisp.org>
109246                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
109247                 "1.1".
109249         2006-05-09  Bruno Haible  <bruno@clisp.org>
109251                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
109252                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
109253                 for the conftestver execution.
109255         2006-05-01  Bruno Haible  <bruno@clisp.org>
109257                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
109258                 optional target-version argument. Verify that the compiler
109259                 groks source of the specified source-version, or add -source
109260                 option as necessary. Verify that the compiler produces
109261                 bytecode in the specified target-version, or add -target and
109262                 -source options as necessary. Make the result of the test
109263                 available as variable CONF_JAVAC. Also log error output in
109264                 config.log.
109266         2006-03-11  Bruno Haible  <bruno@clisp.org>
109268                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
109270         2006-05-09  Bruno Haible  <bruno@clisp.org>
109272                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
109273                 CLASSPATH_SEPARATOR to a semicolon.
109275         2006-03-12  Bruno Haible  <bruno@clisp.org>
109277                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
109278                 available as variable CONF_JAVA, for subsequent autoconf
109279                 tests. Also log error output in config.log.
109281         2006-07-19  Bruno Haible  <bruno@clisp.org>
109283                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
109284                 that getline works on glibc2 systems. Needed to avoid trouble
109285                 in relocatable.c.
109286                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
109288         2005-12-04  Bruno Haible  <bruno@clisp.org>
109290                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
109291                 launcher (untested).
109293         2005-12-04  Bruno Haible  <bruno@clisp.org>
109295                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
109297         2006-07-22  Bruno Haible  <bruno@clisp.org>
109299                 * gettext.m4: Update from GNU gettext-0.15.
109300                 * nls.m4: Likewise.
109301                 * po.m4: Likewise.
109302                 * inttypes-pri.m4: Likewise.
109303                 * inttypes-h.m4: Renamed from inttypes.m4.
109304                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
109306 2006-07-22  Bruno Haible  <bruno@clisp.org>
109308         Merge from GNU gettext 0.15.
109310         2005-07-05  Bruno Haible  <bruno@clisp.org>
109312                 * printf-args.c (printf_fetchargs): Work around broken
109313                 definition of wint_t on mingw.
109315         2005-02-12  Bruno Haible  <bruno@clisp.org>
109317                 * xallocsa.h: Add extern "C" for C++.
109319         2006-05-17  Bruno Haible  <bruno@clisp.org>
109321                 Cygwin portability.
109322                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
109324         2006-04-30  Bruno Haible  <bruno@clisp.org>
109326                 * progreloc.c: Include <mach-o/dyld.h> if available.
109327                 (find_executable): Use _NSGetExecutablePath when possible.
109329         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
109331                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
109332                 function.
109334         2005-12-29  Bruno Haible  <bruno@clisp.org>
109336                 * progreloc.c (set_program_name_and_installdir): Fix
109337                 compilation error.
109339         2005-12-04  Bruno Haible  <bruno@clisp.org>
109341                 Cygwin portability.
109342                 * progreloc.c: Include <windows.h> also on Cygwin.
109343                 (find_executable): Add support for Cygwin.
109344                 (set_program_name_and_installdir): Handle also platforms with
109345                 nonempty EXEEXT.
109347         2006-07-11  Bruno Haible  <bruno@clisp.org>
109349                 * javacomp.c: Fix a comment.
109350                 Reported by Jim Meyering.
109352         2006-04-30  Bruno Haible  <bruno@clisp.org>
109354                 * javacomp.h (compile_java_class): Add source_version,
109355                 target_version arguments.
109356                 * javacomp.c: Rewritten to choose only a compiler that
109357                 respects the specified source_version and target_version.
109359         2006-06-27  Bruno Haible  <bruno@clisp.org>
109361                 Assume correct S_ISDIR macro.
109362                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
109364         2006-07-22  Bruno Haible  <bruno@clisp.org>
109366                 * javaversion.h: New file, from GNU gettext.
109367                 * javaversion.c: New file, from GNU gettext.
109368                 * javaversion.java: New file, from GNU gettext.
109369                 * javaversion.class: New file, from GNU gettext.
109371         2006-05-17  Bruno Haible  <bruno@clisp.org>
109373                 Cygwin portability.
109374                 * javaexec.c (execute_java_class): Test for jview program
109375                 also on Cygwin.
109377         2006-04-09  Bruno Haible  <bruno@clisp.org>
109379                 * fatal-signal.c: Don't include string.h.
109380                 (at_fatal_signal): Use a copying loop instead of memcpy.
109382         2005-12-04  Bruno Haible  <bruno@clisp.org>
109384                 * csharpexec.c: Add support for 'clix' launcher (untested).
109385                 (execute_csharp_using_sscli): New function.
109386                 (execute_csharp_program): Call it.
109388         2006-06-21  Bruno Haible  <bruno@clisp.org>
109390                 Avoid warnings from recent versions of mcs.
109391                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
109392                 -o, -L, -r any more. Use options documented since mcs-1.0
109393                 instead. Similarly for -g.
109395         2005-07-09  Bruno Haible  <bruno@clisp.org>
109397                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
109398                 add a .dll suffix.
109399                 Reported by Mark Junker <mjscod@gmx.de>.
109401         2006-06-17  Bruno Haible  <bruno@clisp.org>
109403                 * config.charset: Update for NetBSD 3.0.
109405         2006-05-17  Bruno Haible  <bruno@clisp.org>
109407                 Cygwin portability.
109408                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
109410         2006-05-16  Bruno Haible  <bruno@clisp.org>
109412                 * localcharset.c [CYGWIN]: Include <windows.h>.
109413                 (get_charset_aliases): For Cygwin, return the same CPxxx
109414                 aliases list as under WIN32.
109415                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
109416                 the environment variables. Fall back to GetACP().
109418         2006-04-05  Bruno Haible  <bruno@clisp.org>
109420                 * config.charset: Update Juan Manuel Guerrero's address.
109422         2005-02-12  Bruno Haible  <bruno@clisp.org>
109424                 * allocsa.h: Add extern "C" for C++.
109426         2005-02-10  Bruno Haible  <bruno@clisp.org>
109428                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
109429                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
109431         2006-07-22  Bruno Haible  <bruno@clisp.org>
109433                 * gettext.h: Update to GNU gettext-0.15.
109435 2006-07-22  Bruno Haible  <bruno@clisp.org>
109437         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
109438         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
109439         lib-prefix.m4, longdouble.m4, ssize_t.m4.
109441 2006-07-21  Eric Blake  <ebb9@byu.net>
109443         * modules/stdlib-safer: New file.
109444         * MODULES.html.sh (File stream based Input/Output): Add
109445         stdlib-safer.
109447 2006-07-21  Eric Blake  <ebb9@byu.net>
109449         * lib/stdlib-safer.h: New file from coreutils, required by
109450         stdlib--.h.
109452 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
109454         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
109456 2006-07-20  Bruno Haible  <bruno@clisp.org>
109458         * gnulib-tool: Recognize new option --assume-autoconf.
109459         (autoconf_minversion): New variable.
109460         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
109462 2006-07-20  Bruno Haible  <bruno@clisp.org>
109464         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
109466 2006-07-19  Derek R. Price  <derek@ximbiot.com>
109468         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
109469         Reindent and repaginate.
109471 2006-07-19  Derek Price  <derek@ximbiot.com>
109473         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
109474         Correct grammar.
109476 2006-07-17  Bruno Haible  <bruno@clisp.org>
109478         * modules/list: New file.
109479         * modules/array-list: New file.
109480         * modules/carray-list, modules/carray-list-tests: New files.
109481         * modules/linked-list, modules/linked-list-tests: New files.
109482         * modules/avltree-list, modules/avltree-list-tests: New files.
109483         * modules/rbtree-list, modules/rbtree-list-tests: New files.
109484         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
109485         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
109486         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
109487         * modules/oset: New file.
109488         * modules/array-oset: New file.
109489         * modules/avltree-oset, modules/avltree-oset-tests: New files.
109490         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
109491         * tests/test-carray_list.c: New file.
109492         * tests/test-linked_list.c: New file.
109493         * tests/test-avltree_list.c: New file.
109494         * tests/test-rbtree_list.c: New file.
109495         * tests/test-linkedhash_list.c: New file.
109496         * tests/test-avltreehash_list.c: New file.
109497         * tests/test-rbtreehash_list.c: New file.
109498         * tests/test-avltree_oset.c: New file.
109499         * tests/test-rbtree_oset.c: New file.
109500         * MODULES.html.sh (Container data structures): New section.
109502 2006-07-17  Bruno Haible  <bruno@clisp.org>
109504         * m4/gl_list.m4: New file.
109506 2006-07-17  Bruno Haible  <bruno@clisp.org>
109508         * lib/gl_list.h: New file.
109509         * lib/gl_list.c: New file.
109510         * lib/gl_array_list.h: New file.
109511         * lib/gl_array_list.c: New file.
109512         * lib/gl_carray_list.h: New file.
109513         * lib/gl_carray_list.c: New file.
109514         * lib/gl_linked_list.h: New file.
109515         * lib/gl_linked_list.c: New file.
109516         * lib/gl_anylinked_list1.h: New file.
109517         * lib/gl_anylinked_list2.h: New file.
109518         * lib/gl_avltree_list.h: New file.
109519         * lib/gl_avltree_list.c: New file.
109520         * lib/gl_anyavltree_list1.h: New file.
109521         * lib/gl_anyavltree_list2.h: New file.
109522         * lib/gl_rbtree_list.h: New file.
109523         * lib/gl_rbtree_list.c: New file.
109524         * lib/gl_anyrbtree_list1.h: New file.
109525         * lib/gl_anyrbtree_list2.h: New file.
109526         * lib/gl_anytree_list1.h: New file.
109527         * lib/gl_anytree_list2.h: New file.
109528         * lib/gl_linkedhash_list.h: New file.
109529         * lib/gl_linkedhash_list.c: New file.
109530         * lib/gl_anyhash_list1.h: New file.
109531         * lib/gl_anyhash_list2.h: New file.
109532         * lib/gl_avltreehash_list.h: New file.
109533         * lib/gl_avltreehash_list.c: New file.
109534         * lib/gl_rbtreehash_list.h: New file.
109535         * lib/gl_rbtreehash_list.c: New file.
109536         * lib/gl_anytreehash_list1.h: New file.
109537         * lib/gl_anytreehash_list2.h: New file.
109539         * lib/gl_oset.h: New file.
109540         * lib/gl_oset.c: New file.
109541         * lib/gl_array_oset.h: New file.
109542         * lib/gl_array_oset.c: New file.
109543         * lib/gl_avltree_oset.h: New file.
109544         * lib/gl_avltree_oset.c: New file.
109545         * lib/gl_rbtree_oset.h: New file.
109546         * lib/gl_rbtree_oset.c: New file.
109547         * lib/gl_anytree_oset.h: New file.
109549 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109551         * m4/mkancesdirs.m4: New file.
109552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
109553         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
109554         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
109555         it.
109557 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109559         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
109560         * lib/mkancesdirs.h: New files.
109561         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
109562         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
109563         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
109564         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
109565         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
109566         callers changed.  Revamp internals significantly, by not
109567         attempting to create directories that are temporarily more
109568         permissive than the final results.  Do not attempt to use
109569         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
109570         This removes some race conditions, fixes some bugs, and simplifies
109571         things.  Use new dirchownmod function to do owner and mode changes.
109572         * lib/mkdir-p.h: Likewise.
109573         * lib/modechange.c (octal_to_mode): New function.
109574         (struct mode_change): New member mentioned.
109575         (make_node_op_equals): New arg mentioned.  All callers changed.
109576         (mode_compile): Keep track of which mode bits the user has explicitly
109577         mentioned.
109578         (mode_adjust): New arg DIR, so that we implement the X op correctly.
109579         New arg PMODE_BITS, to keep track of which mode bits the user
109580         mentioned; it treats S_ISUID and S_ISGID speciall.
109581         All callers changed.
109582         * lib/modechange.h: Likewise.
109584 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
109586         * MODULES.html.sh: Add mkancestors.
109587         * modules/mkancesdirs: New module.
109588         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
109589         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
109590         The chdir-safer and afs files are now orphans; I'll remove them
109591         unless someone speaks up.
109592         Add lib/dirchownmod.c, lib/dirchownmod.h.
109593         (Depends-on): Remove alloca, chown, save-cwd, dirname.
109594         Add lchown, mkancesdirs.
109595         (Maintainer): Add self.
109597 2006-07-15  Karl Berry  <karl@gnu.org>
109599         * gnulib-tool: help message wording/arrangement.
109601 2006-07-14  Simon Josefsson  <jas@extundo.com>
109603         * doc/gnulib.texi (Libtool and Windows): New section.
109605 2006-07-12  Simon Josefsson  <jas@extundo.com>
109607         * modules/gendocs (License): Fix license, approved by Karl.
109609 2006-07-12  Eric Blake  <ebb9@byu.net>
109611         * MODULES.html.sh: Add gendocs.
109613 2006-07-11  Eric Blake  <ebb9@byu.net>
109615         * modules/fdl: New module, to install doc/fdl.texi.
109616         * MODULES.html.sh: Add new section for documentation modules.
109617         * gnulib-tool: Avoid space-tab.
109618         (--doc-base): New option, to manage files from doc.
109620 2006-07-11  Eric Blake  <ebb9@byu.net>
109622         * m4/absolute-header.m4: Fix comments to match recent change.
109624 2006-07-11  Eric Blake  <ebb9@byu.net>
109626         * gnulib-tool: List --doc-base before --tests-base.
109628 2006-07-11  Derek R. Price  <derek@ximbiot.com>
109630         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
109632 2006-07-11  Bruno Haible  <bruno@clisp.org>
109634         * README: Mention where to put documentation.
109636 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109638         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
109640 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
109642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
109643         to stdint.m4.
109645 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
109647         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
109648         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
109649         "no/such/file/stdint.h" when there is no such file, so that
109650         the resulting C code can be parsed by dodgy compilers.
109651         Problems reported by Bob Proulx.
109653 2006-07-10  Derek R. Price  <derek@ximbiot.com>
109655         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
109656         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
109657         macros into the GNU _D_EXACT_NAMLEN.
109658         * lib/savedir.c:  Likewise.
109659         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
109661 2006-07-10  Derek R. Price  <derek@ximbiot.com>
109662         and Paul Eggert  <eggert@cs.ucla.edu>
109664         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
109665         * m4/savedir.m4:
109666         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
109667         macros into the GNU _D_EXACT_NAMLEN.
109669 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
109672         around the absolute name, to work around a problem with the HP-UX
109673         11.23 native C compiler, reported by Bob Proulx.
109675 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109677         * doc/maintain.texi, make-stds.texi: Sync from
109678         <http://savannah.gnu.org/projects/gnustandards>.
109680 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109682         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
109684 2006-07-09  Jim Meyering  <jim@meyering.net>
109686         * m4/glob.m4: Remove a doubled word in a comment.
109688 2006-07-09  Jim Meyering  <jim@meyering.net>
109690         * lib/argp-pv.c: Remove a doubled word in a comment.
109691         * lib/check-version.c (check_version): Likewise.
109692         * lib/javacomp.c (compile_java_class): Likewise.
109694 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
109696         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
109697         for the benefit of people using Autoconf 2.60.  If you want to
109698         support older Autoconf versions you can copy m4/onceonly_2_57.m4
109699         (or m4/onceonly.m4, if pre-2.57) manually.
109701 2006-07-08  Jim Meyering  <jim@meyering.net>
109703         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
109704         comment.
109705         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
109706         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
109707         comment.
109709 2006-07-08  Jim Meyering  <jim@meyering.net>
109711         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
109713 2006-07-07  Simon Josefsson  <jas@extundo.com>
109715         * tests/test-crc.c: Change expected crc value, the test vector
109716         were probably computed using the old broken crc.c?
109718 2006-07-06  Simon Josefsson  <jas@extundo.com>
109720         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
109721         now the canonical place for the M4 file).
109723         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
109724         from the sys_socket dependency now.
109726         * modules/inet_pton (Files): Ditto.
109728         * modules/inet_ntop (Files): Ditto.
109730 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109732         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
109733         not gl_PREREQ_GETUSERSHELL.
109735 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109737         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
109738         with only one argument, for Autoconf 2.60.
109739         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
109740         expand to nothing, so add a shell command to avoid syntax error.
109741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
109743 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109745         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
109747 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
109749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
109750         no longer needed.  Check for isblank decl.
109751         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
109752         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
109753         of existence.
109755 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
109757         * lib/getloadavg.c: Use __VMS, not VMS.
109758         * lib/getopt.c: Likewise.
109759         * lib/getpagesize.h: Likewise.
109760         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
109761         and probably does not work.
109763 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
109765         * lib/.cppi-disable: Add wcwidth.
109766         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
109767         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
109768         (ISGRAPH): Remove.  All uses changed to isgraph.
109769         (FOLD) [!defined _LIBC]: Remove special case.
109770         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
109771         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
109772         HAVE_ISBLANK.
109773         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
109774         case.
109776 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
109778         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
109779         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
109780         brackets.  Other minor changes to suppress some compiler
109781         warnings.
109783 2006-07-06  Derek R. Price  <derek@ximbiot.com>
109784         and Paul Eggert  <eggert@cs.ucla.edu>
109786         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
109787         of invoking obsolescent AC_HEADER_DIRENT macro.
109788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
109789         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
109790         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
109791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
109792         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
109793         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
109794         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
109795         * m4/readdir.m4: Remove; no longer needed.
109797 2006-07-06  Derek R. Price  <derek@ximbiot.com>
109798         and Paul Eggert  <eggert@cs.ucla.edu>
109800         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
109801         Don't worry about this obsolete case any more.
109802         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
109803         directories.
109804         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
109805         worry about this obsolete case any more.
109806         * lib/fts.c: Likewise.
109807         * lib/getcwd.c: Likewise.
109808         * lib/glob.h: Likewise.
109809         * lib/savedir.c: Likewise.
109811 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
109813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
109814         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
109815         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
109816         needed.
109817         All uses removed.
109818         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
109819         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
109820         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
109821         needed.
109822         * m4/getdate.m4 (gl_GETDATE): Likewise.
109823         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
109824         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
109825         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
109826         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
109827         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
109828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109829         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
109830         needed.
109832 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
109834         * lib/memcasecmp.c: Include <limits.h>.
109835         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
109836         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
109837         Don't assume isdigit succeeds only on '0' through '9'.
109839 2006-07-05  Eric Blake  <ebb9@byu.net>
109841         * modules/getaddrinfo (Depends-on): Add snprintf.
109843 2006-07-05  Eric Blake  <ebb9@byu.net>
109845         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
109846         to avoid 'header present but could not be compiled' on cygwin.
109848 2006-07-05  Eric Blake  <ebb9@byu.net>
109850         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
109851         missing from netdb.h.
109852         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
109854 2006-07-05  Derek R. Price  <derek@ximbiot.com>
109856         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
109857         no longer needed.
109858         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
109859         * m4/getdate.m4 (gl_GETDATE): Likewise.
109860         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
109861         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
109862         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
109863         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
109864         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
109866 2006-07-05  Derek R. Price  <derek@ximbiot.com>
109868         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
109869         All uses of is_space replaced by isspace.
109870         * lib/exit.h: Don't talk about STDC_HEADERS.
109871         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
109872         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
109873         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
109874         replaced by isprint etc.
109875         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
109876         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
109877         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
109878         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
109879         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
109880         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
109882 2006-07-05  Bruno Haible  <bruno@clisp.org>
109884         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
109885         the function exists, before testing against AIX.
109886         Reported by Martin Lambers <marlam@marlam.de>.
109888 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
109890         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
109891         From Mark D. Baushke.
109893 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
109895         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
109896         to the absolute name, not just one, to bypass Sun C 5.8's
109897         "warning: #include of /usr/include/... may be non-portable".
109899 2006-07-04  Eric Blake  <ebb9@byu.net>
109901         * modules/dirname-tests: New test module.
109902         * tests/test-dirname.c: New file, replacing dirname.c
109903         TEST_DIRNAME section that was recently deleted.
109905 2006-07-04  Bruno Haible  <bruno@clisp.org>
109907         Assume ANSI C header files and <ctype.h> functions.
109908         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
109909         (mbsnwidth): Use isprint, iscntrl instead.
109911 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
109913         Merge from coreutils.
109914         * MODULES.html.sh: Add xstrtold.
109915         * modules/xstrtold: New file.
109916         * modules/cycle-check (Files): Add lib/same-inode.h.
109917         * modules/dirname (Files): Add m4/double-slash-root.m4.
109918         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
109919         * modules/mkdir-p (Files): Add lib/same-inode.h.
109920         * modules/same (Files): Add lib/same-inode.h.
109922 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
109924         * m4/absolute-header.m4: Renamed from full-header-path.m4.
109925         This is to keep the terminology clean; POSIX talks about
109926         "absolute pathnames", not "full pathnames", but the GNU
109927         Coding Standards say to use "path" for something else;
109928         so use "absolute" to keep both sides happy.
109929         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
109930         Set gl_absolute_header, not gl_full_header_path.
109931         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
109932         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
109933         All uses changed.
109935         Merge from coreutils.
109937         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
109939         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
109940         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
109941         want to require the building of c-strtod.o.
109942         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
109943         needs -lm directly.
109944         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
109946         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
109948         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
109949         --as-needed option if available.  Problem reported by Albert Chin in
109950         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
109951         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
109952         cc merely issues a bunch of annoying warnings for --as-needed
109953         (this problem was reported by Bob Proulx).  Also, try linking with
109954         -lm to detect a bug in binutils 2.16 (this problem was reported
109955         by Ralf Wildenhues).
109957         2006-06-18  Jim Meyering  <jim@meyering.net>
109959         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
109960         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
109961         macro.
109962         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
109963         also check for glibc-2.4's abort-inducing bug.
109965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
109966         Low-probability clean-up should be to use rmdir to get rid of
109967         the just-created directory, not unlink.
109969         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
109970         configure fail, and request a bug report to inform us about it.
109971         Add a comment that, barring reports to the contrary, in 2007 we'll
109972         assume ftruncate is universally available.
109974         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
109976         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
109978         2006-03-12  Jim Meyering  <jim@meyering.net>
109980         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
109981         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
109982         * m4/same.m4 (gl_SAME): Likewise.
109983         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
109985         2006-03-11  Eric Blake  <ebb9@byu.net>
109987         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
109988         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
109989         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
109990         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
109992 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
109994         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
109995         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
109996         reported by Mark D. Baushke, one in
109997         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
109999         Merge from coreutils.
110001         * lib/.cppi-disable: Add stdint_.h.
110002         * lib/.cvsignore: Add stdint.h.
110004         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
110006         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
110007         both double and long double versions.
110008         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
110009         * lib/xstrtold.c: New file.
110010         * lib/xstrtod.h (xstrtold): New decl.
110012         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
110014         * lib/filemode.c (setst): Remove.
110015         (strmode): Rewrite to avoid setst.  This makes the code shorter,
110016         (arguably) clearer, and the generated code is a bit smaller on my
110017         Debian GNU/Linux stable x86 host.
110019         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
110021         * lib/filemode.c: Include "filemode.h" first, to test the interface.
110022         Assume that filemode.h includes sys/types.h and sys/stat.h.
110023         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
110024         (ftypelet): Reorder to put common cases first, for efficiency.
110025         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
110026         to do 'M'.
110027         (strmode): Renamed from mode_string, and now stores 12 bytes instead
110028         of 10, for compatibility with FreeBSD.  All callers changed.
110029         (filemodestring): Now stores 12 bytes instead of 10, and sets file
110030         types that can't be deduced solely from st_mode.  First arg is now a
110031         const pointer.
110032         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
110033         (strmode): Renamed from mode_string.
110034         (filemodestring): New decl.
110035         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
110036         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
110037         needed.
110038         (S_ISPORT, S_ISWHT): New macros, if not already defined.
110040         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
110042         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
110043         fsusage.h now does that.  Include fsusage.h first, to test interface.
110044         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
110045         at most one method (the old code could have generated decls that
110046         didn't conform to C89, not that this was ever exercised).
110047         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
110049         2006-03-19  Jim Meyering  <jim@meyering.net>
110051         Work even in a chroot where d_ino values for entries in "/"
110052         don't match the stat.st_ino values for the same names.
110053         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
110054         number, iterate through all entries again, using lstat instead.
110055         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
110056         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
110058         * lib/getcwd.c (__getcwd): Clarify a comment.
110059         Use memcpy in place of a call to strcpy.
110061         2006-03-12  Jim Meyering  <jim@meyering.net>
110063         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
110064         matches that of the current directory (which we're about to chdir ".."
110065         out of), then save the dev-ino of the parent, instead.
110067         * lib/same-inode.h (SAME_INODE): New file/macro.
110068         * lib/chdir-safer.c (SAME_INODE): Remove definition.
110069         Include "same-inode.h", instead.
110070         * lib/same.c: Likewise.
110071         * lib/cycle-check.h: Include "same-inode.h".
110072         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
110073         * lib/cycle-check.c (SAME_INODE): Remove definition.
110074         * lib/root-dev-ino.h: Include "same-inode.h".
110076         2006-03-11  Eric Blake  <ebb9@byu.net>
110078         * lib/same.c (same_name): s/base_name/last_component/
110079         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
110080         * lib/filenamecat.c (file_name_concat): Likewise.
110082         2006-03-11  Eric Blake  <ebb9@byu.net>,
110083                     Paul Eggert  <eggert@cs.ucla.edu>
110085         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
110086         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
110087         drive prefix.
110088         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
110089         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
110090         (last_component): New method.
110091         * lib/dirname.c (dir_len): Determine when drive letters need a
110092         subsequent slash.  Preserve // when it is special.
110093         (dir_name): Don't append dot when drive letter is absolute.
110094         [TEST_DIRNAME]: Move into a full-blown gnulib test.
110095         * lib/basename.c (base_name): New semantics - malloc the result.
110096         Preserve // when it is special.  Preserve relative files that look
110097         like drive letters.
110098         (base_len): Preserve // when it is special.
110099         (last_component): New method, similar to old base_name semantics.
110100         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
110101         base_name.  Strip redundant slashes from ///.
110103 2006-07-03  Jim Meyering  <jim@meyering.net>
110105         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
110106         macro is used before the first cycle_check call.
110108 2006-07-03  Eric Blake  <ebb9@byu.net>
110110         * modules/dirname (Depends-on): Add xstrndup.
110112 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
110114         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
110115         test cases, so that config.log is a bit easier to follow.
110117 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
110119         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
110120         both are 64 bits, since this seems to be the tradition, and this
110121         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
110122         we ever run into a host that prefers long long to long in this
110123         case, we'll need another configure-time test.  Problem reported by
110124         Jim Meyering.
110126 2006-07-02  Eric Blake  <ebb9@byu.net>
110128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
110130 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110132         * modules/inttypes (Depends-on): No longer depends on stdint.
110133         * modules/stdint (Description): Say more about assumptions.
110134         Say that the fast types might differ.  Say macros are used.
110135         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
110136         (Makefile.am): Revise list of substituted symbols to match
110137         new stdint.m4.
110138         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
110139         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
110140         * tests/test-stdint.c (verify_same_types)
110141         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
110142         the code conforms to C99/C89.
110143         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
110144         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
110146 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110148         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
110149         but fix a bug, by requiring at least 64 bits.
110150         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
110151         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
110152         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
110153         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
110155         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
110156         changes.  Make 2.59 a prerequisite.  Check and substitute for
110157         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
110158         inttypes.h.  Do not use special include files; just use the
110159         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
110160         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
110161         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
110162         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
110163         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
110164         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
110165         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
110166         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
110167         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
110168         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
110169         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
110170         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
110171         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
110172         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
110173         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
110174         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
110175         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
110176         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
110177         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
110178         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
110179         WINT_MAX.  Check for C99 conformance more strictly, by detecting
110180         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
110181         not check for things that C99 does not require, e.g., int8_t.  If
110182         a test isn't needed unless <stdint.h> isn't working, and is
110183         unlikely to be needed for any other reason, then don't do it
110184         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
110185         size_t, since we assume C89 freestanding at least.  Do not check
110186         for sig_atomic_t, wchar_t, or wint_t, since the code now does
110187         the right thing even if the types are not defined.  Instead use:
110188         (gl_STDINT_TYPE_PROPERTIES): New macro.
110189         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
110190         testing whether <sys/types.h> clashes, as Autoconf does this for
110191         us now.  All uses removed.
110192         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
110193         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
110194         (gl_CHECK_TYPE_SAME):
110195         Remove; no longer needed.
110196         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
110197         exists, since we'll return 0 anyway in that case.
110198         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
110200 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
110202         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
110203         possible collision with system files.
110204         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
110205         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
110206         WCHAR_MIN and WCHAR_MAX in this case.
110207         (<stddef.h>): Do not include; no longer needed.
110208         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
110209         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
110210         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
110211         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
110212         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
110213         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
110214         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
110215         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
110216         !defined(__c99))]: Include in this case too, since it's harmless
110217         now.
110218         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
110219         dangerous to do so.
110220         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
110221         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
110222         (_STDINT_MIN, _STDINT_MAX): New macros.
110223         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
110224         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
110225         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
110226         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
110227         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
110228         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
110229         macros, not typedefs; this simplifies things quite a bit.
110230         Use long int for all types narrower than int64_t.
110231         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
110232         Define in terms of long long int or int64_t or long int,
110233         not int64_t or int32_t.  This saves some compile-time testing.
110234         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
110235         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
110236         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
110237         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
110238         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
110239         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
110240         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
110241         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
110242         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
110243         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
110244         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
110245         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
110246         undef any previous version and define our own version, for
110247         simplicity and consistency with the new macros for types.
110248         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
110249         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
110250         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
110251         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
110252         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
110253         @WINT_T_SUFFIX@ to keep things simple here.
110254         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
110255         Simplify by assuming typical 8/16/32/64 host, since we're
110256         already doing that elsewhere anyway.
110257         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
110258         and assume long long int is 64 bits if available.  This
110259         speeds up 'configure'.
110261 2006-07-01  Eric Blake  <ebb9@byu.net>
110263         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
110264         Reported by Andreas Buening.
110266 2006-07-01  Eric Blake  <ebb9@byu.net>
110268         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
110270 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
110272         * lib/getaddrinfo.c: fixed typo
110274 2006-06-29  Jim Meyering  <jim@meyering.net>
110276         * modules/strftime (Maintainer): Add my name, since with the
110277         FPRINTFTIME changes strftime.c has forked from glibc.
110279 2006-06-29  Eric Blake  <ebb9@byu.net>
110281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
110283 2006-06-29  Eric Blake  <ebb9@byu.net>
110285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
110287 2006-06-29  Eric Blake  <ebb9@byu.net>
110289         * lib/stat_.h: New file.
110291 2006-06-29  Eric Blake  <ebb9@byu.net>
110293         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
110294         unused static function.
110296 2006-06-29  Eric Blake  <ebb9@byu.net>
110298         * doc/functions.texi (Function Portability): Document missing lstat
110299         on mingw.
110301 2006-06-29  Eric Blake  <ebb9@byu.net>
110303         * MODULES.html.sh: Add sys_stat.
110304         * modules/sys_stat: New module.
110305         * modules/mkstemp (Depends-on): Add sys_stat.
110307 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110309         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
110311 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110313         * m4/c-bs-a.m4: Removed.
110315 2006-06-29  Derek R. Price  <derek@ximbiot.com>
110317         * lib/strftime.c: Assume strftime() exists.
110319 2006-06-29  Derek Price  <derek@ximbiot.com>
110321         * modules/c-bs-a: Removed - \a is C89.
110322         * MODULES.html.sh: Remove c-bs-a.
110324 2006-06-29  Bruno Haible  <bruno@clisp.org>
110326         * modules/wcwidth (License): Change to LGPL.
110328 2006-06-28  Simon Josefsson  <jas@extundo.com>
110330         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
110331         on _WIN32.
110333         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
110334         getnameinfo.
110336 2006-06-28  Simon Josefsson  <jas@extundo.com>
110338         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
110340 2006-06-28  Simon Josefsson  <jas@extundo.com>
110342         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
110343         functions there.  It will succeed on Windows XP, but on Windows
110344         2000 and (presumably) earlier, it will fail, and use the internal
110345         re-implementation.
110346         (use_win32_p): New function.
110347         (getaddrinfo): Use strtoul on servname, to support numeric ports.
110348         Support AI_NUMERICSERV to disable getservbyname.
110349         (getnameinfo): New function, only supports
110350         NI_NUMERICHOST|NI_NUMERICSERV for now.
110352         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
110353         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
110354         getnameinfo.
110356 2006-06-28  Eric Blake  <ebb9@byu.net>
110358         * modules/wcwidth: New file.
110359         * modules/mbchar (Depends-on): Add wcwidth.
110360         * modules/mbswidth (Depends-on): Add wcwidth.
110361         * MODULES.html.sh: Add wcwidth.
110363 2006-06-28  Eric Blake  <ebb9@byu.net>
110365         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
110366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
110368 2006-06-28  Eric Blake  <ebb9@byu.net>
110370         * lib/xvasprintf.h: Fix comments.
110372 2006-06-28  Eric Blake  <ebb9@byu.net>
110374         * lib/mbchar.h (wcwidth): Include wcwidth.h.
110375         * lib/mbswidth.c (wcwidth): Move from here...
110376         * lib/wcwidth.h: ...to this new file.
110378 2006-06-28  Derek R. Price  <derek@ximbiot.com>
110380         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
110382         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
110383         it's obsolete.
110384         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
110386 2006-06-28  Derek R. Price  <derek@ximbiot.com>
110388         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
110389         Autoconf 2.60 says this stuff was obsolete.
110391 2006-06-28  Bruno Haible  <bruno@clisp.org>
110393         * modules/wcwidth (Files): Add m4/wchar_t.m4.
110395 2006-06-28  Bruno Haible  <bruno@clisp.org>
110397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
110398         gt_TYPE_WCHAR_T.
110400 2006-06-28  Bruno Haible  <bruno@clisp.org>
110402         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
110403         declaration for wcwidth.
110404         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
110406 2006-06-28  Bruno Haible  <bruno@clisp.org>
110408         * lib/mkdtemp.c [MINGW]: Include <io.h>.
110409         (mkdir): Define using _mkdir.
110411 2006-06-28  Bruno Haible  <bruno@clisp.org>
110413         * lib/getaddrinfo.h: Fix POSIX URL.
110414         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
110415         _WIN32.
110416         (use_win32_p): Make static.
110417         (getaddrinfo): Reject service name if it is empty or does not consist
110418         solely of decimal digits, or if its value is > 65535.
110419         (getnameinfo): Remove useless casts.
110421 2006-06-27  Simon Josefsson  <jas@extundo.com>
110423         * modules/sys_select: New file, suggested by Bruno Haible, Paul
110424         Eggert and Martin Lambers.
110426 2006-06-27  Simon Josefsson  <jas@extundo.com>
110428         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
110429         Eggert and Martin Lambers.
110431 2006-06-27  Bruno Haible  <bruno@clisp.org>
110433         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
110434         result to 0, not to empty.
110435         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
110437 2006-06-27  Bruno Haible  <bruno@clisp.org>
110439         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
110441 2006-06-26  Simon Josefsson  <jas@extundo.com>
110443         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
110444         present.
110446 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
110448         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
110449         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
110450         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
110452 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
110454         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
110456 2006-06-26  Bruno Haible  <bruno@clisp.org>
110458         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
110460 2006-06-26  Bruno Haible  <bruno@clisp.org>
110462         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
110464 2006-06-26  Bruno Haible  <bruno@clisp.org>
110466         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
110467         SGI C compiler in pre-C99 mode.
110468         Suggested by Mark D. Baushke and Larry Jones.
110470 2006-06-26  Bruno Haible  <bruno@clisp.org>
110472         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
110473         WCHAR_MAX.
110474         Reported by Mark D. Baushke and Larry Jones.
110476 2006-06-26  Bruno Haible  <bruno@clisp.org>
110478         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
110479         in pre-C99 mode.
110480         Suggested by Mark D. Baushke and Larry Jones.
110482 2006-06-23  Simon Josefsson  <jas@extundo.com>
110483             Bruno Haible  <bruno@clisp.org>
110485         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
110486         Emit mostlyclean-local rule.
110487         (func_emit_tests_Makefile_am): Likewise.
110488         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
110490 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
110492         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
110494 2006-06-23  Bruno Haible  <bruno@clisp.org>
110496         * tests/test-stdint.c: Update to match ISO C 99 Technical
110497         Corrigendum 1.
110499 2006-06-23  Bruno Haible  <bruno@clisp.org>
110501         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
110503 2006-06-23  Bruno Haible  <bruno@clisp.org>
110505         * lib/stdint_.h: Treat IRIX like OpenBSD.
110507 2006-06-23  Bruno Haible  <bruno@clisp.org>
110509         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
110510         ISO C 99 Technical Corrigendum 1.
110512 2006-06-22  Simon Josefsson  <jas@extundo.com>
110514         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
110515         MinGW.
110517 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
110519         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
110520         needed.  Some compiler complained about some of them.  Problem reported
110521         by Larry Jones in
110522         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
110524 2006-06-21  Simon Josefsson  <jas@extundo.com>
110526         * tests/test-getaddrinfo.c: New file.
110528         * modules/getaddrinfo-tests: New file.
110530         * MODULES.html.sh: Add inet_pton.
110532         * modules/inet_pton: New file.
110534 2006-06-21  Simon Josefsson  <jas@extundo.com>
110536         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
110537         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
110538         of using the (limited) gnulib implementation on Windows XP.
110540         * m4/inet_pton.m4: New file.
110542 2006-06-21  Simon Josefsson  <jas@extundo.com>
110544         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
110545         variable.
110547         * lib/socket_.h: Don't define WINVER.
110549         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
110550         slightly modified to work in gnulib.
110552 2006-06-21  Simon Josefsson  <jas@extundo.com>
110554         * doc/gnulib.texi (Windows sockets): Add.
110556 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
110558         * lib/read-file.c (fread_file): Start with buffer allocation of
110559         0 bytes rather than 1 byte; this simplifies the code.
110560         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
110561         code to free buffer and save/restore errno.
110562         (internal_read_file): Remove unused local.
110564 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
110566         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
110567         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
110568         Problem reported by Denis Excoffier in
110569         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
110571 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110573         * modules/sys_socket, modules/socklen: Include sys/types since
110574         FreeBSD 4.x's sys/socket.h needs it.
110576 2006-06-19  Simon Josefsson  <jas@extundo.com>
110578         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
110580 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
110582         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
110584 2006-06-19  Bruno Haible  <bruno@clisp.org>
110586         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
110587         and FULL_PATH_INTTYPES_H in angle brackets.
110588         Reported by Mark D. Baushke <mdb@gnu.org>.
110590 2006-06-17  Eric Blake  <ebb9@byu.net>
110592         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
110593         errno.
110595 2006-06-17  Bruno Haible  <bruno@clisp.org>
110597         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
110598         <sys/inttypes.h>.
110600 2006-06-17  Bruno Haible  <bruno@clisp.org>
110602         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
110603         whether errno is declared. Assume <errno.h> declares errno.
110605 2006-06-17  Bruno Haible  <bruno@clisp.org>
110607         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
110609 2006-06-17  Bruno Haible  <bruno@clisp.org>
110611         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
110612         problem on Solaris 2.5.1.
110614 2006-06-16  Eric Blake  <ebb9@byu.net>
110616         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
110617         * lib/unicodeio.c [!defined errno]: Likewise.
110618         * lib/strtol.c [!defined errno]: Likewise.
110619         * lib/strtod.c [!defined errno]: Likewise.
110621 2006-06-15  Eric Blake  <ebb9@byu.net>
110623         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
110625 2006-06-15  Eric Blake  <ebb9@byu.net>
110627         * config/srclist.txt (ssize_t.m4): Lose sync.
110629 2006-06-15  Bruno Haible  <bruno@clisp.org>
110631         * modules/stdint (Files): Include m4/full-header-path.m4,
110632         m4/size_max.m4, m4/wchar_t.m4.
110633         (Makefile.am): Many more substitutions.
110634         * modules/stdint-tests: New file.
110635         * tests/test-stdint.c: New file.
110637 2006-06-15  Bruno Haible  <bruno@clisp.org>
110639         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
110640         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
110641         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
110642         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
110643         gl_CHECK_TYPE_SAME): New macros.
110645 2006-06-15  Bruno Haible  <bruno@clisp.org>
110647         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
110649 2006-06-15  Bruno Haible  <bruno@clisp.org>
110651         * lib/stdint_.h: Rewritten to be fully auto-configured.
110652         Fixes bug on HP-UX/IA64.
110654 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
110656         * lib/getdate.y (__attribute__): Don't define if already defined.
110657         Problem reported by Larry Jones.
110658         * lib/utimens.c (__attribute__): Likewise.
110660 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
110662         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
110663         reported by Andreas Schwab.
110665 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110666             Bruno Haible  <bruno@clisp.org>
110668         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
110669         check for the declaration of strnlen and a run test that exposes the
110670         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
110671         rpl_strndup.
110673 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110674             Bruno Haible  <bruno@clisp.org>
110676         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
110678 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110680         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
110681         compile test, for Tru64 4.0D.
110683 2006-05-28  Karl Berry  <karl@gnu.org>
110685         * config/srclist.txt (printf-args.c): lose sync.
110687 2006-05-26  Martin Lambers  <marlam@marlam.de>
110689         * lib/getpass.c: Updates the test for the native W32 API, and adds
110690         missing includes, thus fixing compilation warnings.
110692 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
110694         * lib/exclude.c (exclude_fnmatch): New function.
110695         (excluded_file_name): Call exclude_fnmatch.
110696         * lib/exclude.h (excluded_file_name): New prototype
110698 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
110700         * lib/tempname.c (small_open, large_open): New macros.
110701         (__open, __open64) [!_LIBC]: Remove.
110702         (__gen_tempname): Use small_open and large_open instead of __open
110703         and __open64.  This fixes a portability bug on HP-UX 11.11i
110704         reported by Simon Wing-Tang in
110705         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
110707 2006-05-24  Bruno Haible  <bruno@clisp.org>
110709         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
110710         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
110711         Reported by Thorsten Maerz <torte@netztorte.de> via
110712         Aaron Stone <aaron@serendipity.cx>.
110714 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
110716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
110717         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
110718         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
110719         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
110720         not really conditional on the cache.
110721         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
110723 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
110725         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
110726         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
110727         (my_usleep): Don't mishandle maximum value.
110729 2006-05-19  Jim Meyering  <jim@meyering.net>
110731         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
110733 2006-05-17  Bruno Haible  <bruno@clisp.org>
110735         Cygwin portability.
110736         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
110738 2006-05-17  Bruno Haible  <bruno@clisp.org>
110740         * lib/stdint_.h: Fix recognition of Cygwin.
110742 2006-05-15  Bruno Haible  <bruno@clisp.org>
110744         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
110745         on libtool patch by Ralf Wildenhues.
110747 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
110749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
110750         test for C99 conformance; (bool) 0.5 is an integer constant
110751         expression, but (bool) -0.5 is not.  Problem reported by Fedor
110752         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
110754 2006-05-11  Simon Josefsson  <jas@extundo.com>
110756         * m4/xvasprintf.m4: Fix obvious typo.
110758 2006-05-11  Jim Meyering  <jim@meyering.net>
110760         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
110761         James Lemley.
110763 2006-05-10  Simon Josefsson  <jas@extundo.com>
110765         * lib/md4.c: Typo fix, update copyright years.
110766         (K1, K2): Don't use L because it turn computations into 64-bit on
110767         64-bit platforms.
110769 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
110771         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
110772         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
110773         unwanted sign propagation, e.g., on hosts with 64-bit int.
110774         There still are some problems with reeelly weird theoretical hosts
110775         (e.g., 33-bit int) but it's not worth worrying about now.
110776         * lib/sha1.c (rol): Likewise.
110777         (K1, K2, K3, K4): Remove unnecessary L suffix.
110779 2006-05-10  Bruno Haible  <bruno@clisp.org>
110781         * lib/des.c: Cast to avoid warnings.
110783 2006-05-09  Bruno Haible  <bruno@clisp.org>
110785         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
110786         (Depends-on): Depend also on xsize, stdarg.
110787         (configure.ac): Add gl_XVASPRINTF.
110789 2006-05-09  Bruno Haible  <bruno@clisp.org>
110791         * m4/xvasprintf.m4: New file.
110793 2006-05-09  Bruno Haible  <bruno@clisp.org>
110795         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
110796         (EOVERFLOW): Define fallback value.
110797         (xstrcat): New function.
110798         (xvasprintf): Recognize the special case of a string concatenation.
110800 2006-05-08  Eric Blake  <ebb9@byu.net>
110802         * gnulib-tool (func_version): Base copyright year on CVS date.
110803         (func_emit_copyright_notice): New function.
110804         (func_emit_lib_Makefile_am): Use it.
110805         (func_emit_tests_Makefile_am): Likewise.
110806         (func_import): Likewise.
110808 2006-05-08  Bruno Haible  <bruno@clisp.org>
110810         * modules/stdarg: New file.
110811         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
110813 2006-05-08  Bruno Haible  <bruno@clisp.org>
110815         * m4/stdarg.m4: New file, from GNU gettext.
110817 2006-05-08  Bruno Haible  <bruno@clisp.org>
110819         * config/srclist.txt (build-aux/config.rpath): different from latest
110820         release.
110822 2006-05-08  Bruno Haible  <bruno@clisp.org>
110824         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
110826 2006-05-05  Jim Meyering  <jim@meyering.net>
110828         * m4/warning.m4: New file, derived from bison's file by the same name.
110830 2006-05-03  Bruno Haible  <bruno@clisp.org>
110832         * lib/stdint_.h: Shorter URL.
110833         * lib/inttypes.h: Likewise.
110835 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
110837         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
110839 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
110841         * lib/verify.h: Document the internals better.  Most of this change
110842         was written by Bruno Haible.
110844 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
110846         * doc/verify.texi: New file, partly based on a proposal by
110847         Bruno Haible.
110849 2006-05-02  Bruno Haible  <bruno@clisp.org>
110851         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
110852         test from here...
110853         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
110855 2006-04-29  Bruno Haible  <bruno@clisp.org>
110857         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
110858         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
110860 2006-04-29  Bruno Haible  <bruno@clisp.org>
110862         * gnulib-tool: Make --update option actually work.
110864 2006-04-29  Bruno Haible  <bruno@clisp.org>
110866         * doc/gcd.texi: New file.
110867         * doc/gnulib.texi: Include it.
110869 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
110871         * lib/getdate.y (get_date): When adding relative date, start with the
110872         initial time, not with the result of the first mktime call.
110874 2006-04-25  Bruno Haible  <bruno@clisp.org>
110876         * gnulib-tool (func_import): Output the include directives in three
110877         blocks, sorted separately.
110878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
110880 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
110882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
110883         to define main with arguments, for C++.  Reported by Eric Blake.
110884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
110885         Prefer 'int main ()' to 'int main (void)', for C++.
110886         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
110887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
110888         for 'main', for C99 and C++.
110890 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
110892         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
110893         Don't assume that exit status -1 is valid.
110894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
110895         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
110896         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
110897         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
110898         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
110899         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
110900         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
110901         functions can be used without declaring them, or that you can
110902         exit with status -1.
110903         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
110905 2006-04-24  Karl Berry  <karl@gnu.org>
110907         * config/srclist.txt (longdouble.m4): sync lost.
110909 2006-04-24  Eric Blake  <ebb9@byu.net>
110911         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
110913 2006-04-24  Bruno Haible  <bruno@clisp.org>
110915         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
110916         poll() implementation in AIX.
110917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110919 2006-04-24  Bruno Haible  <bruno@clisp.org>
110921         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
110922         assigned exactly once.
110924 2006-04-23  Claudio Fontana  <claudio@gnu.org>
110925             Bruno Haible  <bruno@clisp.org>
110927         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
110928         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
110929         for AM_CPPFLAGS.
110931 2006-04-23  Bruno Haible  <bruno@clisp.org>
110933         * modules/copy-file: Depend on unistd.
110934         * modules/execute: Likewise.
110935         * modules/fatal-signal: Likewise.
110936         * modules/findprog: Likewise.
110937         * modules/mkdtemp : Likewise.
110938         * modules/pipe: Likewise.
110939         * modules/wait-process: Likewise.
110941 2006-04-23  Bruno Haible  <bruno@clisp.org>
110943         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
110944         condition was already detected.
110945         Reported by Ben Pfaff <blp@cs.stanford.edu>.
110947 2006-04-23  Bruno Haible  <bruno@clisp.org>
110949         * lib/copy-file.c: Include <unistd.h> unconditionally.
110950         * lib/execute.c: Likewise.
110951         * lib/fatal-signal.c: Likewise.
110952         * lib/findprog.c: Likewise.
110953         * lib/mkdtemp.c: Likewise.
110954         * lib/pipe.h: Likewise.
110955         * lib/pipe.c: Likewise.
110956         * lib/wait-process.h: Likewise.
110958 2006-04-23  Bruno Haible  <bruno@clisp.org>
110960         * gnulib-tool (func_usage): Fix --import description. Document
110961         --update.
110962         (func_import): Create temporary file in a temporary directory, if
110963         --dry-run is specified. Silence errors from 'grep' when there are no
110964         m4 files in $m4dir.
110965         (func_create_testdir): Silence errors from 'grep' when there are no
110966         m4 files in $m4dir.
110967         Reported by Karl Berry <karl@freefriends.org>.
110969 2006-04-20  Bruno Haible  <bruno@clisp.org>
110971         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
110972         one argument, so that the code will be portable to Autoconf 2.60.
110973         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
110974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
110975         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
110977 2006-04-19  Derek Price  <derek@ximbiot.com>
110978             Eric Blake  <ebb9@byu.net>
110980         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
110981         rather than "/full/path.h".  Update comment to match.  Shorten &
110982         generalize m4_translit call via AS_TR_CPP.
110984 2006-04-19  Derek Price  <derek@ximbiot.com>
110985             Eric Blake  <ebb9@byu.net>
110987         * lib/inttypes.h: Correct grammar in comment.
110989 2006-04-18  Derek Price  <derek@ximbiot.com>
110990             Paul Eggert  <eggert@cs.ucla.edu>
110992         * modules/inttypes: New file.
110993         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
110995 2006-04-18  Derek Price  <derek@ximbiot.com>
110996             Paul Eggert  <eggert@cs.ucla.edu>
110998         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
110999         New files.
111001 2006-04-18  Derek Price  <derek@ximbiot.com>
111002             Paul Eggert  <eggert@cs.ucla.edu>
111004         * lib/inttypes.h: New file.
111005         * lib/strtoimax.c: Assume <inttypes.h>.
111007 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
111009         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
111010         isn't mounted.  Problem reported by Kir Kolyshkin.
111012 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
111014         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
111015         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
111016         Derek R. Price.
111017         * lib/regex.h (RE_DUP_MAX): Update comment to match current
111018         implementation.
111020 2006-04-12  Eric Blake  <ebb9@byu.net>
111022         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
111023         is now done automatically by the corresponding Autoconf macro.
111025 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
111027         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
111028         time_r.h.
111030 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111032         Merge regex changes from libc, removing some of our
111033         POSIX-conformance changes that were rejected and redoing them in a
111034         less-intrusive way.
111036         * lib/regcomp.c (re_compile_internal, init_dfa):
111037         Length arg is now size_t, not Idx.  All uses changed.
111038         (peek_token): Forward decl now says internal_function.
111039         (__re_error_msgid, __re_error_msgid_idx):
111040         Now static rather than extern with attribute_hidden.
111041         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
111042         For some reason libc prefers K&R style defns for external functions.
111043         (regerror) [!defined _LIBC]: Likewise.
111044         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
111045         (seek_collating_symbol_entry, lookup_collation_sequence_value):
111046         (build_range_exp, build_collating_symbol):
111047         Use K&R-style defn.
111048         (re_compile_fastmap): Use '\0' to memset, not 0.
111049         (utf8_sb_map): Make the calculations more obvious.
111050         (init_dfa, parse_bracket_exp, build_charclass_op):
111051         Call calloc and cast result, as glibc does.
111052         (init_word_char, fetch_token, peek_token, peek_token_bracket):
111053         (build_range_exp, build_collating_symbol):
111054         Now internal functions.
111056         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
111058         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
111059         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
111060         Don't depend on VMS; depend on __VMS instead, for POSIX
111061         namespace cleanness.
111062         (regoff_t): Define to ssize_t, not long int.
111064         Remove the REG_ macros named below.  Instead, make the old names
111065         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
111066         __USE_GNU_REGEX.
111067         (REG_BACKSLASH_ESCAPE_IN_LISTS):
111068         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
111069         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
111070         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
111071         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
111072         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
111073         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
111074         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
111075         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
111076         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
111077         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
111078         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
111079         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
111080         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
111081         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
111082         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
111083         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
111084         (REG_NREGS):
111085         Remove.  All uses replaced by the old RE_* names.
111086         (RE_BACKSLASH_ESCAPE_IN_LISTS):
111087         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
111088         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
111089         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
111090         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
111091         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
111092         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
111093         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
111094         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
111095         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
111096         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
111097         Don't bother having these macros be independent of each others'
111098         values, since they no longer exist in the POSIX name space.
111100         Rename the following member names back to their old names,
111101         unless !__USE_GNU_REGEX.  All uses changed back.
111102         (buffer): Renamed from re_buffer.
111103         (allocated): Renamed from re_allocated.
111104         (used): Renamed from re_used.
111105         (syntax): Renamed from re_syntax.
111106         (fastmap): Renamed from re_fastmap.
111107         (translate): Renamed from re_translate.
111108         (can_be_null): Renamed from re_can_be_null.
111109         (regs_allocated): Renamed from re_regs_allocated.
111110         (fastmap_accurate): Renamed from re_fastmap_accurate.
111111         (no_sub): Renamed from re_no_sub.
111112         (not_bol): Renamed from re_not_bol.
111113         (not_eol): Renamed from re_not_eol.
111114         (newline_anchor): Renamed from re_newline_anchor.
111115         (num_regs): Renamed from rm_num_regs.
111116         (start): Renamed from rm_start.
111117         (end): Renamed from rm_end.
111119         (free_state): Move up a bit.
111121         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
111122         #define to be empty.
111123         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
111124         when that is what is intended.
111125         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
111126         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
111127         (MAX): New macro.
111128         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
111129         All uses changed back to re_malloc, etc.  It's now the caller's
111130         responsibility to check for overflow; all callers changed.
111131         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
111132         (re_x2nrealloc): Remove.
111133         (free_state): Remove decl.
111135         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
111136         (re_set_registers, re_exec):
111137         Use K&R-style defn.
111139         2006-01-31  Roland McGrath  <roland@redhat.com>
111141         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
111142         Reported by Mike Frysinger <vapier@gentoo.org>.
111144         2006-01-15  Andreas Jaeger  <aj@suse.de>
111146         [BZ #1950]
111147         * lib/regex_internal.c (re_string_reconstruct): Adjust for
111148         build_wcs_upper_buffer change.
111149         (build_wcs_upper_buffer): Change return type.
111151         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
111153         * lib/regex_internal.h: Include <stdint.h> if available.
111155         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
111157         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
111159         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
111161         * lib/regcomp.c: Adjust for changed secondary hash function.
111163         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
111165         * lib/regex.h: Pretty printing.
111166         Clean up namespace a bit.
111168         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
111170         * lib/regexec.c (update_cur_sifted_state, check_arrival,
111171         check_arrival_add_next_nodes): Avoid using uninitialized variable.
111173         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
111174                     Ulrich Drepper  <drepper@redhat.com>
111176         [BZ #1302]
111177         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
111178         changed.
111179         (bitset_word_t): Renamed from bitset_word.  All uses changed.
111181         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
111183         [BZ #281]
111184         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
111185         * lib/regcomp.c: Remove unnecessary uses of
111186         unsigned RE_TRANSLATE_TYPE.
111187         * lib/regex_internal.h: Likewise.
111188         * lib/regex_internal.c: Likewise.
111189         * lib/regexec.c: Likewise.
111190         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
111192         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
111194         * lib/regexec.c (find_recover_state): Remove unnecessary
111195         initialization.
111196         (transit_state_bkref): Make DFA a const pointer.
111197         (get_subexp): Likewise.
111198         (check_arrival): Likewise.
111199         (update_cur_sifted_state): Likewise.
111200         (re_search_internal): Likewise.
111201         (prune_impossible_nodes): Likewise.
111202         (acquire_init_state_context): Likewise.
111203         (proceed_next_node): Likewise.
111204         (set_regs): Likewise.
111205         (free_fail_stack_return): Likewise.
111206         (check_arrival_expand_ecl): Mark DFA parameter as const.
111207         (check_arrival_expand_ecl_sub): Likewise.
111208         (check_subexp_limits): Likewise.
111209         (sub_epsilon_src_nodes):  Likewise.
111210         (add_epsilon_src_nodes):  Likewise.
111211         (merge_state_array): Likewise.
111212         (update_regs): Likewise.
111213         (build_trtable): Likewise.
111214         (sift_states_backward): Mark MCTX parameter as const.
111215         (build_sifted_states): Likewise.
111216         (update_cur_sifted_state): Likewise.
111217         (sift_states_mkref): Likewise.
111218         (check_arrival_expand_ecl): Mark eclosure as const.
111219         (check_dst_limits_calc_pos_1): Likewise.
111220         * lib/regex_internal.h (re_match_context_t): Make dfa a const
111221         pointer.
111223         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
111225         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
111226         (transit_state_sb): Likewise.
111227         (transit_state_mb): Likewise.
111228         (sift_states_iter_mb): Likewise.
111229         (check_arrival_add_next_nodes): Likewise.
111230         (check_node_accept_bytes): Change first parameter to pointer-to-const.
111231         [_LIBC] (re_search_2_stub): Use mempcpy.
111233         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
111234         mbrtowc for very simple UTF-8 case.
111236         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
111237         a pointer-to-const.
111238         (re_acquire_state_context): Likewise.
111239         * lib/regex_internal.h: Adjust prototypes.
111241         * lib/regex.c: Prevent using C++ compilers.
111243         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
111244         (re_acquire_state_context): Likewise.
111246 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111248         * modules/regex (Depends-on): Add ssize_t.
111250 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111252         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
111253         translation table.
111255 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
111257         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
111259 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
111260             Bruno Haible  <bruno@clisp.org>
111262         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
111263         <sys/types.h> and <inttypes.h>.
111265 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111267         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
111268         `__error_t_defined', so argp.h will not typedef the former.
111270 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
111272         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
111273         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
111274         glibc names.  Even if glibc is changed to conform to POSIX, the
111275         traditional names will be available anyway, since regex depends on
111276         the extensions module.  Also, fix a longstanding typo in the
111277         implementation of Spencer ERE test #75 from grep 2.3.  Problems
111278         reported by Emanuele Giaquinta.  Also, change sense of cached
111279         variable, so that the message makes sense.
111281 2006-03-24  Simon Josefsson  <jas@extundo.com>
111283         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
111284         including some doc fixes.
111285         (base64_encode_alloc): Fix +1 bug on allocation failures.
111287 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111289         * lib/base64.c (base64_encode): Do not read past end of array with
111290         unsanitized input on systems with CHAR_BIT > 8.
111292 2006-03-24  Eric Blake  <ebb9@byu.net>
111294         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
111296 2006-03-22  Karl Berry  <karl@gnu.org>
111298         * config/srclist.txt (*setenv.[ch]): get from coreutils.
111299         * config/srclistvars.sh (COREUTILS): new var.
111301 2006-03-17  Jim Meyering  <jim@meyering.net>
111303         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
111304         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
111306 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
111308         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
111309         no longer needs it.  Instead, check that regoff_t is as least
111310         as wide as ptrdiff_t.
111312         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
111313         so that our regex.h stays compatible with the installed regex.
111314         This is helpful for installers who configure --without-included-regex.
111315         Problem reported by Emanuele Giaquinta.
111317 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
111319         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
111320         Typedef to long int, not to off_, as POSIX will likely change
111321         in that direction.
111323 2006-03-15  Eric Blake  <ebb9@byu.net>
111325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
111327 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
111329         * lib/argp-help.c (validate_uparams): Fix typo
111330         * lib/argp-parse.c (argp_default_options): Consistently begin help
111331         messages with a lowercase letter.
111333 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
111335         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
111336         overrun buffers and shouldn't be used (much as gets shouldn't be
111337         used).
111338         * lib/time_r.c (asctime_r, ctime_r): Likewise.
111340 2006-03-08  Simon Josefsson  <jas@extundo.com>
111342         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
111343         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111345 2006-03-08  Simon Josefsson  <jas@extundo.com>
111347         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
111348         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111350 2006-03-08  Simon Josefsson  <jas@extundo.com>
111352         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
111353         signal that configure disabled the device.
111355 2006-03-08  Simon Josefsson  <jas@extundo.com>
111357         * build-aux/maint.mk: Fix refresh-po, to handle no translated
111358         languages.
111360 2006-03-07  Simon Josefsson  <jas@extundo.com>
111362         * modules/getopt (Depends-on): Add unistd.
111364         * modules/unistd: New file.
111366 2006-03-07  Simon Josefsson  <jas@extundo.com>
111368         * modules/gc-random: New file.
111370 2006-03-07  Simon Josefsson  <jas@extundo.com>
111372         * m4/unistd_h.m4: New file.
111374 2006-03-07  Simon Josefsson  <jas@extundo.com>
111376         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
111377         test to be side-effect free by storing the result in the cache
111378         variable gl_cv_lib_readline, and moving the assignment of
111379         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
111380         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
111382 2006-03-07  Simon Josefsson  <jas@extundo.com>
111384         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
111385         error on missing devices (the functions will return an error).
111387         * m4/gc.m4: Move random stuff to gc-random.m4
111389 2006-03-07  Simon Josefsson  <jas@extundo.com>
111391         * lib/unistd_.h: New file.
111393 2006-03-07  Simon Josefsson  <jas@extundo.com>
111395         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
111397 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111399         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
111400         Problem reported by Juan Manuel Guerrero.
111402 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111404         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
111405         the unistd module.
111406         * lib/getlogin_r.c: Likewise.
111407         * lib/getlogin_r.h: Likewise.
111408         * lib/glob.c: Likewise.
111409         * lib/pagealign_alloc.c: Likewise.
111410         * lib/unistd_.h: Remove; no longer needed.
111412 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
111414         * MODULES.html.sh (Support for systems lacking POSIX:2001):
111415         Add unistd.
111416         * modules/c-stack (Depends-on): Add unistd.
111417         * modules/getlogin_r: Likewise.
111418         * modules/glob: Likewise.
111419         * modules/pagealign_alloc: Likewise.
111420         * modules/unistd (Files): Remove lib/unistd_.h.
111421         (EXTRA_DIST): Remove.
111422         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
111423         need unistd_.h.
111424         (MOSTLYCLEANFILES): Remove unistd.h-t.
111426 2006-03-03  Simon Josefsson  <jas@extundo.com>
111428         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
111430 2006-03-03  Simon Josefsson  <jas@extundo.com>
111432         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
111433         libidn and bison.
111435 2006-03-03  Simon Josefsson  <jas@extundo.com>
111437         * build-aux/maint.mk: Add indent target.
111439 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
111441         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
111442         our replacement poll.h in any case, to avoid a differing
111443         declaration from a system header.  Seen on AIX.
111445 2006-03-01  Simon Josefsson  <jas@extundo.com>
111447         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
111448         <kasal@ucw.cz>.
111450 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111452         * modules/gettime (Depends-on): Add extensions module.
111453         * modules/nanosleep (Depends-on): Likewise.
111454         * modules/settime (Depends-on): Likewise.
111456 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
111458         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
111459         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
111460         pedantically.
111461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
111462         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
111464         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
111465         not "==".  Reported by Ralf Wildenhues.
111467 2006-03-01  Karl Berry  <karl@gnu.org>
111469         * doc/Copyright/request-*: new files, synced from gnuorg.
111471 2006-03-01  Karl Berry  <karl@gnu.org>
111473         * config/srclist.txt (Copyright/*): new entries.
111475 2006-02-28  Simon Josefsson  <jas@extundo.com>
111477         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
111479 2006-02-27  Simon Josefsson  <jas@extundo.com>
111481         * lib/base64.h: Indent #define's.  From Jim Meyering
111482         <jim@meyering.net>.
111484 2006-02-27  Jim Meyering  <jim@meyering.net>
111486         Revert the change of 2006-02-24, so these files can continue
111487         to be sync'd from gettext.
111488         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
111489         of `config.h'.
111491 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
111493         * modules/intprops: New file.
111494         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111495         Add intprops.
111496         * modules/getloadavg (Files): Remove lib/intprops.h.
111497         (Depends-on): Add intprops.
111498         * modules/human: Likewise.
111499         * modules/inttostr: Likewise.
111500         * modules/openat: Likewise.
111501         * modules/sig2str: Likewise.
111502         * modules/userspec: Likewise.
111503         * modules/utimecmp: Likewise.
111504         * modules/xnanosleep: Likewise.
111505         * modules/xstrtol: Likewise.
111507 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
111509         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
111510         * modules/lock-tests (TESTS): Use $(EXEEXT).
111511         * modules/tls-tests: Likewise.
111512         * modules/argp-tests: Likewise.
111513         (check_PROGRAMS): New var, replacing...
111514         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
111516 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111518         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
111519         `config.h'.
111521 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
111523         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
111525 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111527         Sync from coreutils.
111528         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
111529         gl_CHDIR_SAFER.
111531 2006-02-22  Jim Meyering  <jim@meyering.net>
111533         Sync from coreutils.
111534         * m4/chdir-safer.m4: New file.
111536 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
111538         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
111539         AT_FDCWD exceeds INT_MAX.
111540         * lib/openat.h (AT_FDCWD): Likewise.
111542 2006-02-17  Eric Blake  <address@hidden>
111544         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
111546 2006-02-16  Simon Josefsson  <jas@extundo.com>
111548         * modules/getaddrinfo (Depends-on): Add sys_socket.
111550 2006-02-15  Simon Josefsson  <jas@extundo.com>
111552         * build-aux/maint.mk: Add dsyntax-check rule.
111554 2006-02-15  Eric Blake  <ebb9@byu.net>
111556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
111557         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
111558         'present but cannot compile' warnings on cygwin.
111559         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
111560         use ws2tcpip.h if sys/socket.h works.
111561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
111562         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
111564 2006-02-14  Simon Josefsson  <jas@extundo.com>
111566         * modules/maintainer-makefile (Files): Rename.
111568         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
111569         and (the local) Makefile.cfg to maint-cfg.mk.
111571         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
111572         to the latter.
111574         * modules/maintainer-makefile: New module.
111576         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
111577         severaly stripped to make it possible to build it up from scratch
111578         with reliable tests.
111580         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
111581         fixes to permit overriding the default actions when configure and
111582         makefile are not available.
111584 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
111586         Sync from coreutils.
111587         * modules/lstat (Depends-on): Don't depend on xalloc.
111588         (License): Change from GPL to LGPL, since this is now simply a
111589         replacement for a libc function.
111591 2006-02-14  Jim Meyering  <jim@meyering.net>
111593         Sync from coreutils.
111595         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
111596         failure on deficient systems, and simplify gnulib lgpl dependencies.
111597         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
111598         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
111600         * lib/xalloc-die.c: Remove unused definition of N_.
111602 2006-02-14  Jim Meyering  <jim@meyering.net>
111604         Sync from coreutils.
111605         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
111606         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
111607         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
111608         double-quote uses of that variable, to accommodate the rare case in
111609         which getmntent is available in none of the libraries checked.  This
111610         happens at least on FreeBSD 5.0.
111612 2006-02-13  Simon Josefsson  <jas@extundo.com>
111614         * gnulib-tool (Usage): Fix --import, from
111615         karl@freefriends.org (Karl Berry).
111617 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
111619         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
111621 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
111623         * lib/argp-namefrob.h: Restore changes accidentally lost during the
111624         "autoupdate" on 2005-12-12.
111626 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
111628         * modules/closeout (Depends-on): Remove atexit.
111630 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
111632         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
111633         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
111635 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
111637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
111638         __EXTENSIONS__ if this causes compilation to fail.  Problem
111639         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
111640         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
111642 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
111644         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
111645         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
111646         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
111647         All uses changed.
111649 2006-01-26  Simon Josefsson  <jas@extundo.com>
111651         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
111652         prototype is visible on mingw32.
111654         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
111655         for mingw32.
111657         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
111658         mingw32).
111660 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
111662         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
111663         attempt to open for write; this always fails, at least on POSIX
111664         hosts.  This reinstates the 2006-01-09 change, which was
111665         inadvertently removed.
111667 2006-01-26  Bruno Haible  <bruno@clisp.org>
111669         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
111670         Reported by Paul Eggert.
111672 2006-01-26  Bruno Haible  <bruno@clisp.org>
111673             Paul Eggert  <eggert@cs.ucla.edu>
111675         * lib/stdbool_.h (_Bool)
111676         [(! (defined __cplusplus || defined __BEOS__)
111677           && !defined __GNUC__
111678           && !(defined __HP_cc || defined __xlc__
111679                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
111680                || defined __sgi))]:
111681         #define to signed char in these cases too; this simplifies
111682         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
111683         etc., separately) and makes it more conservative.
111685 2006-01-25  Simon Josefsson  <jas@extundo.com>
111687         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
111688         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
111689         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
111691 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
111693         * lib/argp-namefrob.h: Bugfix. Remove stray #
111695 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
111697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
111698         so that we test the test.
111699         Check for yet another HP-UX cc bug involving *bool |= bool.
111701 2006-01-25  Karl Berry  <karl@gnu.org>
111703         * config/srclist.txt (vasnprintf.c): sync lost.
111705 2006-01-25  Jim Meyering  <jim@meyering.net>
111707         Sync from the stable (b5) branch of coreutils:
111709         * lib/fts.c (fts_children): Don't let close() clobber errno from
111710         failed fchdir().
111712         * lib/fts.c (fts_stat): When following a symlink-to-directory,
111713         don't necessarily interpret stat-fails+lstat-succeeds as indicating
111714         a dangling symlink.  That can also happen at least for ELOOP.
111715         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
111716         FYI, this bug predates the inclusion of fts.c in coreutils.
111718         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
111719         in their own block, so pre-c99 compilers don't object.
111721         Avoid the double-free (first in fts_read, second in fts_close) that
111722         would occur when an `active' directory is made inaccessible (e.g.,
111723         via chmod a-x) during a traversal.
111724         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
111725         before returning.  Reproduce this failure by
111726         mkdir -p a/b; cd a; chmod a-x . b
111727         Reported by Stavros Passas.
111729 2006-01-25  Jim Meyering  <jim@meyering.net>
111731         * lib/fileblocks.c: Remove more useless parentheses.
111732         * lib/readutmp.h: Likewise.
111734 2006-01-25  Bruno Haible  <bruno@clisp.org>
111736         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
111737         warnings.
111738         Reported by Paul Eggert.
111740 2006-01-25  Bruno Haible  <bruno@clisp.org>
111742         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
111743         rid of a trap command. For Solaris sh.
111744         Reported by Mark D. Baushke <mdb@gnu.org>.
111746 2006-01-24  Simon Josefsson  <jas@extundo.com>
111748         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
111749         Bruno.
111751 2006-01-24  Karl Berry  <karl@gnu.org>
111753         * config/srclist.txt (argp-namefrob.h): sync lost.
111755 2006-01-24  Jim Meyering  <jim@meyering.net>
111757         * modules/openat (Files): Add lib/intprops.h.
111758         From Mark D. Baushke.
111760 2006-01-24  Jim Meyering  <jim@meyering.net>
111762         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
111763         Reported by Mark D. Baushke.
111765 2006-01-24  Jim Meyering  <jim@meyering.net>
111767         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
111769 2006-01-24  Bruno Haible  <bruno@clisp.org>
111771         * modules/strnlen (Maintainer): Change from glibc to all.
111773 2006-01-24  Bruno Haible  <bruno@clisp.org>
111775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
111776         Patch by Paul Eggert.
111778 2006-01-24  Bruno Haible  <bruno@clisp.org>
111780         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
111781         already has it.
111782         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
111783         2005-11-26.
111785         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
111786         'signed char' to avoid problems with the built-in _Bool type.
111787         Reported by Paul Eggert on 2005-11-26.
111789 2006-01-24  Bruno Haible  <bruno@clisp.org>
111791         * gnulib-tool (func_import): Avoid constructing complicated sed
111792         expressions inside backquote.
111793         Report and solution by Mark D. Baushke <mdb@gnu.org>.
111795 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
111797         These changes imported from libc.
111798         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
111799         test and two separate function calls.
111800         * lib/strndup.c (__strndup): Add libc_hidden_def.
111802 2006-01-23  Simon Josefsson  <jas@extundo.com>
111804         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
111805         Remove the test_*_SOURCES variable: automake infers it by default.
111806         * modules/tls-tests: Likewise.
111808 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
111810         Work around porting bugs reported by Dieter in
111811         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
111812         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
111813         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
111814         Include "getopt.h" first, to check interface.
111815         (getenv): Declare only if defined HAVE_DECL_GETENV &&
111816         !HAVE_DECL_GETENV.
111817         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
111818         (__strndup): Revert to K&R-style function dfns, the glibc style.
111819         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
111820         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
111821         Include strnlen.h first, to get prototype properly.
111822         (strnlen): Renamed from __strnlen.
111823         Remove weak alias.
111825 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
111827         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
111829 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
111831         * config/srclist.txt: Adjust to reflect glibc reorganization.
111832         This affects only comments.
111834 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111836          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
111837          Reported by Bruce Korb <bkorb@gnu.org>.
111839 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
111841         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
111842         to pacify gcc -Wswitch-default.
111844 2006-01-22  Bruno Haible  <bruno@clisp.org>
111846         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
111847         temporary buffer for sprintf, take into account the precision also
111848         for 'd', 'i', 'u', 'o', 'x', 'X'.
111850 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
111852         * modules/argp-tests: New module
111853         * tests/test-argp.c: New file
111854         * tests/test-argp-2.sh: New file
111856 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
111858         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
111859         (__argp_base_name): Removed
111860         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
111861         typo.
111862         (__argp_base_name): Provide macro definition or extern declaration
111863         depending on the configuration
111865 2006-01-20  Simon Josefsson  <jas@extundo.com>
111867         * modules/inet_ntop (Depends-on): Depend on sys_socket.
111869 2006-01-20  Simon Josefsson  <jas@extundo.com>
111871         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
111873 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
111875         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
111876         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
111877         Suggested by Bruno Haible.
111879 2006-01-20  Karl Berry  <karl@gnu.org>
111881         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
111882         until changes propagate, I guess.
111884 2006-01-19  Simon Josefsson  <jas@extundo.com>
111886         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
111888 2006-01-19  Simon Josefsson  <jas@extundo.com>
111890         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
111892 2006-01-19  Simon Josefsson  <jas@extundo.com>
111894         * gnulib-tool: Set check_PROGRAMS.
111896         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
111897         modules/des-tests, modules/gc-arcfour-tests,
111898         modules/gc-arctwo-tests, modules/gc-des-tests,
111899         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
111900         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
111901         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
111902         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
111903         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
111904         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
111905         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
111906         test_*_SOURCES.
111908 2006-01-18  Simon Josefsson  <jas@extundo.com>
111910         * modules/socklen (Depends-on): Depend on sys_socket.
111912 2006-01-18  Simon Josefsson  <jas@extundo.com>
111914         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
111915         modules/des-tests, modules/gc-arcfour-tests,
111916         modules/gc-arctwo-tests, modules/gc-des-tests,
111917         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
111918         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
111919         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
111920         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
111921         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
111922         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
111923         $(EXEEXT) to automake TESTS variable, for mingw32.
111925 2006-01-17  Simon Josefsson  <jas@extundo.com>
111927         * modules/socklen (Include): Need sys/socket.h.
111929 2006-01-17  Bruno Haible  <bruno@clisp.org>
111931         * modules/ssize_t (Include): Add <sys/types.h>.
111933 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
111935         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
111936         it's not portable and it doesn't work with cross-compiles.
111937         Problem reported by Bruno Haible.  Fix missing-$ typo in
111938         'test "gl_cv_ignore_unused_libraries" ...' that prevented
111939         -zignore from being used with Sun's C compiler.
111941 2006-01-12  Simon Josefsson  <jas@extundo.com>
111943         * lib/base64.c: Fix warning, reported by Bruno Haible
111944         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
111946 2006-01-12  Bruno Haible  <bruno@clisp.org>
111948         * modules/ldd: New file.
111949         * build-aux/ldd.sh.in: New file.
111950         * MODULES.html.sh (Support for building libraries and executables): Add
111951         ldd.
111953 2006-01-12  Bruno Haible  <bruno@clisp.org>
111955         * m4/ldd.m4: New file.
111957 2006-01-12  Bruno Haible  <bruno@clisp.org>
111959         * gnulib-tool (func_import, func_create_testdir): Don't go into an
111960         endless loop while replacing $auxdir with build-aux.
111962 2006-01-11  Simon Josefsson  <jas@extundo.com>
111964         * lib/stdint_.h (SIZE_MAX): Add missing (.
111966 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
111968         Sync from coreutils.
111969         * lib/md5.c: Fix commentary typos.
111970         (alignof, UNALIGNED_P): No need for a GCC-specific version.
111971         * lib/md5.h (__attribute__): Remove; unused.
111972         * lib/sha1.c: Fix commentary to match md5 better.
111973         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
111974         so that we don't need to worry about alignment.  All uses changed.
111975         This merges the 2005-10-28 md5 change into sha1.
111977 2006-01-11  Jim Meyering  <jim@meyering.net>
111979         Sync from coreutils.
111980         * lib/md5.c (OP): Fix spacing.
111982 2006-01-11  Bruno Haible  <bruno@clisp.org>
111984         Ensure automatic ordering between gl_LOCK and gl_ARGP.
111985         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
111986         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
111988 2006-01-11  Bruno Haible  <bruno@clisp.org>
111990         Ensure automatic ordering between gl_LOCK and gl_ARGP.
111991         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
111992         the "early" section as well.
111994 2006-01-11  Bruno Haible  <bruno@clisp.org>
111996         Avoid "ar: no archive members specified" error on MacOS X.
111997         * gnulib-tool (func_modules_add_dummy): New function.
111998         (func_import, func_create_testdir): Invoke it.
112000 2006-01-11  Bruno Haible  <bruno@clisp.org>
112002         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
112003         with $auxdir in AC_CONFIG_FILES statements.
112005 2006-01-11  Bruno Haible  <bruno@clisp.org>
112007         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112008         Initialize also noinst_HEADERS to empty.
112010 2006-01-11  Bruno Haible  <bruno@clisp.org>
112012         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
112013         variables.
112014         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
112015         autoreconf.
112017 2006-01-11  Bruno Haible  <bruno@clisp.org>
112019         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
112020         overridable by the user.
112021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112023 2006-01-10  Simon Josefsson  <jas@extundo.com>
112025         * modules/sys_socket: New file.
112027 2006-01-10  Simon Josefsson  <jas@extundo.com>
112029         * m4/sys_socket_h.m4: New file.
112031 2006-01-10  Simon Josefsson  <jas@extundo.com>
112033         * lib/socket_.h: New file.
112035 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112037         * modules/readutmp (Maintainer): Add myself.
112039 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112041         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
112042         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
112043         People who are still concerned with buggy memcmp implementations
112044         can invoke gl_FUNC_MEMCMP themselves.
112046 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
112048         * lib/regex_internal.h (BITSET_WORD_BITS):
112049         Work around a bug in 64-bit PGC (before version 6.1-2), where the
112050         preprocessor mishandles large unsigned values as if they were signed.
112051         Problem reported by Claudio Fontana in
112052         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
112054 2006-01-10  Jim Meyering  <jim@meyering.net>
112056         Avoid the double-free (first in fts_read, second in fts_close) that
112057         would occur when an `active' directory is made inaccessible (e.g.,
112058         via chmod a-x) during a traversal.
112059         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
112060         before returning.  Reproduce this failure by
112061         mkdir -p a/b; cd a; chmod a-x . b
112062         Reported by Stavros Passas.
112064         Sync from coreutils.
112065         * lib/sha1.c: Tweak grammar in a comment.
112067 2006-01-10  Jim Meyering  <jim@meyering.net>
112069         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
112070         Patch by Joerg Sonnenberger.
112072 2006-01-10  Bruno Haible  <bruno@clisp.org>
112074         * modules/readutmp: Depend on module free.
112075         * modules/strtok_r: Depend on module restrict.
112077 2006-01-10  Bruno Haible  <bruno@clisp.org>
112079         * modules/gettext (configure.ac): Add an invocation of
112080         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
112082 2006-01-10  Bruno Haible  <bruno@clisp.org>
112084         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
112085         Reported by Werner Lemberg <wl@gnu.org>.
112087 2006-01-10  Bruno Haible  <bruno@clisp.org>
112089         * lib/localcharset.c: Update from GNU gettext.
112091 2006-01-10  Bruno Haible  <bruno@clisp.org>
112093         * lib/argp.h (__const): Remove macro. Use const instead.
112094         * lib/argp-fmtstream.h (__const): Likewise.
112095         * lib/glob_.h (__const): Remove macro.
112096         * lib/glob-libc.h: Use const instead of __const.
112098 2006-01-10  Bruno Haible  <bruno@clisp.org>
112100         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
112101         variable.
112102         Needed to avoid an automake error regarding the 'gettext' module.
112104 2006-01-09  Simon Josefsson  <jas@extundo.com>
112106         * modules/inet_ntop (Depends-on): Add restrict.
112108 2006-01-09  Simon Josefsson  <jas@extundo.com>
112110         * modules/gc-rijndael-tests (License): Put under LGPL.
112112         * modules/gc-des-tests (License): Likewise.
112114         * modules/gc-arcfour-tests (License): Likewise.
112116         * modules/gc-arctwo-tests (License): Likewise.
112118         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
112120         * modules/gc-hmac-sha1-tests (Files): Likewise.
112122         * modules/gc-hmac-md5-tests (License): Likewise.
112124         * modules/gc-sha1-tests (License): Likewise.
112126         * modules/gc-md5-tests (License): Likewise.
112128         * modules/gc-md4-tests (License): Likewise.
112130         * modules/gc-md2-tests (License): Likewise.
112132         * modules/gc-tests (License): Likewise.
112134         * modules/des-tests (License): Likewise.
112136         * modules/md4-tests (License): Likewise.
112138         * modules/md2-tests (License): Likewise.
112140 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112142         Sync from coreutils:
112144         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
112145         * modules/lib-ignore: New file.
112146         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
112147         chdir-safer.m4, lchmod.m4.
112148         * modules/openat: Add mkdirat.c, openat-priv.h.
112150 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112152         Sync from coreutils.
112153         * m4/lib-ignore.m4: New file.
112154         * m4/lchmod.m4: New file.
112156 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112158         Sync from coreutils.
112159         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
112160         for write access: POSIX says that must fail.
112161         * lib/fts.c (diropen): Likewise.
112162         * lib/save-cwd.c (save_cwd): Likewise.
112163         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
112164         well, for minor improvements on hosts that lack O_DIRECTORY.
112165         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
112166         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
112167         Fall back on chown if open failed with EACCES.
112169         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
112170         Report an error at compile-time if only a 1-second nominal clock
112171         resolution is found.
112173         * lib/lchmod.h: New file.
112174         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
112175         (make_dir_parents): Use lchown rather than chown, and
112176         lchmod rather than chmod.
112178         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
112179         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
112180         "proc" reported by n0dalus.
112182         * lib/mountlist.c: Include <limits.h>.
112183         (dev_from_mount_options)
112184         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
112185         New function.  It no longer assumes "dev=" has the System V meaning
112186         on Linux (since it doesn't).  It also parses "dev=" more carefully.
112187         (read_file_system_list)
112188         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
112189         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
112190         dev= in that case.
112192         * lib/posixtm.h (PDS_PRE_2000): New macro.
112193         * lib/posixtm.c (year): Arg is now syntax_bits rather than
112194         allow_century.  All usages changed.  Reject dates outside the range
112195         1969-1999 if PDS_PRE_2000 is used.
112197 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
112199         Sync from coreutils.
112200         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
112201         (Time of day items): Mention the possibility of leap seconds.
112202         Problem reported by Dr. David Alan Gilbert.
112204 2006-01-09  Jim Meyering  <jim@meyering.net>
112206         Sync from coreutils.
112208         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
112210         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
112212         * lib/modechange.c (mode_compile): Reject an invalid mode string
112213         that starts with an octal digit.  From Andreas Gruenbacher.
112215         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
112216         and dup to open_safer and dup_safer, respectively.
112217         (openat_permissive): Fix typo in comment.
112219         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
112220         "gettext.h"; either no longer needed or are guaranteed by openat.h.
112221         (_): Remove; no longer needed.
112222         (openat): Renamed from rpl_openat; no need for rpl_openat
112223         since openat.h renames openat for us.
112224         Replace most of the body with a call to openat_permissive,
112225         to avoid duplicate code.
112226         Port to (probably hypothetical) environments were mode_t is
112227         wider than int.
112228         (openat_permissive): Require mode arg, so that we can check
112229         types better.  Put it just after flags.  Change cwd failure
112230         indicator from pointer-to-bool to pointer-to-errno-value.
112231         All callers changed.
112232         Invoke openat_save_fail and/or openat_restore_fail if
112233         cwd_errno is null, so that openat can call us.
112234         (openat_permissive, fdopendir, fstatat, unlinkat):
112235         Simplify errno handling to avoid some duplicate code,
112236         as it's OK to set errno on success.
112237         * lib/openat.h: Revamp code so that function macros depend on
112238         __OPENAT_PREFIX only, not also on AT_FDCWD.
112239         (openat_ro): Remove.  Caller changed to use openat_permissive.
112240         (openat_permissive): Now a macro, if not a function.
112241         (openat_restore_fail, openat_save_fail): Now always functions,
112242         since mkdirat needs them even if __OPENAT_PREFIX is defined.
112244         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
112245         and openat.c.
112246         * lib/mkdirat.c: Include openat-priv.h.
112247         Remove definitions of macros defined therein.
112248         * lib/openat.c: Likewise.
112250         * lib/mkdirat.c (mkdirat): New file and function.
112251         * lib/openat.h (mkdirat): Declare.
112253         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
112255         * lib/openat.h (openat_permissive): Declare.
112256         (openat_ro): Define.
112258         * lib/openat.c (EXPECTED_ERRNO): New macro.
112259         (openat_permissive): New function -- used in remove.c rewrite.
112260         (all functions): Set errno just before returning, only if there
112261         was an actual failure.
112262         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
112264         Emulate openat-family functions using Linux's procfs, if possible.
112265         Idea and some code based on Ulrich Drepper's glibc changes.
112267         * lib/openat.c: (BUILD_PROC_NAME): New macro.
112268         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
112269         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
112270         before falling back on save_cwd and restore_cwd.
112271         (fdopendir, fstatat, unlinkat): Likewise.
112273         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
112274         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
112276         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
112277         as second argument to va_arg.  Otherwise, some versions of gcc
112278         warn that `if this code is reached, the program will abort'.
112280 2006-01-09  Jim Meyering  <jim@meyering.net>
112282         Sync from coreutils.
112283         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
112284         Require openat-priv.h.
112286 2006-01-09  Bruno Haible  <bruno@clisp.org>
112288         * modules/strnlen (Include): Use strnlen.h.
112290 2006-01-09  Bruno Haible  <bruno@clisp.org>
112292         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
112294 2006-01-09  Bruno Haible  <bruno@clisp.org>
112296         * lib/sysexit_.h (EX_OK): New macro.
112297         Suggested by Martin Lambers <marlam@marlam.de>.
112299 2006-01-09  Bruno Haible  <bruno@clisp.org>
112301         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
112302         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
112304 2006-01-09  Bruno Haible  <bruno@clisp.org>
112306         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
112307         numbers.
112309 2006-01-09  Bruno Haible  <bruno@clisp.org>
112311         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
112312         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
112313         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
112314         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
112316 2006-01-09  Bruno Haible  <bruno@clisp.org>
112318         * build-aux/javacomp.sh.in: New file, moved from lib/.
112319         * modules/javacomp-script (Files): Update.
112320         (configure.ac): Add AC_CONFIG_FILES invocation.
112321         (EXTRA_DIST): Remove variable.
112323         * build-aux/javaexec.sh.in: New file, moved from lib/.
112324         * modules/javaexec (Files): Update.
112325         (configure.ac): Add AC_CONFIG_FILES invocation.
112326         (EXTRA_DIST): Remove javaexec.sh.in.
112328         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
112329         * modules/csharpcomp-script (Files): Update.
112330         (configure.ac): Add AC_CONFIG_FILES invocation.
112331         (EXTRA_DIST): Remove variable.
112333         * build-aux/csharpexec.sh.in: New file, moved from lib/.
112334         * modules/csharpexec (Files): Update.
112335         (configure.ac): Add AC_CONFIG_FILES invocation.
112336         (EXTRA_DIST): Remove csharpexec.sh.in.
112338 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
112340         Sync from coreutils.
112342         Add POSIX ACL support
112343         * lib/acl.h (copy_acl, set_acl): Add declarations.
112344         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
112345         systems other than Linux.
112346         (chmod_or_fchmod): New function: use fchmod when possible,
112347         and chmod otherwise.
112348         (file_has_acl): Add a POSIX ACL implementation, with a
112349         Linux-specific subcase.
112350         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
112351         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
112352         acls are unsupported.
112353         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
112354         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
112355         are unsupported.
112357 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
112359         Sync from coreutils.
112360         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
112362 2006-01-07  Bruno Haible  <bruno@clisp.org>
112364         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
112365         gl_EARLY.
112367 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112369         * lib/strftime.c (tzname): Don't declare if it is already #defined.
112370         Problem reported for Mingw by Mark Junker.
112372 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
112374         * README: Gnulib normally doesn't generate a tarball.
112376 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
112378         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
112379         long int, not int, for nanosecond counts, so that people who are
112380         used to POSIX struct timespec won't be surprised.  Reported by Jim
112381         Meyering.
112383 2005-12-28  Bruno Haible  <bruno@clisp.org>
112385         * build-aux/config.rpath: Update from GNU gettext.
112387 2005-12-16  Jim Meyering  <jim@meyering.net>
112389         * modules/fprintftime: New module.
112390         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
112392 2005-12-16  Jim Meyering  <jim@meyering.net>
112394         * m4/fprintftime.m4: New file.
112396 2005-12-16  Jim Meyering  <jim@meyering.net>
112398         * lib/fprintftime.c, lib/fprintftime.h: New files.
112400 2005-12-15  Simon Josefsson  <jas@extundo.com>
112402         * modules/socklen (configure.ac): Fix M4 macro name, to align with
112403         new m4/socklen.m4.
112405 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112407         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
112408         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
112410 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112412         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
112413         * lib/argp-help.c (fill_in_uparams): Check if the constructed
112414         struct uparams is valid. Fall back to the default values if it is
112415         not.
112417 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112419         * modules/argp (Files): Add argp-pin.c
112420         (Depends-on): dirname
112421         (lib_SOURCES): Add argp-pin.c
112423 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112425         * m4/argp.m4:  Check if program_invocation_name and
112426         program_invocation_short_name are declared and define appropriate
112427         macros if they are not.
112429 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112431         * lib/argp-help.c (__argp_base_name): New function
112432         (__argp_short_program_name): Rewrite using __argp_base_name
112433         * lib/argp-namefrob.h: Define program_invocation_name and
112434         program_invocation_short_name if requested
112435         (__argp_base_name): Add prototype
112436         * lib/argp-parse.c (argp_def): Use gettext wrappers
112437         (argp_default_parser): Use __argp_base_name
112438         * lib/argp-pin.c: New file. Defines program_invocation_name and
112439         program_invocation_short_name on systems that lack them.
112441 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112443         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
112444         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
112445         porting problem reported by Georg Schwarz in
112446         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
112448 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
112450         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
112451         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
112452         porting problem reported by Georg Schwarz in
112453         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
112455 2005-12-05  Bruno Haible  <bruno@clisp.org>
112457         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
112458         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
112459         Reported by Mark Junker <mjscod@gmx.de>.
112461 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
112463         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
112464         Use implementation from Albert Chin, with some
112465         comments/corrections by Stepan Kasal and myself.
112467 2005-12-02  Bruno Haible  <bruno@clisp.org>
112469         * gnulib-tool (func_import): Accept GPLed build tool modules when
112470         --lgpl is given.
112471         * modules/csharpcomp-script: New file.
112472         * modules/csharpcomp: Depend on it.
112473         * modules/javacomp-script: New file.
112474         * modules/javacomp: Depend on it.
112475         Suggested by Simon Josefsson.
112477 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
112479         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
112480         statement, to work around an HP-UX 10.20 compiler bug reported by
112481         Peter O'Gorman.
112483 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
112485         * modules/savedir (Depends-on): Add openat.
112487 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
112489         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
112490         (uintmax_t) [defined uintmax_t]: Do not declare.
112491         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
112492         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
112493         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
112494         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
112495         sake of portability to weird hosts that C allows (though we don't
112496         know of any practical examples).
112498         * lib/savedir.h (fdsavedir): New decl.
112499         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
112500         contains most of the former guts of savedir.
112501         (savedir): Use savedirstream.
112502         Include "openat.h".
112504 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
112506         * modules/obstack (Files): Add m4/ulonglong.m4.
112507         Problem reported by Davide Angelocola.
112509 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
112511         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
112512         coreutils no longer futzes with rounding modes.
112514 2005-11-14  Jim Meyering  <jim@meyering.net>
112516         * lib/mkstemp-safer.c: Include <config.h>, required for possible
112517         replacement of mkstemp.
112519 2005-11-10  Simon Josefsson  <jas@extundo.com>
112521         * lib/readline.c: Remove EOL.
112523 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112525         * modules/gethrxtime (Depends-on): Add gettime.
112527 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112529         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
112530         or gettimeofday; no longer needed.
112532 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
112534         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
112535         time business.
112536         (gethrxtime) [! (HAVE_NANOUPTIME
112537         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
112538         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
112539         our own approximation.
112541 2005-11-08  Eric Blake  <ebb9@byu.net>
112543         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
112545 2005-11-08  Eric Blake  <ebb9@byu.net>
112547         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
112549 2005-11-04  Bruno Haible  <bruno@clisp.org>
112551         * gnulib-tool: Implement --update mode.
112553 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
112555         Fix porting problem reported by Theodoros V. Kalamatianos.
112556         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
112557         Don't assume that futimes failing means we must fail.
112559 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
112561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
112562         variables to suggest the intended function of the PATH_MAX check.
112564 2005-10-30  Kean Johnston  <jkj@sco.com>
112566         Trivial changes to support SCO systems.
112567         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
112568         as PATH_MAX.
112569         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
112570         where __ptr is null when no I/O is pending.
112572 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
112574         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
112575         leave errno alone.  Problem reported by Dmitry V. Levin.
112577 2005-10-28  Simon Josefsson  <jas@extundo.com>
112579         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
112580         Test more.
112582         * tests/test-gc-md2.c, tests/test-md2.c: New files.
112584         * modules/md2, modules/md2-tests: New files.
112586 2005-10-28  Simon Josefsson  <jas@extundo.com>
112588         * m4/inet_ntop.m4: More tests.
112590         * m4/gc-md2.m4, md2.m4: New file.
112592 2005-10-28  Simon Josefsson  <jas@extundo.com>
112594         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
112595         "restrict" keywords, as per POSIX.  Protect the function
112596         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
112597         Don't use K&R prototypes.  Check the sprintf return values.
112598         Re-define EAFNOSUPPORT if not present.  Indent.
112600         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
112601         suggested by Bruno Haible <bruno@clisp.org>.
112603         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
112605         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
112607         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
112608         libgcrypt).
112610         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
112612         * lib/md2.h, lib/md2.c: New files.
112614 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
112616         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
112617         errno alone.  Problem reported by Frederic Jolliton.
112619 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
112621         * modules/verify (License): Change from GPL to LGPL.  This is a
112622         tiny module and there are apparently near-equivalents that are
112623         under the BSD license.
112625 2005-10-24  Simon Josefsson  <jas@extundo.com>
112627         * modules/sha1: Relicense to LGPL.
112629 2005-10-24  Simon Josefsson  <jas@extundo.com>
112631         * lib/md4.h: Shrink buffer size, now that we changed the type.
112633 2005-10-23  Simon Josefsson  <jas@extundo.com>
112635         * gnulib-tool (func_import): Fix --tests-base.
112637 2005-10-22  Simon Josefsson  <jas@extundo.com>
112639         * modules/arcfour (Depends-on): Need stdint.
112641 2005-10-22  Simon Josefsson  <jas@extundo.com>
112643         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
112644         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
112646 2005-10-22  Simon Josefsson  <jas@extundo.com>
112648         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
112649         suggested by Bruno Haible <bruno@clisp.org>.
112651 2005-10-22  Simon Josefsson  <jas@extundo.com>
112653         * lib/crc.h: Include stddef.h, for size_t.
112655 2005-10-22  Simon Josefsson  <jas@extundo.com>
112657         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
112658         arcfour_context struct (simplify test vector testing in GNU
112659         Shishi).
112661 2005-10-21  Simon Josefsson  <jas@extundo.com>
112663         * modules/des, modules/des-tests: New files.
112665         * modules/gc-des, modules/gc-des-tests: New files.
112667         * tests/test-des.c, tests/test-gc-des.c: New file.
112669 2005-10-21  Simon Josefsson  <jas@extundo.com>
112671         * modules/arctwo, modules/arctwo-tests: New files.
112673         * tests/test-arctwo.c: New file.
112675         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
112677         * tests/test-gc-arctwo.c: New file.
112679 2005-10-21  Simon Josefsson  <jas@extundo.com>
112681         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
112682         Bruno Haible <bruno@clisp.org>.
112684         * m4/gc-des.m4: New file.
112686 2005-10-21  Simon Josefsson  <jas@extundo.com>
112688         * m4/arctwo.m4: New file.
112690         * m4/gc-arctwo.m4: New file.
112692 2005-10-21  Simon Josefsson  <jas@extundo.com>
112694         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
112695         block.
112697 2005-10-21  Simon Josefsson  <jas@extundo.com>
112699         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
112700         <bruno@clisp.org>.
112702         * lib/hmac-sha1.c (hmac_sha1): Likewise.
112704         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
112705         Bruno Haible <bruno@clisp.org>.
112707         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
112708         <bruno@clisp.org>.
112710 2005-10-21  Simon Josefsson  <jas@extundo.com>
112712         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
112714 2005-10-21  Simon Josefsson  <jas@extundo.com>
112716         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
112718 2005-10-21  Simon Josefsson  <jas@extundo.com>
112720         * lib/des.h, lib/des.c: New files.
112722         * lib/gc-gnulib.c: Support DES.c
112724 2005-10-21  Simon Josefsson  <jas@extundo.com>
112726         * lib/arctwo.h, lib/arctwo.c: New files.
112728         * lib/gc-gnulib.c: Support ARCTWO.
112730 2005-10-21  Simon Josefsson  <jas@extundo.com>
112732         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
112733         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112735 2005-10-21  Simon Josefsson  <jas@extundo.com>
112737         * gnulib-tool (func_import, func_create_testdir): Define automake
112738         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
112739         Makefile.am snippet),
112740         suggested by Bruno Haible <bruno@clisp.org>.
112742         * modules/gc (Makefile.am): Use it.
112744 2005-10-21  Bruno Haible  <bruno@clisp.org>
112746         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
112747         patch.
112749 2005-10-19  Simon Josefsson  <jas@extundo.com>
112751         * tests/test-gc-rijndael.c: New file.
112753         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
112755 2005-10-19  Simon Josefsson  <jas@extundo.com>
112757         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
112758         interface too.
112760 2005-10-19  Simon Josefsson  <jas@extundo.com>
112762         * tests/test-gc-arcfour.c: New file.
112764         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
112766 2005-10-19  Simon Josefsson  <jas@extundo.com>
112768         * modules/gc-md4, modules/gc-md4-tests: New file.
112770         * tests/test-gc-md4.c: New file.
112772 2005-10-19  Simon Josefsson  <jas@extundo.com>
112774         * m4/gc-md4.m4: New file.
112776 2005-10-19  Simon Josefsson  <jas@extundo.com>
112778         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
112779         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
112780         <kasal@ucw.cz>.
112782 2005-10-19  Simon Josefsson  <jas@extundo.com>
112784         * m4/gc-arcfour.m4: New file.
112786         * m4/gc-rijndael.m4: New file.
112788 2005-10-19  Simon Josefsson  <jas@extundo.com>
112790         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
112792 2005-10-19  Simon Josefsson  <jas@extundo.com>
112794         * lib/gc-gnulib.c: Support ARCFOUR.
112796 2005-10-19  Simon Josefsson  <jas@extundo.com>
112798         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
112799         support.
112801         * lib/gc.h: Add ECB enum type.
112803         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
112805 2005-10-18  Simon Josefsson  <jas@extundo.com>
112807         * tests/test-md5.c: New file.
112809         * modules/md5-tests: New file.
112811 2005-10-18  Simon Josefsson  <jas@extundo.com>
112813         * tests/test-md4.c: New file.
112815         * modules/md4, modules/md4-tests: New files.
112817 2005-10-18  Simon Josefsson  <jas@extundo.com>
112819         * m4/md4.m4: New file.
112821 2005-10-18  Simon Josefsson  <jas@extundo.com>
112823         * lib/md4.h, lib/md4.c: New files, based on md5.?.
112825 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
112827         * gnulib-tool (func_create_testdir): Omit the second check whether
112828         BUILT_SOURCES in nonempty.
112830 2005-10-17  Simon Josefsson  <jas@extundo.com>
112832         * tests/test-rijndael.c: New file.
112834 2005-10-17  Simon Josefsson  <jas@extundo.com>
112836         * modules/sha1: Depend on stdint instead of md5.
112838         * modules/md5: Depend on stdint, remove uint32_t.
112840 2005-10-17  Simon Josefsson  <jas@extundo.com>
112842         * modules/gc-sha1-tests: New file.
112844         * tests/test-gc-sha1.c: New file.
112846 2005-10-17  Simon Josefsson  <jas@extundo.com>
112848         * m4/md5.m4: Remove call to uint32_t.m4.
112850 2005-10-17  Simon Josefsson  <jas@extundo.com>
112852         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
112854         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
112855         md5.h.
112857         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
112859         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
112861 2005-10-17  Simon Josefsson  <jas@extundo.com>
112863         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
112865 2005-10-17  Simon Josefsson  <jas@extundo.com>
112867         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
112869 2005-10-17  Simon Josefsson  <jas@extundo.com>
112871         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
112873         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
112875 2005-10-17  Bruno Haible  <bruno@clisp.org>
112877         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
112878         that it can also be used in a test.
112880 2005-10-16  Bruno Haible  <bruno@clisp.org>
112882         * gnulib-tool (func_emit_tests_Makefile_am): Also define
112883         TESTS_ENVIRONMENT, so that individual tests can augment it.
112885         * gnulib-tool (func_create_testdir): Use an intermediate target for
112886         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
112887         macros, like $(ALLOCA_H), which cannot be passed through the command
112888         line.
112890 2005-10-15  Simon Josefsson  <jas@extundo.com>
112892         * modules/rijndael-tests: New file.
112894         * modules/rijndael: New file.
112896 2005-10-15  Simon Josefsson  <jas@extundo.com>
112898         * m4/rijndael.m4: New file.
112900 2005-10-15  Simon Josefsson  <jas@extundo.com>
112902         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
112904         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
112906 2005-10-14  Simon Josefsson  <jas@extundo.com>
112908         * tests/test-arcfour.c: New file.
112910         * modules/arcfour, modules/arcfour-tests: New files.
112912 2005-10-14  Simon Josefsson  <jas@extundo.com>
112914         * m4/arcfour.m4: New file.
112916 2005-10-14  Simon Josefsson  <jas@extundo.com>
112918         * lib/arcfour.h, lib/arcfour.c: New files.
112920 2005-10-14  Roland McGrath  <roland@redhat.com>
112922         Import from libc.  [BZ #1331]
112923         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
112924         macro argument.
112925         Reported by Matej Vela <vela@debian.org>.
112927 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112929         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
112930         include <wchar.h>; no longer needed.
112932 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112934         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
112936 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
112937         and  Ulrich Drepper  <drepper@redhat.com>
112939         Import from libc.
112940         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
112941         instead of inline stream orientation test and two separate
112942         function calls.  Pay no attention to USE_IN_LIBIO.
112944 2005-10-13  Simon Josefsson  <jas@extundo.com>
112946         * modules/gc-hmac-md5-tests: New file.
112948         * tests/test-gc-hmac-sha1.c: New file.
112950         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
112952         * modules/gc-hmac-md5-tests: New file.
112954         * tests/test-gc-md5.c: New file.
112956         * modules/gc-md5-tests: New file.
112958 2005-10-13  Simon Josefsson  <jas@extundo.com>
112960         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
112961         Move memory allocation outside of loop.
112963 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
112965         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
112966         intermediate directory is in a read-only file system.  Problem
112967         reported by Eric Blake.
112969 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
112971         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
112973 2005-10-12  Simon Josefsson  <jas@extundo.com>
112975         * tests/test-hmac-sha1.c: New file.
112977         * modules/hmac-sha1-tests: New file.
112979         * modules/hmac-sha1: New file.
112981 2005-10-12  Simon Josefsson  <jas@extundo.com>
112983         * modules/gc-sha1: New file.
112985 2005-10-12  Simon Josefsson  <jas@extundo.com>
112987         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
112989         * tests/test-gc-pbkdf2-sha1.c: New file.
112991 2005-10-12  Simon Josefsson  <jas@extundo.com>
112993         * modules/gc-md5, modules/gc-hmac-md5: New files.
112995         * modules/gc (Files): Remove md5, memxor and hmac files.
112997 2005-10-12  Simon Josefsson  <jas@extundo.com>
112999         * m4/gc-pbkdf2-sha1.m4: New file.
113001         * m4/gc-hmac-sha1.m4: New file.
113003         * m4/gc-sha1: New file.
113005         * m4/hmac-sha1.m4: New file.
113007 2005-10-12  Simon Josefsson  <jas@extundo.com>
113009         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
113011         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
113013 2005-10-12  Simon Josefsson  <jas@extundo.com>
113015         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
113016         suggested by Bruno Haible <bruno@clisp.org>.
113018 2005-10-12  Simon Josefsson  <jas@extundo.com>
113020         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
113022 2005-10-12  Simon Josefsson  <jas@extundo.com>
113024         * lib/gc-pbkdf2-sha1.c: New file.
113026         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
113028 2005-10-12  Simon Josefsson  <jas@extundo.com>
113030         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
113032         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
113034 2005-10-12  Simon Josefsson  <jas@extundo.com>
113036         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
113037         GC_USE_HMAC_MD5, respectively.
113039         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
113040         (gc_md5): Fix typo.
113042         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
113044         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
113046         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
113048 2005-10-12  Bruno Haible  <bruno@clisp.org>
113050         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
113051         Reported by Stepan Kasal <kasal@ucw.cz>.
113053 2005-10-11  Simon Josefsson  <jas@extundo.com>
113055         * tests/test-crc.c: New file.
113057         * modules/crc, modules/crc-tests: New files.
113059 2005-10-11  Simon Josefsson  <jas@extundo.com>
113061         * m4/crc.m4: New file.
113063 2005-10-11  Simon Josefsson  <jas@extundo.com>
113065         * lib/gc.h: Add gc_hash and gc_hash_buffer.
113067         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
113069         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
113071 2005-10-11  Simon Josefsson  <jas@extundo.com>
113073         * lib/crc.h, lib/crc.c: New files.
113075         * lib/gc.h (gc_hash_buffer): Add doc.
113077 2005-10-11  Bruno Haible  <bruno@clisp.org>
113079         * modules/c-strcasestr: New file.
113080         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
113082 2005-10-11  Bruno Haible  <bruno@clisp.org>
113084         * modules/c-strcase: New file.
113085         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
113087 2005-10-11  Bruno Haible  <bruno@clisp.org>
113089         * lib/strcasecmp.c: Include limits.h.
113090         (strcasecmp): Avoid integer overflow on exotic platforms.
113091         * lib/strncasecmp.c: Include limits.h.
113092         (strncasecmp): Avoid integer overflow on exotic platforms.
113093         Reported by Paul Eggert.
113095 2005-10-11  Bruno Haible  <bruno@clisp.org>
113097         * lib/c-strcasestr.h: New file, from GNU gettext.
113098         * lib/c-strcasestr.c: New file, from GNU gettext.
113100 2005-10-11  Bruno Haible  <bruno@clisp.org>
113102         * lib/c-strcase.h: New file, from GNU gettext.
113103         * lib/c-strcasecmp.c: New file, from GNU gettext.
113104         * lib/c-strncasecmp.c: New file, from GNU gettext.
113106 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113108         * modules/mempcpy (License): GPL -> LGPL.
113109         * modules/strchrnul (License): Likewise.
113110         * modules/sysexits (License): Likewise.
113112 2005-10-08  Simon Josefsson  <jas@extundo.com>
113114         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
113116 2005-10-07  Simon Josefsson  <jas@extundo.com>
113118         * m4/memxor.m4: Remove gl_C_RESTRICT call.
113120 2005-10-06  Simon Josefsson  <jas@extundo.com>
113122         * tests/test-hmac-md5.c: New file.
113124         * modules/hmac-md5-tests: New file.
113126         * modules/hmac-md5: New file.
113128 2005-10-06  Simon Josefsson  <jas@extundo.com>
113130         * m4/hmac-md5.m4: New file.
113132         * m4/memxor.m4: Require gl_C_RESTRICT.
113134 2005-10-06  Simon Josefsson  <jas@extundo.com>
113136         * lib/memxor.c (memxor): Avoid casts and warnings.
113138 2005-10-06  Simon Josefsson  <jas@extundo.com>
113140         * lib/hmac-md5.c: New file.
113142         * lib/hmac.h: New file.
113144 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
113147         promotes to int, not unsigned int, to catch the AIX 5.3
113148         compiler bug.
113150 2005-10-05  Simon Josefsson  <jas@extundo.com>
113152         * modules/memxor: New file.
113154         * modules/iconv (Files): Move config.rpath to havelib, it is used
113155         there.
113157         * modules/havelib (Files): Add config.rpath.
113159 2005-10-05  Simon Josefsson  <jas@extundo.com>
113161         * m4/memxor.m4: New file.
113163 2005-10-05  Simon Josefsson  <jas@extundo.com>
113165         * lib/memxor.c (memxor): Fix compiler error.
113167         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
113168         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
113170         * lib/memxor.h, lib/memxor.c: New files.
113172         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
113173         we assume all systems have it, suggested by Jim Meyering
113174         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
113175         any systems lack sys/socket.h; mingw32 is known to lack it, but we
113176         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
113177         same reasons.
113179 2005-10-05  Simon Josefsson  <jas@extundo.com>
113181         * config/srclist.txt: Add glibc bug 1423 for md5.h.
113183 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
113186         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
113187         needed, since the source code now assumes these .h files.
113189 2005-10-05  Derek Price  <derek@ximbiot.com>
113191         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
113193 2005-10-05  Bruno Haible  <bruno@clisp.org>
113195         * modules/stdint (License): Change to LGPL.
113197 2005-10-04  Simon Josefsson  <jas@extundo.com>
113199         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
113200         D. Baushke" <mdb@gnu.org>.
113202 2005-10-04  Bruno Haible  <bruno@clisp.org>
113204         * lib/verify.h (verify_true): Provide alternative definition for C++.
113206 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
113208         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
113209         (SSIZE_MAX): New macro, if not already defined.
113210         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
113211         than 2 GiB.
113213 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113215         Sync from coreutils.
113216         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
113217         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
113218         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
113219         ULLONG_MAX doesn't work with 2.7.2.1.
113221 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113223         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
113224         From Ben Pfaff.
113226         * modules/exclude (Depends-on): Depend on verify.
113227         * modules/strtoimax (Depends-on): Likewise.
113228         * modules/utimecmp (Depends-on): Likewise.
113230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
113232         * lib/exclude.c: Include verify.h.
113233         (verify): Remove.  All callers changed to use verify.h's version.
113234         * lib/strtoimax.c: Likewise.
113235         * lib/utimecmp.c: Likewis.e
113237         Sync from coreutils.
113238         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
113239         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
113240         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
113241         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
113242         bother returning ENOSYS if settimeofday or stime fails; just let
113243         them return whatever errno they want to return.
113244         * lib/utimens.c: Include unistd.h, for dup2.
113245         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
113246         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
113248 2005-10-02  Jim Meyering  <jim@meyering.net>
113250         Sync from coreutils.
113251         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
113252         from glibc-2.2.5 that fails for read-only files.
113254 2005-10-02  Jim Meyering  <jim@meyering.net>
113256         Sync from coreutils.
113257         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
113258         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
113259         `#if HAVE_CONFIG_H'.
113260         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
113261         Remove AT_FDCWD test.
113262         Do not consume the fd unless successful.
113263         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
113264         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
113265         block, so that we don't even try to compile it if settimeofday is
113266         available.  This works around a compilation failure on OSF1 V5.1,
113267         due to stime requiring a `long int*' while tv_sec is `int'.
113269 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
113271         Sync from coreutils.
113272         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
113273         against `yes', rather than just testing for nonempty.
113275 2005-10-01  Simon Josefsson  <jas@extundo.com>
113277         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
113278         and Darwin.
113280         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
113281         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
113282         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
113283         freeaddrinfo and gai_strerror are declared by the POSIX headers.
113284         Check if struct addrinfo is declared.
113286 2005-10-01  Simon Josefsson  <jas@extundo.com>
113288         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
113289         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
113290         AI_* and EAI_* definitions.  Protect function declarations.
113292 2005-10-01  Jim Meyering  <jim@meyering.net>
113294         Sync from coreutils.
113296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
113297         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
113298         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
113299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
113300         in the inet and nsl libraries.  Required on Solaris 5.7.
113302 2005-10-01  Jim Meyering  <jim@meyering.net>
113304         Sync from coreutils.
113305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
113306         in the inet and nsl libraries.  Required on Solaris 5.7.
113308 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
113310         * lib/getdelim.c (getdelim): Remove unused variables.
113312 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113314         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
113315         so that the code works even with ancient cpp.  Portability problem
113316         with GCC 2.7.2.1 reported by Thomas M.Ott.
113318 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113320         * modules/regex (Depends-on): Add strcase.
113322         * modules/gethostname (Licence): Change from GPL to LGPL, since
113323         gethostname.c is a trivial implementation of a standard library
113324         function.
113325         * modules/poll (License): Change from GPL to LGPL, since it's
113326         derived from LGPL code.
113328 2005-09-27  Jim Meyering  <jim@meyering.net>
113330         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
113331         HAVE_CONFIG_H.
113333         * lib/intprops.h (signed_type_or_expr__): Define.
113334         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
113335         for unsigned types.
113337 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113339         * lib/verify.h (verify_expr): Remove, replacing with:
113340         (verify_true): New macro that returns true instead of void.
113341         (verify_type__): Remove.
113342         (verify): Use verify_true rather than verify_type__.
113344 2005-09-26  Bruno Haible  <bruno@clisp.org>
113346         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
113347         is necessary.
113348         (lib_SOURCES): Remove mbchar.c.
113349         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
113350         (Files): Add m4/mbrtowc.m4.
113351         * modules/mbiter: Likewise.
113352         * modules/mbuiter: Likewise.
113354 2005-09-26  Bruno Haible  <bruno@clisp.org>
113356         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
113357         compile mbchar.c if they are not both present.
113358         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
113359         * m4/mbiter.m4 (gl_MBITER): Likewise.
113360         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
113361         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
113362         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
113364 2005-09-25  Jim Meyering  <jim@meyering.net>
113366         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
113367         also uses socklen_t.
113369 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
113371         * lib/utimens.c (ENOSYS): Define if not already defined.
113372         (futimens): Support having a null PATH if the file descriptor
113373         is nonnegative.
113375         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
113376         Remove.
113377         (__attribute): Define to empty unless GCC 3.1 or later.
113378         This works around a core dump on OpenBSD 3.4, which has GCC
113379         2.95.3, which dumps core when given __attribute__(()).  It also
113380         simplifies other tests, since we really don't want to bother with
113381         worrying about which ancient version of GCC supported what.
113382         Original problem reported by Yoann Vandoorselaere, with part of
113383         the fix suggested by Derek Price.
113385 2005-09-24  Jim Meyering  <jim@meyering.net>
113387         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
113388         so we can once again use a positive bitfield width of 1 -- now we
113389         don't have to explain why we were using a bitfield width of 2.
113391 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
113393         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
113394         and similarly for the other external symbols.  Problem reported
113395         by James Gallager.
113397         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
113398         bug reported by Jim Meyering.
113400         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
113401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
113402         not needed, since socklen is a prerequisite module.
113404 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
113406         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
113407         Problem reported by Eric Blake.
113408         (getaddrinfo): Initialize se so that it's not garbage.
113409         Redo internal storage allocation so that it doesn't make unportable
113410         assumptions about alignment.
113411         Fix a memory leak.
113413         * lib/utimens.c (futimens): Use futimesat if available.
113414         Prefer it to futimes since it doesn't have the futimes bug.
113416         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
113417         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
113418         Instead, declare a function that returns a pointer to an array,
113419         and use verify_type__ to declare the size of the array.
113420         Problem and germ of a solution reported by Bruno Haible.
113421         (verify_type__): Use 2, not 1, for bitfield size, to avoid
113422         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
113424 2005-09-23  Jim Meyering  <jim@meyering.net>
113426         Sync from coreutils.
113427         Correct build failure (socklen_t not defined) on at least
113428         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
113429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
113431 2005-09-23  Jim Meyering  <jim@meyering.net>
113433         * modules/getaddrinfo (Depends-on): Add socklen.
113435 2005-09-23  Bruno Haible  <bruno@clisp.org>
113437         * tests/test-verify.c: New file.
113439 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113441         Sync from coreutils.
113443         * modules/argmatch (Depends-on): Add verify.
113444         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
113445         unistd-safer.
113446         * modules/save-cwd (Depends-on): Likewise.
113448         * modules/openat (Files): Add lib/openat-die.c.
113449         (Depends-on): Remove error, exitfail.
113450         Add dirname.
113452         * modules/verify: New file.
113453         * MODULES.html.sh (Diagnostics <assert.h>): New section,
113454         with "verify" module.
113456 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113458         Sync from coreutils.
113460         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
113461         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
113462         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
113463         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
113464         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
113465         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
113466         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
113467         Don't bother checking for string.h, stdlib.h, unistd.h.
113468         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
113469         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
113470         module's job.
113471         * m4/jm-macros.m4 (gl_MACROS): Likewise.
113472         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
113474         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
113475         (gl_GETDATE): Use it.
113477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
113479 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113481         Sync from coreutils.
113483         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
113484         stat-time.h.
113485         * lib/argmatch.h: Include verify.h
113486         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
113487         (ARGMATCH_ASSERT): Remove; unused.
113488         * lib/canonicalize.c: Assume STDC_HEADERS.
113489         * lib/exclude.c: Include "strcase.h".
113490         * lib/regex_internal.h [!defined _LIBC]: Likewise.
113491         * lib/getusershell.c: Include stdio--.h rather than stdio.h
113492         and stdio-safer.h.
113493         (getusershell): Call fopen, not fopen_safer.
113494         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
113495         Do not include unistd-safer.h.
113496         (save_cwd): Don't call fd_safer; no longer needed
113497         now that we include fcntl--.h.
113499         * lib/getdate.y (relative_time): New type.
113500         (RELATIVE_TIME_0): New constant.
113501         (parser_control): Use relative_time instead of doing it ourselves.
113502         (%union): Add new relative_time rel member.
113503         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
113504         Now typeless.
113505         (relunit, relunit_snumber): Now of type rel.
113506         (zone, rel, relunit, get_date): Adjust to above changes.
113508         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
113509         Do not include unistd-safer.h.
113510         (getloadavg): Don't call fd_safer; no longer needed
113511         now that we include fcntl--.h.
113513         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
113514         (make_dir_parents): Treat ENOSYS like EEXIST.
113516         Improve quality of diagnostics on restore_cwd failure.
113517         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
113518         (make_dir_parents): Last arg is now int * (for errno), not bool *.
113519         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
113520         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
113521         each time through the loop.  Do not diagnose restore_cwd failure;
113522         that is the caller's job (and perhaps the caller does not care).
113524         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
113525         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
113526         If the file already exists but is not a directory, don't bother
113527         to try to make its parents.
113528         Close potential file descriptor leak if we can't chdir("/") (!).
113529         Don't always return true if chdir($PWD) fails; return true only
113530         if the requested action was done successfully (except for the
113531         chdir($PWD)).
113532         Don't log final directory unless we actually made it.
113533         Refactor to avoid duplicate code to fix up permissions.
113534         Don't attempt to fix up parent permissions if chdir($PWD) fails.
113536         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
113537         to make it a bit faster and (I hope) clearer.
113538         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
113539         Fix bug in formats like %2N.
113541         * lib/verify.h: New file.
113543 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
113545         Sync from coreutils.
113546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
113548 2005-09-22  Jim Meyering  <jim@meyering.net>
113550         Sync from coreutils.
113552         * m4/lstat.m4 (gl_FUNC_LSTAT):
113553         Use AC_LIBSOURCES to require lstat.c and lstat.h.
113554         Remove obsolete comment.
113555         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
113556         * m4/xstrtod.m4: Likewise.
113558         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
113560 2005-09-22  Jim Meyering  <jim@meyering.net>
113562         Sync from coreutils.
113564         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
113566         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
113567         the .tm_year member, since otherwise gcc-4.0 would now warn about
113568         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
113570         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
113571         order to avoid an unsuppressible warning from gcc on 64-bit systems.
113573         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
113574         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
113575         when run in a time zone for which daylight savings time is in effect
113576         for the starting date.
113578         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
113579         stop us from restricting permissions of just-created absolute-named
113580         directories.
113581         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
113582         to restore initial working directory.
113583         * lib/mkdir-p.c (make_dir_parents): New parameter:
113584         different_working_dir, to tell caller if/when we change the working
113585         directory and are unable to return to the initial one.
113586         * lib/mkdir-p.h (make_dir_parents): Update prototype.
113587         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
113588         `return false'.  This fixes a bug introduced on 2004-07-30.
113590         * lib/openat.c (fdopendir): Be sure to close the supplied
113591         file descriptor before returning.  This makes our replacement
113592         implementation a little closer to Solaris's, where fdopendir
113593         ties the file descriptor to the returned DIR* pointer.
113594         * lib/openat.c (unlinkat): New function.
113595         * lib/openat.h (unlinkat): Add prototype.
113596         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
113597         (openat_restore_fail): Rename from openat_restore_die.
113598         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
113600         Provide an alternative to exiting immediately upon save_cwd or
113601         restore_cwd failure.  Now, an application can arrange e.g.,
113602         to perform a longjump in that case.
113603         * lib/openat.c: Include dirname.h.
113604         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
113605         (rpl_openat, fdopendir, fstatat): Call openat_save_die
113606         and openat_restore_die rather than calling error directly.
113607         Don't include "error.h" or "exitfail.h"; they're no longer needed.
113609         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
113610         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
113611         define.
113613         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
113614         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
113615                             int utc, int nanoseconds);
113616         Background:
113617         date should not have to allocate a megabyte of virtual memory to
113618         handle a format argument like +%1048575T.  When implemented with
113619         strftime, it must allocate such a buffer, use strftime to fill it
113620         in, print it, then free it.
113621         With fprintftime, it simply prints everything and exits.
113622         With no need for memory allocation, that's one fewer way to fail.
113623         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
113624         optional field width, not before, so we accept %9:z, not %:9z.
113625         (my_strftime): Be sure to use L_('x') for literals.
113627         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
113628         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
113629         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
113630         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
113631         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
113632         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
113633         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
113634         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
113635         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
113636         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
113637         * lib/xgethostname.c, lib/xreadlink.c:
113638         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
113640         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
113641         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
113642         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
113643         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
113644         and don't include <sys/file.h>).
113646 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
113648         Sync from coreutils.
113650         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
113651         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
113652         [!LDAV_DONE]: Avoid unused variable warning.
113654 2005-09-21  Bruno Haible  <bruno@clisp.org>
113656         * lib/unicodeio.h (unicode_to_mb): New declaration.
113658 2005-09-20  Derek Price  <derek@ximbiot.com>
113660         * lib/getaddrinfo.c: Don't include <netdb.h> included from
113661         getaddrinfo.h.
113663 2005-09-20  Bruno Haible  <bruno@clisp.org>
113665         * gnulib-tool: Remove trailing slashes from the values specified for
113666         --source-base, --m4-base, --tests-base, --aux-dir.
113667         Suggested by Simon Josefsson <jas@extundo.com>.
113669 2005-09-20  Bruno Haible  <bruno@clisp.org>
113671         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
113672         func_modules_to_filelist, func_import, func_create_testdir): Make all
113673         sorting results locale-independent, so that gnulib-cache.m4 doesn't
113674         change when gnulib-tool is invoked in a different locale.
113676 2005-09-19  Simon Josefsson  <jas@extundo.com>
113678         * m4/socklen.m4: Fix typo.
113680 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113682         Use a consistent style for including <config.h>.
113683         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
113684         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
113685         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
113686         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
113687         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
113688         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
113689         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
113690         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
113691         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
113692         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
113693         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
113694         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
113695         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
113696         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
113697         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
113698         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
113699         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
113700         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
113701         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
113702         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
113703         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
113704         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
113705         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
113706         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
113707         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
113708         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
113709         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
113710         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
113711         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
113712         lib/xstrtoumax.c, lib/yesno.c:
113713         Standardize inclusion of config.h.
113714         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
113715         lib/inttostr.h:  Removed inclusion of config.h from header files.
113716         * lib/inttostr.c:  Adjusted in-tree users.
113717         * lib/timespec.h: Remove superfluous warning to include config.h.
113718         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
113719         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
113720         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
113721         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
113722         config.h with HAVE_CONFIG_H.
113724 2005-09-19  Jim Meyering  <jim@meyering.net>
113726         * modules/pathmax (License): Change to LGPL.
113728 2005-09-19  Derek Price  <derek@ximbiot.com>
113730         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
113732 2005-09-19  Bruno Haible  <bruno@clisp.org>
113734         * gnulib-tool (import): Provide default for --tests-base.
113736 2005-09-19  Bruno Haible  <bruno@clisp.org>
113738         * doc/quote.texi: New file, extracted from gnulib.texi.
113739         * doc/ctime.texi: New file, extracted from gnulib.texi.
113740         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
113741         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
113742         * doc/gnulib.texi: Include them.
113744 2005-09-18  Bruno Haible  <bruno@clisp.org>
113746         Portability fix.
113747         * gnulib-tool (func_readlink): New function.
113748         (func_ln_if_changed): Use it.
113750 2005-09-18  Bruno Haible  <bruno@clisp.org>
113752         * gnulib-tool: Support --with-tests also with --import.
113753         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
113754         (func_import): Use variables $testsbase and $inctests. Emit a
113755         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
113756         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
113757         SUBDIRS += $testsdir.
113758         (func_create_testdir): Update.
113760 2005-09-18  Bruno Haible  <bruno@clisp.org>
113762         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
113763         instead of $dry_run.
113764         (func_cp_if_changed, func_mv_if_changed): Remove functions.
113765         (func_ln_if_changed): Don't handle dry-run here.
113766         (func_import): In dry-run mode, detect more precisely which actions
113767         would be performed, and don't use "...ing" verbs.
113769 2005-09-18  Bruno Haible  <bruno@clisp.org>
113771         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
113772         (func_import): Use join on two temporary files instead of three nested
113773         loops, in order to determine which files are new or old.
113775 2005-09-18  Bruno Haible  <bruno@clisp.org>
113777         * gnulib-tool (func_import): Comment out code that spits out the
113778         new files with --dry-run.
113780 2005-09-18  Bruno Haible  <bruno@clisp.org>
113782         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
113784 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
113786         * lib/stat-time.h: New file.
113787         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
113788         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
113789         in a different way.
113790         (timespec_cmp): New function.
113791         * lib/utimecmp.c: Include stat-time.h.
113792         (SYSCALL_RESOLUTION): Depend on whether various struct stat
113793         members exist, not on the obsolescent ST_MTIM_NSEC.
113794         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
113796 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
113798         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
113800 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
113802         * MODULES.html.sh (File system functions): Add stat-time.
113803         * modules/stat-time: New file.
113804         * modules/timespec (Files): Remove m4/st_mtim.m4; this
113805         is now done in a different way, by the stat-time module.
113806         * modules/utimecmp (Depends-on): Add stat-time.
113808 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113810         * m4/st_mtim.m4: Remove.  Superseded by...
113811         * m4/stat-time.m4: New file.
113812         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
113813         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
113815 2005-09-15  Derek Price  <derek@ximbiot.com>
113817         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
113819 2005-09-15  Derek Price  <derek@ximbiot.com>
113821         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
113822         * lib/regex_internal.c: Ditto, using this...
113823         (__GNUC_PREREQ): ...new macro.
113824         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
113825         using...
113826         (__GNUC_PREREQ): ...this new macro.
113828         * lib/strstr.h: Include string.h. Define strstr as a macro here.
113830 2005-09-15  Derek Price  <derek@ximbiot.com>
113831             Paul Eggert  <eggert@cs.ucla.edu>
113833         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
113834         changes, consolidating in...
113835         * lib/regex_internal.h: ...this file.
113837 2005-09-13  Jim Meyering  <jim@meyering.net>
113839         * lib/canon-host.c: Filter through gnu indent and reword comments
113840         slightly.
113841         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
113843 2005-09-13  Derek Price  <derek@ximbiot.com>
113845         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
113846         failure.
113847         Reported by Jim Meyering  <jim@meyering.net>.
113849 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113851         * lib/base64.c: Typo.
113852         (base64_encode): Put b64str in initialized data section.
113854 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
113856         Merge glibc and coreutils changes into gnulib, plus a few
113857         extra fixes.
113858         * lib/md5.c: Use #error rather than a string.
113859         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
113860         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
113861         (__attribute__): Define to empty for non recent-GCC.
113862         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
113863         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
113864         Renamed from their non-__ counterparts, with new macros replacing
113865         them if not _LIBC.  Add __THROW attribute.
113866         (rol): Remove.
113867         (struct md5_ctx): Align buffer if using GCC.
113868         * lib/sha1.h (struct sha1_ctx): Likewise.
113869         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
113870         The old name was backwards.
113871         (NOTSWAP): Remove; not used.
113872         (rol): New macro, moved here from md5.h.
113873         (sha1_process_block): Remove a FIXME that doesn't make sense.
113875 2005-09-12  Derek Price  <derek@ximbiot.com>
113877         Return usable errors from canon-host.
113878         * lib/canon-host.h: New file.
113879         * lib/canon-host.c (canon_host): Wrap...
113880         (canon_host_r): ...this new function, which now relies exclusively on
113881         getaddrinfo.
113882         (ch_strerror): New function.
113883         (last_cherror): New global.
113884         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
113885         interface.
113886         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
113887         void *.
113888         (freeaddrinfo): Free ai->ai_canonname when set.
113890 2005-09-12  Derek Price  <derek@ximbiot.com>
113892         Make canon-host require getaddrinfo.
113893         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
113894         AC_LIBSOURCE canon-host.h.  Call...
113895         (gl_PREREQ_CANON_HOST): ...this new function, which requires
113896         gl_GETADDRINFO.
113897         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
113899 2005-09-12  Derek Price  <derek@ximbiot.com>
113901         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
113902         LGPL.
113903         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
113905 2005-09-12  Derek Price  <derek@ximbiot.com>
113907         * lib/gai_strerror.c: Include config.h when available.  Include
113908         getaddrinfo.h before other headers to test interface.
113909         Reported by Larry Jones <lawrence.jones@ugs.com>.
113911 2005-09-12  Derek Price  <derek@ximbiot.com>
113912             Paul Eggert  <eggert@cs.ucla.edu>
113914         * modules/glob (Files): Add glob-libc.h.
113916 2005-09-12  Derek Price  <derek@ximbiot.com>
113917             Paul Eggert  <eggert@cs.ucla.edu>
113919         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
113920         glob_.h, glob-libc.h.
113921         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
113923 2005-09-12  Derek Price  <derek@ximbiot.com>
113924             Paul Eggert  <eggert@cs.ucla.edu>
113926         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
113927         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
113928         protecting things that should be done only in gnulib contexts.
113929         * lib/glob_.h: New file, containing only the glob things needed for
113930         gnulib.
113931         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
113932         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
113933         (glob, globfree, glob_pattern_p): Now defined simply in terms of
113934         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
113935         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
113936         and to respect the namespace rules better.
113938 2005-09-08  Simon Josefsson  <jas@extundo.com>
113940         * modules/socklen: New file.
113942 2005-09-08  Simon Josefsson  <jas@extundo.com>
113944         * m4/socklen.m4: New file.
113946 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113948         * modules/utimens (Files): Add m4/utimbuf.m4, since
113949         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
113950         Reported by Sergey Poznyakoff.
113952 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113954         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
113955         definitions, since that's the preferred style in glibc.
113956         Fix a minor spacing issue, and update copyright notice to match
113957         glibc's.
113959 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113961         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
113963 2005-09-06  Simon Josefsson  <jas@extundo.com>
113965         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
113966         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
113968 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113970         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
113971         warning.
113973 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113975         * config/srclist.txt: Add glibc bug 1302.
113977 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
113979         Change bitset word type from unsigned int to unsigned long int,
113980         as this has better performance on typical 64-bit hosts.
113981         Port bitset code to hosts with unusual word sizes.
113982         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
113983         (build_collating_symbol):
113984         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
113985         argument is a bitset.  This is merely a style issue, but it makes
113986         it clearer that an entire array is expected.
113987         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
113988         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
113989         Port to the case where bitset_word is not the same as unsigned int.
113990         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
113991         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
113992         Likewise.
113993         * lib/regexec.c (check_dst_limits_calc_pos_1,
113994         check_subexp_matching_top):
113995         (build_trtable, group_nodes_into_DFAstates):
113996         Likewise.
113997         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
113998         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
113999         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
114000         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
114001         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
114002         * lib/regcomp.c (optimize_subexps, lower_subexp):
114003         Work even if bitset_word has holes in its bitwise representation.
114004         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
114005         * lib/regexec.c (check_dst_limits_calc_pos_1,
114006         check_subexp_matching_top):
114007         Likewise.
114008         * lib/regex_internal.c (re_string_reconstruct):
114009         Don't assume UCHAR_MAX == 255.
114010         * lib/regex_internal.h (bitset_set_all): Likewise.
114011         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
114012         All uses changed.
114013         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
114014         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
114015         All uses changed.
114016         (BITSET_WORD_MAX): New macro.
114017         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
114018         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
114019         (bitset_empty, bitset_copy):
114020         Prefer sizeof (bitset) to multiplying it out ourselves.
114021         (bitset_not_merge): Remove; unused.
114022         (bitset_contain): Return bool, not unsigned int with one bit on.
114023         All callers changed.
114024         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
114025         alignment than re_node_set; do this by defining a new internal
114026         type struct dests_alloc and using it to allocate memory.
114028 2005-09-05  Bruno Haible  <bruno@clisp.org>
114030         * gnulib-tool (func_import): Fix comparison in handling of symbolic
114031         links.
114033 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
114035         * modules/size_max (Makefile.am): Add size_max.h
114037 2005-09-04  Derek Price  <derek@ximbiot.com>
114039         * gnulib-tool (func_import): Fix reversed $symbolic logic.
114041 2005-09-03  Simon Josefsson  <jas@extundo.com>
114043         * gnulib-tool: Fix typo.
114045 2005-09-03  Simon Josefsson  <jas@extundo.com>
114047         * config/srclist.txt: Add glibc bug 1293.
114049 2005-09-03  Derek Price  <derek@ximbiot.com>
114051         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
114052         From Larry Jones <lawrence.jones@ugs.com>.
114054 2005-09-02  Simon Josefsson  <jas@extundo.com>
114056         * modules/socklen: New file.
114058 2005-09-02  Simon Josefsson  <jas@extundo.com>
114060         * modules/havelib: New module.
114062         * modules/gettext, modules/iconv, modules/lock, modules/readline:
114063         Use havelib.
114065 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
114067         Check for arithmetic overflow when calculating sizes, to prevent
114068         some buffer-overflow issues.  These patches are conservative, in the
114069         sense that when I couldn't determine whether an overflow was possible,
114070         I inserted a run-time check.
114071         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
114072         macros.
114073         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
114074         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
114075         (re_xnrealloc, re_x2nrealloc): New inline functions.
114076         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
114077         parse_bracket_exp):
114078         (build_equiv_class, build_charclass): Check for arithmetic overflow
114079         in size expression calculations.
114080         * lib/regex_internal.c (re_string_realloc_buffers):
114081         (build_wcs_upper_buffer, re_node_set_add_intersect):
114082         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
114083         (re_dfa_add_node, register_state): Likewise.
114084         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
114085         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
114086         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
114087         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
114089 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
114091         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
114092         m4/ulonglong.m4.  Problem reported by Martin Lambers.
114094 2005-09-02  Bruno Haible  <bruno@clisp.org>
114096         Support for lib vs. lib64 distinction on biarch platforms.
114097         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
114098         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
114099         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
114101 2005-09-02  Bruno Haible  <bruno@clisp.org>
114103         * gnulib-tool (import): In the other first-use case, provide defaults
114104         as well.
114106 2005-09-02  Bruno Haible  <bruno@clisp.org>
114108         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
114109         patches not yet found in the latest gettext release.
114111 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114113         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
114114         to avoid a collision with bits/local_lim.h in glibc.
114115         All uses changed.  Problem reported by Dmitry V. Levin in
114116         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
114118         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
114119         bugs in int versus size_t comparisons.
114120         (re_string_context_at): Fix bug where the code assumed that
114121         Idx is signed.
114123         Use bool where appropriate.
114124         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
114125         All callers changed.
114126         (calc_eclosure_iter): Likewise, for ROOT arg.
114127         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
114128         (build_charclass_op): Likewise, for NON_MATCH arg.
114129         * lib/regex_internal.c (re_string_allocate, re_string_construct):
114130         (re_string_construct_common): Likewise, for ICASE arg.
114131         * lib/regexec.c (re_search_2_stub, re_search_stub):
114132         Likewise, for RET_LEN arg.
114133         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
114134         (set_regs): Likewise, for FL_BACKTRACK arg.
114135         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
114136         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
114137         (calc_eclosure_iter, parse_bracket_exp):
114138         Use bool for internal variables that are booleans.
114139         * lib/regexec.c (re_search_internal, check_matching,
114140         proceed_next_node):
114141         (set_regs, build_sifted_states, sift_states_bkref):
114142         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
114143         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
114144         (find_collation_sequence_value):
114145         Likewise.
114146         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
114147         (re_node_set_compare):
114148         Return bool, not int. All callers changed.
114149         * lib/regexec.c (check_halt_node_context, check_dst_limits):
114150         (build_trtable, check_node_accept): Likewise.
114151         * lib/regex_internal.h: Include stdbool.h.
114153         Fix bugs uncovered when converting to bool.
114154         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
114155         failure instead of charging ahead blindly.
114156         * lib/regex_internal.c (register_state): Likewise.
114157         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
114158         for freeing internal storage.
114159         (group_nodes_into_DFA_states): Use unsigned int, not int, for
114160         bitset pieces used as boolean, to avoid undefined behavior
114161         on hosts that do int overflow checking.
114163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114165         * config/srclist.txt: Add glibc bugs 1285-1287.
114167 2005-09-01  Jim Meyering  <jim@meyering.net>
114169         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
114170         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
114171         Require gl_STAT_MACROS, too.
114173 2005-09-01  Bruno Haible  <bruno@clisp.org>
114175         * gnulib-tool (import): In the first-use case, provide defaults.
114177 2005-09-01  Bruno Haible  <bruno@clisp.org>
114179         * gnulib-tool (func_import): Remove the .tmp files.
114181 2005-09-01  Bruno Haible  <bruno@clisp.org>
114183         * gnulib-tool (func_import): Fix handling of symbolic links.
114185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114187         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
114188         old glibc regex code mishandles strings longer than 2**31 bytes.
114189         This patch fixes this when the regex code is used in gnulib
114190         (i.e., outside glibc).
114192         This patch should not affect the use of the regex code inside
114193         glibc.  No doubt this problem also needs to be handled for glibc
114194         as well, but the result will be an incompatible change to the
114195         glibc ABI, and the old ABI will have to be supported too.  That
114196         can be the subject for another patch.
114198         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
114199         governing whether the rest of this patch is active.  By default,
114200         the macro is disabled and the patch has no effect.
114201         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
114202         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
114203         (struct re_pattern_buffer, re_search, re_search_2, re_match):
114204         (re_match_2, re_set_registers): Use the new types.
114205         * lib/regex_internal.h (Idx, re_hashval_t): New types.
114206         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
114207         New macros.
114208         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
114209         (re_string_context_at, bin_tree_t, re_dfastate_t):
114210         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
114211         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
114212         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
114213         (re_string_char_size_at, re_string_wchar_at):
114214         (re_string_elem_size_at):
114215         Use the new types and macros to port to 64-bit hosts.
114216         Use unsigned types for internal values, so that the code
114217         mostly works even for arrays larger than SSIZE_MAX.
114218         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
114219         (search_duplicated_node, calc_eclosure_iter, fetch_number):
114220         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
114221         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
114222         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
114223         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
114224         (calc_inveclosure, parse_dup_op, build_range_exp):
114225         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
114226         (fetch_number, create_token_tree, mark_opt_subexp):
114227         Likewise.
114228         * lib/regex_internal.c (re_string_construct_common,
114229         create_ci_newstate):
114230         (create_cd_newstate, re_string_allocate, re_string_construct):
114231         (re_string_realloc_buffers, build_wcs_upper_buffer):
114232         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
114233         (re_string_reconstruct, re_string_peek_byte_case):
114234         (re_string_fetch_byte_case, re_string_context_at):
114235         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
114236         (re_node_set_init_copy, re_node_set_add_intersect):
114237         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
114238         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
114239         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
114240         (re_acquire_state, re_acquire_state_context, register_state):
114241         Likewise.
114242         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
114243         search_cur_bkref_entry):
114244         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
114245         (re_search_internal, re_search_2_stub, re_search_stub)
114246         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
114247         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
114248         (update_cur_sifted_state, check_dst_limits):
114249         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
114250         (check_subexp_limits, sift_states_bkref, merge_state_array):
114251         (check_subexp_matching_top, get_subexp, get_subexp_sub):
114252         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
114253         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
114254         (expand_bkref_cache, check_node_accept_bytes):
114255         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
114256         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
114257         (acquire_init_state_context, check_halt_node_context):
114258         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
114259         (sift_states_backward, clean_state_log_if_needed):
114260         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
114261         (find_recover_state, transit_state_sb, transit_state_mb):
114262         (transit_state_bkref, build_trtable, match_ctx_clean):
114263         Likewise.
114264         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
114265         to work around an assumption that REG_MISSING is negative.
114267         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
114268         (seek_collating_symbol_entry) [defined _LIBC]:
114269         (lookup_collation_sequence_value) [defined _LIBC]:
114270         (build_range_exp, build_collating_symbol) [defined _LIBC]:
114271         Use prototypes rather than old-style function definitions.
114272         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
114273         (transit_state_sb) [0]:
114274         (find_collation_sequence_value) [defined _LIBC]: Likewise.
114276         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
114277         rm_eo.
114279         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
114280         (optimize_subexps, lower_subexp):
114281         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
114282         since the signed shift might overflow.  Use 1u<<31 instead.
114283         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
114284         Likewise.
114285         * lib/regexec.c (check_dst_limits_calc_pos_1,
114286         check_subexp_matching_top): Likewise.
114288         * lib/regcomp.c (optimize_subexps, lower_subexp):
114289         Use CHAR_BIT rather than 8, for clarity.
114290         * lib/regexec.c (check_dst_limits_calc_pos_1):
114291         (check_subexp_matching_top): Likewise.
114292         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
114293         have to worry about portability issues when shifting it left.
114294         Remove no-longer-needed test for table_size > 0.
114295         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
114296         in a word, as the resulting behavior is undefined.
114297         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
114298         in one case, a <= should have been an <, and in another case the
114299         whole test was missing.
114300         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
114301         the standard name CHAR_BIT.
114302         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
114303         this is not true on one's complement and signed-magnitude hosts.
114305         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
114306         next_last_offset.
114307         (struct re_dfa_t): Remove unused member states_alloc.
114308         * lib/regcomp.c (init_dfa): Don't initialize unused members.
114310 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114312         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
114313         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
114314         and large-file glibc and in 32-bit large-file Solaris.
114316 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114318         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
114319         lengths fit in regoff_t; this isn't true if regoff_t is the same
114320         width as size_t.
114321         * lib/regex.c (re_search_internal): 5th arg is LAST_START
114322         (= START + RANGE) instead of RANGE.  This avoids overflow
114323         problems when regoff_t is the same width as size_t.
114324         All callers changed.
114325         (re_search_2_stub): Check for overflow when adding the
114326         sizes of the two strings.
114327         (re_search_stub): Check for overflow when adding START
114328         to RANGE; if it occurs, substitute the extreme value.
114330 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114332         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
114334 2005-08-31  Jim Meyering  <jim@meyering.net>
114336         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
114337         a pointer-to-const.
114338         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
114339         (register_state): Likewise.
114340         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
114341         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
114342         (group_nodes_into_DFAstates): Likewise.
114344 2005-08-31  Jim Meyering  <jim@meyering.net>
114346         * check-module: Add a FIXME comment.
114348 2005-08-31  Eric Blake  <ebb9@byu.net>
114350         * modules/unistd-safer (Files): Add unistd--.h.
114351         * modules/stdio-safer (Files): Add stdio--.h.
114353 2005-08-31  Derek Price  <derek@ximbiot.com>
114355         * lib/getdelim.c (getdelim): Return EOF on EOF.
114356         Reported by Larry Jones <lawrence.jones@ugs.com>.
114358 2005-08-31  Bruno Haible  <bruno@clisp.org>
114360         Avoid unnecessary diffs in the generated lib/Makefile.am.
114361         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
114362         the generated files.
114363         (func_import): Don't set cmd.
114365 2005-08-31  Bruno Haible  <bruno@clisp.org>
114367         * lib/strstr.c: Include <stddef.h>, for NULL.
114368         * lib/strcasestr.c: Likewise.
114369         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114371 2005-08-31  Bruno Haible  <bruno@clisp.org>
114373         * gnulib-tool: New option --macro-prefix.
114374         (func_import): Use macro_prefix.
114375         (import): Handle option --macro-prefix.
114377 2005-08-31  Bruno Haible  <bruno@clisp.org>
114379         * gnulib-tool (import): Rename most ac_* variables to cached_*.
114380         Also use new variables cached_lgpl, cached_libtool.
114382 2005-08-31  Bruno Haible  <bruno@clisp.org>
114384         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
114385         always instantiating them.
114387 2005-08-31  Bruno Haible  <bruno@clisp.org>
114389         * gnulib-tool (func_import): Read the previous cached settings
114390         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
114391         earlier added by gnulib but are now dropped. Warn when a gnulib file
114392         overwrites a non-gnulib file.
114394 2005-08-31  Bruno Haible  <bruno@clisp.org>
114396         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
114397         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
114398         projects that don't keep autogenerated files in CVS. Put into
114399         actioncmd only the specified modules, not the transitive closure.
114401 2005-08-31  Bruno Haible  <bruno@clisp.org>
114403         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
114404         Create directories that shall be filled.
114405         (import): Don't look for gl_* macros in configure.ac. Recurse across
114406         all directories containing a gnulib-cache.m4 files, if meaningful.
114408 2005-08-31  Bruno Haible  <bruno@clisp.org>
114410         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
114411         (import): Set seen_libtool when we see gl_LIBTOOL.
114413 2005-08-31  Bruno Haible  <bruno@clisp.org>
114415         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
114416         declaration macro definitions from generated gnulib.m4.
114418 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
114420         * lib/iconvme.h: Add prototype for iconv_alloc.
114422 2005-08-29  Simon Josefsson  <jas@extundo.com>
114424         * lib/iconvme.c: Fix errno.
114426 2005-08-29  Bruno Haible  <bruno@clisp.org>
114428         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
114429         that it works when the directory contains spaces.
114431 2005-08-29  Bruno Haible  <bruno@clisp.org>
114433         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
114435 2005-08-29  Bruno Haible  <bruno@clisp.org>
114437         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
114438         Emit more advice.
114440 2005-08-29  Bruno Haible  <bruno@clisp.org>
114441         and Stepan Kasal  <kasal@ucw.cz>
114443         * check-module: If more parameters are given, check each of them
114444         separately; add more exceptions, as noted by Jim Meyering.
114445         (check_module): New procedure.
114446         (%exempt_header): Now contains all exceptions.
114448 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
114450         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
114452 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
114454         * lib/iconvme.c: Split iconv_string into iconv_alloc.
114456 2005-08-28  Bruno Haible  <bruno@clisp.org>
114458         * m4/gnulib-tool.m4: New file.
114460 2005-08-27  Jim Meyering  <jim@meyering.net>
114462         * modules/unistd-safer (Files): Add pipe-safer.c.
114463         * modules/fcntl-safer (Files): Add creat-safer.c.
114465 2005-08-27  Jim Meyering  <jim@meyering.net>
114467         * m4/stdlib-safer.m4: New file.  From coreutils.
114468         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
114469         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
114470         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
114471         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
114472         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
114474 2005-08-27  Jim Meyering  <jim@meyering.net>
114476         * lib/fopen-safer.c: Merge minor changes from coreutils.
114477         * lib/dup-safer.c: Likewise.
114478         * lib/fd-safer.c: Likewise.
114480         Merge from coreutils.
114481         * lib/stdio--.h: New file.
114482         * lib/stdlib--.h: New file.
114483         * lib/mkstemp-safer.c: New file.
114485         GNU tar needs these.
114486         * lib/pipe-safer.c: New file.
114487         * lib/creat-safer.c: New file.
114488         * lib/fcntl--.h (creat): Define to creat_safer.
114489         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
114490         * lib/unistd--.h (pipe): Define to pipe_safer.
114491         * lib/unistd-safer.h: Declare pipe_safer.
114493 2005-08-26  Simon Josefsson  <jas@extundo.com>
114495         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
114496         Haible <bruno@clisp.org>.
114498 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
114500         * lib/regex_internal.h: Remove all references to
114501         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
114502         or better.
114503         (bitset_not, bitset_merge, bitset_not_merge):
114504         (bitset_mask, re_string_allocate, re_string_construct):
114505         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
114506         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
114507         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
114508         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
114509         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
114510         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
114511         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
114512         (re_acquire_state_context):
114513         Remove unnecessary forward decls.
114514         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
114515         Put __attribute at function definition,
114516         now that the function decl has been removed.
114517         * lib/regex_internal.c (re_string_peek_byte_case):
114518         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
114519         Likewise.
114521 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
114523         * m4/regex.m4: Add AC_PREREQ(2.50).
114524         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
114526 2005-08-25  Simon Josefsson  <jas@extundo.com>
114528         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
114529         __fsetlocking.
114531 2005-08-25  Simon Josefsson  <jas@extundo.com>
114533         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
114534         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
114535         GLIBC specific code.
114537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114539         Make regex safe for g++.  This fixes one real bug (an "err"
114540         that should have been "*err").  g++ problem reported by
114541         Sam Steingold.
114542         * lib/regex_internal.h (re_calloc): New macro, consistent with
114543         re_malloc etc.  All callers of calloc changed to use re_calloc.
114544         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
114545         not int.  All callers changed.
114546         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
114547         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
114548         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
114549         (find_recover_state): Change "err" to "*err"; this fixes what
114550         appears to be a real bug.
114551         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
114552         versus int.
114554 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114556         * modules/regex (Depends-on): Add malloc, since the code
114557         assumes that !malloc(0) means failure.
114559 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114561         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
114563         alloca modernization/simplification for regex.
114564         * lib/regex.c: Remove portability cruft for alloca.  This no longer
114565         needs to be at the start of the file, and can be moved into
114566         regex_internal.h and simplified.
114567         * lib/regex_internal.h: Include <alloca.h>.
114568         (__libc_use_alloca) [!defined _LIBC]: New macro.
114569         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
114570         now works outside glibc.
114572 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114574         * config/srclist.txt: Add glibc bugs 1241, 1245.
114576 2005-08-25  Jim Meyering  <jim@meyering.net>
114578         * lib/open-safer.c: Include <config.h>.
114579         Otherwise, we'd lose LARGEFILE support in any file using
114580         e.g. "fcntl--.h"
114582 2005-08-25  Bruno Haible  <bruno@clisp.org>
114584         * m4/minmax.m4: Require autoconf 2.52.
114585         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
114586         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
114587         alternatives of translit over the alphabet.
114588         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
114590 2005-08-24  Simon Josefsson  <jas@extundo.com>
114592         * tests/test-getpass.c: New file.
114594 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114596         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
114597         for GNU regex features.
114599 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114601         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
114602         * lib/regex.h (regerror): Likewise.
114604         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
114605         requires this.  (The code never needed it.)
114607         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
114608         All uses of recently-renamed identifiers changed to use the new,
114609         POSIX-compliant names.  The code will build and run just fine
114610         without these changes, but it's better to eat our own dog food
114611         and use the standard-conforming names.
114613         * lib/regex.h: Fix a multitude of POSIX name space violations.
114614         These changes have an effect only for programs that define
114615         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
114616         do not change anything for programs compiled in the normal way.
114617         Also, there is no effect on the ABI.
114619         (_REGEX_SOURCE): New macro.
114620         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
114621         defined and _GNU_SOURCE is not; this fixes a name space violation.
114623         Rename the following macros to obey POSIX requirements.
114624         The old names are still visible as macros if _REGEX_SOURCE is defined.
114625         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
114626         RE_BACKSLASH_ESCAPE_IN_LISTS.
114627         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
114628         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
114629         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
114630         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
114631         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
114632         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
114633         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
114634         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
114635         (REG_INTERVALS): renamed from RE_INTERVALS.
114636         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
114637         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
114638         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
114639         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
114640         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
114641         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
114642         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
114643         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
114644         RE_UNMATCHED_RIGHT_PAREN_ORD.
114645         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
114646         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
114647         (REG_DEBUG): renamed from RE_DEBUG.
114648         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
114649         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
114650         unusual, since we can't clash with the POSIX REG_ICASE.
114651         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
114652         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
114653         (REG_NO_SUB): renamed from RE_NO_SUB.
114654         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
114655         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
114656         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
114657         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
114658         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
114659         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
114660         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
114661         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
114662         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
114663         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
114664         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
114665         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
114666         RE_SYNTAX_POSIX_MINIMAL_BASIC.
114667         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
114668         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
114669         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
114670         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
114671         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
114672         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
114673         (REG_FIXED): Renamed from REGS_FIXED.
114674         (REG_NREGS): Renamed from RE_NREGS.
114676         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
114677         of other REG_* macros, since POSIX says the user is allowed to
114678         #undef these macros selectively.
114680         (reg_errcode_t): Update comment stating what other tables need
114681         to be consistent.
114683         Rename the following enum values to obey POSIX requirements.
114684         The old names are still visible as macros.
114685         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
114686         is not defined, since GNU is supposed to be a superset of POSIX as
114687         much as possible, and since we want reg_errcode_t to be a signed
114688         type for implementation consistency.
114689         (_REG_NOERROR): Renamed from REG_NOERROR.
114690         (_REG_NOMATCH): Renamed from REG_NOMATCH.
114691         (_REG_BADPAT): Renamed from REG_BADPAT.
114692         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
114693         (_REG_ECTYPE): Renamed from REG_ECTYPE.
114694         (_REG_EESCAPE): Renamed from REG_EESCAPE.
114695         (_REG_ESUBREG): Renamed from REG_ESUBREG.
114696         (_REG_EBRACK): Renamed from REG_EBRACK.
114697         (_REG_EPAREN): Renamed from REG_EPAREN.
114698         (_REG_EBRACE): Renamed from REG_EBRACE.
114699         (_REG_BADBR): Renamed from REG_BADBR.
114700         (_REG_ERANGE): Renamed from REG_ERANGE.
114701         (_REG_ESPACE): Renamed from REG_ESPACE.
114702         (_REG_BADRPT): Renamed from REG_BADRPT.
114703         (_REG_EEND): Renamed from REG_EEND.
114704         (_REG_ESIZE): Renamed from REG_ESIZE.
114705         (_REG_ERPAREN): Renamed from REG_ERPAREN.
114706         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
114707         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
114708         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
114709         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
114711         (_REG_RE_NAME, _REG_RM_NAME): New macros.
114712         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
114713         changed.  But support the old name if the new one is not defined
114714         and if _REGEX_SOURCE.
114716         Change the following member names in struct re_pattern_buffer.
114717         The old names are still supported if !_REGEX_SOURCE.
114718         The new names are always supported, regardless of _REGEX_SOURCE.
114719         (re_buffer): Renamed from buffer.
114720         (re_allocated): Renamed from allocated.
114721         (re_used): Renamed from used.
114722         (re_syntax): Renamed from syntax.
114723         (re_fastmap): Renamed from fastmap.
114724         (re_translate): Renamed from translate.
114725         (re_can_be_null): Renamed from can_be_null.
114726         (re_regs_allocated): Renamed from regs_allocated.
114727         (re_fastmap_accurate): Renamed from fastmap_accurate.
114728         (re_no_sub): Renamed from no_sub.
114729         (re_not_bol): Renamed from not_bol.
114730         (re_not_eol): Renamed from not_eol.
114731         (re_newline_anchor): Renamed from newline_anchor.
114733         Change the following member names in struct re_registers.
114734         The old names are still supported if !_REGEX_SOURCE.
114735         The new names are always supported, regardless of _REGEX_SOURCE.
114736         (rm_num_regs): Renamed from num_regs.
114737         (rm_start): Renamed from start.
114738         (rm_end): Renamed from end.
114740         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
114741         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
114742         Prepend __ to parameter names.
114744         Undo yesterday's changes.
114746 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114748         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
114749         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
114750         lib/regex.c.
114752 2005-08-24  Jim Meyering  <jim@meyering.net>
114754         Sync from coreutils.
114755         * m4/fcntl-safer.m4: New file.
114757         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
114758         and object files for this module.
114760 2005-08-24  Jim Meyering  <jim@meyering.net>
114762         Sync from coreutils.
114763         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
114765 2005-08-24  Jim Meyering  <jim@meyering.net>
114767         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
114768         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
114770 2005-08-24  Jim Meyering  <jim@meyering.net>
114772         * modules/fcntl-safer: New module.
114773         * modules/fts (Depends-on): Add fcntl-safer.
114774         * MODULES.html.sh (File descriptor based Input/Output):
114775         Add fcntl-safer.
114777 2005-08-24  Bruno Haible  <bruno@clisp.org>
114779         Support for unit test modules.
114780         * modules/README: Mention tests modules.
114781         * modules/TEMPLATE-TESTS: New file.
114782         * gnulib-tool: New options --extract-tests-module, --with-tests and
114783         --tests-base (unused for the moment).
114784         (testsbase, inctests): New variables.
114785         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
114786         (func_verify_module): Exclude TEMPLATE-TESTS.
114787         (func_verify_nontests_module, func_verify_tests_module): New functions.
114788         (func_get_dependencies): Add implicit dependency for tests modules.
114789         (func_get_tests_module): New function.
114790         (func_modules_transitive_closure): When --with-tests was specified,
114791         include the unit tests as well, unless explicitly avoided.
114792         (func_emit_lib_Makefile_am): Ignore the tests modules here.
114793         (func_emit_tests_Makefile_am): New function.
114794         (func_create_testdir): When --with-tests was specified, emit a
114795         tests/ directory.
114796         * MODULES.html.sh (Future developments): Update.
114798 2005-08-24  Bruno Haible  <bruno@clisp.org>
114800         * modules/tls-tests: New file.
114801         * tests/test-tls.c: New file, from GNU gettext.
114803 2005-08-24  Bruno Haible  <bruno@clisp.org>
114805         * modules/lock-tests: New file.
114806         * tests/test-lock.c: New file, from GNU gettext.
114808 2005-08-24  Bruno Haible  <bruno@clisp.org>
114810         * lib/lock.h: Add multiple inclusion guard.
114811         * lib/tls.h: Add multiple inclusion guard.
114813 2005-08-24  Bruno Haible  <bruno@clisp.org>
114815         * gnulib-tool: Add support for the --aux-dir option to
114816         --create-testdir, --create-megatestdir, --test, --megatest.
114817         (func_create_testdir, func_create_megatestdir): Optionally emit a
114818         AC_CONFIG_AUX_DIR directive.
114819         (create-testdir, create-megatestdir, test, megatest): Provide a
114820         default value for $auxdir.
114822 2005-08-24  Bruno Haible  <bruno@clisp.org>
114824         * gnulib-tool (import): Use compound statement instead of subshell
114825         where possible.
114827 2005-08-24  Bruno Haible  <bruno@clisp.org>
114829         * gnulib-tool (import): Change --aux-dir default to "build-aux".
114831 2005-08-24  Bruno Haible  <bruno@clisp.org>
114833         * gnulib-tool (func_version): Update.
114835 2005-08-24  Bruno Haible  <bruno@clisp.org>
114837         * gnulib-tool (func_import, func_create_testdir,
114838         func_create_megatestdir): Quote all autoconf macro arguments.
114840 2005-08-24  Bruno Haible  <bruno@clisp.org>
114842         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
114843         option --force, because --force causes the aclocal.m4 of each
114844         subdirectory to be newer than the corresponding config.h.in.
114846 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114848         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
114849         All contents moved to gl_REGEX.
114850         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
114851         assume that it does.
114853 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114855         * lib/regex.h (REG_NOSYS)
114856         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
114857         Define, since POSIX requires it as of 2001.
114858         (_REG_ENOSYS)
114859         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
114860         New private symbol, used to keep the enum signed in all cases.
114861         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
114862         Youngman in
114863         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
114865         * lib/regex_internal.c (re_string_skip_chars, register_state):
114866         (calc_state_hash):
114867         Remove forward decls; no longer needed now that we use prototypes.
114868         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
114869         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
114870         (clean_state_log_if_needed): Likewise.
114872 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114874         * config/srclist.txt: Add glibc bugs 1231-1233.
114876 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114878         Fix problems reported by Sam Steingold in
114879         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
114880         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
114881         assumed that reg_errcode_t is a signed type, which is not
114882         necessarily true if _XOPEN_SOURCE is not defined.
114883         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
114884         since some compilers warn about it otherwise.
114886 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114888         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
114889         (init_word_char, create_initial_state, duplicate_node_closure):
114890         (fetch_token, peek_token_bracket, build_range_exp):
114891         (build_collating_symbol): Remove forward decls; no longer needed
114892         now that we use prototypes.
114894         * lib/regcomp.c:
114895         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
114896         (re_compile_fastmap_iter, regcomp, regerror, regfree):
114897         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
114898         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
114899         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
114900         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
114901         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
114902         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
114903         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
114904         (build_range_exp, build_collating_symbol, parse_bracket_exp):
114905         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
114906         (build_charclass, build_charclass_op, fetch_number, create_tree):
114907         (create_token_tree, mark_opt_subexp, duplicate_tree):
114908         Use prototypes rather than old-style definitions.
114910         * lib/regex_internal.c:
114911         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
114912         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
114913         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
114914         (re_string_reconstruct, re_string_peek_byte_case):
114915         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
114916         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
114917         (re_node_set_init_copy, re_node_set_add_intersect):
114918         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
114919         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
114920         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
114921         (re_acquire_state, re_acquire_state_context, register_state):
114922         (create_ci_newstate, create_cd_newstate, free_state):
114923         Likewise.
114924         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
114925         re_search_2):
114926         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
114927         (re_search_internal, prune_impossible_nodes):
114928         (acquire_init_state_context, check_matching, static):
114929         (check_halt_node_context, check_halt_state_context, proceed_next_node):
114930         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
114931         (update_regs, sift_states_backward, build_sifted_states):
114932         (clean_state_log_if_needed, merge_state_array):
114933         (update_cur_sifted_state, add_epsilon_src_nodes):
114934         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
114935         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
114936         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
114937         (find_recover_state, check_subexp_matching_top, transit_state_mb):
114938         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
114939         (check_arrival, check_arrival_add_next_nodes):
114940         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
114941         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
114942         (check_node_accept_bytes, check_node_accept, extend_buffers):
114943         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
114944         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
114945         (sift_ctx_init):
114946         Likewise.
114948         * lib/regex_internal.h:
114949         (re_string_allocate, re_string_construct, re_string_reconstruct):
114950         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
114951         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
114952         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
114953         (re_string_context_at, re_string_peek_byte_case):
114954         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
114955         is defined, since we now use prototypes always.
114957         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
114958         C89 or better.  All uses removed.
114960 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114962         * config/srclist.txt: Add glibc bugs 1220-1227.
114964 2005-08-20  Jim Meyering  <jim@meyering.net>
114966         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
114967         of unused local, dfa.
114969 2005-08-20  Bruno Haible  <bruno@clisp.org>
114971         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
114973 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114975         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
114976         (re_node_set_insert_last, re_dfa_add_node):
114977         Rename local variables to avoid GCC shadowing warnings.
114979 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114981         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
114982         [defined lint]: Suppress bogus uninitialized-variable warnings.
114984         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
114985         and let the caller return REG_ESPACE if out of space.  This
114986         removes an uninitialied-variable warning with GCC 4.0.1, and also
114987         avoids taking the address of a local variable.  All callers
114988         changed.
114990 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114992         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
114993         $LIBCSRC/posix/regexec.c.
114994         Add glibc bug 1217 for regcomp.c.
114996 2005-08-19  Jim Meyering  <jim@meyering.net>
114998         * lib/regexec.c (proceed_next_node): Redo local variables to
114999         avoid GCC shadowing warnings.
115001 2005-08-18  Bruno Haible  <bruno@clisp.org>
115003         * lib/strstr.c (strstr): Fix return value in multibyte case.
115004         * lib/strcasestr.c (strcasestr): Likewise.
115006 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115008         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
115010 2005-08-17  Jim Meyering  <jim@meyering.net>
115012         Make the %s format (seconds since the epoch) work for a negative
115013         number and when used with a zero-padded field width, e.g. %015s.
115015         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
115016         label so that it precedes the code to set `digits'.  Otherwise,
115017         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
115018         print `00-22'.  Now, it prints `-0022', as it should.
115020 2005-08-17  Bruno Haible  <bruno@clisp.org>
115022         * modules/strstr (Files): Add m4/mbrtowc.m4.
115023         (Depends-on): Add mbuiter.
115025 2005-08-17  Bruno Haible  <bruno@clisp.org>
115027         * modules/strcasestr: New file.
115028         * MODULES.html.sh (String handling, based on ANSI C 89): Add
115029         strcasestr.
115031 2005-08-17  Bruno Haible  <bruno@clisp.org>
115033         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
115035 2005-08-17  Bruno Haible  <bruno@clisp.org>
115037         * modules/mbuiter: New file.
115038         * MODULES.html.sh (Extended multibyte and wide character utilities):
115039         Add mbuiter.
115041 2005-08-17  Bruno Haible  <bruno@clisp.org>
115043         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
115044         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
115046 2005-08-17  Bruno Haible  <bruno@clisp.org>
115048         * m4/strcasestr.m4: New file.
115050 2005-08-17  Bruno Haible  <bruno@clisp.org>
115052         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
115053         * lib/strstr.c: Completely rewritten, with multibyte locale support.
115055 2005-08-17  Bruno Haible  <bruno@clisp.org>
115057         * lib/strcasestr.h: New file.
115058         * lib/strcasestr.c: New file.
115060 2005-08-17  Bruno Haible  <bruno@clisp.org>
115062         * lib/strcasecmp.c: Use mbuiter.h.
115064 2005-08-17  Bruno Haible  <bruno@clisp.org>
115066         * lib/mbuiter.h: New file.
115068 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115070         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
115071         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
115072         and gl_GETOPT are both invoked via different paths (as happens
115073         with GNU tar CVS because it uses both argp and getopt), the former
115074         wins.
115076 2005-08-16  Bruno Haible  <bruno@clisp.org>
115078         * modules/tls: New file.
115079         * MODULES.html.sh (Multithreading): Add tls.
115081 2005-08-16  Bruno Haible  <bruno@clisp.org>
115083         * modules/strnlen1: New file.
115084         * MODULES.html.sh (String handling): Add strnlen1.
115086 2005-08-16  Bruno Haible  <bruno@clisp.org>
115088         * modules/strcase (Files): Add m4/mbrtowc.m4.
115089         (Depends-on): Add strnlen1, mbchar.
115091 2005-08-16  Bruno Haible  <bruno@clisp.org>
115093         * modules/mbiter: New file.
115094         * MODULES.html.sh (Extended multibyte and wide character utilities):
115095         Add mbiter.
115097 2005-08-16  Bruno Haible  <bruno@clisp.org>
115099         * modules/mbfile: New file.
115100         * MODULES.html.sh (Extended multibyte and wide character utilities):
115101         Add mbfile.
115103 2005-08-16  Bruno Haible  <bruno@clisp.org>
115105         * modules/mbchar: New file.
115106         * MODULES.html.sh (Extended multibyte and wide character utilities):
115107         New section.
115109 2005-08-16  Bruno Haible  <bruno@clisp.org>
115111         * m4/tls.m4: New file, from GNU gettext.
115113 2005-08-16  Bruno Haible  <bruno@clisp.org>
115115         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
115116         always.
115117         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
115119 2005-08-16  Bruno Haible  <bruno@clisp.org>
115121         * m4/mbiter.m4: New file.
115123 2005-08-16  Bruno Haible  <bruno@clisp.org>
115125         * m4/mbfile.m4: New file.
115127 2005-08-16  Bruno Haible  <bruno@clisp.org>
115129         * m4/mbchar.m4: New file.
115131 2005-08-16  Bruno Haible  <bruno@clisp.org>
115133         * lib/tls.h: New file, from GNU gettext.
115134         * lib/tls.c: New file, from GNU gettext.
115136 2005-08-16  Bruno Haible  <bruno@clisp.org>
115138         * lib/strnlen1.h: New file.
115139         * lib/strnlen1.c: New file.
115141 2005-08-16  Bruno Haible  <bruno@clisp.org>
115143         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
115144         (mbi_init): Update.
115145         (mbi_avail, mbi_advance): Let the iteration end before the terminating
115146         NUL byte, not after it.
115148 2005-08-16  Bruno Haible  <bruno@clisp.org>
115150         * lib/strcase.h (strcasecmp): Add note in comments.
115151         * lib/strncasecmp.c: Use code from strcasecmp.c.
115152         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
115153         (strcasecmp): Work correctly in multibyte locales.
115155 2005-08-16  Bruno Haible  <bruno@clisp.org>
115157         * lib/mbiter.h: New file.
115159 2005-08-16  Bruno Haible  <bruno@clisp.org>
115161         * lib/mbfile.h: New file.
115163 2005-08-16  Bruno Haible  <bruno@clisp.org>
115165         * lib/mbchar.h: New file.
115166         * lib/mbchar.c: New file.
115168 2005-08-16  Bruno Haible  <bruno@clisp.org>
115170         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
115171         the valid ones. Makes the comparison operations transitive:
115172         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
115173         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
115175 2005-08-15  Simon Josefsson  <jas@extundo.com>
115177         * modules/ssize_t (License): Change to 'unlimited'.
115179         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
115181 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
115184         Add comments for each pending glibc patch.
115186 2005-08-15  Bruno Haible  <bruno@clisp.org>
115188         * lib/regex.h (__restrict_arr): Don't define to __restrict if
115189         __cplusplus is defined.
115191 2005-08-14  Jim Meyering  <jim@meyering.net>
115193         Sync from coreutils.
115195         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
115196         Use the hash-table-based cycle-detection code not just when
115197         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
115198         Reported by James Youngman in
115199         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
115200         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
115201         FTS_TIGHT_CYCLE_CHECK.
115202         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
115203         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
115204         once again.
115205         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
115206         * lib/fts.c (fd_safer): Remove decl.
115207         Include fcntl--.h rather than unistd-safer.h
115208         (fts_safe_changedir): Don't call fd_safer; no longer needed
115209         now that we include fcntl--.h.
115211 2005-08-12  Simon Josefsson  <jas@extundo.com>
115213         * modules/getndelim2: Use ssize_t module.
115214         * modules/getnline: Likewise.
115215         * modules/safe-read: Likewise.
115216         * modules/xreadlink: Likewise.
115218         * modules/ssize_t: New file.
115220 2005-08-12  Simon Josefsson  <jas@extundo.com>
115222         * m4/readline.m4: Look for termcap, curses or ncurses if required.
115224 2005-08-12  Simon Josefsson  <jas@extundo.com>
115226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
115227         ssize_t.
115229 2005-08-12  Simon Josefsson  <jas@extundo.com>
115231         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
115232         readline, getdelim and check_version.
115233         (Support for systems lacking ISO C 99: Sizes of integer types):
115234         Add size_max.
115236 2005-08-12  Bruno Haible  <bruno@clisp.org>
115238         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
115240 2005-08-11  Simon Josefsson  <jas@extundo.com>
115242         * modules/readline: New file.
115244         * modules/strnlen (Files): Add strnlen.h.
115246 2005-08-11  Simon Josefsson  <jas@extundo.com>
115248         * m4/readline.m4: New file.
115250 2005-08-11  Simon Josefsson  <jas@extundo.com>
115252         * lib/readline.h, readline.c: New file.
115254 2005-08-11  Simon Josefsson  <jas@extundo.com>
115256         * doc/gnulib.texi (Initial import, Finishing touches): Mention
115257         gl_AVOID.
115259 2005-08-11  Bruno Haible  <bruno@clisp.org>
115261         * lib/strnlen.h (strnlen): Change parameter name to match comment.
115263 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
115265         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
115267 2005-08-10  Simon Josefsson  <jas@extundo.com>
115269         * tests/test-iconvme.c: New file.
115271 2005-08-10  Simon Josefsson  <jas@extundo.com>
115273         * m4/strnlen.m4: New file.
115275         * m4/strndup.m4: Don't check for strnlen declaration, done in
115276         strnlen.m4.
115278 2005-08-10  Simon Josefsson  <jas@extundo.com>
115280         * lib/strndup.c: Use strnlen.h.
115282         * lib/strnlen.h: New file.
115284 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115286         * README: Typos.
115288 2005-08-02  Simon Josefsson  <jas@extundo.com>
115290         * modules/readline: New file.
115292 2005-08-02  Simon Josefsson  <jas@extundo.com>
115294         * modules/getdelim: New file.
115296         * modules/getline: Rewrite, don't use getndelim2.
115298 2005-08-02  Simon Josefsson  <jas@extundo.com>
115300         * m4/getline.m4: Separate out getdelim stuff into separate module.
115302         * m4/getdelim.m4: New file.
115304 2005-08-02  Simon Josefsson  <jas@extundo.com>
115306         * lib/getline.h, getline.c: Rewrite.
115308         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
115310 2005-07-31  Bruno Haible  <bruno@clisp.org>
115312         * lib/lock.h (gl_lock_initializer): New macro.
115313         (gl_lock_define_initialized): Use it.
115314         (gl_rwlock_initializer): New macro.
115315         (gl_rwlock_define_initialized): Use it.
115316         (gl_recursive_lock_initializer): New macro.
115317         (gl_recursive_lock_define_initialized): Use it.
115319 2005-07-30  Karl Berry  <karl@gnu.org>
115321         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
115322         Report from Ben Pfaff, regarding getopt.
115324 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
115326         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
115327         normal way.
115328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
115329         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
115330         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
115331         (gl_GETOPT): Use the new macros.  Most of the implementation
115332         is moved to the new macros.  This is for programs like Emacs
115333         that don't want all the functionality of gl_GETOPT.
115335 2005-07-26  Bruno Haible  <bruno@clisp.org>
115337         * m4/lock.m4: Update from GNU gettext.
115339 2005-07-26  Bruno Haible  <bruno@clisp.org>
115341         * lib/lock.h: Update from GNU gettext.
115342         * lib/lock.c: Update from GNU gettext.
115344 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
115346         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
115347         obsolescent AC_TRY_RUN.  Include the default includes files, for
115348         'exit'.
115350 2005-07-24  Bruno Haible  <bruno@clisp.org>
115352         * modules/visibility: New file.
115353         * MODULES.html.sh (Misc): Add visibility.
115355 2005-07-24  Bruno Haible  <bruno@clisp.org>
115357         * m4/visibility.m4: New file.
115359 2005-07-24  Bruno Haible  <bruno@clisp.org>
115361         * doc/visibility.texi: New file.
115363 2005-07-22  Bruno Haible  <bruno@clisp.org>
115365         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
115366         $(ALLOCA_H), redundant through BUILT_SOURCES.
115367         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
115368         redundant through BUILT_SOURCES.
115369         * modules/byteswap (Makefile.am): Remove explicit dependency on
115370         $(BYTESWAP_H), redundant through BUILT_SOURCES.
115371         * modules/fnmatch (Makefile.am): Remove explicit dependency on
115372         $(FNMATCH_H), redundant through BUILT_SOURCES.
115373         * modules/getopt (Makefile.am): Remove explicit dependency on
115374         $(GETOPT_H), redundant through BUILT_SOURCES.
115375         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
115376         redundant through BUILT_SOURCES.
115377         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
115378         redundant through BUILT_SOURCES.
115379         * modules/stdbool (Makefile.am): Remove explicit dependency on
115380         $(STDBOOL_H), redundant through BUILT_SOURCES.
115381         * modules/stdint (Makefile.am): Remove explicit dependency on
115382         $(STDINT_H), redundant through BUILT_SOURCES.
115383         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
115384         Remove explicit dependency on $(SYSEXITS_H).
115385         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
115387 2005-07-18  Simon Josefsson  <jas@extundo.com>
115389         * lib/check-version.c (check_version): Accept identical versions too.
115391 2005-07-18  Bruno Haible  <bruno@clisp.org>
115393         * modules/lock: New file.
115394         * MODULES.html.sh (Multithreading): New section.
115396 2005-07-18  Bruno Haible  <bruno@clisp.org>
115398         * m4/lock.m4: New file, from GNU gettext.
115400 2005-07-18  Bruno Haible  <bruno@clisp.org>
115402         * lib/lock.h: New file, from GNU gettext.
115403         * lib/lock.c: New file, from GNU gettext.
115405 2005-07-18  Bruno Haible  <bruno@clisp.org>
115407         * lib/lock.h (gl_once_t): New type.
115408         (gl_once_define, gl_once): New macros.
115409         * lib/lock.c (fresh_once): New variable.
115410         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
115411         functions.
115413 2005-07-16  Simon Josefsson  <jas@extundo.com>
115415         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
115416         workaround, suggested by Bruno.
115418 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
115420         * modules/xalloc (Depends-on): Add xalloc-die.
115421         * modules/xvasprintf (Depends-on): Add xalloc-die.
115423 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
115425         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
115426         with a minor change.
115428 2005-07-15  Bruno Haible  <bruno@clisp.org>
115430         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
115431         When using lib/poll.c, define poll as rpl_poll.
115433 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
115435         * modules/argp (Depends-on): Remove unlocked-io.
115437 2005-07-14  Derek Price  <derek@ximbiot.com>
115439         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
115440         for glob symlink bug.
115442 2005-07-14  Bruno Haible  <bruno@clisp.org>
115444         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
115445         Instead, test for *_unlocked function declarations directly.
115447 2005-07-11  Simon Josefsson  <jas@extundo.com>
115449         * modules/size_max: New file.
115451         * modules/xsize: Depend on size_max module for size_max.m4.
115453 2005-07-11  Simon Josefsson  <jas@extundo.com>
115455         * lib/size_max.h: New file.
115457 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
115459         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
115460         copyright symbol and the year.
115461         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
115462         (version_etc_va): Use parameterized copyright notice.
115463         Reword to conform to the current GNU coding standards.
115465 2005-07-11  Karl Berry  <karl@gnu.org>
115467         * doc/gnulib.texi (Quoting): new node.
115468         (Initial import): more info, from Patrice.
115470 2005-07-11  Bruno Haible  <bruno@clisp.org>
115472         * gnulib-tool (func_usage): Document option --avoid.
115473         (Command line options): Handle --avoid.
115474         (func_acceptable): New function.
115475         (func_modules_transitive_closure): Use it.
115477 2005-07-11  Bruno Haible  <bruno@clisp.org>
115479         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
115480         Reported by Jim Meyering.
115482 2005-07-10  Bruno Haible  <bruno@clisp.org>
115484         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
115485         Needed when size_t is smaller than 'unsigned int'.
115486         Reported by Paul Eggert.
115488 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115490         * modules/argp (Depends-on): Add unlocked-io
115492 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115494         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
115495         block of defines.
115497 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115499         * config/srclist.txt: Comment out regcomp.c, since we have a porting
115500         fix now.
115502 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
115503         and Paul Eggert  <eggert@cs.ucla.edu>
115505         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
115506         in wint_t, not wchar_t.  Remove now-unnecessary cast.
115508 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115510         * modules/regex (Files): Add lib/regex_internal.c,
115511         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
115512         (Depends-on): Add extensions.
115513         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
115515 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115517         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
115518         pathconf.
115519         * m4/same.m4 (gl_SAME): Likewise.
115520         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
115522         * m4/regex.m4: Adjust to new libc regex implementation.
115523         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
115524         all the .c and .h parts of (the new) regex.
115525         Quote the m4 stuff better.
115526         Check for RE_ICASE bug of old gnulib.
115527         Check for REG_STARTEND of recent libc.
115528         Rename local variables from jm_* to gl_*.
115529         Quote operand of "test -f".
115530         Say "recent enough" version of libc, not "version 2".
115531         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
115532         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
115533         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
115534         Remove check for btowc, isascii.
115535         Require AM_LANGINFO_CODESET.
115537 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115539         * lib/regex.c, regex.h: Sync from libc.
115540         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
115541         * lib/regexec.c:
115542         New files, synced from libc, except that regex_internal.h
115543         currently has a small porting fix.
115545 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
115547         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
115548         regex_internal.c, regexec.c.
115549         Add regex_internal.h too, but as a comment, since the libc version
115550         is currently broken in gnulib mode.
115552 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115554         Support programs like Emacs that use gnulib but not gettext.
115555         * MODULES.html.sh (Internationalization functions): Add gettext-h.
115556         * modules/gettext-h: New file.
115557         * modules/gettext (Files): Remove lib/gettext.h.
115558         (Depends-on): Add gettext-h.
115559         (Makefile.am): Remove lib_SOURCES.
115560         * modules/argmatch, modules/c-stack, modules/closeout:
115561         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
115562         * modules/execute, modules/file-type, modules/getaddrinfo:
115563         * modules/getopt, modules/human, modules/javacomp:
115564         * modules/javaexec, modules/mkdir-p, modules/obstack:
115565         * modules/openat, modules/pagealign_alloc, modules/pipe:
115566         * modules/quotearg, modules/regex, modules/rpmatch:
115567         * modules/unicodeio, modules/userspec, modules/version-etc:
115568         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
115569         * modules/xsetenv:
115570         Depend on gettext-h, not gettext.
115572 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115574         * gnulib-tool (func_import): Add support for 'public domain' license.
115575         * modules/alloca, modules/atexit, modules/memmove:
115576         Now public domain, not GPL.
115577         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
115578         * modules/realloc, modules/strerror, modules/strtod:
115579         Now LGPL, not GPL.
115581 2005-07-05  Bruno Haible  <bruno@clisp.org>
115583         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
115584         autoconf CVS. Needed for mingw.
115586 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115588         Remove the dependency of the strftime module on the tzset module.
115589         * modules/strftime (Depends-on): Remove dependency on tzset.
115591 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115593         Remove the dependency of the strftime module on the tzset module.
115594         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
115595         gl_FUNC_TZSET_CLOBBER.
115597 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115599         Remove the dependency of the strftime module on the tzset module.
115600         * lib/strftime.c (my_strftime)
115601         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
115602         Copy the input structure, to work around some of the bug with
115603         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
115604         Solaris releases, you should also use the tzset module, but we won't
115605         require it as a dependency any more since we don't want LGPLed code
115606         to depend on GPLed code.
115608 2005-07-02  Jim Meyering  <jim@meyering.net>
115610         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
115611         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
115612         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
115613         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
115615 2005-07-02  Jim Meyering  <jim@meyering.net>
115617         * lib/backupfile.c (backup_args): Change a `0' to NULL.
115619 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115621         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
115622         declares only 'struct timespec;' (!).
115624 2005-07-01  Jim Meyering  <jim@meyering.net>
115626         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
115627         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
115628         * lib/save-cwd.c, tempname.c:
115629         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115630         and don't include <sys/file.h>).
115632 2005-06-29  Jim Meyering  <jim@meyering.net>
115634         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
115635         type name.  Use the variable name instead.
115636         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
115637         Likewise.
115639 2005-06-28  Simon Josefsson  <jas@extundo.com>
115641         * modules/check-version (Files): Add check-version.m4.
115643 2005-06-28  Simon Josefsson  <jas@extundo.com>
115645         * m4/check-version.m4: New file, suggested by Jim Meyering
115646         <jim@meyering.net>.
115648 2005-06-28  Simon Josefsson  <jas@extundo.com>
115650         * lib/check-version.h, lib/check-version.c: New files.
115652 2005-06-28  Simon Josefsson  <jas@extundo.com>
115654         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
115655         collision with global variable.  Better indentation.  Don't
115656         increment buffer pointer beyond buffer end.  Based on comments
115657         from Paul Eggert <eggert@cs.ucla.edu>.
115659         * lib/base64.h: Indent.
115661 2005-06-28  Simon Josefsson  <jas@extundo.com>
115663         * doc/gnulib.texi (Library version handling): New section.
115665 2005-06-28  Jim Meyering  <jim@meyering.net>
115667         * check-module (find_included_lib_files): Hard-code another
115668         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
115669         but modules/fts-lgpl (correctly) does not list those files.
115671         * modules/canonicalize (Files): Add lib/pathmax.h.
115673 2005-06-25  Simon Josefsson  <jas@extundo.com>
115675         * modules/check-version: New file.
115677 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
115679         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
115680         initializer of struct addrinfo, as an indication that we don't
115681         care how many members the structure has.
115683 2005-06-24  Derek Price  <derek@ximbiot.com>
115684         and Bruno Haible  <bruno@clisp.org>
115686         Remove stat module & update lstat.
115687         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
115688         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115689         * m4/stat.m4: Remove this file.
115691 2005-06-24  Derek Price  <derek@ximbiot.com>
115692         and Bruno Haible  <bruno@clisp.org>
115694         Remove stat module & update lstat.
115695         * lib/stat.c: Remove this file...
115696         (slash_aware_lstat): ...moving this content and its support...
115697         * lib/lstat.c (rpl_lstat): ...into here.
115698         * lib/lstat.h: New file.
115700 2005-06-24  Derek Price  <derek@ximbiot.com>
115701         and Bruno Haible  <bruno@clisp.org>
115703         Remove stat module & update lstat.
115704         * config/srclist.txt (libc sources): Remove stat.
115706 2005-06-24  Derek Price  <derek@ximbiot.com>
115707         and Bruno Haible  <bruno@clisp.org>
115709         Remove stat module & update lstat.
115710         * MODULES.html.sh (stat): Remove.
115711         * MODULES.html: Regenerated.
115712         * modules/lstat (Description): Correct function name.
115713         (Files): Add "lstat.h".
115714         (Depends-on): Remove stat, add xalloc, stat-macros.
115715         * modules/stat: Remove this file.
115716         (Include): Add "lstat.h", remove <sys/stat.h>.
115718 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
115720         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
115721         (ranged_convert): Don't save conversion in a temporary struct.
115722         This causes a warning with GCC 4.0.0, and anyway in the typical
115723         case it's not worth the extra 100 bytes or so of code.
115724         (ranged_convert, __mktime_internal): When calling a function via a
115725         pointer P, use P () rather than (*P) (), as we now assume C89 or
115726         better.
115728 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115730         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
115731         "who -r" failed to give output.  Problem reported by Tim Waugh.
115733         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
115734         (xcalloc): Use it to avoid needless tests.
115735         Problem reported by Jim Meyering.
115737 2005-06-20  Derek Price  <derek@ximbiot.com>
115739         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
115740         unnecessary for Autoconfs > 2.59c.
115742 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
115744         * lib/argp.h (__option_is_short): Check upper limit of
115745         __key. Isprint() requires its argument to have the value
115746         of an unsigned char or EOF.
115748 2005-06-16  Jim Meyering  <jim@meyering.net>
115750         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
115751         when either N or S is zero.
115753 2005-06-16  Derek Price  <derek@ximbiot.com>
115755         * m4/bison.m4: Declare YACC & YFLAGS precious.
115757 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
115759         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
115760         multibyte string or pattern, fall back on unibyte matching.
115761         Problem reported by James Youngman.
115763 2005-06-08  Bruno Haible  <bruno@clisp.org>
115765         * modules/csharpcomp: New file.
115766         * MODULES.html.sh (C#): Add csharpcomp.
115768 2005-06-08  Bruno Haible  <bruno@clisp.org>
115770         * m4/csharpcomp.m4: New file, from GNU gettext.
115772 2005-06-08  Bruno Haible  <bruno@clisp.org>
115774         * lib/csharpcomp.h: New file, from GNU gettext.
115775         * lib/csharpcomp.c: New file, from GNU gettext.
115776         * lib/csharpcomp.sh.in: New file, from GNU gettext.
115778 2005-06-08  Bruno Haible  <bruno@clisp.org>
115780         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
115781         warning on mingw.
115783 2005-06-07  Derek Price  <derek@ximbiot.com>
115785         Sync from CVS.
115786         * lib/glob_.h: Indent nested #ifdef.
115788 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
115790         Sync from coreutils.
115791         Use "file name" when talking about file names, instead of "filename"
115792         or "path", as per the GNU coding standards.
115793         * lib/mkdir-p.c: Renamed from makepath.c.
115794         (make_dir_parents): Renamed from make_path.  All callers changed.
115795         * lib/mkdir-p.h: Likewise.  All includers changed.
115796         * lib/filenamecat.c: Renamed from path-concat.c.
115797         (file_name_concat): Renamed from path_concat.  All callers changed.
115798         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
115799         * lib/filenamecat.h: Likewise.  All includers changed.
115800         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
115801         in comments or local variable names.
115802         * lib/basename.c: Likewise.
115803         * lib/canonicalize.c, canonicalize.h: Likewise.
115804         * lib/dirname.c, dirname.h: Likewise.
115805         * lib/euidaccess.c: Likewise.
115806         * lib/exclude.c: Likewise
115807         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
115808         * lib/fsusage.c, fsuage.h: Likewise.
115809         * lib/fts.c, fts_.h: Likewise.
115810         * lib/getcwd.c: Likewise.
115811         * lib/getloadavg.c: Likewise.
115812         * lib/mkstemp.c: Likewise.
115813         * lib/mountlist.c, mountlist.h: Likewise.
115814         * lib/openat.c, openat.h: Likewise.
115815         * lib/readlink-stub.c: Likewise.
115816         * lib/readutmp.c, readutmp.h: Likewise.
115817         * lib/rename.c: Likewise.
115818         * lib/rmdir.c: Likewise.
115819         * lib/same.c: Likewise.
115820         * lib/savedir.c: Likewise.
115821         * lib/stripslash.c: Likewise.
115822         * lib/tempname.c: Likewise.
115823         * lib/xreadlink.c: Likewise.
115824         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
115825         All uses changed.
115826         * lib/exclude.h: Likewise.
115828         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
115829         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
115830         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
115831         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
115832         * lib/pathmax.h: Include <limits.h> unconditionally, since other
115833         files have been getting away with it for years (MORE/BSD 4.3
115834         is extinct now).
115835         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
115836         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
115838         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
115839         Define to 256, not 255, as per modern POSIX.
115841 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
115843         Sync from coreutils.
115844         Use "file name" when talking about file names, instead of "filename"
115845         or "path", as per the GNU coding standards.
115846         * MODULES.html.sh: mkdir-p renamed from makepath.
115847         filenamecat renamed from path-concat.
115848         * modules/filenamecat: Renamed from modules/path-concat.
115849         (Files): filenamecat.h and filenamecat.c renamed from
115850         path-concat.h and path-concat.c.
115851         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
115852         (Include): filenamecat.h, not path-concat.h.
115853         * modules/mkdir-p: Renamed from modules/makepath.
115854         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
115855         makepath.c.
115856         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
115857         (Include): mkdir-p.h, not makepath.h.
115859 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
115861         Sync from coreutils.
115862         * m4/mkdir-p.m4: Renamed from makepath.m4.
115863         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
115864         Rename files from makepath.c to mkdir-p.c, and from
115865         makepath.h to mkdir-p.h.
115866         * m4/filenamecat.m4: Renamed from path-concat.m4.
115867         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
115868         Rename files from path-concat.c to filenamecat.c,
115869         and from path-concat.h to filenamecat.h.
115870         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
115871         "file name" in local variables or comments.
115872         * m4/rename.m4: Likewise.
115874 2005-06-01  Bruno Haible  <bruno@clisp.org>
115876         * modules/csharpexec: New file.
115877         * MODULES.html.sh (C#): New section.
115879 2005-06-01  Bruno Haible  <bruno@clisp.org>
115881         * m4/csharp.m4: New file, from GNU gettext.
115882         * m4/csharpexec.m4: New file, from GNU gettext.
115884 2005-06-01  Bruno Haible  <bruno@clisp.org>
115886         * lib/csharpexec.h: New file, from GNU gettext.
115887         * lib/csharpexec.c: New file, from GNU gettext.
115888         * lib/csharpexec.sh.in: New file, from GNU gettext.
115890 2005-05-31  Derek Price  <derek@ximbiot.com>
115891             Paul Eggert  <eggert@cs.ucla.edu>
115893         Sync from cvs.
115894         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
115896 2005-05-31  Derek Price  <derek@ximbiot.com>
115897             Paul Eggert  <eggert@cs.ucla.edu>
115899         Sync from cvs.
115900         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
115902 2005-05-29  Derek Price  <derek@ximbiot.com>
115904         * config/srclist.txt (glob_.h, glob.c): Add these files.
115906 2005-05-29  Derek Price  <derek@ximbiot.com>
115908         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
115909         * modules/glob: New file.
115910         * modules/getlogin_r: Add link to POSIX spec in description.
115912 2005-05-29  Derek Price  <derek@ximbiot.com>
115913             Paul Eggert  <eggert@cs.ucla.edu>
115915         * m4/glob.m4: New file.
115917 2005-05-29  Derek Price  <derek@ximbiot.com>
115918             Paul Eggert  <eggert@cs.ucla.edu>
115920         * lib/glob_.h, lib/glob.c: New files.
115922 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
115924         * modules/fts (Files): Remove m4/inttypes-pri.m4.
115925         * modules/fts-lgpl (Depends-on): Remove gettext.
115927 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
115929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
115930         and don't require gt_INTTYPES_PRI.
115932 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
115934         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
115936         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
115937         the configuration hassle isn't worth it.
115938         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
115939         (LONGEST_MODIFIER, PRIuMAX): Remove.
115941 2005-05-27  Bruno Haible  <bruno@clisp.org>
115943         * lib/getlogin_r.h: Remove second include of <stddef.h>.
115945 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
115947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
115948         _POSIX_PTHREAD_SEMANTICS for Solaris.
115950 2005-05-25  Derek Price  <derek@ximbiot.com>
115952         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
115954 2005-05-25  Derek Price  <derek@ximbiot.com>
115955             Paul Eggert  <eggert@cs.ucla.edu>
115957         * modules/getlogin_r, m4/getlogin_r.m4: New files.
115958         * lib/getlogin_r.c, getlogin_r.h: New files.
115960 2005-05-25  Bruno Haible  <bruno@clisp.org>
115961             Derek Price  <derek@ximbiot.com>
115963         * lib/getlogin_r.h: Simplify API documentation.
115965 2005-05-23  Derek Price  <derek@ximbiot.com>
115967         * modules/minmax (Files): Add m4/minmax.m4.
115968         (configure.ac): Add gl_MINMAX.
115970 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115972         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
115973         so that unistd-safer.h (GPL'ed code) need not be included.
115975 2005-05-22  Bruno Haible  <bruno@clisp.org>
115977         * m4/minmax.m4: New file.
115978         Based on a patch by Derek Price <derek@ximbiot.com>.
115980 2005-05-22  Bruno Haible  <bruno@clisp.org>
115982         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
115983         (INT64_MIN): Fix definition.
115984         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
115986         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
115987         NEED_SIGNED_INT_TYPES.
115989         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
115990         HAVE_SYSTEM_INTTYPES.
115992 2005-05-22  Bruno Haible  <bruno@clisp.org>
115994         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
115995         Also include <sys/param.h> if it defines MIN, MAX.
115996         Based on a patch by Derek Price <derek@ximbiot.com>.
115998 2005-05-21  Jim Meyering  <jim@meyering.net>
116000         * modules/fts (Files): Add m4/inttypes-pri.m4.
116001         (Depends-on): Add lstat and remove gettext.  Alphabetize.
116003 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116005         New fts module.
116006         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
116007         (setup_dir, free_dir): New functions.
116008         (enter_dir, leave_dir): Define trivial
116009         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
116010         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
116011         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
116012         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
116013         Move to fts-cycle.c.
116014         (fts_open): Use setup_dir.
116015         (fts_close): Use free_dir.
116016         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
116017         This adds a label and some gotos, but the alternatives were messier.
116018         Check for memory allocation failure when entering a dir.
116019         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
116020         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
116021         (FTS): New member fts_cycle, that is a union that contains the
116022         old active_dir_ht and cycle_state.  All uses changed to mention
116023         fts_cycle.ht and fts_cycle.state.
116024         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
116025         fts.c, with the following changes:
116026         (setup_dir, free_dir): New functions.
116027         (enter_dir): Now returns bool.  Return true if successful, false
116028         if memory exhausted.  All callers changed.
116029         Do not bother partly cleaning up on
116030         memory allocation failure; that is free_dir's job.
116031         However, free ad if hash_insert fails, to avoid memory leak.
116032         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
116033         fts->fts_options to see which union member to use.
116035 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116037         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
116038         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
116040 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
116042         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
116044 2005-05-20  Jim Meyering  <jim@meyering.net>
116046         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
116047         Now a macro, to pacify GCC.
116049 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
116051         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
116052         of -1.
116054 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
116056         * lib/chown.c (rpl_chown): Return -1 on failure.
116058 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
116060         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
116061         Don't check for stddef.h.
116062         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
116063         don't use its results.
116064         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
116065         since we include them unconditionally.  Don't require
116066         AM_STDBOOL_H, since stdbool is a prerequisite.
116067         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
116068         since we assume C89 or better.
116069         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
116070         as we don't use their results.
116071         Don't check for fchdir, memmove, memset, strrchr, as we use
116072         them unconditionally.
116073         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
116074         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
116076 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
116078         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
116079         Include <stddef.h> unconditionally, since we assume C89 now.
116080         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
116081         * lib/fts.c: Include fts_.h first, to check interface.
116082         Do not include intprops.h; no longer needed.
116083         Include cycle-check.h and hash.h, since fts_.h no longer does.
116084         Remove unnecessary casts of closedir to void.
116085         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
116086         decide whether to decrement nlinks.
116087         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
116088         (FTS): Use struct hash_table * instead of Hash_table, so that
116089         we no longer need to include hash.h here.
116091 2005-05-18  Jim Meyering  <jim@meyering.net>
116093         * modules/dirfd (License): Change to LGPL.  Most of the code
116094         is already in the public domain.
116096 2005-05-18  Jim Meyering  <jim@meyering.net>
116098         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
116099         Reported by Yoann Vandoorselaere.
116101 2005-05-17  Jim Meyering  <jim@meyering.net>
116103         * m4/fts.m4: New file, from coreutils.
116105 2005-05-17  Jim Meyering  <jim@meyering.net>
116107         * lib/fts.c, lib/fts_.h: New files, from coreutils.
116109 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116111         Sync from coreutils.
116112         * m4/unlinkdir.m4: New file.
116114 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116116         Sync from coreutils.
116117         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
116118         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
116119         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
116120         White space changes only.
116121         * lib/makepath.c (make_path): Port to hosts where leading "//" is
116122         special.
116123         * lib/yesno.c: Include getline.h, not ctype.h.
116124         (yesno): Don't remove leading white space; POSIX doesn't allow it.
116125         Use getline to remove arbitrary restriction on response length.
116127 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116129         * config/srclist-update: Spell out "Street" in FSF postal
116130         mail address; this is the style the FSF seems to prefer.
116132         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
116133         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
116134         this updates FSF postal mail address.
116136         Sync from coreutils.
116137         * modules/unlinkdir: New file.
116138         * modules/yesno (Depends-on): Add getline.
116139         * MODULES.html.sh (File system functions): Add unlinkdir.
116141 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116143         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
116144         lib/strsep.h:
116145         Change the initial comment to refer to GPL, not LGPL.
116146         gnulib-tool will change it to LGPL as needed.
116148         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
116149         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
116150         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
116151         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
116152         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
116153         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
116154         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
116155         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
116156         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
116157         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
116158         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
116159         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
116160         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
116161         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
116162         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
116163         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
116164         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
116165         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
116166         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
116167         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
116168         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
116169         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
116170         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
116171         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
116172         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
116173         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
116174         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
116175         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
116176         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
116177         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
116178         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
116179         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
116180         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
116181         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
116182         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
116183         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
116184         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
116185         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
116186         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
116187         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
116188         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
116189         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
116190         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
116191         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
116192         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
116193         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
116194         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
116195         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
116196         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
116197         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
116198         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
116199         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
116200         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
116201         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
116202         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
116203         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
116204         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
116205         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
116206         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
116207         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
116208         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
116209         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
116210         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
116211         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
116212         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
116213         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
116214         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
116215         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
116216         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
116217         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
116218         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
116219         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
116220         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
116221         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
116222         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
116223         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
116224         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
116225         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
116226         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
116227         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
116228         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
116229         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
116230         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
116231         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
116232         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
116233         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
116234         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
116235         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
116236         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
116237         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
116238         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
116239         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
116240         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
116241         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
116242         lib/yesno.c, lib/yesno.h:
116243         Update FSF postal mail address.
116245 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
116247         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
116248         tests/test-memmem.c, tests/test-stpncpy.c:
116249         Update FSF postal mail address.
116251 2005-05-13  Bruno Haible  <bruno@clisp.org>
116253         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
116254         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
116255         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
116256         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
116257         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
116258         Add support for 64-bit integers in the MSVC compiler.
116260 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
116262         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
116264 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
116266         * gnulib-tool (func_import): Sort and uniquify recommended includes.
116268 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
116270         * doc/getdate.texi (General date syntax): Don't say that date
116271         date --iso-8601=ns generates acceptable dates; it doesn't yet.
116272         Problem reported by Nic Ferrier.
116274 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116276         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
116277         specified in ai_socktype. Fix invalid ai_protocol
116278         check. ai_protocol is usually set to 0 or depending on
116279         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
116280         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
116281         ai_socktype / ai_protocol in the returned addrinfo structure.
116283 2005-05-10  Simon Josefsson  <jas@extundo.com>
116285         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
116286         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116288 2005-05-10  Karl Berry  <karl@gnu.org>
116290         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
116291         (from http://www.gnu.org/licenses).
116292         * doc/COPYING.LIB: also rename to COPYING.LESSER.
116293         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
116294         fdl.texi suffices.
116296 2005-05-10  Karl Berry  <karl@gnu.org>
116298         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
116299         (COPYING.DOC): remove.
116301         * config/srclist-update: new FSF address.
116303 2005-05-10  Derek Price  <derek@ximbiot.com>
116305         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
116306         possible.
116308 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116309             Bruno Haible  <bruno@clisp.org>
116311         * modules/inet_ntop: New file.
116312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
116313         inet_ntop.
116315 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116316             Bruno Haible  <bruno@clisp.org>
116318         * m4/inet_ntop.m4: New file.
116320 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116321             Bruno Haible  <bruno@clisp.org>
116323         * lib/inet_ntop.h: New file.
116324         * lib/inet_ntop.c: New file, from glibc with modifications.
116326 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
116328         * modules/time_r (License): Change to LGPL.
116329         * modules/extensions (License): Change to LGPL.  Actually,
116330         the license is more permissive than that, but currently gnulib-tool
116331         doesn't know how to handle more-permissive licenses.
116333         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
116334         Problem reported by Dave Love.
116336 2005-05-08  Jim Meyering  <jim@meyering.net>
116338         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
116339         blank.
116341 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
116343         * modules/argmatch (Depends-on): Add stdbool.
116344         * modules/backupfile (Depends-on): Likewise.
116345         * modules/chdir-long (Depends-on): Likewise.
116346         * modules/closeout (Depends-on): Likewise.
116347         * modules/cycle-check (Depends-on): Likewise.
116348         * modules/dirname (Depends-on): Likewise.
116349         * modules/fnmatch (Depends-on): Likewise.
116350         * modules/fsusage (Depends-on): Likewise.
116351         * modules/fwriteerror (Depends-on): Likewise.
116352         * modules/getcwd (Depends-on): Likewise.
116353         * modules/getloadavg (Depends-on): Likewise.
116354         * modules/hard-locale (Depends-on): Likewise.
116355         * modules/makepath (Depends-on): Likewise.
116356         * modules/mountlist (Depends-on): Likewise.
116357         * modules/nanosleep (Depends-on): Likewise.
116358         * modules/posixtm (Depends-on): Likewise.
116359         * modules/quotearg (Depends-on): Likewise.
116360         * modules/readtokens (Depends-on): Likewise.
116361         * modules/readtokens0 (Depends-on): Likewise.
116362         * modules/readutmp (Depends-on): Likewise.
116363         * modules/save-cwd (Depends-on): Likewise.
116364         * modules/strftime (Depends-on): Likewise.
116365         * modules/userspec (Depends-on): Likewise.
116366         * modules/utimecmp (Depends-on): Likewise.
116367         * modules/xgetcwd (Depends-on): Likewise.
116368         * modules/xnanosleep (Depends-on): Likewise.
116369         * modules/xstrtod (Depends-on): Likewise.
116370         * modules/yesno (Depends-on): Likewise.
116372 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
116374         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
116375         needless checks.
116377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116379         Merge from coreutils.  Among other things,
116380         add bulletproofing for cases where stdin, stdout, or stderr are closed.
116381         * lib/fd-safer.c: New file.
116382         * lib/fcntl-safer.h, open-safer.c: Remove.
116383         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
116384         * lib/dup-safer.c: Include unistd-safer.h first.
116385         Don't include errno.h.
116386         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
116387         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
116388         * lib/file-type.c: Rely on file-type.h change.
116389         * lib/getloadavg.c: Include unistd-safer.h.
116390         (getloadavg): Use safer open.
116391         * lib/getusershell.c: Include "stdio-safer.h".
116392         (getusershell): Use safer fopen.
116393         * lib/long-options.c (long_options): Use NULL rather than 0.
116394         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
116395         'free'.
116396         * lib/modechange.c: Likewise.
116397         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
116398         (MODE_DONE): New constant.
116399         (struct mode_change): Remove 'next' member.
116400         (make_node_op_equals): New function; like the old one of the
116401         same name, except it allocates an array.
116402         (mode_compile, mode_create_from_ref): Use it.
116403         (mode_compile): Allocate result as an array, not a linked list.
116404         Parse octal string ourself, so that we catch mistakes like "+0".
116405         (mode_adjust): Arg is an array, not a linked list.
116406         * lib/modechange.c: Include stat-macros.h, xalloc.h.
116407         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
116408         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
116409         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
116410         Remove.  This is now stat-macros.h's job.
116411         (talloc): Remove.  All callers replaced by xalloc, so that
116412         our invokers don't have to worry about reporting memory failures.
116413         (make_node_op_equals): Remove.
116414         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
116415         New constants.
116416         (struct mode_change): Moved here from modechange.h.
116417         (mode_append_entry): Remove.
116418         (mode_compile): Remove MASKED_OPS arg, since it encouraged
116419         apps to have incorrect behavior.  Use simpler algorithm for head
116420         and tail.  Don't futz with umask; that's now the job of mode_adjust.
116421         Detect more invalid usages rather than having somewhat-random behavior.
116422         Don't insert an "a=" action, as that leads to incorrect behavior.
116423         (mode_compile, mode_create_from_ref): Return NULL on error instead
116424         of an enum, since now there's only one way to have an error.  All
116425         callers changed.
116426         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
116427         at the correct time.  Simplify calculation of "+u" and its ilk.
116428         Don't mishandle "+X".
116429         (mode_free): Remove "register" and localize decls.
116430         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
116431         (struct mode_change): Move to modechange.c; callers don't
116432         need to see this stuff.
116433         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
116434         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
116435         (mode_change, mode_adjust): Reflect the new signatures noted above.
116436         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
116437         that might redefine system include files.
116438         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
116439         (my_usleep): Use NULL rather than (void *) 0.
116440         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
116441         Use siginterrupt to specify that system calls should be interrupted.
116442         (rpl_nanosleep): Move initialization of suspended closer to call of
116443         my_usleep.
116444         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
116445         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
116446         (desirable_utmp_entry): New function.
116447         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
116448         using x2nrealloc, to simplify logic.
116449         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
116450         size calculation.  Do not assume utmp file is a regular file.
116451         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
116452         (READ_UTMP_CHECK_PIDS): New constant.
116453         * lib/save-cwd.c: Include unistd-safer.h.
116454         (save_cwd): Use fd_safer.
116455         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
116456         [!_LIBC] Include "stat-macros.h" instead.
116457         * lib/unistd-safer.h (fd_safer): New decl.
116459 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116461         * modules/getloadavg (Depends-on): Add unistd-safer.
116462         * modules/getusershell (Depends-on): Add stdio-safer.
116463         * modules/lstat (Depends-on): Remove xalloc.
116464         * modules/mkstemp (Depends-on): Add stat-macros.
116465         * modules/modechange (Depends-on): Remove xstrtol.
116466         Add stat-macros, xalloc.
116467         * modules/save-cwd (Depends-on): Add unistd-safer.
116468         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
116469         * modules/unistd-safer (Files): Add lib/fd-safer.c
116470         (Makefile.am): Remove lib_SOURCES.
116472         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
116473         Remove fcntl-safer; unistd-safer supersedes it.
116475 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
116478         AC_HEADER_STAT.
116479         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
116480         (gl_PREREQ_CHOWN): Remove.
116481         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
116482         it.  Don't require AC_HEADER_STAT.
116483         (gl_PREREQ_LSTAT): Remove.
116484         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
116485         Don't require AC_HEADER_STAT.
116486         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
116487         (gl_PREREQ_RMDIR): Remove.
116488         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
116489         mention stat-macros.h or AC_HEADER_STAT, since we'll make
116490         the stat-macros module a prerequisite.
116491         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
116492         * m4/filemode.m4 (gl_FILEMODE): Likewise.
116493         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
116494         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
116495         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
116496         variable names.
116497         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
116498         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
116499         variable prefixes.
116500         * m4/fcntl-safer.m4: Remove.
116501         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
116502         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
116503         Invoke gl_PREREQ_FD_SAFER.
116504         (gl_PREREQ_FD_SAFER): New macro.
116505         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
116506         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
116507         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
116508         Remove duplicate call to AC_LIBOBJ(readutmp).
116509         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
116511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
116512         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
116514 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
116516         * MODULES.html.sh (Misc): Add byteswap.
116518 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116520         * modules/getcwd (Depends-on): Add extensions.
116521         * modules/openat (Depends-on): Likewise.
116523 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116525         * modules/byteswap: New file.
116527 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116529         * m4/byteswap.m4: New file.
116531 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
116533         * lib/byteswap_.h: New file.
116535 2005-04-25  Karl Berry  <karl@gnu.org>
116537         * m4/gettext.m4: Update from GNU gettext 0.14.4.
116539 2005-04-25  Albert Chin  <china@thewrittenword.com>
116541         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
116542         Toolkit C bug.
116544 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
116546         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
116547         (func_ln_if_changed): Remove forcibly for no error message
116548         in case file does not exist.
116550 2005-04-19  Simon Josefsson  <jas@extundo.com>
116552         * gnulib-tool (Options): Make --symlink mean --symbolic.
116554 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
116556         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
116558 2005-04-16  Simon Josefsson  <jas@extundo.com>
116560         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
116562 2005-04-15  Simon Josefsson  <jas@extundo.com>
116564         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
116566 2005-04-15  Simon Josefsson  <jas@extundo.com>
116568         * gnulib-tool: Rename --symlink to --symbolic.
116570 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
116572         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
116573         symbolic links to files instead of copying/moving.  Add --aux-dir,
116574         specifying directory relative --dir where auxiliary build tools
116575         are placed.
116577 2005-04-14  Bruno Haible  <bruno@clisp.org>
116579         * modules/allocsa (License): Change to LGPL.
116580         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
116582 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116584         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
116585         that "UTC +1 second" continues to work.  Problem reported
116586         by Dmitry V. Levin.
116587         (relunit_snumber): New rule.
116588         (relunit): Use it.
116590 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116592         * lib/getdate.y (universal_time_zone_table): New constant.
116593         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
116594         universal_time_zone_table.
116595         (lookup_zone): Prefer universal_time_zone_table to
116596         local_time_zone_table, so that "GMT" time stamps are allowed in
116597         London during the summer.  Problem reported by Ian Abbott.
116599 2005-04-12  Jim Meyering  <jim@meyering.net>
116601         * lib/human.c (humblock): Set *options even when returning due to
116602         xstrtoumax conversion failure.  Thanks to a used-uninitialized
116603         warning from gcc-4.
116605 2005-04-09  Jim Meyering  <jim@meyering.net>
116607         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
116608         -Wuninitialized: initialize tm0.tm_year.
116610 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
116612         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
116613         count, since there's no maximum.  All uses changed.
116614         Add member dsts_seen.
116615         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
116616         not being INT_MAX.
116617         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
116618         Use pc_rels_seen to decide whether a date is absolute.
116620         * lib/getdate.y (number): Don't overwrite year.
116621         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
116622         check.
116624 2005-04-02  Simon Josefsson  <jas@extundo.com>
116626         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
116627         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
116629 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
116631         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
116632         where no absolute path name can be longer than PATH_MAX.
116634 2005-03-27  Jim Meyering  <jim@meyering.net>
116636         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
116638 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
116640         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
116641         "one's complement" -> "ones' complement" in comment, as per Knuth.
116642         "value of type" -> "type or expression" in comment.
116643         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
116645 2005-03-26  Jim Meyering  <jim@meyering.net>
116647         Comment nits.
116648         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
116649         Correct typos: s/or/of/.
116651 2005-03-26  Jim Meyering  <jim@meyering.net>
116653         * modules/check-include-files: Move to ../ and rename to...
116654         * check-module: ...this.
116656 2005-03-25  Jim Meyering  <jim@meyering.net>
116658         * modules/xvasprintf (Files): Add xalloc.h.
116660 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
116662         * modules/gettext (Files): config/config.rpath ->
116663         build-aux/config.rpath
116664         * modules/iconv (Files): Likewise.
116665         Problem reported by Oskar Liljeblad.
116667 2005-03-23  Jim Meyering  <jim@meyering.net>
116669         * modules/check-include-files: New script to check for
116670         missing dependencies, multiple includes, etc.
116672         * modules/c-strtold (Depends-on): Add xalloc.
116673         * modules/c-strtod (Depends-on): Add xalloc.
116674         * modules/hash (Depends-on): Add xalloc.
116675         (Files): Remove lib/xalloc.h.
116677         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
116678         * modules/userspec (Files): Add lib/inttostr.h.
116680 2005-03-23  Jim Meyering  <jim@meyering.net>
116682         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
116684 2005-03-22  Jim Meyering  <jim@meyering.net>
116686         * modules/stat-macros: New module.
116687         * modules/canonicalize, modules/euidaccess, modules/file-type,
116688         * modules/filemode, modules/lchown, modules/makepath,
116689         * modules/rmdir, modules/stat: Depend on new stat-macros module
116690         rather than listing lib/stat-macros.h manually.
116691         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
116693 2005-03-22  Jim Meyering  <jim@meyering.net>
116695         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
116697 2005-03-22  Bruno Haible  <bruno@clisp.org>
116699         * config/srclist.txt: Replace target directory 'config' with
116700         'build-aux'.
116701         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
116702         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
116703         ../build-aux/.
116705 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
116707         * modules/chdir-long (Depends-on): Add mempcpy.
116709         * modules/acl, modules/backupfile, modules/c-strtod,
116710         modules/c-strtold, modules/canon-host, modules/canonicalize,
116711         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
116712         modules/exclude, modules/exitfail, modules/file-type,
116713         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
116714         modules/getdate, modules/getline, modules/getpagesize,
116715         modules/getpass, modules/getugroups, modules/group-member,
116716         modules/hard-locale, modules/hash, modules/human, modules/idcache,
116717         modules/inttostr, modules/long-options, modules/makepath,
116718         modules/md5, modules/memcasecmp, modules/memcoll,
116719         modules/modechange, modules/mountlist, modules/path-concat,
116720         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
116721         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
116722         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
116723         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
116724         modules/strftime, modules/strndup, modules/strverscmp,
116725         modules/timespec, modules/unlocked-io, modules/userspec,
116726         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
116727         modules/yesno:
116728         Remove lib_SOURCES line from Makefile.am section, as this is now
116729         done automatically by the corresponding Autoconf macro.
116731 2005-03-21  Jim Meyering  <jim@meyering.net>
116733         Changes imported from coreutils.
116735         * lib/cycle-check.c: Don't include xalloc.h.
116737         * lib/path-concat.c: Don't include assert.h.
116738         (path_concat): Remove assertion that would have triggered
116739         for ABASE starting with more than one slash.
116740         Reported by Andreas Schwab.
116742         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
116743         properly when ABASE is an absolute file name.
116744         Correct the description of this function.
116745         Include <assert.h>.
116746         Add an assertion and a test driver.
116747         This fixes a bug introduced on 2004-07-02.
116748         Andreas Schwab reported the resulting failure of cp --parents:
116749         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
116751 2005-03-21  Jim Meyering  <jim@meyering.net>
116753         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
116754         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
116756 2005-03-21  Jim Meyering  <jim@meyering.net>
116757         and  Paul Eggert  <eggert@cs.ucla.edu>
116759         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
116760         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
116761         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
116762         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
116763         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
116764         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
116765         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
116766         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
116767         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
116768         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
116769         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
116770         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
116771         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
116772         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
116773         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
116774         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
116775         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
116776         for these modules.
116778 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
116780         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
116781         (which shouldn't happen), generate nothing instead of returning 0
116782         immediately, so that nstrftime (NULL, ...) doesn't return 0.
116784 2005-03-16  Bruno Haible  <bruno@clisp.org>
116786         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
116787         HAVE_LONGLONG_64BIT.
116789 2005-03-16  Bruno Haible  <bruno@clisp.org>
116791         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
116792         HAVE_LONGLONG_64BIT.
116794 2005-03-16  Bruno Haible  <bruno@clisp.org>
116796         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
116797         HAVE_LONGLONG_64BIT.
116799 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
116801         * lib/strftime.c (my_strftime): Prepend space to format so that we can
116802         reliably distinguish strftime failure from empty output on POSIX
116803         hosts.
116805 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
116807         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
116808         (iconv_string): Don't guess a size-zero buffer, as that might cause
116809         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
116810         result would be 'too large', where 'too large' is (heuristically)
116811         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
116812         overflow concerns.  This will prevent some unwanted malloc failures
116813         when the inputs are very large.
116815 2005-03-15  Karl Berry  <karl@gnu.org>
116817         * config/srclist.txt (config.rpath): from gettext.
116818         * config/config.rpath: update.
116820 2005-03-15  Bruno Haible  <bruno@clisp.org>
116822         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
116823         to 'negate'.
116825         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
116826         variable.
116828         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
116829         results.
116831 2005-03-14  Simon Josefsson  <jas@extundo.com>
116833         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
116834         <fx@gnu.org>.
116836 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
116838         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
116839         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
116840         intprops.h.
116841         * lib/strtol.c: Likewise.
116843 2005-03-14  Jim Meyering  <jim@meyering.net>
116845         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
116846         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
116847         to be nonzero so that we (and caller) can detect the difference
116848         between a valid zero-length expansion and an error return, even
116849         when the underlying strftime fails before writing anything into
116850         that location.
116852 2005-03-14  Bruno Haible  <bruno@clisp.org>
116854         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
116855         Update from GNU gettext 0.14.3.
116857 2005-03-10  Jim Meyering  <jim@meyering.net>
116859         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
116861 2005-03-10  Jim Meyering  <jim@meyering.net>
116863         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
116864         so that this module works on systems without fchdir.
116866 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
116868         Factor int-properties macros into a single file, except for
116869         glibc-related files.
116870         * lib/intprops.h: New file.
116871         * lib/getloadavg.c: Include it instead of limits.h.
116872         (INT_STRLEN_BOUND): Remove.
116873         * lib/human.c: Include intprops.h.
116874         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
116875         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
116876         302/1000.
116877         * lib/inttostr.h: Include intprops.h instead of limits.h.
116878         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
116879         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
116880         for consistency with intprops.h.
116881         (time_t_is_integer, twos_complement_arithmetic): Use them.
116882         * lib/sig2str.h: Include <signal.h>, intprops.h.
116883         (INT_STRLEN_BOUND): Remove.
116884         * lib/strftime.c (TYPE_SIGNED): Remove.
116885         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
116886         * lib/strtol.c: Adjust comments to match intprops.h.
116887         * lib/userspec.c: Include intprops.h.
116888         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
116889         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
116890         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
116891         instead of rolling our own expressions.
116892         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
116894         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
116895         instead of int.
116896         (my_strftime): Do not mishandle years close to INT_MAX, by doing
116897         the right thing even if adding 1900 would overflow.  Similarly
116898         for tm_mon + 1 and tm_yday + 1.
116899         Make %Y always equivalent to %C%y, and similarly for %G and %g.
116900         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
116901         (DO_SIGNED_NUMBER): New macro.
116902         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
116904 2005-03-07  Bruno Haible  <bruno@clisp.org>
116906         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
116908 2005-03-07  Bruno Haible  <bruno@clisp.org>
116910         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
116912 2005-03-04  Derek R. Price  <derek@ximbiot.com>
116914         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
116915         (func_import): Only replace files via --import when they have actually
116916         changed.
116918 2005-03-03  Derek R. Price  <derek@ximbiot.com>
116920         * m4/mmap-anon.m4: New file.
116921         * m4/pagealign_alloc.m4: New file.
116923 2005-03-03  Derek R. Price  <derek@ximbiot.com>
116924             Bruno Haible  <bruno@clisp.org>
116926         * modules/pagealign_alloc: New file.
116927         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
116929 2005-03-03  Derek R. Price  <derek@ximbiot.com>
116930             Bruno Haible  <bruno@clisp.org>
116932         * lib/pagealign_alloc.h: New file.
116933         * lib/pagealign_alloc.c: New file.
116935 2005-03-03  Bruno Haible  <bruno@clisp.org>
116937         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
116938         Use an all-permissive copyright notice, recommended by RMS.
116940 2005-03-02  Bruno Haible  <bruno@clisp.org>
116942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
116943         of AIX, the replacement has to be done only after <string.h> is
116944         included, therefore not in config.h. stpncpy.h does the replacement,
116945         and stpncpy.c uses it.
116947 2005-03-02  Bruno Haible  <bruno@clisp.org>
116949         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
116950         stpncpy.c uses it.
116952 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116954         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
116955         The workaround isn't strictly needed for POSIX conformance, and
116956         it's too much of a pain to configure and maintain.  We'll ask
116957         people to fix their kernels instead.
116958         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
116959         (NANOSLEEP_BUG_WORKAROUND): Remove.
116960         (xnanosleep): Remove the workaround.
116962 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116964         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
116965         Reported by Derek Price.
116966         (Include): Add "timespec.h".
116968         * modules/xnanosleep (Depends-on): Remove gethrxtime.
116970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116972         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
116973         to detect nanosleep bug.
116975 2005-03-01  Bruno Haible  <bruno@clisp.org>
116977         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
116979 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116981         * modules/gethrxtime: New file.
116982         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
116983         (Depends-on): Add gethrxtime.
116984         (configure.ac): Add gl_XNANOSLEEP.
116985         (Makefile.am): Remove lib_SOURCES line.
116987 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
116989         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
116990         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
116992 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
116994         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
116995         * lib/timespec.h (gettime): Return void, since it always
116996         succeeds now.  All uses changed.
116997         * lib/gettime.c (gettime): Likewise.
116998         [HAVE_NANOTIME]: Prefer nanotime.
116999         Assume gettimeofday succeeds, as POSIX requires.
117000         Assime time () succeeds, since other code already does.
117001         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
117002         (timespec_subtract): Remove.
117003         (NANOSLEEP_BUG_WORKAROUND): New constant.
117004         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
117005         things considerably.  Use it only on GNU/Linux hosts, since the
117006         workaround shouldn't be needed elsewhere.
117008 2005-02-24  Bruno Haible  <bruno@clisp.org>
117010         * modules/gettext (Files): Add m4/glibc2.m4.
117012 2005-02-24  Bruno Haible  <bruno@clisp.org>
117014         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
117015         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
117016         * m4/progtest.m4:
117017         Update from GNU gettext 0.14.2.
117018         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
117020 2005-02-24  Bruno Haible  <bruno@clisp.org>
117022         * lib/localcharset.c: Update from GNU gettext 0.14.2.
117023         * lib/config.charset: Update from GNU gettext 0.14.2.
117025 2005-02-24  Bruno Haible  <bruno@clisp.org>
117027         * lib/gettext.h: Update from GNU gettext 0.14.2.
117029 2005-02-23  Simon Josefsson  <jas@extundo.com>
117031         * m4/iconvme.m4: New file.
117033 2005-02-23  Jim Meyering  <jim@meyering.net>
117035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
117036         change.
117037         Thanks to Bruno Haible for catching it.
117039 2005-02-22  Simon Josefsson  <jas@extundo.com>
117041         * modules/iconvme: New file.
117043         * MODULES.html.sh: Add iconvme.
117045 2005-02-22  Simon Josefsson  <jas@extundo.com>
117047         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
117049 2005-02-22  Simon Josefsson  <jas@extundo.com>
117051         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
117053 2005-02-22  Jim Meyering  <jim@meyering.net>
117055         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
117056         s/ifndef/ifdef/.
117058 2005-02-20  Neil Conway  <neilc@samurai.com>
117060         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
117061         returned by OSX/Darwin if the specified buffer is not large
117062         enough for the hostname.
117064 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117066         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
117067         pass it to _help, otherwise the latter coredumps trying to
117068         dereference state.root_argp.
117070 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117072         * modules/chdir-long (Depends-on): Add memrchr.
117073         * modules/memrchr (Files): Add lib/memrchr.h.
117074         (Include): "memrchr.h".
117076 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117078         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
117080 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
117082         * lib/memrchr.h: New file.
117083         * lib/chdir-long.c: Include it.
117084         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
117085         Don't bother including stddef.h.
117087 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
117089         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
117090         inclusion.
117091         Include <sys/types.h>, for dev_t.
117092         (ME_DUMMY, ME_REMOTE): Move from here....
117093         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
117094         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
117095         Dmitry V. Levin.
117096         Include mountlist.h first, to test the interface.
117098 2005-01-29  Bruno Haible  <bruno@clisp.org>
117100         * lib/progname.c (program_name): Initialize.
117101         Needed when linking statically on MacOS X.
117103 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
117105         Sync from coreutils.
117106         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
117107         (Depends-on): Add c-strtod.
117108         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
117110 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
117112         Sync from coreutils.
117113         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
117115         Remove files that are specific to coreutils.
117116         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
117118 2005-01-28  Bruno Haible  <bruno@clisp.org>
117120         * modules/javacomp: New file.
117121         * MODULES.html.sh (Java): Add javacomp.
117123 2005-01-28  Bruno Haible  <bruno@clisp.org>
117125         * m4/javacomp.m4: New file, from GNU gettext.
117127 2005-01-28  Bruno Haible  <bruno@clisp.org>
117129         * lib/javacomp.sh.in: New file, from GNU gettext.
117130         * lib/javacomp.h: New file, from GNU gettext.
117131         * lib/javacomp.c: New file, from GNU gettext.
117133 2005-01-26  Simon Josefsson  <jas@extundo.com>
117135         * lib/gai_strerror.c: Use GPL in header.
117137 2005-01-26  Bruno Haible  <bruno@clisp.org>
117139         * modules/javaexec: New file.
117140         * MODULES.html.sh (Java): Add javaexec.
117142 2005-01-26  Bruno Haible  <bruno@clisp.org>
117144         * m4/javaexec.m4: New file, from GNU gettext.
117146 2005-01-26  Bruno Haible  <bruno@clisp.org>
117148         * lib/javaexec.sh.in: New file, from GNU gettext.
117149         * lib/javaexec.h: New file, from GNU gettext.
117150         * lib/javaexec.c: New file, from GNU gettext.
117152 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117154         * modules/lchown (Depends-on): Remove lchown.h
117156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117158         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
117159         must be defined if the header file was not found, in order
117160         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
117162 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117164         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
117165         initializers for struct pentry_state.
117166         (__argp_error): Check return value of __asprintf
117167         (__argp_failure): Translate error message
117169         * lib/argp-parse.c: Removed braces around the expansion of N_()
117171 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117173         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
117174         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
117175         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
117176         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
117177         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
117178         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
117179         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
117180         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
117181         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
117182         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
117183         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
117184         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
117185         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
117186         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
117187         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
117188         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
117189         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
117190         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
117191         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
117192         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
117193         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
117194         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
117195         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
117196         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
117197         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
117198         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
117199         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
117200         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
117201         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
117202         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
117203         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
117204         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
117205         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
117206         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
117207         xstrtol.m4, xstrtoumax.m4, yesno.m4:
117208         Use an all-permissive copyright notice, recommended by RMS.
117210 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
117212         * modules/chdir-long (Depends-on): Remove mempcpy.
117214 2005-01-21  Jim Meyering  <jim@meyering.net>
117216         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
117217         same value as for Solaris 9.
117219         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
117220         component length.  This included changing the parameter to be
117221         of type `char *' rather than `char const *'.
117222         * lib/chdir-long.h (chdir_long): Update prototype.
117224         * lib/openat.c (fdopendir, fstatat): New functions.
117225         * lib/openat.h: Include headers required for use of DIR and struct
117226         stat.
117227         [AT_SYMLINK_NOFOLLOW]: Define.
117228         (fdopendir, fstatat): Add prototypes.
117230 2005-01-21  Bruno Haible  <bruno@clisp.org>
117232         * modules/classpath: New file.
117233         * MODULES.html.sh (Java): Add classpath.
117235 2005-01-21  Bruno Haible  <bruno@clisp.org>
117237         * lib/classpath.h: New file, from GNU gettext.
117238         * lib/classpath.c: New file, from GNU gettext.
117240 2005-01-20  Simon Josefsson  <jas@extundo.com>
117242         * modules/version-etc-fsf: New file.
117244 2005-01-20  Simon Josefsson  <jas@extundo.com>
117246         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
117247         * lib/version-etc.c: Remove version_etc_copyright.
117248         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
117249         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
117251 2005-01-20  Simon Josefsson  <jas@extundo.com>
117253         * lib/base64.h (isbase64): Add.
117255         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
117256         using a unsigned prototype, don't inline.
117257         (base64_decode): Use it.
117259 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117261         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
117262         it.
117264 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117266         * lib/save-cwd.c (save_cwd): Remove code to support the case
117267         where fchdir is missing or flaky.
117269 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117271         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
117273 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
117275         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
117276         AC_LIBSOURCES now does this.
117277         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
117278         with new ullong_max module.
117280 2005-01-19  Bruno Haible  <bruno@clisp.org>
117282         * modules/sh-quote: New file.
117283         * MODULES.html.sh (Executing programs): Add sh-quote.
117285 2005-01-19  Bruno Haible  <bruno@clisp.org>
117287         * lib/sh-quote.h: New file, from GNU gettext.
117288         * lib/sh-quote.c: New file, from GNU gettext.
117290 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117292         Merge from coreutils.
117293         * m4/ullong_max.m4: New file.
117294         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
117295         (gl_MACROS): Assume localeconv exists.
117297 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117299         Merge changes from coreutils, as described below in several
117300         changelogs dated today.
117302         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
117303         (O_DIRECTORY): Remove; not needed here, since "." must be
117304         a directory.  All uses removed.
117305         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
117306         universal on Suns, and we also need to test for IRIX.
117307         Revamp code to use 'if' rather than '#if'.
117308         Avoid unnecessary comparison of cwd->desc to 0.
117310         * lib/utimens.c (futimens): Robustify the previous patch, by checking
117311         for known valid error numbers rather than observed invalid ones.
117313 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
117315         * modules/ullong_max: New file.
117317         * modules/chdir-long, modules/openat: New files.
117318         * modules/save-cwd (Depends-on): Depend on chdir-long.
117319         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
117321 2005-01-18  Jim Meyering  <jim@meyering.net>
117323         Merge from coreutils.
117324         * m4/chdir-long.m4, m4/openat.m4: New files.
117325         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
117326         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
117327         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
117328         is sane and DOES follow symlinks.  Besides, testing 20 different
117329         systems found no broken chown implementations.
117330         Prompted by a change in rsync's copy of this macro.
117331         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
117333         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
117335         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
117336         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
117337         NULL-means-set-to-current-time semantics.
117338         Remove temporary file immediately, rather than waiting
117339         for configure's at-exit trap code to do it.
117341 2005-01-18  Jim Meyering  <jim@meyering.net>
117343         * lib/version-etc.c (version_etc_copyright): Update copyright date.
117345         * lib/utimens.c (futimens): Account for the fact that futimes
117346         can also fail with errno == ENOSYS or errno == ENOENT.
117347         Patch from Dmitry V. Levin.
117349         Change the name of the robust chdir function from chdir to chdir_long.
117350         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
117351         (restore_cwd): Use chdir_long, not chdir.
117352         * lib/chdir-long.c: Renamed from chdir.c.
117353         * lib/chdir-long.h: Renamed from chdir.h.
117354         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
117355         Hurd.
117357 2005-01-18  Bruno Haible  <bruno@clisp.org>
117359         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
117360         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
117361         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
117362         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
117363         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
117364         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
117365         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
117366         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
117367         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
117368         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
117369         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
117370         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
117371         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
117372         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
117373         Use an all-permissive copyright notice, recommended by RMS.
117375 2005-01-18  Bob Proulx  <bob@proulx.com>
117377         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
117378         simplify offsetof() macro construct to avoid compile failure with
117379         native HP-UX 11.0 ANSI C compiler.
117381 2005-01-17  Bruno Haible  <bruno@clisp.org>
117383         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
117384         redundant because stpncpy.m4 takes care of it.
117386 2005-01-17  Bruno Haible  <bruno@clisp.org>
117388         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
117390 2005-01-17  Bruno Haible  <bruno@clisp.org>
117392         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
117393         used.
117395 2005-01-17  Bruno Haible  <bruno@clisp.org>
117397         * lib/fwriteerror.h (fwriteerror): Change specification to include
117398         fclose.
117399         * lib/fwriteerror.c: Include <stdbool.h>.
117400         (fwriteerror): At the end, close the file stream. Record whether
117401         stdout was already closed.
117403 2005-01-17  Bruno Haible  <bruno@clisp.org>
117405         * lib/execute.c (environ): Declare if needed.
117406         * lib/pipe.c (environ): Likewise.
117407         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
117409 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117411         * modules/argp: Depend on vsnprintf
117413 2005-01-10  Jim Meyering  <jim@meyering.net>
117415         * modules/closeout (Depends-on): Add atexit.
117417 2005-01-06  Bruno Haible  <bruno@clisp.org>
117419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
117421 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117423         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
117424         definitions to be after all include files, to avoid collisions.
117425         Problem reported by Bob Proulx.
117427 2005-01-04  Jim Meyering  <jim@meyering.net>
117429         Changes imported from coreutils.
117430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
117431         as the mkstemp template, use a temporary directory and an
117432         8.3-friendly template to avoid trouble on systems like DJGPP.
117433         Reported by Juan M. Guerrero via Stepan Kasal.
117434         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
117435         close. Remove the temporary directory right away, rather than waiting
117436         for configure's at-exit trap code to do it.
117437         Suggestion from Stepan Kasal.
117439 2005-01-01  Simon Josefsson  <jas@extundo.com>
117441         * gnulib-tool: Print #include directives when --import'ing.
117443 2004-12-28  Simon Josefsson  <jas@extundo.com>
117445         * tests/test-base64.c: Include required header files.  Remove
117446         unused variables.
117448 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
117450         * modules/error (Depends-on): Remove gettext.
117452 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
117454         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
117455         not needed.  This removes a dependency on the gettext module.
117456         [defined _LIBC]: Do not include <libintl.h>; not needed.
117458 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
117460         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
117461         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
117463 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
117465         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
117466         HAVE_DECL_STRTOLD.
117468 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117470         * modules/getdate (Depends-on): Remove alloca-opt.
117472 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117474         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
117476 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
117478         * lib/argp-parse.c: Include <stddef.h>.
117479         (alignof, alignto): New macros.
117480         (parser_init): Don't assume that void * is aligned sufficiently
117481         for struct option.
117483         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
117484         need to extend the stack.
117485         (YYINITDEPTH): New macro, so that the initial stack isn't overly
117486         large.
117488 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117490         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
117492 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
117494         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
117495         (2004-10-24) change.  Apparently this was a false alarm.
117497         * modules/getdate: Depend on alloca-opt, not alloca.
117499 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
117501         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
117502         Remove now-obsolete comment about AIX.
117503         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
117504         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
117505         (YYMAXDEPTH): New macro.
117507 2004-12-18  Simon Josefsson  <jas@extundo.com>
117509         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
117511 2004-12-18  Bruno Haible  <bruno@clisp.org>
117513         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
117515 2004-12-18  Bruno Haible  <bruno@clisp.org>
117517         * lib/fatal-signal.c (fatal_signals): Make non-const.
117518         (init_fatal_signals): New function.
117519         (uninstall_handlers, install_handlers): Ignore signals that were set to
117520         SIG_IGN.
117521         (at_fatal_signal): Call init_fatal_signals.
117522         (init_fatal_signal_set): Likewise. Ignore signals that were set to
117523         SIG_IGN.
117524         Reported by Paul Eggert.
117526 2004-12-18  Bruno Haible  <bruno@clisp.org>
117528         * doc/alloca.texi: New file.
117529         * doc/alloca-opt.texi: New file.
117531 2004-12-17  Jim Meyering  <jim@meyering.net>
117533         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
117534         Otherwise, install-sh could exit with improper exit status when
117535         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
117537 2004-12-16  Simon Josefsson  <jas@extundo.com>
117539         * tests/test-base64.c: Add license.
117541 2004-12-15  Stepan Kasal  <address@hidden>
117543         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
117545 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
117547         * modules/getcwd (Files): Add m4/d-ino.m4.
117548         Suggested by Mark D. Baushke.
117550 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
117552         * lib/getdate.y (textint): New member "negative".
117553         (time_zone_hhmm): New function.
117554         Expect 14 shift-reduce conflicts, not 13.
117555         (o_colon_minutes): New rule.
117556         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
117557         (yylex): Set the "negative" member of signed numbers.
117559 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
117561         * doc/getdate.texi (Time of day items, Time zone items):
117562         Describe new formats +00:00, UTC+00:00.
117564 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117566         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
117567         spurious "-l"s.  Problem reported by Stepan Kasal.
117569 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
117571         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
117572         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
117574 2004-12-04  Simon Josefsson  <jas@extundo.com>
117576         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
117577         Vandoorselaere <yoann@prelude-ids.org>.
117579 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117581         Changes imported from coreutils.
117582         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
117583         exist.
117584         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
117586 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117588         Changes imported from coreutils.
117589         * lib/hard-locale.c: Assume <locale.h> exists.
117590         Include "strdup.h".
117591         (GLIBC_VERSION): New macro.
117592         (hard_locale): Assume setlocale exists.
117593         Rewrite to avoid #ifdef.
117594         Use strdup rather than malloc + strcpy.
117595         * lib/human.c: Assume <locale.h> exists.
117596         (human_readable): Assume localeconv exists.
117598 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
117600         * modules/hard-locale (Depends-on): Add strdup.
117602 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
117604         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
117605         convert T2, not T.  (Imported from libc.)
117607 2004-11-30  Simon Josefsson  <jas@extundo.com>
117609         * modules/restrict (License): Change to LGPL.
117611 2004-11-30  Simon Josefsson  <jas@extundo.com>
117613         * m4/restrict.m4: Add copyright and copying conditions.
117615 2004-11-30  Simon Josefsson  <jas@extundo.com>
117617         * m4/base64.m4: New file.
117619 2004-11-30  Simon Josefsson  <jas@extundo.com>
117621         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
117622         base64.
117624         * tests/test-base64.c: New file.
117626         * modules/base64: New file.
117628 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
117630         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
117631         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
117633         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
117635 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
117637         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
117638         (__getcwd.c): Don't restore errno; glibc doesn't.
117639         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
117640         first, falling back to our code only if its results look suspicious.
117641         Ensure that the resulting buffer is only as large as necessary.
117643         * lib/readutmp.c: Include readutmp.h first.
117644         Include <errno.h>, since readutmp.h no longer does that.
117645         * lib/readutmp.h: Don't include <errno.h>,
117646         <sys/param.h>, <time.h>; not needed to establish interface.
117647         (errno): Remove decl.
117648         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
117649         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
117650         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
117652 2004-11-28  Simon Josefsson  <jas@extundo.com>
117654         * lib/base64.h, base64.c: New file.
117656 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
117658         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
117660 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
117662         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
117663         (Depends-on): Remove pathmax, same.  Add mempcpy.
117664         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
117665         (Makefile.am): Append getcwd.h to lib_SOURCES.
117666         (Include): Add getcwd.h.
117667         (Maintainer): Change from Jim Meyering to "all, glibc",
117668         since getdate now uses intended-for-glibc code.
117669         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
117670         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
117672 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117674         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
117675         HP's ANSI C compiler.
117676         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
117677         Declaring int functions causes warnings on some modern systems and
117678         shouldn't be needed to compile on ancient ones.
117679         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
117680         defined.
117682         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
117683         with the following changes.
117684         (__set_errno): Parenthesize properly.
117685         Include <stdbool.h>.
117686         (MIN, MAX, MATCHING_INO): New macros.
117687         (__getcwd): Define with prototype, not K&R form.
117688         Use heuristics to allocate default buffer on stack if possible.
117689         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
117690         behavior, and to avoid the PATH_MAX limit when computing
117691         ../../../../...
117692         Use MATCHING_INO to compare inode number to file.
117693         Check for arithmetic overflow in size calculations.
117694         Fix bug in reallocation of dot array that caused getcwd to fail
117695         on directories nested deeper than 75.
117696         Be more careful about saving errno on error.
117697         Do not use realloc; use only free+malloc, as this is a bit
117698         more flexible and avoids a needless copy operation.
117699         Do not inspect st_dev and st_ino for symbolic links; POSIX
117700         doesn't specify the latter.
117701         Check for closedir errors.
117702         Avoid needless casts.
117703         Use "#ifdef weak_alias" around weak_alias, to be like other
117704         glibc code.
117705         The following changes to getcwd.c have effect only when used in
117706         gnulib; they have no effect inside glibc proper.
117707         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
117708         as alloca isn't used.
117709         (alloca, __alloca): Likewise.
117710         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
117711         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
117712         unconditionally, as gnulib assumes C89 or better.
117713         Do not include <sys/param.h>.
117714         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
117715         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
117716         better.
117717         (NULL) [!defined NULL]: Remove; we assume C89 or better.
117718         Include <dirent.h> in a way that is compatible with modern Autoconf.
117719         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
117720         New macros, if not already defined.
117721         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
117722         Use "_LIBC", not "defined _LIBC", for consistency.
117723         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
117724         a mempcpy module.
117725         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
117726         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
117727         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
117728         credit only to Jim Meyering and adjust the copyright dates.
117729         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
117730         <stdlib.h>, <unistd.h>, "pathmax.h".
117731         Instead, include "xgetcwd.h" (first) and "getcwd.h".
117732         (INITIAL_BUFFER_SIZE): Remove.
117733         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
117735 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117737         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
117738         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
117739         Use the _ONCE methods, for efficiency.
117740         Check for fcntl.h.  In test program, include <errno.h>
117741         and <fcntl.h> if available.  Remove old K&R cruft from
117742         test program.  Check for common errors in GNU/Linux,
117743         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
117744         don't do AC_LIBOBJ, as that's getcwd.m4's job.
117745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
117746         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
117747         name accordingly.
117748         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
117749         accommodate new getcwd.c.
117750         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
117751         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
117752         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
117753         that's all we need now.
117755 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117757         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
117758         argp-parse.c depends on getopt internals, that means we should
117759         always use our getopt, to be on the safe side.
117760         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
117761         order not to spoil the result of an eventual previous invocation
117762         of gl_GETOPT_SUBSTITUTE.
117764 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117766         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
117767         redefinition warnings. To avoid them, include the defines
117768         in `#if !defined __need_getopt ... #endif'. The only place
117769         where __getopt_argv_const is used is in definitions
117770         of getopt_long and getopt_long_only below, which are as well
117771         protected by `#ifndef __need_getopt'.
117772         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
117773         __need_getopt after including <stdio.h> and <unistd.h> These
117774         headers might have defined it.
117776 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
117778         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
117780 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
117782         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
117783         (futimens): New function, which uses futimes if available.
117784         (futimens, utimens): Support timespec==NULL, with same semantics
117785         as utime and utimens.
117786         * lib/utimens.h (futimens): New decl.
117788 2004-11-23  Jim Meyering  <jim@meyering.net>
117790         * lib/getopt_.h: Remove trailing blanks.
117792 2004-11-23  Jim Meyering  <jim@meyering.net>
117794         * lib/__fpending.c: Add comment.
117796 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
117798         * modules/canonicalize (Depends-on): Add xreadlink.
117799         Problem reported by James Youngman.
117801 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
117803         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
117804         New macros.
117805         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
117806         optopt): Use them instead of invoking ## directly; otherwise, the
117807         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
117809 2004-11-19  Bruno Haible  <bruno@clisp.org>
117811         * lib/strtok_r.c: Move comments from here...
117812         * lib/strtok_r.h: ... to here.
117814 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
117816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
117817         implementations that mishandle size_t overflow.
117819 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
117821         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
117822         might fail.  Problem reported by Yoann Vandoorselaere.
117823         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
117824         implementations that mishandle size_t overflow.
117826 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
117828         * modules/canon-host (Depends-on): Add strdup.
117830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
117832         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
117834 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
117836         * lib/canon-host.c: Include "strdup.h".
117837         (canon_host): Use getaddrinfo if available, so that IPv6 works.
117838         Use strdup instead of malloc/strcpy to duplicate strings.
117840         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
117841         (human_space_before_unit): New constant.
117842         * lib/human.c (human_readable): Support it.
117844         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
117845         (xgetcwd): Set errno correctly when failing.
117846         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
117847         the failure is actually due to a PATH_MAX problem.
117849         Further getopt changes to make it more likely that glibc will
117850         buy the changes back.
117851         * lib/getopt.c (POSIXLY_CORRECT): New constant.
117852         (getopt): Use it, so to preserve glibc semantic
117853         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
117854         when compiling for libc.
117855         * lib/getopt_.h (__getopt_argv_const): Bring it back.
117856         (getopt_long, getopt_long_only): Use it.
117858         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
117859         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
117860         (getopt): Argv is now char * const *, as per standard.
117861         (_getopt_internal_r, _getopt_internal): Argv is now char **,
117862         not char *__getopt_argv_const *.
117863         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
117864         _getopt_long_only_r): Likewise.
117865         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
117866         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
117867         _getopt_long_r, _getopt_long_only_r): Likewise.
117868         * lib/getopt_.h (__getopt_argv_const): Remove.
117869         (getopt): Argv is now char * const *, as per standard.
117871         * lib/getdate.y (tORDINAL): New token.
117872         (day, relunit): Allow it for relative times.
117873         (relative_time_table): Use tORDINAL for ordinals.
117875 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
117877         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
117878         Document that "second" isn't allowed as an ordinal number.
117880 2004-11-16  Jim Meyering  <jim@meyering.net>
117882         * modules/closeout (Depends-on): Add fpending.
117884 2004-11-15  Jim Meyering  <jim@meyering.net>
117886         * lib/closeout.c: Include "__fpending.h" once again.
117887         Include <stdbool.h>.
117888         (close_stdout): Don't fail just because stdout was closed initially,
117889         since some programs don't write to stdout in the normal course of
117890         operation (other than --version and --help), and we don't want this
117891         function to make e.g. `touch file >&-' fail.
117892         But do fail if it was closed and someone has tried to write to it.
117893         E.g., `printf foo >&-' must fail.
117895 2004-11-13  Jim Meyering  <jim@meyering.net>
117897         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
117899 2004-11-12  Simon Josefsson  <jas@extundo.com>
117901         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
117902         small doc fix is still pending.
117904 2004-11-11  Simon Josefsson  <jas@extundo.com>
117906         * modules/strtok_r: New file.
117908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117909         strtok_r.
117911 2004-11-11  Simon Josefsson  <jas@extundo.com>
117913         * m4/strtok_r.m4: New file.
117915         * m4/getopt.m4: Replace opterr.
117917 2004-11-11  Simon Josefsson  <jas@extundo.com>
117919         * lib/strtok_r.h, strtok_r.c: New file.
117921 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
117923         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
117924         of replacing opterr, getopt, etc.  This should handle the
117925         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
117927 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
117929         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
117930         we can stop lying to compilers about the constness of argv when we
117931         are compiled outside glibc.
117932         (getopt, getopt_long, getopt_long_only): Use it.
117933         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
117934         _getopt_internal, getopt): Likewise.
117935         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
117936         _getopt_long_only_r): Likewise.
117937         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
117938         _getopt_long_r, _getopt_long_only_r): Likewise.
117940         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
117941         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
117942         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
117943         the other external symbols.
117944         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
117945         declaration, since the above renaming now works around collisions.
117947 2004-11-11  Jim Meyering  <jim@meyering.net>
117949         * lib/linebreak.c: Remove trailing blanks.
117950         * lib/alloca_.h: Likewise.
117951         * lib/acosl.c: Likewise.
117952         * lib/euidaccess.c: Likewise.
117953         * lib/allocsa.h: Likewise.
117955 2004-11-10  Simon Josefsson  <jas@extundo.com>
117957         * m4/getaddrinfo.m4: New file.
117959 2004-11-10  Simon Josefsson  <jas@extundo.com>
117961         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
117963 2004-11-10  Simon Josefsson  <jas@extundo.com>
117965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117966         getaddrinfo.
117968         * modules/getaddrinfo: New file.
117970 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117972         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
117974 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117976         * lib/mktime.c (SHR): New macro, which is a portable
117977         substitute for >> that should work even on Crays.
117978         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
117979         Problem reported by Mark D. Baushke in
117980         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
117981         * lib/getdate.y (SHR): Likewise.
117982         (tm_diff): Use it.
117983         * lib/strftime.c (SHR): Likewise.
117984         (tm_diff): Use it.
117985         * lib/quotearg.c (struct quoting_options): Use unsigned int for
117986         quote_these_too, so that right shifts are well defined.  All uses
117987         changed.
117989 2004-11-10  Jim Meyering  <jim@meyering.net>
117991         Ensure that no close failure goes unreported.
117992         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
117993         return early when it seems there's nothing to flush.
117994         Don't include __fpending.h.
117996 2004-11-10  Jim Meyering  <jim@meyering.net>
117998         * modules/closeout (Depends-on): Remove fpending.
118000 2004-11-10  Jim Meyering  <jim@meyering.net>
118002         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
118004 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
118006         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
118007         gl_FUNC_STRFTIME.
118008         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
118009         and AC_REQUIRE when possible, to avoid duplicate checks.
118010         Check for <wchar.h>.
118012 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
118014         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
118016 2004-11-09  Bruno Haible  <bruno@clisp.org>
118018         * m4/sockpfaf.m4: New file.
118020 2004-11-05  Bruno Haible  <bruno@clisp.org>
118022         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
118023         Reported by Mark D. Baushke <mdb@cvshome.org>.
118025 2004-11-04  Bruno Haible  <bruno@clisp.org>
118027         2004-09-11  Bruno Haible  <bruno@clisp.org>
118028                 * allocsa.valgrind: New file.
118029         2004-02-06  Bruno Haible  <bruno@clisp.org>
118030                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
118031                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
118032                 Reported by Christopher Seip <chris.seip@hp.com>.
118034 2004-11-04  Bruno Haible  <bruno@clisp.org>
118036         * modules/allocsa (Files): Add lib/allocsa.valgrind.
118037         (Makefile.am): Distribute it.
118039 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
118041         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
118042         with errno == ERANGE if the buffer is too small.
118043         Problem reported by Mark D. Baushke.
118045 2004-11-03  Albert Chin  <china@thewrittenword.com>
118046             Paul Eggert  <eggert@cs.ucla.edu>
118048         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
118049         equivalent, substitute $ac_type for equivalent type rather than
118050         blindly using uint32_t *always* which won't work if uint32_t is not
118051         available.  Define _UINT32_T to work around typedef of uint32_t if
118052         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
118053         2.5.1.
118055 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118057         * m4/jm-macros.m4: Sync from coreutils.
118058         (gl_MACROS): Check for mbrlen, for pathchk.
118059         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
118061 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118063         * lib/xreadlink.c (MAXSIZE): New macro.
118064         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
118065         size does not exceed MAXSIZE.  Avoid cast.
118066         As suggested by Mark D. Baushke in
118067         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
118068         if readlink fails with buffer size just under MAXSIZE, try again
118069         with MAXSIZE.
118071 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
118073         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
118075 2004-11-02  Derek R. Price  <derek@ximbiot.com>
118076         and  Paul Eggert  <eggert@cs.ucla.edu>
118078         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
118079         (get_date): Overparenthesize to avoid GCC warning.
118081 2004-11-02  Bruno Haible  <bruno@clisp.org>
118083         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
118084         returns void.
118086 2004-11-02  Bruno Haible  <bruno@clisp.org>
118088         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
118089         function returns void.
118091 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
118093         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
118094         fflush_unlocked, flockfile, funlockfile, funlockfile,
118095         fputs_unlocked, putc_unlocked.
118097 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
118099         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
118100         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
118101         already declared.
118103 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118105         * modules/getdate (Files): Add doc/getdate.texi.
118106         (Depends-on): Add setenv, xalloc.
118108 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118110         * lib/getdate.y: Add support for TZ="foo" within a date string.
118111         Fix some bugs near time_t boundaries.  Reject dates with
118112         out-of-range components, e.g., "Sept 31".
118113         Include <stdlib.h>, "setenv.h", "xalloc.h".
118114         (ISDIGIT_LOCALE): Remove; unused.
118115         Note that the TZ and time functions used here are not reentrant.
118116         (mktime_ok, get_tz): New functions.
118117         (TZBUFSIZE): New constant.
118118         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
118119         This requires that we sometimes generate our own TZ="XXX..." setting.
118121 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118123         * doc/getdate.texi: New file, from coreutils with modifications for
118124         the new TZ parsing.
118126 2004-10-27  Derek R. Price  <derek@ximbiot.com>
118128         * lib/mktime.c (not_equal_tm): Remove redundant check.
118130 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
118132         * modules/regex (lib_SOURCES): Add regex.c.
118133         Reported by James Youngman in
118134         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
118136 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
118138         * lib/getdate.y: Use Bison 1.875 features, and some minor
118139         code cleanups.  This change does not affect semantics.
118140         Don't include <stdlib.h>; no longer needed.
118141         Don't include unlocked-io.h; only the "#if TEST" code uses
118142         stdio, and performance isn't crucial there.
118143         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
118144         Bison 1.875 features as described below.
118145         All uses of "PC." replaced by "pc->".
118146         (YYSTYPE): Add a forward declaration.
118147         (yylex, yyerror): Use full prototypes in forward decls.
118148         Use "%pure-parser" rather than obsolescent "%pure_parser".
118149         Use %parse-param and %lex-param instead of obsolescent
118150         YYPARSE_PARAM and YYLEX_PARAM.
118151         (meridian_table, month_and_day_table, time_units_table,
118152         relative_time_table, time_zone_table, military_table,
118153         lookup_zone, lookup_word, get_date):
118154         Use NULL instead of 0 where appropriate.
118155         (to_hour): Avoid abort (), to avoid a dependency on
118156         stdlib.h.
118157         (yyerror, yylex): Now accepts parser_control * arg.
118158         (main) [TEST]: Use '\0' rather than 0 for char.
118160 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
118162         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
118164 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
118166         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
118167         It's now the caller's responsibility to handle the case where
118168         !HAVE_GETPAGESIZE && !defined getpagesize.
118170         * lib/mktime.c (leapyear): Arg is long int, not int.
118172 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
118174         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
118176 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
118178         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
118179         missing.  Problem reported by James Youngman.
118181 2004-10-16  Simon Josefsson  <jas@extundo.com>
118183         * gnulib-tool: Fix comments.  Fix parse problem.
118184         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
118186 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
118188         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
118189         implementation of getopt_long.  Problem reported by Alexander Taler in:
118190         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
118192 2004-10-15  Bruno Haible  <bruno@clisp.org>
118194         * gnulib-tool: Untabify. Initialize supplied_libname.
118195         (func_usage): More homogenous output.
118196         (func_modules_transitive_closure, func_modules_to_filelist,
118197         func_emit_lib_Makefile_am): New functions.
118198         (func_import): New function, extracted from big case statement. Use
118199         func_get_license, func_modules_transitive_closure,
118200         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
118201         opt_lgpl. Don't use test -a, as it's not portable.
118202         (func_create_testdir): Use func_modules_transitive_closure,
118203         func_modules_to_filelist, func_emit_lib_Makefile_am.
118205 2004-10-15  Bruno Haible  <bruno@clisp.org>
118207         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
118209 2004-10-15  Bruno Haible  <bruno@clisp.org>
118211         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
118212         the portions belonging to each module.
118213         Suggested by Derek Robert Price <derek@ximbiot.com>.
118215 2004-10-12  Simon Josefsson  <jas@extundo.com>
118217         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
118218         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
118219         to real functions.
118221 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118223         * modules/vsnprintf: New file.
118225 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118227         * m4/vsnprintf.m4: New file.
118229 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118231         * lib/vsnprintf.h: New file.
118232         * lib/vsnprintf.c: New file.
118234 2004-10-11  Bruno Haible  <bruno@clisp.org>
118236         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
118237         vsnprintf.
118239 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118241         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
118243 2004-10-07  Bruno Haible  <bruno@clisp.org>
118245         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
118246         fits into the provided buffer.
118248 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118250         * lib/diacrit.c, diacrit.h: Add GPL notice.
118252         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
118253         notice.
118254         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
118255         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
118256         This avoids a potential constant-folding bug.
118258 2004-10-05  Bruno Haible  <bruno@clisp.org>
118260         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
118261         for the declaration of strsep.
118263 2004-10-05  Bruno Haible  <bruno@clisp.org>
118265         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
118267 2004-10-04  Simon Josefsson  <jas@extundo.com>
118269         * modules/memmem: New file.
118270         * tests/test-memmem.c: New file.
118271         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
118273 2004-10-04  Simon Josefsson  <jas@extundo.com>
118275         * m4/memmem.m4: New file.
118277 2004-10-04  Simon Josefsson  <jas@extundo.com>
118279         * lib/memmem.h: New file.
118280         * lib/memmem.c: New file, taken from glibc.
118282 2004-10-04  Simon Josefsson  <jas@extundo.com>
118284         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
118285         '#ifdef USE_UNLOCKED_IO'.
118287 2004-10-04  Simon Josefsson  <jas@extundo.com>
118289         * config/srclist.txt: Add memmem from glibc.
118291 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118293         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
118295         * modules/argmatch, modules/argp, modules/closeout, modules/error,
118296         modules/exclude, modules/getdate, modules/getline,
118297         modules/getndelim2, modules/getpass, modules/getpass-gnu,
118298         modules/getusershell, modules/linebuffer, modules/md5,
118299         modules/mountlist, modules/posixtm, modules/readtokens,
118300         modules/readutmp, modules/regex, modules/sha1,
118301         modules/version-etc, modules/yesno:
118302         Remove dependency on unlocked-io.
118304 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118306         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
118308         * m4/unlocked-io.m4: Add copyright notice.
118309         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
118311 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118313         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
118314         * lib/xmalloc.c (xmemdup): Likewise.
118315         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
118316         XFREE): Remove these long-obsolescent macros.
118317         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
118318         * lib/xstrdup.c: Remove.
118320         * lib/regex.c (re_comp): Cast gettext return value to char *,
118321         Problem reported by Martin Neitzel via Mark D. Baushke.
118323 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
118325         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
118326         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
118327         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
118328         regex.c, sha1.c, version-etc.c, yesno.c:
118329         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
118330         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
118331         the includer's responsibility.
118333         Sync from coreutils.
118335         * lib/modechange.c (mode_compile): Don't decrement a pointer that
118336         points to the start of a string, as the C Standard says the
118337         resulting behavior is undefined.
118339         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
118340         simple -> simple_backups, numbered_existing ->
118341         numbered_existing_backups, numbered -> numbered_backups
118342         to avoid shadowing problems.  All uses changed.
118343         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
118344         * lib/backupfile.c (check_extension, numbered_backup):
118345         Rename locals to avoid shadowing 'basename'.
118346         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
118347         once.
118349         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
118350         * lib/.cvsignore: Add getopt.h.
118352 2004-10-04  Bruno Haible  <bruno@clisp.org>
118354         * modules/README: New file.
118355         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
118356         not a module.
118358 2004-10-02  Jim Meyering  <jim@meyering.net>
118360         * lib/dirfd.h, getpagesize.h: Add copyright notice.
118362 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118364         * modules/strsep: New file.
118366 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118368         * m4/strsep.m4: New file.
118370 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
118372         * lib/strsep.h: New file.
118373         * lib/strsep.c: New file.
118375 2004-10-01  Simon Josefsson  <jas@extundo.com>
118377         * lib/snprintf.c (snprintf): Handle size==0.
118379 2004-10-01  Simon Josefsson  <jas@extundo.com>
118380             Bruno Haible  <bruno@clisp.org>
118382         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
118383         (snprintf): Declare 'args'.
118385 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
118387         * lib/snprintf.c: Remove comments as to why each header is needed.
118389 2004-10-01  Bruno Haible  <bruno@clisp.org>
118391         * MODULES.html.sh: Add strsep.
118393 2004-09-30  Simon Josefsson  <jas@extundo.com>
118395         * modules/snprintf: New file.
118397 2004-09-30  Simon Josefsson  <jas@extundo.com>
118399         * m4/snprintf.m4: New file.
118401 2004-09-30  Simon Josefsson  <jas@extundo.com>
118403         * lib/snprintf.h, lib/snprintf.c: New files.
118405 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118407         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
118408         (hol_entry_help): Never translate an empty string.
118409         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
118410         * lib/argp.h (OPTION_NO_TRANS): New option.
118412 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118414         * modules/argp (Maintainer): Replace Simon Josefsson
118415         by Sergey Poznyakoff.
118417 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118419         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
118420         changes merged back into glibc.
118422 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
118424         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
118426 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
118428         * lib/xvasprintf.c: Include xalloc.h.
118429         (xvasprintf): Use xalloc_die, not xmalloc_die.
118431 2004-09-29  Bruno Haible  <bruno@clisp.org>
118433         * modules/alloca-opt: New file, derived from modules/alloca.
118434         * modules/allocsa: Depend on alloca-opt instead of alloca.
118435         * modules/setenv: Likewise.
118436         * modules/vasnprintf: Likewise.
118437         * MODULES.html.sh: Add alloca-opt.
118439 2004-09-28  Simon Josefsson  <jas@extundo.com>
118441         * gnulib-tool: New parameter --lgpl, to asseert that modules are
118442         LGPL, and to replace license template from GPL to LGPL.
118444 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
118446         * modules/dummy: Change license to LGPL.
118448 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
118450         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
118452 2004-09-24  Simon Josefsson  <jas@extundo.com>
118454         * modules/minmax (License): Change from GPL to LGPL.
118456 2004-09-23  Simon Josefsson  <jas@extundo.com>
118458         * gnulib-tool (--import): Typo.
118460 2004-09-23  Simon Josefsson  <jas@extundo.com>
118462         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
118464 2004-09-22  Bruno Haible  <bruno@clisp.org>
118466         * modules/*: Add 'License' field.
118467         * gnulib-tool: Accept --extract-license option.
118468         (func_get_license): New function.
118470 2004-09-21  Bruno Haible  <bruno@clisp.org>
118472         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
118473         Reported by Simon Josefsson.
118475 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
118477         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
118478         gl_AC_TYPE_LONG_LONG.
118480 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
118482         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
118484 2004-09-18  Simon Josefsson  <jas@extundo.com>
118485         and  Paul Eggert  <eggert@cs.ucla.edu>
118487         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
118488         calls with autoreconf.  Define GL_LIB.
118490 2004-09-14  Karl Berry  <karl@gnu.org>
118492         * config/srclist.txt: unsync setenv.c, sigh.
118494 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
118496         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
118497         Problem reported by Bruno Haible in:
118498         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
118500 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
118502         * config/srclist.txt: Comment out argp-pvh.c.
118504 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
118506         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
118507         in case some system header has #define'd it.  Problem reported by
118508         Soeren D. Schulze in
118509         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
118511 2004-09-09  Karl Berry  <karl@gnu.org>
118513         * regex.[ch]: delete from the root.  These were supposed to be
118514                 synced with emacs cvs, but this has not happened for about
118515                 a year, and anyway nothing else uses emacs regex.[ch].
118516                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
118517                 lib/regex[.ch] is untouched.
118519 2004-09-09  Bruno Haible  <bruno@clisp.org>
118521         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
118523 2004-09-09  Bruno Haible  <bruno@clisp.org>
118525         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
118526         modifications.
118527         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
118529 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
118531         * modules/xvasprintf: New file.
118532         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
118534 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
118536         * lib/xvasprintf.h: New file.
118537         * lib/xvasprintf.c: New file.
118538         * lib/xasprintf.c: New file.
118540 2004-09-08  Bruno Haible  <bruno@clisp.org>
118542         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
118544 2004-09-08  Bruno Haible  <bruno@clisp.org>
118546         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
118547         length is > INT_MAX.
118548         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
118549         more.
118551 2004-09-08  Bruno Haible  <bruno@clisp.org>
118553         * lib/stdint_.h: New file, taken from GNU clisp.
118555 2004-09-08  Bruno Haible  <bruno@clisp.org>
118556             Oskar Liljeblad  <oskar@osk.mine.nu>
118558         * modules/stdint: New file.
118559         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
118561 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118563         Import from coreutils.
118564         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
118565         strings on unbounded length.  alloca's performance benefits aren't
118566         that important here.
118567         (V_STRDUP): Remove.
118568         (parse_with_separator): New function, with most of the internals
118569         of the old parse_user_spec.  Allow user to omit both user and group,
118570         for compatibility with FreeBSD.
118571         Clone only the user name, not the entire spec.
118572         Do not set *uid, *gid unless entirely successful.
118573         Avoid memory leak in some failing cases.
118574         Fix regression for USER.GROUP reported by Dmitry V. Levin in
118575         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
118576         (parse_user_spec): Rewrite to use parse_with_separator.
118578 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118580         * modules/userspec: Don't depend on alloca.
118582 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
118584         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
118586 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
118588         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
118589         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
118590         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
118592 2004-08-16  Simon Josefsson  <jas@extundo.com>
118594         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
118595         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
118596         Add --dry-run for --import.
118597         Let user provided command line parameters override configure.ac
118598         settings.
118600 2004-08-12  Simon Josefsson  <jas@extundo.com>
118602         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
118603         as discussed with Paul Eggert in threads rooted at
118604         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
118605         and
118606         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
118607         Before, the test was empty, and relied on ELIDE_CODE in source
118608         code.)
118609         (gl_PREREQ_GETOPT): New macro.
118610         (gl_GETOPT): Use them.
118612 2004-08-12  Simon Josefsson  <jas@extundo.com>
118614         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
118615         * lib/getopt_.h: Renamed from getopt.h.
118617 2004-08-12  Simon Josefsson  <jas@extundo.com>
118619         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
118620         Change default library name from libfoo to libgnu.
118621         Now, if you have a configure.ac that says:
118622                 gl_SOURCE_BASE(gl)
118623                 gl_M4_BASE(gl/m4)
118624                 gl_MODULES(error getopt etcetera)
118625                 gl_INIT
118626         you can import all you need by running:
118627                 ../gnulib/gnulib-tool --import
118629         * modules/getopt (Files): Rename getopt.h to getopt_.h.
118630         (Makefile.am): Rewrite, use logic from argz.
118631         (Include): Use <getopt.h> instead of "getopt.h".
118633 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118635         * modules/argp (Files): Add m4/unlocked-io.m4.
118636         (Depends-on): Add extensions.
118638 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118640         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
118641         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
118642         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
118643         Check for program_invocation_name, program_invocation_short_name,
118644         flockfile, funlockfile, features.h, _getopt_long_only_r.
118646 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118648         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
118649         its complicated substitute.
118650         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
118651         and program_invocation_name.
118652         (__argp_basename) [!_LIBC]: Remove; the only use was
118653         replaced by its body.
118654         (__argp_short_program_name): Change condition from
118655         !defined __argp_short_program_name to
118656         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
118657         to match argp-namefrob.h.
118658         (__argp_failure): Don't assume strerror_r returns char *.
118659         * lib/argp-parse.c (N_): Define unconditionally.
118660         (argp_default_options): Fill out initializers with 0 to avoid
118661         gcc warnings.
118663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
118665         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
118666         getopt1.c.
118668 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118670         Merge from coreutils.
118672         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
118674         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
118675         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
118677 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118679         Merge from coreutils.
118681         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
118682         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
118683         for Reliant Unix 5.43.
118685         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
118686         (union fooround): Use uintmax_t, not long int.
118687         The rest is a merge from libc:
118688         [defined _LIBC]: Include <shlib-compat.h>.
118689         (_obstack) [defined _LIBC]: Remove after 2.3.4.
118691         * lib/settime.c (settime): Recode to avoid warning with
118692         Sun Forte C 6U2.
118694         * lib/strverscmp.c: Convert to UTF-8.
118696 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
118698         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
118699         m4/uintmax_t.m4.
118701 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
118703         * modules/xalloc-die: New file.
118704         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
118706         * modules/md5 (Files): Add m4/uint32_t.m4.
118707         * modules/sha1: Renamed from modules/sha.
118708         (Files):
118709         Rename lib/sha.h to lib/sha1.h.
118710         Rename lib/sha.c to lib/sha1.c.
118711         Rename m4/sha.m4 to m4/sha1.m4.
118712         (lib_SOURCES): Likewise.
118713         (configure.ac): Rename gl_SHA to gl_SHA1.
118714         (Include): sha.h -> sha1.h.
118716 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
118718         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
118719         * m4/sha1.m4: Renamed from sha.m4.
118720         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
118722 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
118724         * lib/obstack.h (obstack_empty_p):
118725         Don't assume that chunk->contents is suitably aligned.
118726         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
118727         Likewise. Problem reported by Benno in
118728         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
118730         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
118731         readable.  This could be improved further but it'd take some work.
118733 2004-08-08  Simon Josefsson  <jas@extundo.com>
118735         * modules/xgethostname (Depends-on): Remove exit and error (not
118736         used).
118738         * modules/getpass-gnu: Add getpass.h.
118739         (Depends-on): Add stdbool.
118740         * modules/getpass: Add getpass.h.
118742 2004-08-08  Simon Josefsson  <jas@extundo.com>
118744         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
118745         Check getpass declaration.
118747 2004-08-08  Simon Josefsson  <jas@extundo.com>
118749         * lib/xgethostname.c: Don't include error.h (not used).
118751         * lib/getpass.h: Add.
118752         * lib/getpass.c: Include getpass.h first.
118754 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
118756         * lib/xalloc-die.c: New file.
118757         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
118758         All uses removed.
118759         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
118760         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
118761         xalloc-die.c.
118762         (_, N_, xalloc_die): Move to xalloc-die.c.
118763         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
118764         so that we needn't mess with xalloc_msg_memory_exhausted.
118766         * lib/sha1.h: Renamed from sha.h.
118767         (SHA1_H): Renamed from _SHA_H.
118768         (sha1_ctx): Renamed from sha_ctx.
118769         (sha1_init_ctx): Renamed from sha_init_ctx.
118770         (sha1_process_block): Renamed from sha_process_block.
118771         (sha1_process_bytes): Renamed from sha_process_bytes.
118772         (sha1_finish_ctx): Renamed from sha_finish_ctx.
118773         (sha1_read_ctx): Renamed from sha_read_ctx.
118774         (sha1_stream): Renamed from sha_stream.
118775         (sha1_buffer): Renamed from sha_buffer.
118776         * lib/sha1.c: Likewise; renamed from sha.c.
118777         Do not include <sys/types.h>.
118778         Include <stddef.h> rather than <stdlib.h>.
118780 2004-08-08  Bruno Haible  <bruno@clisp.org>
118782         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
118783         FILESYSTEM_PREFIX_LEN.
118784         * lib/progreloc.c: Likewise.
118785         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
118787 2004-08-06  Simon Josefsson  <jas@extundo.com>
118789         * modules/progname (Depends-on): Don't depend on stdbool.
118791 2004-08-06  Simon Josefsson  <jas@extundo.com>
118793         * modules/getsubopt: New file.
118794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118795         getsubopt.
118797 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
118799         More merge from coreutils.
118801         * m4/utimens.m4, m4/utimecmp.m4: New files.
118802         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
118803         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
118804         prereq.m4, sha.m4: Import changes from coreutils.
118806 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
118808         More merge from coreutils.
118809         * modules/raise, modules/readtokens0, modules/utimens:
118810         * modules/utimecmp, module/xnanosleep: New files.
118811         * modules/strftime: Add lib/strftime.h.
118812         Change include from <time.h> to "strftime.h".
118813         * modules/yesno: Add lib/yesno.h.
118814         * modules/backupfile: Remove lib/addext.c.
118815         * modules/euidaccess: Add stat-macros.h.
118816         * modules/canonicalize, modules/euidaccess,
118817         modules/filemode, modules/lchown, modules/makepath,
118818         modules/rmdir, modules/stat: Likewise.
118820 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
118822         Merge from tar.
118823         * lib/argp-help.c (make_hol, hol_append): Don't assume that
118824         SIZE_MAX is a valid preprocessor constant.
118825         (__argp_basename): Change from "#ifndef _LIBC"
118826         to "#ifndef __argp_short_program_name", so that
118827         we don't compile these functions for tar.
118829         More merges from coreutils.
118830         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
118831         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
118832         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
118833         * lib/addext.c: Remove; no longer needed.
118834         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
118835         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
118836         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
118837         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
118838         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
118839         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
118840         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
118841         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
118842         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
118843         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118844         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
118845         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
118846         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
118847         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
118848         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
118849         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
118850         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
118851         Import changes from coreutils.
118853 2004-08-05  Simon Josefsson  <jas@extundo.com>
118855         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
118857 2004-08-05  Simon Josefsson  <jas@extundo.com>
118859         * m4/getsubopt.m4: New file.
118861 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
118863         Merge from coreutils.
118865         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
118866         * m4/getcwd-path-max.m4: New files.
118868         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
118869         FILESYSTEM_PREFIX_LEN ->
118870         FILE_SYSTEM_PREFIX_LEN.
118871         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
118872         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
118873         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
118874         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
118876         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
118877         prerequisite modules now handle the DOS stuff.
118878         Don't check for unistd.h.
118880 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
118882         Merge from coreutils.
118884         * lib/.gdb-history: Remove; this doesn't belong here.
118886         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
118887         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
118888         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
118889         * lib/getcwd.c: New files.
118891         * lib/dirname.h: Include <stdbool.h>.
118892         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
118893         for consistency with POSIX terminology.  All uses changed.
118894         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
118895         (strip_trailing_slashes): Use bool for booleans.
118896         * lib/stripslash.c (strip_trailing_slashes): Likewise.
118898         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
118899         sometimes returns a positive errno value even when it succeeds.
118900         (print_errno_message) [!LIBC]: Fall back on strerror if
118901         __strerror_r fails.
118903         * lib/path-concat.c (mempcpy): Don't define if a system header defines
118904         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
118905         (longest_relative_suffix): New function.
118906         (path_concat): Use it.  Assume first argument is not NULL.
118907         Port to DOS.  Omit redundant separators.
118908         Report an error instead of returning NULL.
118909         Use mempcpy instead of memcpy.
118910         (xpath_concat): Remove: not declared or used.
118912         * lib/same.h: Include <stdbool.h>
118913         (same_name): Return bool, not int.
118914         * lib/same.c (same_name): Likewise.
118915         (errno): Don't declare; we assume C89 or better now.
118917         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
118918         if not already defined.
118920         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
118921         * lib/dup-safer.c (errno): Likewise.
118923 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
118925         Merge from coreutils.
118926         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
118927         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
118928         * modules/path-concat: Don't depend on strdup.
118930 2004-08-03  Simon Josefsson  <jas@extundo.com>
118932         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
118933         * lib/progname.h: Don't include stdbool.h.
118935 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
118937         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
118938         * MODULES.html.sh (func_all_modules): Remove fatal.
118940 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
118942         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
118944 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
118946         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
118947         working.
118949 2004-08-02  Simon Josefsson  <jas@extundo.com>
118951         * lib/getsubopt.h: New file, with comments from Bruno Haible.
118952         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
118953         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
118955 2004-08-01  Simon Josefsson  <jas@extundo.com>
118957         * lib/xgetdomainname.c: Include stdlib.h, for free().
118959 2004-07-19  Bruno Haible  <bruno@clisp.org>
118961         * MODULES.html.sh (func_all_modules): Add dummy.
118963 2004-07-16  Simon Josefsson  <jas@extundo.com>
118965         * modules/dummy: New file.
118967 2004-07-16  Simon Josefsson  <jas@extundo.com>
118969         * lib/dummy.c: New file.
118971 2004-07-16  Bruno Haible  <bruno@clisp.org>
118973         * lib/backupfile.h: Add extern "C" for C++.
118974         * lib/closeout.h: Likewise.
118975         * lib/copy-file.h: Likewise.
118976         * lib/findprog.h: Likewise.
118977         * lib/full-write.h: Likewise.
118978         * lib/pathname.h: Likewise.
118979         * lib/progname.h: Likewise.
118980         * lib/stpcpy.h: Likewise.
118981         * lib/stpncpy.h: Likewise.
118982         * lib/strcase.h: Likewise.
118983         * lib/strstr.h: Likewise.
118984         * lib/xalloc.h: Likewise.
118986         * lib/mbswidth.h: Add extern "C" for C++.
118987         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
118989 2004-07-13  Robert Millan  <robertmh@gnu.org>
118991         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
118993 2004-07-09  Simon Josefsson  <jas@extundo.com>
118995         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
118996         failed without this.)
118998 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
119000         * modules/chown (Files): Add lib/fchown-stub.c, since
119001         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
119003 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
119005         * lib/fchown-stub.c: New file.
119007 2004-06-24  Jim Meyering  <jim@meyering.net>
119009         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
119011 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119013         * modules/argz: Omit "#include".
119015         * MODULES.html.sh (func_all_modules): Add calloc, to match
119016         2004-06-01 addition of calloc module.
119018 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119020         * m4/argz.m4: New file, which is autoupdated from libtool.
119022 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119024         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
119025         libtool.
119027 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
119029         * config/srclist-update: Don't insist on "USA." before the
119030         close-comment, as libtool omits the period and puts the */ on a
119031         separate line.
119032         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
119033         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
119035 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
119037         * modules/argz: New file.
119038         * MODULES.html.sh (func_all_modules): Add argz.
119040 2004-06-12  Jim Meyering  <jim@meyering.net>
119041         and  Paul Eggert  <eggert@cs.ucla.edu>
119043         * modules/hash (Files): Add lib/xalloc.h.
119044         * modules/pipe (Depends-on): Add wait-process.
119045         * modules/stat (Depends-on): Add xalloc.
119046         * modules/userspec (Files): Add lib/userspec.h.
119047         * modules/xstrto
119049         Upgrade from gettext-0.13.
119050         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
119051         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
119052         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
119054 2004-06-10  Jim Meyering  <jim@meyering.net>
119056         * lib/calloc.c: New file.
119058 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
119060         * lib/getdate.y (yylex): Allow space between sign and number.
119061         Problem reported by Dan Jacobson.
119063 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
119065         Merge from coreutils CVS.
119067         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
119068         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
119069         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
119070         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
119071         xstrtol.m4: Fix copyright date and/or serial number.
119073         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
119074         See if we need an fchown replacement.
119075         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
119076         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
119077         and use the replacement function if we detect either defect.
119079         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
119080         gl_UTIMECMP.
119082 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
119083         and  Jim Meyering  <jim@meyering.net>
119085         Merge from coreutils CVS.
119087         * lib/stat-macros.h: New file, with contents from file-type.h
119088         and coreutils' system.h.
119089         * lib/file-type.c: Include "stat-macros.h".
119090         * lib/file-type.h (file_type): Move all macro definitions to new file,
119091         stat-macros.h.
119093         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
119094         Wrap old code with this conditional.
119095         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
119096         function that does not dereference symlinks.
119097         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
119099         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
119100         dependency problems.
119101         (xreadlink): Accept new arg SIZE, for efficiency.
119102         All decls and uses changed.
119103         * lib/xreadlink.h: Include <stddef.h>, for size_t.
119105         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
119106         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
119108         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
119109         sysexits.h.
119111 2004-06-01  Jim Meyering  <jim@meyering.net>
119113         * m4/calloc.m4: New file.
119115 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
119117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
119118         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
119119         Also, fix a typo in a diagnostic.
119121 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
119123         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
119124         or AC_FUNC_REALLOC.
119126 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
119128         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
119129         macros to be defined.
119130         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
119131         the allocator returns NULL because the requested size is zero.
119133 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
119135         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
119136         var.  Add comment explaining why libc still defines it.  This
119137         merges the following patch from glibc:
119138         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
119140 2004-05-20  Andreas Schwab  <schwab@suse.de>
119142         * m4/free.m4: Replace free if it not known to work, not the other
119143         way round.
119145 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
119147         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
119148         present in glibc since revision 1.1 of this file.
119149         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
119150         obstack_alignment_mask, obstack_alloc, obstack_base,
119151         obstack_blank, obstack_blank_fast, obstack_chunk_size,
119152         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
119153         obstack_grow0, obstack_init, obstack_int_grow,
119154         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
119155         obstack_next_free, obstack_object_size, obstack_ptr_grow,
119156         obstack_ptr_grow_fast, obstack_room): Remove declarations of
119157         nonexistent functions.
119159 2004-05-18  Karl Berry  <karl@gnu.org>
119161         * config/srclist.txt: break link for vasnprintf.c.
119163 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
119165         Port obstack to the AS/400, where pointers are 16 bytes wide and
119166         you cannot cast an integer to a valid pointer.  This patch is
119167         currently waiting to be integrated into glibc; see
119168         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
119170         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
119171         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
119172         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
119173         (struct obstack): temp member is now a union of a pointer and
119174         an integer, instead of an integer.  All integer uses changed.
119175         This does not affect the physical layout of struct obstack,
119176         except on hosts (like the AS/400) where the size or alignment of
119177         void * is greater than that of ptrdiff_t.
119178         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
119179         __STDC__)]: Store temporary in pointer member of union, not
119180         integer member.
119181         * lib/obstack.c: Include <stddef.h>, for offsetof.
119182         (struct fooalign): Remove; it doesn't need a name.
119183         (union fooround): Change double to long double, and add void *.
119184         (DEFAULT_ALIGNMENT): Use offsetof to compute.
119185         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
119186         not a macro.  Hence the values are always int; so remove all
119187         casts-to-int in uses.
119189 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
119191         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
119192         we can get this patch merged into glibc.
119194 2004-05-17  Derek R. Price  <derek@ximbiot.com>
119195             Paul Eggert  <eggert@cs.ucla.edu>
119197         * m4/argp: Depend on alloca.
119199 2004-05-17  Derek R. Price  <derek@ximbiot.com>
119200             Paul Eggert  <eggert@cs.ucla.edu>
119202         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
119203         freecoding.
119205 2004-05-17  Bruno Haible  <bruno@clisp.org>
119207         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
119208         precision that consists of a '.' followed by an empty digit string.
119209         Patch by Tor Lillqvist <tml@iki.fi>.
119211 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
119213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
119214         for backward compatibility with older code.  We need our own
119215         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
119216         it under some other name, and our alloca.h will define it.
119218 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
119219             Derek Price  <derek@ximbiot.com>
119221         * lib/alloca.c: Include <alloca.h>, to get our interface.
119222         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
119223         include <alloca.h> first.  Use C89 prototype for alloca; this
119224         requires including <stddef.h> for size_t.  Use extern "C" if C++.
119225         Use #elif for simplicity, since we can assume C89 now.
119226         Don't try to source the system alloca.h since it will not be found
119227         and to prevent recursively including its replacement.
119228         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
119229         * lib/regex.c: Likewise.
119231 2004-05-16  Derek Price  <derek@ximbiot.com>
119232             Paul Eggert  <eggert@cs.ucla.edu>
119234         getline cleanup.  This changes the getndelim2 API: both order of
119235         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
119236         no delimiter).
119238         * lib/getline.c: Don't include stddef.h or stdio.h, since our
119239         interface does that.
119240         (getline): Always use getdelim, so that we don't have two
119241         copies of this code.
119242         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
119243         if available.
119244         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
119245         (GETNDELIM2_MAXIMUM): New macro.
119246         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
119247         instead of the old practice of delim2==0.  All callers changed.
119248         Return -1 on overflow, instead of returning junk.
119249         Do not set *linesize unless allocation succeeds.
119250         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
119251         that we include sys/types.h.
119252         * lib/getnline.h: Likewise.
119253         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
119254         (getndelim2): Reorder arguments.
119255         * lib/getnline.c (getnline, getndelim):
119256         Don't discard the NMAX argument.
119257         (getnline): Invoke getndelim, to avoid code duplication.
119258         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
119259         of (size_t) -1 by callers of the getnline family.
119261 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119263         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
119264         Check for gettimeofday.
119265         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
119266         Check for settimeofday, stime.
119268 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119270         * lib/nanosleep.c (suspended): Change its type from int to
119271         sig_atomic_t volatile.
119272         (first_call): Make it private to rpl_nanosleep, and have it
119273         be zero initially as that's a bit faster.
119274         (my_usleep): Round up fractional times instead of truncating them,
119275         as this is the usual meaning for 'sleep'.
119277         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
119278         doesn't work.
119279         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
119280         (ENOSYS): Define if not defined.
119281         (settime): Fall back on stime if it exists and settimeofday fails.
119282         But don't bother with fallbacks if a method fails with errno == EPERM.
119284 2004-05-11  Jim Meyering  <jim@meyering.net>
119286         Prior to this change, the save_cwd caller required read access to the
119287         current directory on most systems (ones with the fchdir function).
119289         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
119290         fails, try write-only, and finally, resort to using xgetcwd.
119292 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119294         * lib/obstack.c, obstack.h: Import changes from libc.
119296 2004-04-28  Bruno Haible  <bruno@clisp.org>
119298         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
119299         also implicitly appends .exe to executables.
119300         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
119301         accepts Windows pathnames.
119302         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
119303         Treat Cygwin like Windows, since it now accepts Windows pathnames.
119304         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
119305         Treat Cygwin like Windows, since it now accepts Windows pathnames.
119306         Reported by Derek Robert Price <derek@ximbiot.com>.
119308 2004-04-21  Karl Berry  <karl@gnu.org>
119310         * config/srclist.txt (localcharset.c): break sync.
119312 2004-04-20  Paul Eggert  <eggert@twinsun.com>
119314         * m4/host-os.m4: Add a copyright notice.
119316 2004-04-20  Jim Meyering  <jim@meyering.net>
119318         Change UTILS_ to gl_ in AC_DEFINE'd names.
119319         Change utils_- and jm_-prefixed variables, too.
119320         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
119321         UTILS_FUNC_MKDIR_TRAILING_SLASH.
119322         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
119324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
119325         Don't emit trailing blanks.
119326         Also rename jm_-prefixed variables to have gl_ prefix.
119328         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
119329         Also rename jm_-prefixed variables to have gl_ prefix.
119331         * m4/jm-macros.m4: Reflect the renamings.
119332         * m4/prereq.m4: Likewise.
119334 2004-04-20  Jim Meyering  <jim@meyering.net>
119336         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
119337         memory.
119339 2004-04-20  Jim Meyering  <jim@meyering.net>
119340             Bruno Haible  <bruno@clisp.org>
119342         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
119343         memory when realloc fails.
119345 2004-04-19  Jim Meyering  <jim@meyering.net>
119347         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
119348         now that readutmp.c may call `free (0)'.
119350 2004-04-19  Bruno Haible  <bruno@clisp.org>
119352         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
119353         * m4/inttypes_h.m4: Likewise.
119354         * m4/stdint_h.m4: Likewise.
119355         * m4/intmax_t.m4: Likewise.
119356         * m4/uintmax_t.m4: Likewise.
119358 2004-04-18  Jim Meyering  <jim@meyering.net>
119360         * m4/prereq.m4: Don't forbid jm_ prefix.
119362         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
119363         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
119364         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
119365         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
119366         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
119367         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
119368         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
119369         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
119370         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
119371         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
119372         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
119373         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
119374         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
119375         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
119376         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
119377         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
119378         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
119379         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
119380         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
119382 2004-04-18  Jim Meyering  <jim@meyering.net>
119384         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
119385         failure, don't leak memory and do call END_UTMP_ENT.
119387 2004-04-16  Jim Meyering  <jim@meyering.net>
119389         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
119390         coreutils' stat program.
119391         (gl_PREREQ): Don't require jm_PREREQ_STAT.
119393 2004-04-11  Paul Eggert  <eggert@twinsun.com>
119395         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
119396         C89.
119397         (CHAR_BIT): Remove, since we assume C89.
119398         Include <stdint.h> if available, as per current Autoconf CVS advice.
119400 2004-03-31  Jim Meyering  <jim@meyering.net>
119402         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
119403         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
119404         * m4/xalloc.m4: Likewise.
119406 2004-03-30  Paul Eggert  <eggert@twinsun.com>
119408         Merge from coreutils.
119410         * m4/inttostr.m4: New file.
119411         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
119412         Require AM_STDBOOL_H and gl_TIMESPEC instead.
119413         Require gl_CLOCK_TIME.
119414         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
119416 2004-03-30  Paul Eggert  <eggert@twinsun.com>
119418         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
119419         not bool, to be more consistent with Unix conventions.
119420         Suggested by Bruno Haible.
119422         Merge from coreutils.
119424         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
119425         * lib/umaxtostr.c: New files.
119427         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
119428         the usual <time.h> dance.
119429         (get_date): Change signature to support fractional time stamps.
119430         All callers changed.
119431         * lib/getdate.y: Include "getdate.h" first, as we can now
119432         assume C89 and don't need to worry about 'const'.
119433         Similarly, include "unlocked-io.h" near start, not in middle.
119434         Include <limits.h>.
119435         (textint.value): Use long int rather than int.
119436         (textint.digits): Use size_t rather than int.
119437         (BILLION, LOG10_BILLION): New constants.
119438         (parser_control): New member rel_ns.  Members day_ordinal,
119439         time_zone, month, day, hour, minutes, rel_year, rel_month,
119440         rel_day, rel_hour, rel_minutes, rel_seconds
119441         are now long int, not int.  Member seconds is now struct timespec,
119442         not int.  New member timespec_seen.  Members dates_seen, days_seen,
119443         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
119444         not int.
119445         (%union.intval): Now long int, not int.
119446         New member timespec.
119447         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
119448         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
119449         (spec): Now is a timespec or an item list.
119450         (timespec, items): New nonterminals.
119451         (time, rel, relunit, number, get_date):
119452         Add support for fractional seconds.
119453         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
119454         (gmtime, localtime, mktime): Remove decls; not needed with C89.
119455         (to_hour): First arg is now long int, not int.
119456         (to_year): Returns long int, not int.
119457         Don't treat year -70 like 70.
119458         (tm_diff): Returns long int, not int.
119459         (lookup_word): Use bool instead of int when appropriate.
119460         (yylex): Use size_t for count, not int.
119461         Detect overflow when parsing large integer constants.
119462         Add support for fractions.
119463         (get_date): Make pointers 'const' if possible.
119464         Use more-portable code to detect integer overflow.
119465         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
119466         Don't use ctime; it's not reliable if the year has >4 digits.
119468         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
119469         This is for compatibility with BSD.
119471         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
119472         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
119473         From coreutils' system.h.
119475         * lib/userspec.c: Don't include "posixver.h".
119476         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
119477         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
119478         compatible extension.  Simplify code by removing a boolean int
119479         that was always nonzero if a string was nonnull.
119481 2004-03-30  Jim Meyering  <jim@meyering.net>
119483         Merge from coreutils.
119485         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
119486         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
119487         on some systems one must include <grp.h> before it.
119488         Reported by Christian Krackowizer.
119490 2004-03-30  Jim Meyering  <jim@meyering.net>
119492         Merge from coreutils.
119494         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
119496         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
119497         an empty input stream.
119499         * lib/readtokens.c: Include <stdbool.h>.
119500         (readtoken): Use `size_t' rather than int/long.
119501         All callers adjusted.
119502         Use `bool' rather than `int' where appropriate.
119503         Use memset rather than an explicit loop.
119504         Use x2nrealloc rather than xrealloc.
119505         Allow the use of `\0' as a delimiter.
119506         (readtokens): Likewise.
119507         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
119509 2004-03-30  Jim Meyering  <jim@meyering.net>
119511         * m4/realloc.m4: Remove file, since now it does no more than
119512         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
119513         the `configure.ac' section of module/realloc.
119514         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
119516 2004-03-30  Bruno Haible  <bruno@clisp.org>
119518         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
119519         nonnull.
119521 2004-03-29  Paul Eggert  <eggert@twinsun.com>
119523         Merge changes to getloadavg.c from coreutils and Emacs.
119525         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
119526         Define to an expression, not to the empty string.
119527         Include cloexec.h and xalloc.h.
119528         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
119529         Use set_cloexec_flag rather than rolling our own.
119530         * lib/cloexec.c, lib/cloexec.h: New files.
119532 2004-03-29  Paul Eggert  <eggert@twinsun.com>
119534         * m4/cloexec.m4: New file.
119536 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119538         * lib/getopt.h: Sync with libc CVS.
119540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119541             Bruno Haible  <bruno@clisp.org>
119543         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
119544         mbswidth.
119546 2004-03-18  Paul Eggert  <eggert@twinsun.com>
119547             Bruno Haible  <bruno@clisp.org>
119549         * lib/mbswidth.h: Include <wchar.h> only if
119550         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
119551         <wchar.h>.
119552         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
119554 2004-03-09  Paul Eggert  <eggert@twinsun.com>
119556         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
119557         Sync with libc CVS.
119558         * lib/getopt_int.h: New file, also synced from libc.
119560 2004-03-09  Paul Eggert  <eggert@twinsun.com>
119562         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
119563         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
119564         Bring back getopt.c, getopt.h, getopt1.c.
119566 2004-03-07  Paul Eggert  <eggert@twinsun.com>
119568         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
119569         All uses changed.  Check for sa_sigaction member; this fixes
119570         a bug first reported by Jason Andrade in
119571         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
119573 2004-03-07  Paul Eggert  <eggert@twinsun.com>
119575         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
119576         '#if' expressions.  Unlike the code it replaces, it does not
119577         depend on (defined _SC_PAGESIZE).  However, it does depend on
119578         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
119579         first reported by Jason Andrade in
119580         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
119582 2004-02-25  Simon Josefsson  <jas@extundo.com>
119584         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
119586 2004-02-25  Simon Josefsson  <jas@extundo.com>
119588         * lib/strdup.h: New file.
119589         * lib/strdup.c: Include it.
119590         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
119591         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
119593 2004-02-23  Karl Berry  <karl@gnu.org>
119595         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
119596         (from fencepost.gnu.org:/gd/gnuorg).
119598 2004-02-23  Karl Berry  <karl@gnu.org>
119600         * config/srclistvars.sh (GNUORG) [karl]: redefine.
119601         * config/srclist.txt: add maintain/standards documents.
119603 2004-02-18  Bruno Haible  <bruno@clisp.org>
119605         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
119606         Reported by Derek Robert Price <derek@ximbiot.com>.
119608 2004-02-16  Karl Berry  <karl@gnu.org>
119610         * config/mkinstalldirs, install-sh: update from automake.
119612 2004-02-06  Karl Berry  <karl@gnu.org>
119614         * m4/po.m4: update from gettext 0.14.1.
119616 2004-02-06  Karl Berry  <karl@gnu.org>
119618         * lib/config.charset: update from gettext 0.14.1.
119620 2004-02-05  Paul Eggert  <eggert@twinsun.com>
119622         Add comments and code, prompted by suggestions from Bruno Haible
119623         for sh-quote.
119624         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
119625         describing the enum quoting_style values.
119626         * lib/quotearg.c (quotearg_alloc): New function.
119627         (quotearg_buffer_restyled): Treat lone { and } as special.
119628         Treat = as special.  Work around bug with older shells
119629         that "see" a '\' that is really the 2nd byte of a multibyte char.
119630         Quote empty string with shell_quoting_style.
119632 2004-02-03  Bruno Haible  <bruno@clisp.org>
119634         * m4/pipe.m4: New file, from GNU gettext.
119636 2004-02-03  Bruno Haible  <bruno@clisp.org>
119638         * lib/pipe.h: New file, from GNU gettext.
119639         * lib/pipe.c: New file, from GNU gettext.
119641 2004-01-27  Bruno Haible  <bruno@clisp.org>
119643         * m4/execute.m4: New file, from GNU gettext.
119645 2004-01-27  Bruno Haible  <bruno@clisp.org>
119647         * lib/execute.h: New file, from GNU gettext.
119648         * lib/execute.c: New file, from GNU gettext.
119649         * lib/w32spawn.h: New file, from GNU gettext.
119651 2004-01-24  Paul Eggert  <eggert@twinsun.com>
119653         Merge from diffutils.
119655         * lib/file-type.c (file_type): Add typed memory objects.
119656         * lib/file-type.h (S_TYPEISTMO): New macro.
119658         * lib/c-stack.h (c_stack_action): Remove argv argument.
119659         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
119660         (die): Don't calculate message unless segv_action returns.
119661         (get_stack_location, min_address_from_argv, max_address_from_argv,
119662         volatile stack_base, volatile_stack_size): Remove.
119663         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
119664         that every segmentation violation is a stack overflow.  (Ouch!)
119665         See Debian bug 136249 (still outstanding) for more info about why
119666         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
119668 2004-01-24  Paul Eggert  <eggert@twinsun.com>
119670         Exit-status fix from coreutils.
119672         Use exit_failure consistently in place of EXIT_FAILURE,
119673         so that program exit statuses are consistent on failure.
119675         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
119676         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
119677         * lib/argmatch.h: Comment fix to match the above.
119678         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
119679         Now a macro referring to exit_failure, instead of a separate
119680         variable.  Include "exitfail.h" to get it.
119681         * lib/xstrtol.h: Include "exitfail.h".
119682         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
119684         * lib/long-options.c (parse_long_options): Use prototype
119685         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
119686         for clarity.
119688 2004-01-21  Jim Meyering  <jim@meyering.net>
119690         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
119691         so as not to conflict with a different-sized __mktime_internal
119692         function in GNU libc.
119693         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
119694         Problem building statically-linked `ls' reported by Michael Brunnbauer.
119696 2004-01-20  Karl Berry  <karl@gnu.org>
119698         * config/config.guess: update from config.
119700         * config/srclistvars.sh: GNUWWWLICENSES for karl.
119702 2004-01-20  Bruno Haible  <bruno@clisp.org>
119704         Safer stack allocation.
119705         * lib/setenv.c: Include allocsa.h.
119706         (alloca): Remove fallback definition.
119707         (freea): Remove macro.
119708         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
119709         instead of freea.
119711 2004-01-20  Bruno Haible  <bruno@clisp.org>
119713         * m4/eealloc.m4: New file, from GNU gettext.
119715 2004-01-20  Bruno Haible  <bruno@clisp.org>
119717         * m4/allocsa.m4: New file, from GNU gettext.
119719 2004-01-20  Bruno Haible  <bruno@clisp.org>
119721         * lib/xallocsa.h: New file, from GNU gettext.
119722         * lib/xallocsa.c: New file, from GNU gettext.
119724 2004-01-20  Bruno Haible  <bruno@clisp.org>
119726         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
119728 2004-01-20  Bruno Haible  <bruno@clisp.org>
119730         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
119731         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
119732         specially.
119734 2004-01-20  Bruno Haible  <bruno@clisp.org>
119736         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
119737         patch.
119739 2004-01-20  Bruno Haible  <bruno@clisp.org>
119741         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
119743 2004-01-20  Bruno Haible  <bruno@clisp.org>
119745         * lib/eealloc.h: New file.
119747 2004-01-20  Bruno Haible  <bruno@clisp.org>
119749         * lib/binary-io.h: Avoid warnings on Cygwin.
119751 2004-01-20  Bruno Haible  <bruno@clisp.org>
119753         * lib/allocsa.h: New file, from GNU gettext.
119754         * lib/allocsa.c: New file, from GNU gettext.
119756 2004-01-18  Karl Berry  <karl@gnu.org>
119758         * doc/gpl.texi, doc/lgpl.texi: new files.
119760 2004-01-18  Karl Berry  <karl@gnu.org>
119762         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
119763         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
119765 2004-01-15  Paul Eggert  <eggert@twinsun.com>
119767         Merge from coreutils.
119769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
119770         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
119771         (gl_DEFAULT_POSIX2_VERSION): Move
119772         the documentation from 'configure' into 'config.hin',
119773         so that 'configure --help' isn't burdened by it and
119774         we don't have to worry about its formatting there.
119775         Reword the documentation so that it's more succinct
119776         and can be run together into a single paragraph.
119777         * m4/same.m4 (gl_SAME): Check for pathconf.
119779 2004-01-15  Paul Eggert  <eggert@twinsun.com>
119781         Merge from coreutils.
119783         * lib/posixver.c: Include posixver.h.
119785         * lib/same.c: Include <stdbool.h>, <limits.h>.
119786         (_POSIX_NAME_MAX): Define if not defined.
119787         (MIN): New macro.
119788         (same_name): If file names are silently truncated, report
119789         that the file names are the same if they are the same after
119790         the silent truncation.
119792         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
119793         conversion function.
119794         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
119795         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
119796         longer needed.
119798 2004-01-15  Jim Meyering  <jim@meyering.net>
119800         Merge from coreutils.
119802         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
119803         if no library is required.
119804         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
119805         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
119806         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
119807         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
119808         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
119809         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
119810         value, $ac_cv_search_crypt, if it's "none required".
119811         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
119812         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
119813         not gl_FUNC_GETLOADAVG.
119814         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
119815         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
119817 2004-01-15  Jim Meyering  <jim@meyering.net>
119819         Merge from coreutils.
119821         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
119822         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
119823         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
119825         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
119826         optional configure-time default.
119828         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119830         * lib/xreadlink.c (xreadlink): Correct outdated comment.
119832 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
119834         Merge from coreutils.
119836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
119837         value, $ac_cv_search_nanosleep, if it's "none required".
119839 2004-01-14  Paul Eggert  <eggert@twinsun.com>
119841         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
119842         with like-named macro in fnmatch.c.
119843         (EXT): Use an internal constant instead.
119845         Merge fnmatch patches from glibc.
119846         * lib/fnmatch.c (mbsinit): Remove define.
119847         Add libc_hidden_ver (__fnmatch, fnmatch).
119848         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
119849         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
119851 2004-01-14  Karl Berry  <karl@gnu.org>
119853         * config/install-sh: update from automake.
119855 2004-01-13  Karl Berry  <karl@gnu.org>
119857         * config/install-sh: update from automake.
119859 2004-01-09  Karl Berry  <karl@gnu.org>
119861         * config/install-sh: update from automake.
119863 2004-01-05  Karl Berry  <karl@gnu.org>
119865         * config/config.{sub,guess}: update from config.
119867 2003-12-31  Karl Berry  <karl@gnu.org>
119869         * config/depcomp: update from automake.
119871 2003-12-14  Karl Berry  <karl@gnu.org>
119873         * lib/config.charset: update from gettext-runtime.
119875 2003-12-03  Paul Eggert  <eggert@twinsun.com>
119877         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
119878         Bug reported by Alfred M. Szmidt.
119880 2003-12-03  Bruno Haible  <bruno@clisp.org>
119882         * m4/gettext.m4: Upgrade from gettext-0.13.
119883         * m4/po.m4: Upgrade from gettext-0.13.
119884         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
119885         * m4/intmax.m4: New file, from gettext-0.13.
119886         * m4/printf-posix.m4: New file, from gettext-0.13.
119888 2003-11-29  Karl Berry  <karl@gnu.org>
119890         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
119892 2003-11-25  Paul Eggert  <eggert@twinsun.com>
119893             Bruno Haible  <bruno@clisp.org>
119895         * lib/printf-parse.h: Don't include sys/types.h.
119896         (ARG_NONE): New macro.
119897         (char_directive): Change type of *arg_index fields to size_t.
119898         * lib/printf-parse.c: Don't include sys/types.h.
119899         (SSIZE_MAX): Remove macro.
119900         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
119901         Remove unnecessary overflow check.
119902         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
119903         fields.
119905 2003-11-25  Bruno Haible  <bruno@clisp.org>
119907         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
119909 2003-11-25  Bruno Haible  <bruno@clisp.org>
119911         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
119912         gt_TYPE_SSIZE_T.
119914 2003-11-24  Paul Eggert  <eggert@twinsun.com>
119916         * modules/alloca: Remove dependency on xalloc.
119918 2003-11-24  Paul Eggert  <eggert@twinsun.com>
119920         * lib/alloca.c: Remove dependency on xalloc module.
119921         (xalloc_die): Remove.
119922         (memory_full) [!defined emacs]: New macro.
119923         [!defined emacs]: Don't include xalloc.h.
119924         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
119925         address arithmetic overflows.  Change datatypes a bit to avoid
119926         unnecessary casts.
119928 2003-11-22  Jim Meyering  <jim@meyering.net>
119930         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
119931         s/size/size_t/.
119933 2003-11-21  Karl Berry  <karl@gnu.org>
119935         * config/config.{sub,guess}: update from config.
119937 2003-11-18  Karl Berry  <karl@gnu.org>
119939         * config/config.{sub,guess}: update from config.
119941         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
119943 2003-11-17  Paul Eggert  <eggert@twinsun.com>
119945         * README: Mention that S+T cannot overflow if S is the size of
119946         an existing object and T is sufficiently small.
119948 2003-11-17  Jim Meyering  <jim@meyering.net>
119950         On systems without utime and without a utimes function capable of
119951         dealing with a NULL struct utimbuf* argument, this utime replacement
119952         could -- in unusual circumstances -- leak a file descriptor.
119953         * lib/utime.c: Include <unistd.h> and <errno.h>.
119954         (utime_null): Be sure to close `fd' and to preserve errno.
119955         Reported by Geoff Collyer via Arnold Robbins.
119957 2003-11-17  Bruno Haible  <bruno@clisp.org>
119959         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
119960         (Depends-on): Add xsize.
119962 2003-11-17  Bruno Haible  <bruno@clisp.org>
119964         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
119966 2003-11-17  Bruno Haible  <bruno@clisp.org>
119968         * lib/vasnprintf.c (alloca): Remove fallback definition.
119969         (freea): Remove definition.
119970         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
119971         Reported by Paul Eggert.
119973 2003-11-16  Paul Eggert  <eggert@twinsun.com>
119974             Bruno Haible  <bruno@clisp.org>
119976         Protect against address arithmetic overflow.
119977         * lib/printf-args.h: Include stddef.h.
119978         (arguments): Change type of field 'count' to size_t.
119979         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
119980         'unsigned int' where appropriate.
119981         * lib/printf-parse.h: Include sys/types.h.
119982         (char_directive): Change type of *arg_index fields to ssize_t.
119983         (char_directives): Change type of fields 'count', max_*_length to
119984         size_t.
119985         * lib/printf-parse.c: Include sys/types.h and xsize.h.
119986         (SSIZE_MAX): Define fallback value.
119987         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
119988         instead of 'int' where appropriate. Check a_allocated, d_allocated
119989         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
119990         * lib/vasnprintf.c: Include xsize.h.
119991         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
119992         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
119993         overflow. Avoid wraparound when converting a width or precision from
119994         decimal to binary.
119996 2003-11-16  Bruno Haible  <bruno@clisp.org>
119998         Update from GNU gettext.
119999         * lib/printf-parse.c: Generalize to it can be compiled for wide
120000         strings.
120001         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
120002         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
120003         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
120004         SNPRINTF): New macros.
120005         Don't include <alloca.h> if the file is used inside libintl.
120006         (local_wcslen): New function, for Solaris 2.5.1.
120007         (VASNPRINTF): Use it instead of wcslen.
120009 2003-11-16  Bruno Haible  <bruno@clisp.org>
120011         * lib/xsize.h (xmax): New function.
120012         (xsum, xsum3, xsum4): Declare as "pure" functions.
120014 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120016         * modules/xalloc (Files): Undo latest change, since xalloc.h
120017         no longer needs SIZE_MAX or PTRDIFF_MAX.
120019 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120021         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
120022         gl_PTRDIFF_MAX.
120024 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120026         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
120027         "return", to pacify some unknown compiler.  Problem reported
120028         by Joerg Schilling.
120030 2003-11-12  Paul Eggert  <eggert@twinsun.com>
120032         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
120033         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
120034         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
120035         heuristic is just as accurate as far as we know, and it removes a
120036         dependency on size_max.m4 and ptrdiff_max.m4.
120038 2003-11-11  Bruno Haible  <bruno@clisp.org>
120040         * modules/xsize (Files): Add m4/size_max.m4.
120041         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
120043 2003-11-11  Bruno Haible  <bruno@clisp.org>
120045         * m4/size_max.m4: New file.
120046         * m4/ptrdiff_max.m4: New file.
120047         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
120048         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
120049         (gl_XALLOC): Invoke it.
120051 2003-11-11  Bruno Haible  <bruno@clisp.org>
120053         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
120054         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
120055         defined.
120057 2003-11-10  Paul Eggert  <eggert@twinsun.com>
120059         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
120060         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
120061         rejected some allocations of exactly SIZE_MAX - 2 bytes.
120062         From Bruno Haible.
120063         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
120064         not (size_t) -1, since it's defined here.
120066 2003-11-09  Karl Berry  <karl@gnu.org>
120068         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
120070 2003-11-06  Paul Eggert  <eggert@twinsun.com>
120072         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
120073         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
120074         Reject sizes of exactly SIZE_MAX bytes.
120075         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
120076         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
120078 2003-11-05  Bruno Haible  <bruno@clisp.org>
120080         * lib/xsize.h: Include limits.h, to avoid a possible collision with
120081         SIZE_MAX defined in <limits.h> on Solaris.
120083 2003-11-04  Jim Meyering  <jim@meyering.net>
120085         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
120086         variable names, rather than @VAR@.
120087         * modules/poll: Likewise.
120089 2003-11-04  Bruno Haible  <bruno@clisp.org>
120091         * modules/xsize: New file.
120092         * modules/linebreak: Depend on xsize.
120093         * MODULES.html.sh (func_all_modules): Add xsize.
120095 2003-11-04  Bruno Haible  <bruno@clisp.org>
120097         * m4/xsize.m4: New file.
120099 2003-11-04  Bruno Haible  <bruno@clisp.org>
120101         * lib/xsize.h: New file.
120102         * lib/linebreak.c: Include xsize.h.
120103         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
120104         argument for overflow.
120105         Suggested by Paul Eggert.
120107 2003-11-03  Karl Berry  <karl@gnu.org>
120109         * config/config.{guess,sub}: update from config.
120111 2003-11-03  Jim Meyering  <jim@meyering.net>
120113         * modules/userspec (lib_SOURCES): Add userspec.h.
120114         (Include): Add "userspec.h".
120115         Improve description.
120117 2003-11-03  Jim Meyering  <jim@meyering.net>
120119         * lib/userspec.c: Include "userspec.h".
120120         * lib/userspec.h: New file.
120122 2003-11-03  Bruno Haible  <bruno@clisp.org>
120124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
120126 2003-11-03  Bruno Haible  <bruno@clisp.org>
120128         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
120129         available, to avoid (extremely rare) race condition.
120130         Suggested by Paul Eggert.
120132 2003-11-02  Karl Berry  <karl@gnu.org>
120134         * config/srclist.txt (vasprintf.c): sync broken, sigh.
120136 2003-10-31  Paul Eggert  <eggert@twinsun.com>
120138         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
120139         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
120140         (read_filesystem_list): Set and use me_type_malloced.
120141         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
120142         whatever the type happens to be), for brevity and consistency.
120143         Check for size calculation overflow on Alphas running OSF/1.
120145 2003-10-31  Jim Meyering  <jim@meyering.net>
120147         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
120149         * lib/linebuffer.c: Include <string.h> for declaration of memset.
120151 2003-10-30  Paul Eggert  <eggert@twinsun.com>
120152             Bruno Haible  <bruno@clisp.org>
120154         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
120155         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
120157 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
120159         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
120160         netbsd*-gnu*.  Suggested by Robert Millan.
120162 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120164         * modules/group-member: Depend on stdbool.
120166 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120168         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
120170 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120172         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
120173         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
120174         after the 'gnu' in these cases.  This fixes some bugs in the
120175         previous change, and is based on suggestions by Robert Millan.
120177 2003-10-29  Paul Eggert  <eggert@twinsun.com>
120179         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
120180         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
120181         no longer needed.
120182         * lib/quotearg.c (quotearg_n_options): Use it.
120183         * lib/group-member.c: Include <stdbool.h>.
120184         (free_group_info): Arg is now const *; don't free arg.
120185         (get_group_info): Now returns bool and accepts struct group_info *,
120186         rather than returning a malloc'ed struct group_info *.
120187         All uses changed.  Check for overflow in internal size calculation.
120189         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
120190         rather than xmalloc/xrealloc.
120191         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
120192         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
120193         conformance bug: the old code used a pointer after freeing the
120194         storage that it addressed.
120195         * lib/hash.c (hash_initialize): Simplify the code by using
120196         xalloc_oversized rather than doing it by hand.
120197         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
120198         the buffer preserved.  Use free and xmalloc instead.
120199         * lib/quotearg.c (quotearg_n_options): Likewise.
120200         Use a simpler test for size overflow.  Don't use xalloc_oversized
120201         because unsigned int might be wider than size_t (!); this suggests
120202         that we should switch from unsigned int to size_t for slot numbers.
120204 2003-10-28  Paul Eggert  <eggert@twinsun.com>
120206         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
120207         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
120208         NetBSD kernels.  Requested by Richard Stallman.
120210 2003-10-27  Paul Eggert  <eggert@twinsun.com>
120212         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
120213         to allocate the returned structure.  Do not allocate a subarray,
120214         as x2nrealloc will do that.
120215         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
120216         instead of xnrealloc.
120217         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
120219 2003-10-27  Bruno Haible  <bruno@clisp.org>
120221         * lib/stdbool_.h: Better support for BeOS.
120223 2003-10-26  Paul Eggert  <eggert@twinsun.com>
120225         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
120226         now uses inline.
120228 2003-10-26  Paul Eggert  <eggert@twinsun.com>
120230         * lib/xalloc.h (xalloc_oversized): New static inline function, for
120231         callers that want to do their own size-overflow checking.  Include
120232         <stdbool.h>, since xalloc_oversized returns bool.
120233         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
120234         to use xalloc_oversized.
120236         Add two functions x2realloc, x2nrealloc, for programs that grow
120237         arrays dynamically by doubling their sizes.
120238         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
120239         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
120240         New functions.
120242         Port to C99 semantics for 'inline' of external functions.
120243         Bug reported by Bruno Haible.
120244         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
120245         with the old contents of xnmalloc.
120246         (xnmalloc, xmalloc): Use it.
120247         (xnrealloc_inline): New static inline function,
120248         with the old contents of xnrealloc.
120249         (xnrealloc, xrealloc): Use it.
120251         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
120252         that.
120254 2003-10-26  Karl Berry  <karl@gnu.org>
120256         * config/srclist.txt (COPYING.DOC): no longer available from
120257         /gd/gnuorg; don't know where the ultimate source is.
120259 2003-10-25  Paul Eggert  <eggert@twinsun.com>
120261         Fix several address-calculation bugs in the hash modules,
120262         plus some minor code cleanup.
120264         * lib/hash.h: Include <stdbool.h>, for bool.
120265         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
120266         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
120267         hash_get_n_entries, hash_get_max_bucket_length,
120268         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
120269         hash_rehash): Use size_t rather than unsigned.
120270         * lib/hash.c (struct hash_table, hash_get_n_buckets,
120271         hash_get_n_buckets_used, hash_get_n_entries,
120272         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
120273         hash_get_entries, hash_do_for_each, hash_string, is_prime,
120274         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
120275         Likewise.
120276         (SIZE_MAX): Define if not defined.
120277         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
120278         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
120279         hash_print):
120280         Use const * when possible.
120281         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
120282         (check_tuning): Fix bug: if tuning parameters were very close to
120283         0 or 1, rounding errors could have caused subscript violations.
120284         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
120285         (hash_initialize): Add 'fail:' label
120286         to free table and return NULL, and use it to simplify code.
120287         Use calloc rather than clearing the storage ourself.
120288         (hash_initialize, hash_rehash): Check for arithmetic overflow in
120289         buffer size calculations.
120290         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
120291         Include <stddef.h>, for size_t.
120292         * lib/hash-pjw.c (hash_pjw): Likewise.
120293         Switch to method described by Bruno Haible.
120294         Include <limits.h>, for CHAR_BIT.
120295         (SIZE_BITS): New macro.
120297 2003-10-23  Paul Eggert  <eggert@twinsun.com>
120299         * m4/getline.m4 (AM_FUNC_GETLINE):
120300         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
120301         hosts.  Problem reported by Derek Robert Price in
120302         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
120303         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
120304         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
120306 2003-10-21  Paul Eggert  <eggert@twinsun.com>
120308         * lib/getndelim2.c (getndelim2): When size calculation overflows,
120309         ceiling the allocation at NMAX bytes rather than silently
120310         discarding input bytes before NMAX is reached.  This makes
120311         a difference only if NMAX exceeds SIZE_MAX / 2.
120313         * lib/obstack.c: Merge from glibc.
120314         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
120315         Add libc_hidden_def (_obstack_newchunk).
120316         (_obstack_free) [! defined _LIBC]: Remove.
120317         [defined _LIBC]: Make a strong alias from obstack_free, rather than
120318         a clone of the function body.
120319         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
120320         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
120322         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
120323         glibc.
120324         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
120325         arg to memcpy.
120327         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
120328         (obstack_ptr_grow_fast, obstack_int_grow_fast):
120329         Don't use lvalue casts, as GCC plans to remove support for them
120330         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
120331         was also present in the non-GCC version, indicating that this
120332         code had always been buggy and had never been widely used.
120333         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
120334         Use the fast variant of each macro, rather than copying the
120335         definiens of the fast variant; that way, we'll be more likely to
120336         catch future bugs in the fast variants.
120338 2003-10-20  Bruno Haible  <bruno@clisp.org>
120340         * modules/wait-process: New file.
120341         * MODULES.html.sh (func_all_modules): Add wait-process.
120343 2003-10-20  Bruno Haible  <bruno@clisp.org>
120345         * m4/wait-process.m4: New file.
120347 2003-10-20  Bruno Haible  <bruno@clisp.org>
120349         * lib/wait-process.h: New file, from GNU gettext.
120350         * lib/wait-process.c: New file, from GNU gettext.
120352 2003-10-19  Jim Meyering  <jim@meyering.net>
120354         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
120355         HPUX 10.20.
120357 2003-10-18  Karl Berry  <karl@gnu.org>
120359         * config/config.guess: update from config.
120361 2003-10-16  Paul Eggert  <eggert@twinsun.com>
120363         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
120364         (getgroups): First arg is int, not size_t.
120365         Don't let 'free' mangle errno.
120367 2003-10-16  Paul Eggert  <eggert@twinsun.com>
120369         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
120371 2003-10-16  Karl Berry  <karl@gnu.org>
120373         * config/config.{guess,sub}: update from config.
120375 2003-10-16  Jim Meyering  <jim@meyering.net>
120377         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
120378         memcpy.
120380 2003-10-15  Paul Eggert  <eggert@twinsun.com>
120382         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
120383         (SIZE_MAX): Remove.
120384         (new_exclude, add_exclude_file): Initial size no longer needs to
120385         be a power of 2.
120386         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
120387         our own address arithmetic overflow checking.
120389         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
120390         (fnmatch): Do not alloca more than 2000 wide characters;
120391         instead, use malloc for large buffers.
120392         Check for address arithmetic overflow, and return -1
120393         with errno set to ENOMEM in that case.
120394         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
120395         (NEW_PATTERN): Do not alloca more than 8000 bytes;
120396         instead, return -1.  Check for address arithmetic overflow.
120398 2003-10-14  Paul Eggert  <eggert@twinsun.com>
120400         Handle invalid suffixes and overflow independently, so that
120401         callers can treat them independently as needed.  Fix some bugs in
120402         suffix handling, e.g., "100k@" was not diagnosed as an invalid
120403         suffix for a human-readable blocksize.  The major caller-visible
120404         change is the addition of a new
120405         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
120406         that both overflow and suffix chars were found.
120408         * lib/human.c (humblock): Don't check separately for invalid suffix
120409         char; that is xstrtoumax's job (now that its bug is fixed).
120410         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
120411         INTMAX_MAX]: New macros.
120412         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
120413         TYPE_MAXIMUM): New macros.
120414         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
120415         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
120416         if overflow occurs, as it's what __strtol does and it's more useful
120417         in practice.
120418         (__xstrtol): If __strtol reports some error other than ERANGE,
120419         reflect it to the caller as LONGINT_INVALID.  If it reports
120420         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
120421         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
120422         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
120423         value.
120424         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
120425         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
120426         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
120427         [defined UINTMAX_MAX]: New macros.
120429 2003-10-14  Bruno Haible  <bruno@clisp.org>
120431         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
120433 2003-10-14  Bruno Haible  <bruno@clisp.org>
120435         * m4/sig_atomic_t: New file, from GNU gettext.
120436         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
120438 2003-10-14  Bruno Haible  <bruno@clisp.org>
120440         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
120441         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
120442         Also use volatile where needed.
120444 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120446         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
120447         Change maintainer from Bruno Haible to 'all'.
120449 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120451         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
120453 2003-10-12  Paul Eggert  <eggert@twinsun.com>
120455         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
120456         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
120457         and define in terms of the other primitives.
120458         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
120459         (SIZE_MAX): Define if not already defined.
120460         (array_size_overflow): New function.
120461         (xalloc_die): Abort instead of exiting if 'error' returns.
120462         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
120463         (xmalloc, xrealloc): Use them.
120464         (xcalloc): Check for address arithmetic overflow.
120465         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
120466         a bit faster than strcpy.
120468 2003-10-10  Simon Josefsson  <jas@extundo.com>
120470         * modules/argp (Depends-on): Add restrict and strcase.
120472 2003-10-10  Simon Josefsson  <jas@extundo.com>
120474         * m4/argp.m4: Add AC_C_INLINE.
120476 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120478         Merge getpass from libc, plus a few fixes.
120480         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
120481         Include <stdbool.h>.
120482         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
120483         __fsetlocking to empty.
120484         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
120485         do include <bits/libc-lock.h>.
120486         Do not include <fcntl.h>; not needed.
120487         [_LIBC]: Include <wchar.h>.
120488         (NOTCANCEL_MODE): New macro.
120489         (flockfile, funlockfile) [_LIBC]: New macros.
120490         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
120491         [!_LIBC]: New macros.
120492         (call_fclose): New function.
120493         (getpass): Use it.  Save tty stream separately; this simplifies the
120494         code and makes it more reliable if stdin happens to equal stdout.
120495         Invoke __fsetlocking on tty.
120496         Handle thread cancellation if needed.
120497         Namespace cleanup (use __tcgetattr, __getline).
120498         Use bool for Booleans.
120499         [USE_IN_LIBIO]: Handle wide streams.
120500         [!_LIBC]: Unconditionally do the fseek, since we don't know what
120501         stream might go where.
120503         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
120504         doesn't have to include <stdio.h> before us.
120505         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
120506         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
120507         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
120508         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
120509         if not declared, so that we can use getpass.c code from libc without
120510         rewriting it.
120511         (flockfile, ftrylockfile, funlockfile): New macros.
120513 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120515         * modules/getpass: Depend on stdbool.
120517 2003-10-08  Paul Eggert  <eggert@twinsun.com>
120519         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
120521 2003-10-07  Karl Berry  <karl@gnu.org>
120523         * config/config.{guess,sub}: update from config.
120525 2003-10-06  Jim Meyering  <jim@meyering.net>
120526             Bruno Haible  <bruno@clisp.org>
120528         This lets translators provide better translations for the
120529         "Written by ..." part of --version output.
120530         * lib/version-etc.h: Include stdarg.h.
120531         (version_etc_copyright): Declare as readonly.
120532         (version_etc): Make this function variadic with a NULL-terminated list
120533         of author name strings.
120534         (version_etc_va): New declaration.
120535         * lib/version-etc.c: Include stdarg.h, stdlib.h.
120536         (version_etc_copyright): Declare as readonly.
120537         (version_etc_va): New function. Provide a different translatable string
120538         for each possible number of authors < 10. Abbreviate when there are 10
120539         authors or more.
120540         (version_etc): Make this function variadic. Call version_etc_va.
120541         Suggestion from Gary V. Vaughan.
120543         * lib/long-options.h (parse_long_options): Change prototype: the
120544         authors string is moved to the end and becomes variadic.
120545         * lib/long-options.c: Include stdarg.h.
120546         (parse_long_options): Make this function variadic, too.
120547         Call version_etc_va, not version_etc.
120549 2003-10-06  Bruno Haible  <bruno@clisp.org>
120551         * modules/version-etc-2: Remove file.
120552         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
120554 2003-10-06  Bruno Haible  <bruno@clisp.org>
120556         * modules/fatal-signal: New file.
120557         * MODULES.html.sh (func_all_modules): Add fatal-signal.
120559 2003-10-06  Bruno Haible  <bruno@clisp.org>
120561         * m4/fatal-signal.m4: New file.
120562         * m4/signalblocking.m4: New file, from GNU gettext.
120564 2003-10-06  Bruno Haible  <bruno@clisp.org>
120566         * lib/version-etc-2.h: Remove file.
120567         * lib/version-etc-2.c: Remove file.
120569 2003-10-06  Bruno Haible  <bruno@clisp.org>
120571         * lib/fatal-signal.h: New file, from GNU gettext.
120572         * lib/fatal-signal.c: New file, from GNU gettext.
120574 2003-10-05  Paul Eggert  <eggert@twinsun.com>
120576         * README: Rework advice for preventing empty .o files.
120577         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
120578         not <sys/types.h>.
120580 2003-10-04  Karl Berry  <karl@gnu.org>
120582         * lib/argp*: update from libc.
120584 2003-10-04  Karl Berry  <karl@gnu.org>
120586         * config/config.{guess,sub}: update from config.
120588 2003-10-02  Bruno Haible  <bruno@clisp.org>
120590         * modules/lchown (Include): Add lchown.h.
120591         * modules/time_r (Include): Use "..." syntax.
120592         * modules/xgetdomainname (Include): Add xgetdomainname.h.
120594 2003-10-01  Simon Josefsson  <jas@extundo.com>
120596         * MODULES.html.sh (func_all_modules): Move gethostname from section
120597         'based on' to section 'lacking' POSIX:2001.
120599 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
120601         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
120602         to output mode on the same stream.
120604 2003-09-29  Paul Eggert  <eggert@twinsun.com>
120606         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
120607         Fix arg typo in previous patch.
120609 2003-09-28  Jim Meyering  <jim@meyering.net>
120611         * lib/error.c: Correct cpp indentation.
120613 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120615         * modules/free: New file.
120617 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120619         * m4/free.m4: New file.
120621 2003-09-27  Paul Eggert  <eggert@twinsun.com>
120623         * lib/minmax.h (MIN, MAX)
120624         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
120625         Omit the special code that used __typeof__, since we worry that
120626         it could be more trouble than it's worth.  See:
120627         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
120628         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
120630         * lib/free.c: New file.
120632 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
120634         Trivial fixes to Makefile.am parts of module listings.
120635         * modules/strstr: Append strstr.h to lib_SOURCES.
120636         * modules/strcase: Likewise, for strcase.h.
120638 2003-09-27  Karl Berry  <karl@gnu.org>
120640         * config/mkinstalldirs: update from automake.
120642 2003-09-26  Paul Eggert  <eggert@twinsun.com>
120644         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
120645         (error_tail): Do not loop, reallocating temporary buffer, since
120646         the output cannot contain more wide characters than the input
120647         contains bytes, the size must be big enough already.  This avoids
120648         one potential size overflow calculation.  Check for size overflow
120649         when calculating temporary buffer size.  Free temporary buffer
120650         when done, if it was allocated with malloc; this plugs a memory
120651         leak.  Remove casts from void * to pointers, that are no longer
120652         needed now that we're assuming C89 or better.
120654         Merge error changes from glibc.
120656         * lib/error.c, error.h: Update copyright notice header to match glibc.
120657         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
120658         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
120659         Disable cancellation while printing error.
120660         * lib/error.h: Prepend __ to parameter names.
120662 2003-09-26  Jim Meyering  <jim@meyering.net>
120664         * lib/error.c (error_tail): Move some declarations
120665         into inner scope where the local variables are used.
120667 2003-09-26  Bruno Haible  <bruno@clisp.org>
120669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
120670         stpncpy().
120671         Don't define stpncpy through config.h; it's now done through stpncpy.h.
120673 2003-09-26  Bruno Haible  <bruno@clisp.org>
120675         * lib/stpncpy.h (gnu_stpncpy): New declaration.
120676         (stpncpy): Define as alias for gnu_stpncpy.
120677         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
120679 2003-09-25  Simon Josefsson  <jas@extundo.com>
120681         * lib/xgetdomainname.h: New file.
120682         * lib/xgetdomainname.c: New file.
120684 2003-09-25  Simon Josefsson  <jas@extundo.com>
120685             Bruno Haible  <bruno@clisp.org>
120687         * modules/getdomainname: New file.
120688         * modules/xgetdomainname: New file.
120689         * MODULES.html.sh (func_all_modules): Add getdomainname,
120690         xgetdomainname.
120692 2003-09-25  Simon Josefsson  <jas@extundo.com>
120693             Bruno Haible  <bruno@clisp.org>
120695         * m4/getdomainname.m4: New file.
120697 2003-09-25  Simon Josefsson  <jas@extundo.com>
120698             Bruno Haible  <bruno@clisp.org>
120700         * lib/getdomainname.h: New file.
120701         * lib/getdomainname.c: New file.
120703 2003-09-25  Karl Berry  <karl@gnu.org>
120705         * lib/argp-fmtstream.c, argp-help.c: update from libc.
120707 2003-09-25  Karl Berry  <karl@gnu.org>
120709         * config/install-sh: update from automake.
120711 2003-09-25  Bruno Haible  <bruno@clisp.org>
120713         * modules/version-etc-2: New file, from modules/version-etc with
120714         modifications.
120715         * MODULES.html.sh (func_all_modules): Add version-etc-2.
120717 2003-09-25  Bruno Haible  <bruno@clisp.org>
120719         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
120720         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
120722 2003-09-24  Simon Josefsson  <jas@extundo.com>
120724         * modules/xgethostname: Add xgethostname.h.
120726 2003-09-24  Paul Eggert  <eggert@twinsun.com>
120728         * lib/linebuffer.c (freebuffer): Don't free the argument, just
120729         the buffer associated with the argument.  Bug reported by
120730         Simon Josefsson.
120732 2003-09-24  Paul Eggert  <eggert@twinsun.com>
120734         * README: Document assumptions that 'int' is at least 32 bits
120735         wide, that integer arithmetic is 2's complement without overflow,
120736         that there are no holes in integer values, that adding sizes of
120737         two nonoverlapping objects can't overflow, and that all-bits-zero
120738         yields scalar zero.  Fix spelling and capitalization typos.
120740 2003-09-19  Karl Berry  <karl@gnu.org>
120742         * lib/argp.h: update from libc.
120744 2003-09-17  Paul Eggert  <eggert@twinsun.com>
120746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
120747         to avoid spurious warnings like "AC_RUN_IFELSE was called before
120748         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
120750 2003-09-17  Paul Eggert  <eggert@twinsun.com>
120752         * gnulib-tool: Use "test -h", not "test -L", for portability
120753         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
120754         (tags_regexp): Remove, since \| doesn't conform to POSIX.
120755         (sed_extract_prog): Issue s commands one-by-one, rather than
120756         using \| in one s command.
120758 2003-09-16  Paul Eggert  <eggert@twinsun.com>
120760         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
120761         input error, instead of returning NULL the next time we are called
120762         (and therefore losing track of errno).
120764 2003-09-16  Bruno Haible  <bruno@clisp.org>
120766         * gnulib-tool (func_create_testdir): Warn about duplicated
120767         dependencies.
120769 2003-09-15  Paul Eggert  <eggert@twinsun.com>
120771         * modules/argmatch, modules/fatal, modules/obstack,
120772         modules/xalloc, modules/xgethostname: Sort dependencies by
120773         importance, not alphabetically.
120775 2003-09-15  Paul Eggert  <eggert@twinsun.com>
120777         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
120778         fails, so that the caller gets the proper errno.
120780         * lib/readutmp.c (read_utmp): Likewise.
120781         Check for fstat error.  Close stream and free storage
120782         when failing.
120784 2003-09-14  Karl Berry  <karl@gnu.org>
120786         * config/srclist.txt (strdup.c): disable for c89 changes.
120788 2003-09-14  Jim Meyering  <jim@meyering.net>
120790         * lib/getloadavg.c: Correct cpp indentation.
120791         * lib/strdup.c: Likewise.
120792         * lib/vasnprintf.c: Likewise.
120794 2003-09-14  Bruno Haible  <bruno@clisp.org>
120796         * modules/fwriteerror: New file.
120797         * MODULES.html.sh (func_all_modules): Add fwriteerror.
120799 2003-09-14  Bruno Haible  <bruno@clisp.org>
120801         * lib/fwriteerror.h: New file.
120802         * lib/fwriteerror.c: New file.
120804 2003-09-12  Paul Eggert  <eggert@twinsun.com>
120806         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
120807         modules/xgethostname, modules/xalloc: Depend on exit.
120809 2003-09-12  Paul Eggert  <eggert@twinsun.com>
120811         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
120813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
120814         and AC_MINIX, too, so that their extensions are available.
120816         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
120817         This macro has been superseded by gl_BACKUPFILE.
120819         More patches to assume C89 or better.
120821         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
120823         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
120824         unconditionally.
120825         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
120826         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
120827         Include <string.h>, <stdlib.h> unconditionally.
120828         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
120829         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
120830         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
120831         headers or for string.h.
120832         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
120833         or strtoul.
120835         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
120836         headers.
120837         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
120838         * m4/userspec.m4 (gl_USERSPEC): Likewise.
120839         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
120840         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
120841         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
120842         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
120843         memcpy, memset.
120844         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
120845         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
120846         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
120847         strtol.
120848         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
120849         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
120850         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
120851         strtoul.
120853 2003-09-12  Paul Eggert  <eggert@twinsun.com>
120855         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
120856         * lib/obstack.c [!defined _LIBC]: Likewise.
120857         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
120858         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
120859         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
120861         More changes to assume C89 or better.
120863         * lib/error.c (error_tail): Assume vprintf.
120865         * lib/argmatch.c (getenv): Remove decl.
120866         * lib/progreloc.c (get_full_program_name): Define via prototype.
120867         * lib/setenv.c (clearenv): Likewise.
120868         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
120869         needed.
120870         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
120871         (malloc, memcpy): Remove decls.
120872         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
120873         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
120874         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
120875         (memcpy): Remove macro.
120876         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
120877         (__P): Remove.  All uses removed.
120878         (PTR): Remove.  All uses changed to void *.
120879         (CHAR_BIT, NULL): Remove.
120880         (spaces, zeros, memset_space, memset_zero)
120881         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
120882         Remove.
120883         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
120884         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
120885         Define with prototype.
120886         Remove now-unnecessary prototype decl.
120887         (extra_args_spec): Assume ANSI C.  All uses changed.
120888         (extra_args_spec_iso): Remove.
120889         (my_strftime, emacs_strftimeu): Define via prototype.
120890         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
120891         unconditionally.
120892         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
120893         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
120894         (strtoul, strtol): Remove decls.
120895         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
120896         LONG_MAX): Remove.
120897         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
120898         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
120899         (LOCALE_PARAM_PROTO): New macro.
120900         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
120901         (INTERNAL (strtol), strtol): Define with a prototype.
120902         (PARAMS): Remove.  All uses removed.
120903         * lib/tempname.c: Include <string.h> unconditionally.
120904         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
120905         * lib/xgethostname.c (main): Define with a prototype.
120906         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
120907         Include <stdlib.h> unconditionally.
120908         (calloc, malloc, realloc, free): Remove decls.
120909         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
120910         Include <stdlib.h> unconditionally.  Sort include file names.
120911         (strtod): Remove.
120912         (xstrtod): Define with a prototype.
120913         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
120914         (strtol, strtoul): Remove decls.
120916 2003-09-11  Paul Eggert  <eggert@twinsun.com>
120918         More patches to assume C89 or better.
120919         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
120920         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
120921         string.h, memchr, STDC_HEADERS.
120923 2003-09-11  Paul Eggert  <eggert@twinsun.com>
120925         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
120926         Include <stdlib.h>, <string.h> unconditionally.
120927         Remove now-unnecessary cast to char *.
120928         * lib/strnlen.c: Include <string.h> unconditionally.
120929         * lib/yesno.c (yesno): Define with a prototype.
120931 2003-09-11  Bruno Haible  <bruno@clisp.org>
120933         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
120935 2003-09-10  Jim Meyering  <jim@meyering.net>
120937         * lib/error.c: Correct indentation of cpp directives.
120939 2003-09-10  Bruno Haible  <bruno@clisp.org>
120941         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
120942         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
120943         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
120944         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
120945         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
120946         <stdlib.h> and <string.h> checks.
120947         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
120948         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
120950 2003-09-10  Bruno Haible  <bruno@clisp.org>
120952         * lib/strcspn.c: Include <string.h> unconditionally.
120953         * lib/strpbrk.c: Include <string.h> unconditionally.
120954         * lib/strstr.c: Include <string.h> unconditionally.
120955         * lib/unicodeio.c: Include <string.h> unconditionally.
120956         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
120957         * lib/unsetenv.c: Likewise.
120958         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
120959         * lib/yesno.c: Include <stdlib.h> unconditionally.
120960         (rpmatch): Add prototype.
120962 2003-09-09  Paul Eggert  <eggert@twinsun.com>
120964         More patches to assume C89 or better.
120965         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
120966         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
120967         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
120968         or for string.h.
120969         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
120970         stdlib.h.
120971         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
120972         C headers.
120973         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
120974         string.h.
120975         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
120976         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
120977         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
120978         or for string.h.
120979         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
120980         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
120981         C headers.
120982         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
120983         memcpy.
120984         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
120985         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
120986         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
120987         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
120988         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
120989         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
120990         string.h, free.
120991         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
120992         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
120993         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
120994         C headers, or for string.h.
120995         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
120996         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
120997         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
120998         headers, memory.h, stdlib.h, string.h, strings.h.
120999         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
121000         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
121001         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
121002         strchr.
121003         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
121004         headers, memory.h, string.h.
121005         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
121006         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
121007         free.
121008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
121009         headers.
121010         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
121011         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
121012         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
121013         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
121014         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
121016 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121018         More K&R removal.
121020         * lib/acosl.c (main): Use a prototype.
121021         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
121022         tanl.c: Likewise.
121024         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
121026         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
121027         (getopt, etopt_long, getopt_long_only, _getopt_internal)
121028         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
121029         with a prototype.
121030         * lib/getopt.c (const): Remove macro.
121031         Include <string.h> unconditionally.
121032         (my_index): Remove; all uses changed to strchr.
121033         (strlen): Remove decl.
121034         (exchange): Remove forward decl; no longer needed.
121035         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
121036         Define with prototype.
121037         * lib/getopt1.c (const): Remove macro.
121038         (getopt_long, getopt_long_only, main): Define with prototype.
121040         * lib/getugroups.c: Include <string.h> unconditionally.
121042         * lib/getusershell.c: Include <stdlib.h> unconditionally.
121043         (getusershell, setusershell, endusershell, readname, main):
121044         Define with prototypes.
121046         * lib/group-member.c: Include group-member.h first.
121047         Include <stdlib.h> unconditionally.
121049         * lib/hard-locale.c: Include hard-locale.h first.
121050         Include <stdlib.h>, <string.h> unconditionally.
121052         * lib/hash.c (free, malloc): Remove decls.
121053         Include <stdlib.h> unconditionally.
121055         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
121056         (getenv): Do not declare.
121058         * lib/idcache.c: Include <string.h> unconditionally.
121060         * lib/long-options.c: Include long-options.h first, to test interface.
121061         Include <stdlib.h> unconditionally.
121063         * lib/makepath.c: Include makepath.h first, to test interface.
121064         Include <stdlib.h> and <string.h> unconditionally.
121066         * lib/linebuffer.c: Include <stdlib.h>.
121067         (free): Remove decl.
121069         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
121070         stddef.h. rpl_malloc returns void *, not char *.
121071         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
121072         prototype.
121074         * lib/md5.h: Include <limits.h> unconditionally.
121075         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
121076         (__P): Remove; all uses removed.
121077         * lib/md5.c: Include "md5.h" first.
121078         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
121079         md5_buffer, md5_process_bytes, md5_process_block):
121080         Define with prototypes.
121081         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
121082         * lib/sha.c: Include "sha.h" first.
121083         Include <stdlib.h>, <string.h> unconditionally.
121085         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
121086         * lib/memcmp.c (__ptr_t): Likewise.
121087         * lib/memrchr.c (__ptr_t): Likewise.
121088         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
121089         Include <string.h> unconditionally.
121090         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
121091         * lib/memchr.c: Include <stdlib.h> unconditionally.
121092         * lib/memchr.c (LONG_MAX): Remove.
121093         * lib/memrchr.c (LONG_MAX): Likewise.
121094         * lib/memchr.c (__memchr): Define via a prototype.
121095         * lib/memrchr.c (__memrchr): Likewise.
121096         * lib/memcmp.c (__P): Remove, and remove all uses.
121097         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
121098         Remove forward decls; no longer needed.
121099         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
121100         Use types required by C89 in prototype.
121102         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
121103         * lib/savedir.c: Likewise.
121104         * lib/mkdir.c (free): Remove decl.
121105         * lib/rmdir.c (rmdir): Define with a prototype.
121106         * lib/savedir.c: Include savedir.h first, to test interface.
121108         * lib/mktime.c (STDC_HEADERS): Remove.
121109         Include <stdlib.h>, <string.h> unconditionally.
121111         * lib/modechange.c: Include <stdlib.h> unconditionally.
121112         (malloc): Remove decl.
121114         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
121115         (free): Remove decl.
121117         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
121118         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
121119         (This type really should be intptr_t, but that's a C99ism.)
121120         (_obstack_memcpy): Remove: all uses changed to memcpy.
121121         Include <string.h> unconditionally.
121122         (struct obstack): Assume __STDC__ for types of members
121123         chunkfun, freefun, extra_arg.
121124         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
121125         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
121126         obstack_begin, obstack_specify_allocation,
121127         obstack_specify_allocation_with_arg, obstack_chunkfun,
121128         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
121129         Remove unprototyped decls and the macros that use them.
121130         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
121131         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
121132         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
121133         (defined __STDC__ && __STDC__)]:
121134         Remove nonprototyped code.
121135         Include <stdlib.h> unconditionally.
121136         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
121137         _obstack_allocated_p, _obstack_free, obstack_free,
121138         _obstack_memory_used, print_and_abort):
121139         Define using prototypes.
121140         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
121141         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
121142         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
121143         obstack_next_free, obstack_object_size, obstack_room) [0]:
121144         Remove unused, unprototyped code.
121146         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
121148         * lib/physmem.c (physmem_total, physmem_available, main): Define
121149         with prototypes.
121151         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
121152         (main): Define with a prototype.
121154         * lib/posixver.c (getenv): Remove decl.
121156         * lib/putenv.c (malloc): Returns void *, not char *.
121157         Include <string.h> unconditionally.
121158         (strchr, memcpy, NULL): Do not define.
121160         * lib/readtokens.c: Include readtokens.h first, to test interface.
121161         Include <stdlib.h>, <string.h> unconditionally.
121162         (init_tokenbuffer): Define with a prototype.
121164         * lib/regex.c (PARAMS): Remove.  All uses removed.
121165         All uses of _RE_ARGS removed, too.
121166         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
121167         unconditionally.
121168         (bzero): Assume memset exists.
121169         (memcmp, memcpy, NULL): Remove.
121170         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
121171         char, or assignments to local vars of type signed char.
121172         (init_syntax_once, PREFIX(extract_number_and_incr),
121173         PREFIX(print_partial_compiled_pattern),
121174         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
121175         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
121176         PREFIX(regex_grow_registers), PREFIX(regex_compile),
121177         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
121178         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
121179         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
121180         wcs_compile_range, byte_compile_range, truncate_wchar,
121181         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
121182         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
121183         count_mbs_length, wcs_re_match_2_internal,
121184         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
121185         PREFIX(alt_match_null_string_p),
121186         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
121187         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
121188         regfree, PREFIX(extract_number)): Define with prototype.  Remove
121189         now-unnecessary declaration, if any.
121190         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
121191         regcomp, regexec):
121192         Remove now-unnecessary casts among pointer types.
121193         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
121195         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
121196         (free): Remove decl.
121198         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
121200         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
121201         (free): Remove decl.
121203         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
121204         * lib/xgetcwd.c: Likewise.
121206         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
121207         (free): Remove decl.
121209         * lib/strchrnul.c (strchrnul): Define with a prototype.
121210         Fix bug: c_in was not converted to char before searching.
121212         The following changes are not K&R related:
121214         * lib/group-member.h: Include <sys/types.h>, so that this file is
121215         self-contained.
121216         * lib/makepath.h: Likewise.
121218         * lib/getusershell.c (readname, default_index, line_size, readname):
121219         Use size_t, not int, for sizes.
121220         (readname): If the size overflows, report an error instead of
121221         looping forever.
121223 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121225         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
121226         libc.
121228 2003-09-09  Paul Eggert  <eggert@twinsun.com>
121230         * README: New section: portability guidelines.
121232 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
121234         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
121235         C89 spec.
121237 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
121239         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
121241 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121243         Assume C89 or better; remove K&R cruft.
121244         A few of these changes were first proposed by Derek Robert Price
121245         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
121247         * lib/addext.c: Include <string.h> unconditionally.
121248         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
121249         Don't declare getenv or malloc.
121251         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
121252         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
121253         (NULL): Remove.
121254         (find_stack_direction, alloca): Use prototypes.
121256         * lib/atexit.c (atexit): Define using a prototype.
121258         * lib/basename.c, dirname.c, stripslash.c:
121259         Include <string.h> unconditionally.
121261         * lib/bcopy.c: Include <stddef.h>.
121262         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
121264         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
121266         * lib/error.h (error, error_at_line, error_print_progname)
121267         [! (defined (__STDC__) && __STDC__)]: Remove decls.
121268         * lib/error.c: Include error.h first, to check interface.
121269         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
121270         (VA_START): Remove; all uses changeed to va_start.
121271         (exit, strerror): Remove decls.
121272         (error_print_progname): Prototype uncondionally.
121273         Don't include <errno.h>; no longer needed.
121274         (private_strerror): Remove.
121275         (error_tail): Always define.
121276         (error, error_at_line): Assume C89 or better; always use prototypes.
121277         * lib/fatal.c: Include "fatal.h" first, to test interface.
121278         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
121279         (VA_START): Remove; all uses changed to va_start.
121280         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
121281         this case.
121282         (exit): Remove decl.
121283         (fatal): Prototype unconditionally.  Assume va_start works.
121284         Abort at end, to pacify gcc.
121286         * lib/euidaccess.c (main): Define with a prototype.
121288         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
121290         * lib/exitfail.c: Include <stdlib.h> unconditionally.
121292         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
121293         prototypes.
121294         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
121295         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
121296         (getenv): Remove decl.
121297         (fnmatch): Define using a prototype.
121298         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
121299         (FCT): Define using a prototype.
121301         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
121303         * lib/gethostname.c: Include <stddef.h>.
121304         (gethostname): Define with prototype.  Length is size_t, not int.
121306 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121308         Assume C89 or better; remove K&R cruft.
121309         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
121310         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
121311         string.h, getenv, malloc.
121312         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
121313         headers.
121314         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
121315         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
121316         do not check for strerror.
121317         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
121318         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
121319         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
121320         do not check for doprnt or vprintf.
121321         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
121322         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
121324 2003-09-08  Paul Eggert  <eggert@twinsun.com>
121326         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
121327         getversion.c should have been removed then, but was accidentally
121328         preserved.
121330         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
121331         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
121333 2003-09-08  Karl Berry  <karl@gnu.org>
121335         * config/config.sub, config.guess, srclistvars.sh: update from savannah
121336                 config, forget about prep.
121338         * config/depcomp, missing: update from automake.
121340 2003-09-07  Paul Eggert  <eggert@twinsun.com>
121342         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
121343         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
121345 2003-09-07  Paul Eggert  <eggert@twinsun.com>
121347         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
121348         copy_tm_result.  Bug reported by Simon Josefsson in
121349         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
121351 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121353         * m4/time_r.m4: New file.
121354         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
121355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
121356         is. Check for timegm declaration.
121357         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
121358         Do not check for gmtime_r.
121359         Replace mktime if __mktime_internal does not exist and if mktime
121360         hasn't been replaced already.
121362 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121364         * lib/time_r.c, lib/time_r.h: New files.
121366         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
121367         __localtime_r.
121368         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
121369         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
121371         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
121372         __gmtime_r.
121373         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
121374         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
121375         Include <time_r.h>.
121377         * lib/timegm.c: Switch to glibc implementation, with the following
121378         changes:
121379         [defined HAVE_CONFIG_H]: Include <config.h>.
121380         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
121381         (__mktime_internal) [!defined _LIBC]: New decl.
121382         (__gmtime_r) [!defined _LIBC]: New macro and function.
121383         (timegm): Use a prototype, since gnulib assumes C89.
121384         Do not bother declaring tmp to be const, as it's not really usefu.
121385         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
121386         (timegm): Declare only if HAVE_DECL_TIMEGM.
121388 2003-09-06  Paul Eggert  <eggert@twinsun.com>
121390         * MODULES.html.sh (func_all_modules): Add time_r.
121391         * modules/time_r: New file.
121392         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
121393         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
121395 2003-09-03  Paul Eggert  <eggert@twinsun.com>
121397         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
121398         Bug reported by Lute Kamstra in
121399         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
121401         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
121402         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
121403         course with correspondingly smaller numbers for tomorrow and
121404         yesterday.  From Tadayoshi Funaba.  Originally installed into
121405         sh-utils on 1999-08-07, but the patch got lost (I guess during the
121406         coreutils merge?).
121408 2003-08-31  Simon Josefsson  <jas@extundo.com>
121410         * modules/timegm: New file.
121411         * MODULES.html.sh (func_all_modules): Add timegm.
121413 2003-08-31  Simon Josefsson  <jas@extundo.com>
121415         * m4/timegm.m4: New file.
121417 2003-08-31  Simon Josefsson  <jas@extundo.com>
121419         * lib/timegm.h: New file.
121420         * lib/timegm.c: New file.  Based on
121421         wget-1.8.2/src/http.c:mktime_from_utc.
121423 2003-08-31  Karl Berry  <karl@gnu.org>
121425         * lib/argp.h: update from libc.
121427 2003-08-28  Bruno Haible  <bruno@clisp.org>
121429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
121430         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
121431         followed by '#define fnmatch fnmatch_posix' gives an error.
121433 2003-08-28  Bruno Haible  <bruno@clisp.org>
121435         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
121436         warning on QNX, which defines O_BINARY to 000000.
121438 2003-08-27  Jim Meyering  <jim@meyering.net>
121440         * m4/mkstemp.m4: Require that the system mkstemp be able to create
121441         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
121442         would fail after 32.  Reported by Danny Levinson.  Details here:
121443         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
121445 2003-08-24  Bruno Haible  <bruno@clisp.org>
121447         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
121448         MSVC7 <stdio.h> is included later.
121450 2003-08-22  Simon Josefsson  <jas@extundo.com>
121452         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
121454 2003-08-20  Karl Berry  <karl@gnu.org>
121456         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
121458 2003-08-20  Bruno Haible  <bruno@clisp.org>
121460         * modules/progname: New file.
121461         * MODULES.html.sh (func_all_modules): Add progname.
121463 2003-08-20  Bruno Haible  <bruno@clisp.org>
121465         * lib/progname.h: New file, from GNU gettext.
121466         * lib/progname.c: New file, from GNU gettext.
121467         * lib/progreloc.c: New file, from GNU gettext.
121469 2003-08-19  Jim Meyering  <jim@meyering.net>
121471         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
121472         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
121474 2003-08-19  Bruno Haible  <bruno@clisp.org>
121476         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
121477         more.
121479 2003-08-19  Bruno Haible  <bruno@clisp.org>
121481         * lib/xstrdup.c: Assume <string.h> exists.
121483 2003-08-18  Paul Eggert  <eggert@twinsun.com>
121485         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
121486         in makefile rules.
121488 2003-08-18  Jim Meyering  <jim@meyering.net>
121490         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
121491         * m4/lib-ld.m4: Likewise.
121493 2003-08-18  Jim Meyering  <jim@meyering.net>
121495         * lib/setenv.h: Indent nested cpp directive.
121496         * lib/vasnprintf.c: Remove trailing blanks.
121498 2003-08-17  Simon Josefsson  <jas@extundo.com>
121500         * modules/xstrndup: New file.
121501         * MODULES.html.sh (func_all_modules): Add xstrndup.
121503 2003-08-17  Simon Josefsson  <jas@extundo.com>
121505         * modules/argp: Fix autoconf macro name. Add more dependencies.
121507 2003-08-17  Simon Josefsson  <jas@extundo.com>
121509         * m4/xstrndup.m4: New file.
121511 2003-08-17  Simon Josefsson  <jas@extundo.com>
121513         * m4/argp.m4: New file.
121515 2003-08-17  Simon Josefsson  <jas@extundo.com>
121516             Bruno Haible  <bruno@clisp.org>
121518         * lib/xstrndup.h: New file.
121519         * lib/xstrndup.c: New file.
121521 2003-08-17  Bruno Haible  <bruno@clisp.org>
121523         * modules/strndup (Files, Include): Add lib/strndup.h.
121525 2003-08-17  Bruno Haible  <bruno@clisp.org>
121527         * modules/euidaccess (Files): Add lib/euidaccess.h.
121529 2003-08-17  Bruno Haible  <bruno@clisp.org>
121531         * lib/strndup.h: New file.
121533 2003-08-17  Bruno Haible  <bruno@clisp.org>
121535         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
121536         like AC_GNU_SOURCE.
121537         * modules/extensions (configure.ac): Comment out the invocation of
121538         gl_USE_SYSTEM_EXTENSIONS.
121540 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121542         Merges from coreutils, etc.
121543         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
121544         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
121545         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
121546         fixing a typo.
121547         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
121548         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
121550 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121552         Document merge from coreutils.
121553         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
121554         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
121555         * modules/utime: Add m4/utimes-null.m4.
121557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121559         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
121560         space, undoing this 2003-08-12 change:
121561         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
121563 2003-08-16  Paul Eggert  <eggert@twinsun.com>
121565         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
121566         strtoul.c from libc, undoing this 2003-08-12 change:
121567         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
121569 2003-08-16  Jim Meyering  <jim@meyering.net>
121571         Merges from coreutils.
121572         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
121573         prefix.  Adjust cache variables similarly.  Create 500 rather than
121574         just 300 files, to exercise bug on Darwin6.5, too.
121575         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
121576         $missing_dir.
121577         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
121578         AM_SYS_POSIX_TERMIOS.
121579         Reported by mkc@mathdogs.com.
121580         Also change use of $am_cv_sys_posix_termios
121581         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
121582         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
121583         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
121584         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
121585         in /proc/mounts until it finds one with matching device number.  This
121586         is unnecessary when the FILE argument *is* a mount point.  No stat call
121587         is necessary in that case.  So, disable the statvfs-testing code on
121588         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
121589         as RedHat bug# 84846.
121590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
121591         to 1MB, so as not to render systems with no stack size limit (e.g.,
121592         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
121593         Include <unistd.h>.  On some systems,
121594         it is required for the definition of _SC_PAGESIZE.
121596 2003-08-16  Jim Meyering  <jim@meyering.net>
121598         Merge from coreutils.
121599         * lib/xstrtoimax.c: #else #if -> #elif.
121600         * lib/xstrtoumax.c: Likewise.
121602 2003-08-16  Jim Meyering  <jim@meyering.net>
121604         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
121605         * m4/utimes.m4: Removed.
121606         * m4/utimes-null.m4: Renamed from utimes.m4.
121608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
121609         to 1MB, so as not to render systems with no stack size limit (e.g.,
121610         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
121611         Include <unistd.h>.  On some systems,
121612         it is required for the definition of _SC_PAGESIZE.
121614 2003-08-16  Jim Meyering  <jim@meyering.net>
121615         and Paul Eggert  <eggert@cs.ucla.edu>
121617         Merges from coreutils, etc.
121619         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
121620         using the latest version from cvs.  This avoids problems with #line
121621         directives using a vendor (Sun) compiler.
121622         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
121623         Don't set GETGROUPS_LIB here; now it's
121624         done via getgroups.m4's wrapper function.
121625         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
121626         rather than just in sh-util/configure.in, so that the
121627         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
121628         same.
121629         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
121630         AC_FUNC_GETLOADAVG where to find getloadavg.c.
121631         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
121632         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
121633         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
121634         Remove code that is now done by the newly-required macros.
121635         Append $(EXEEXT) to DF_PROG.
121636         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
121637         Do not invoke or require the following here,
121638         since prereq.m4 or some gnulib .m4 now does this for us:
121639         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
121640         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
121641         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
121642         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
121643         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
121644         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
121645         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
121646         AC_FUNC_OBSTACK.
121647         Do not replace the following functions, as this is now the job
121648         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
121649         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
121650         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
121651         atexit getpass, strdup, getpagesize.
121652         Replace 'raise'.
121653         Do not check for the following functions, as this is now the job
121654         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
121655         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
121656         setregid.
121657         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
121658         Check for sys/sysctl.h.
121659         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
121660         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
121661         of checking for ssize_t ourselves.
121663         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
121664         Require every macro that gnulib/modules/* suggests for us.
121665         (jm_PREREQ_ADDEXT): New macro.
121666         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
121667         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
121669         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
121670         (gl_PHYSMEM): Use it.
121671         Also check for `table' function.
121672         Check for new headers and functions.
121673         Add check for sys/sysmp.h.
121674         With suggestions from Kaveh Ghazi.
121675         Ignore headers that are present but cannot be compiled.  This
121676         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
121677         C 5.4.
121679 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121681         Document merge from coreutils.
121682         * modules/userspec: Depend on posixver.
121683         * modules/strftime: Depend on tzset.
121685 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121687         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
121688         rather than tab, after '#' in shell-script copyright notices.
121689         Suggested by Bruno Haible.
121691 2003-08-15  Paul Eggert  <eggert@twinsun.com>
121693         * config/srclist-update: Use three spaces, rather than tab, after '#'
121694         in shell-script copyright notices.  Suggested by Bruno Haible.
121695         Remove unnecessary parenthesization in regular expression.
121697 2003-08-15  Jim Meyering  <jim@meyering.net>
121699         Merge from coreutils.
121700         * lib/xgethostname.c: Include <stdlib.h>.
121701         (xghostname): Don't exit for anything other than memory-related
121702         failure; just return NULL.
121703         * lib/userspec.c: Include "posixver.h".
121704         (parse_user_spec): Accept `.' as a separator only
121705         in pre-POSIX-200112 mode.
121706         * lib/strtoimax.c: Use #elif rather than #else #if.
121707         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
121708         Remove function, now that we can rely on a working tzset function.
121709         [!_LIBC]: Ensure that the required autoconf test has been run.
121710         [!defined _NL_CURRENT && HAVE_STRFTIME]:
121711         Use underlying_strftime for %r.
121712         * lib/sha.c: Merge in some clean-up and optimization changes from
121713         glibc.
121714         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
121715         Ensure that it is a multiple of 64.
121716         Rearrange loop exit tests so as to avoid performing an
121717         additional fread after encountering an error or EOF.
121718         * lib/realloc.c: Update copyright date.
121720 2003-08-15  Jim Meyering  <jim@meyering.net>
121721         and Paul Eggert  <eggert@twinsun.com>
121723         Merge from coreutils.
121724         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
121725         member but strut utmpx does not.  Needed for AIX 4.3.3.
121726         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
121728 2003-08-15  Jim Meyering  <jim@meyering.net>
121729         and Paul Eggert  <eggert@cs.ucla.edu>
121731         Merges from coreutils, etc.
121732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
121733         Require gl_FUNC_TZSET_CLOBBER.
121734         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
121735         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
121736         members.
121738 2003-08-14  Paul Eggert  <eggert@twinsun.com>
121740         Help the merge from coreutils.
121741         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
121742         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
121743         * m4/tzset.m4: Use it too.
121745 2003-08-14  Paul Eggert  <eggert@twinsun.com>
121747         * modules/tzset: New file.
121749 2003-08-14  Jim Meyering  <jim@meyering.net>
121751         Merges from coreutils.
121752         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
121753         variable names, rather than @FNMATCH_H@.
121754         * modules/alloca: Likewise for $(ALLOCA_H).
121756         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
121757         the three copies of the literal target, `fnmatch.h'.
121758         * modules/alloca (alloca.h): Likewise.
121760 2003-08-14  Jim Meyering  <jim@meyering.net>
121762         Merge from coreutils.
121763         * m4/tzset.m4: New file.
121764         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
121765         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
121766         otherwise, AIX 5.1 systems would end up using the latter.
121767         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
121768         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
121769         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
121770         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
121772 2003-08-14  Jim Meyering  <jim@meyering.net>
121774         Merge from coreutils.
121775         * lib/obstack.h: Whitespace changes.
121776         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
121777         and xcalloc return values.
121778         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
121779         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
121780         hang on OSF/1 5.1 for DIR on both local and remote file systems.
121781         Reported by (and fix confirmed by) Nelson H. F. Beebe.
121782         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
121783         error from mntctl.
121784         Use mntctl's return value to drive the entry-processing loop, since
121785         we can't rely on the value of the vmt_length member in the last
121786         entry.  On some systems doing so could result in exhausting
121787         virtual memory.  Based in part on a patch from Mike Jetzer.
121789 2003-08-14  Jim Meyering  <jim@meyering.net>
121790         and Paul Eggert  <eggert@twinsun.com>
121792         Merges from coreutils, plus other fixes.
121793         * lib/physmem.c: Merge in portability changes from gcc/libiberty
121794         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
121795         for credits and details.  Thanks to Kaveh Ghazi for helping
121796         to keep these files in sync.
121797         (ARRAY_SIZE): Define it.
121798         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
121799         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
121800         (memcasecmp): Don't assume size_t fits in unsigned int.
121801         Remove casts and duplicate code.
121802         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
121803         (memcpy): Remove definition.
121804         Merge in some clean-up and optimization changes from glibc.
121805         [BLOCKSIZE]: Move definition to top of file.
121806         Ensure that it is a multiple of 64.
121807         Rearrange loop exit tests so as to avoid performing an
121808         additional fread after encountering an error or EOF.
121809         * lib/md5.h (md5_uintptr): Define.
121810         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
121811         return to the initial working directory.  Preserve errno
121812         for caller.
121813         * lib/idcache.c: Include "xalloc.h".
121814         (xmalloc, xrealloc): Remove decls.
121815         (getuser): Remove casts no longer required in C89.
121816         * lib/human.c: Include stdio.h, for sprintf.
121817         * lib/group-member.c: Include "xalloc.h".
121818         (xmalloc, xrealloc): Remove decls.
121819         (get_group_info): Remove casts no longer required in C89.
121820         * lib/getusershell.c (readname): Remove casts no longer required in
121821         C89.
121822         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
121823         * lib/getline.c: Whitespace fix, from coreutils.
121825 2003-08-13  Paul Eggert  <eggert@twinsun.com>
121827         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
121828         Check for isascii.
121830         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
121831         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
121832         Undo previous (whitespace-only) change.
121834 2003-08-13  Paul Eggert  <eggert@twinsun.com>
121836         * lib/exclude.c: Include <ctype.h>
121837         (IN_CTYPE_DOMAIN): New macro.
121838         (is_space): New fn.
121839         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
121840         and empty lines.
121842         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
121843         Undo previous (whitespace-only) change.
121845 2003-08-13  Paul Eggert  <eggert@twinsun.com>
121847         * config/srclist-update: Change update back to the old behavior,
121848         leaving whitespace alone.  Use one 'sed' command rather than a
121849         pipeline.
121850         (fixlicense): Now a variable, not a function.
121851         (remove_trailing_blanks): Remove.
121852         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
121853         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
121854         Undo previous (whitespace-only) change.
121856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
121858         Merge from coreutils.
121859         * modules/euidaccess: Add lib_SOURCES, include for new
121860         file euidaccess.h
121862 2003-08-12  Paul Eggert  <eggert@twinsun.com>
121864         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
121865         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
121866         Normalize leading white space and remove trailing white space.
121868         Merge from coreutils
121869         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
121871         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
121872         0.12.1.  These files are now being upgraded automatically by
121873         ../config/srclist-update.
121875 2003-08-12  Paul Eggert  <eggert@twinsun.com>
121877         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
121878         Normalize leading white space and remove trailing white space.
121879         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
121880         notice, as per ../config/srclist-update.
121882         Merge from coreutils.
121883         * lib/euidaccess.h: New file.
121884         * lib/euidaccess.c: Include it.
121885         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
121886         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
121887         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
121889 2003-08-12  Paul Eggert  <eggert@twinsun.com>
121891         * config/srclist-update: Add copyright notice.
121892         (remove_id_lines, remove_trailing_blanks): New constants.
121893         (fixfile): Use them to normalize spacing a bit in copied files.
121894         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
121895         Normalize leading white space and remove trailing white space.
121897         * config/texinfo.tex: Sync with texinfo.
121899         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
121900         strtoul.c from libc, to merge coreutils whitespace changes.
121902         * config/srclist.txt: Get the following m4 files from gettext:
121903         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
121904         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
121905         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
121906         wint_t.m4.
121908 2003-08-12  Karl Berry  <karl@gnu.org>
121910         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
121911         been made.
121913 2003-08-11  Paul Eggert  <eggert@twinsun.com>
121915         * modules/gnu-source, m4/gnu-source.m4:
121916         Remove; we're assuming Autoconf 2.54 or later now.
121917         Suggested by Bruno Haible.
121918         * MODULES.html.sh (func_all_modules): Remove gnu-source.
121920 2003-08-11  Bruno Haible  <bruno@clisp.org>
121922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
121924 2003-08-11  Bruno Haible  <bruno@clisp.org>
121926         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
121927         (vasnprintf): Use it instead of wcslen.
121929 2003-08-11  Bruno Haible  <bruno@clisp.org>
121931         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
121932         value to ensure that _Bool promotes to int. Use #define for _Bool when
121933         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
121935 2003-08-10  Karl Berry  <karl@gnu.org>
121937         * lib/regex.h: update from libc (whitespace fix).
121939 2003-08-09  Paul Eggert  <eggert@twinsun.com>
121941         Merge some files from coreutils.  These changes were
121942         originally made by Jim Meyering.
121943         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
121944         many older Unixes require this.
121945         * lib/alloca.c (alloca): Remove cast to argument of free;
121946         no longer needed in C89.
121947         * lib/alloca_.h, regex.h: Fix white space to match
121948         what GNU indent does.
121950 2003-08-09  Paul Eggert  <eggert@twinsun.com>
121952         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
121953         apparently Emacs's Unicode mode got confused before my 2003-08-05
121954         checkin.
121956 2003-08-08  Paul Eggert  <eggert@twinsun.com>
121958         * m4/extensions.m4: New file.
121959         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
121960         Require gl_USE_SYSTEM_EXTENSIONS.
121961         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
121962         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
121964 2003-08-08  Paul Eggert  <eggert@twinsun.com>
121966         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
121967         * modules/extensions, modules/gnu-source: New files.
121968         * modules/timespec, modules/unlocked-io: Depend on extensions.
121970 2003-08-07  Paul Eggert  <eggert@twinsun.com>
121972         * modules/restrict: New file.
121973         * MODULES.html.sh (func_all_modules): Add restrict.
121974         * modules/regex: Depend on restrict.
121976 2003-08-07  Paul Eggert  <eggert@twinsun.com>
121978         * m4/restrict.m4: New file.
121979         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
121981 2003-08-07  Bruno Haible  <bruno@clisp.org>
121983         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
121984         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
121986 2003-08-07  Bruno Haible  <bruno@clisp.org>
121988         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
121989         makes the module 'getndelim2' compatible with the module 'getline'.
121991 2003-08-05  Paul Eggert  <eggert@twinsun.com>
121993         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
121994         byte with "\201" to avoid glitches when editing that source file
121995         with multi-gnome-terminal.
121997 2003-08-05  Paul Eggert  <eggert@twinsun.com>
121999         * lib/bumpalloc.h: Remove.
122001 2003-08-05  Paul Eggert  <eggert@twinsun.com>
122003         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
122004         * modules/bumpalloc: Remove.
122006 2003-08-04  Paul Eggert  <eggert@twinsun.com>
122008         * lib/getloadavg.c: Change copyright notice and spacing to conform to
122009         GNU coding style.
122011         Merge from coreutils.
122012         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
122013         1. From glibc.
122014         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
122015         from Karl Berry, implemented by Jim Meyering.
122016         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
122017         from Dmitry V. Levin.
122018         Remove anachronistic cast of xrealloc.
122019         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
122020         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
122021         type. Otherwise, it wouldn't compile with at least /bin/cc on
122022         ymp-cray-unicos9.0.2.X.
122023         Combine two mostly-identical uses of alloca into one.
122024         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
122026 2003-08-04  Dave Love  <d.love@dl.ac.uk>
122028         [From Emacs.]
122030         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
122031         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
122032         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
122033         obsolete NLIST_NAME_UNION.
122034         [__GNU__]: Undef BSD and FSCALE.
122035         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
122037 2003-08-03  Paul Eggert  <eggert@twinsun.com>
122039         * lib/stdbool_.h (_Bool): Make it signed char, instead of
122040         an enum type, so that it's guaranteed to promote to int.  See:
122041         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
122043 2003-08-03  Karl Berry  <karl@gnu.org>
122045         * config/depcomp: update from automake.
122047 2003-07-31  Paul Eggert  <eggert@twinsun.com>
122049         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
122050         (strerror): Don't assume that a printable int fits in 14 bytes.
122052 2003-07-31  Bruno Haible  <bruno@clisp.org>
122054         * modules/getpass-gnu: New file.
122055         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
122057 2003-07-31  Bruno Haible  <bruno@clisp.org>
122059         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
122061 2003-07-24  Karl Berry  <karl@gnu.org>
122063         * config/missing: update from automake.
122065 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
122066             Bruno Haible  <bruno@clisp.org>
122068         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
122069         * lib/getline.c (getline, getdelim): Likewise.
122070         Remove _GNU_SOURCE define; now it's defined in config.h through
122071         m4/getline.m4.
122073 2003-07-23  Karl Berry  <karl@gnu.org>
122075         * config/config.sub: update from prep.
122077 2003-07-22  Paul Eggert  <eggert@twinsun.com>
122079         * modules/xalloc (Depends-on): Add exitfail.
122080         * modules/xmemcoll: Likewise.
122082 2003-07-22  Paul Eggert  <eggert@twinsun.com>
122084         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
122085         over-parenthesization in macros.
122087         Sync with coreutils.
122089         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
122090         required by C99.
122092         Use `exit_failure' for xalloc and xmemcoll instead of their own
122093         private exit-failure variables.
122094         * lib/xalloc.h (xalloc_exit_failure): Remove.
122095         * lib/xmalloc.c: Likewise.  Include exitfail.h.
122096         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
122097         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
122098         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
122099         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
122101 2003-07-20  Jim Meyering  <jim@meyering.net>
122103         * modules/closeout (Depends-on): Add exitfail.
122104         Suggestion from Bruno Haible.
122106 2003-07-19  Karl Berry  <karl@gnu.org>
122108         * config/config.sub: update from prep.
122110 2003-07-18  Paul Eggert  <eggert@twinsun.com>
122112         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
122113         Remove.
122114         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
122115         to test that it can stand by itself.  Include "exitfail.h".
122116         Clients should set exit_failure instead.
122117         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
122119 2003-07-18  Bruno Haible  <bruno@clisp.org>
122121         * modules/getndelim2: New file.
122122         * modules/getline: Share files with module getndelim2.
122123         * modules/getnline: Depend on getndelim2 instead of sharing files with
122124         it. Add getnline.c to lib_SOURCES.
122125         * MODULES.html.sh (func_all_modules): Add getndelim2.
122127 2003-07-18  Bruno Haible  <bruno@clisp.org>
122129         * m4/getndelim2.m4: New file.
122130         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
122131         invoke gl_PREREQ_GETNDELIM2.
122132         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
122133         gl_PREREQ_GETNDELIM2.
122134         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
122135         gl_GETNDELIM2.
122137 2003-07-18  Bruno Haible  <bruno@clisp.org>
122139         * lib/getndelim2.h: New file.
122140         * lib/getndelim2.c: Make into a module of its own. Include config.h,
122141         getndelim2.h.
122142         (getndelim2): Make non-static. Change return type to ssize_t.
122143         * lib/getline.h: Change argument names.
122144         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
122145         * lib/getnline.c: Include getndelim2.h.
122147 2003-07-18  Andreas Schwab  <schwab@suse.de>
122149         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
122151 2003-07-17  Karl Berry  <karl@gnu.org>
122153         * config/config.sub: update from prep.
122155 2003-07-17  Bruno Haible  <bruno@clisp.org>
122157         * modules/getnline: New file.
122158         * modules/getline: Add lib/getndelim2.c to source file list.
122159         * MODULES.html.sh (func_all_modules): Add getnline.
122161 2003-07-17  Bruno Haible  <bruno@clisp.org>
122163         * m4/getnline.m4: New file.
122165 2003-07-17  Bruno Haible  <bruno@clisp.org>
122167         * m4/Makefile.am.in: Remove file.
122168         * m4/Makefile.am: Remove file.
122169         * m4/Makefile.in: Remove file.
122171 2003-07-17  Bruno Haible  <bruno@clisp.org>
122173         * lib/getnline.h: New file.
122174         * lib/getnline.c: New file.
122175         * lib/getndelim2.c: New file, extracted from getline.c.
122176         (getndelim2): Renamed from getdelim2, with added nmax argument.
122177         * lib/getline.c: Include getndelim2.c.
122178         (getdelim2): Moved out to getndelim2.c.
122179         (getline, getdelim): Update.
122181 2003-07-17  Bruno Haible  <bruno@clisp.org>
122183         * lib/Makefile.am: Remove file.
122184         * lib/Makefile.in: Remove file.
122186 2003-07-17  Bruno Haible  <bruno@clisp.org>
122188         * configure.in: Remove file.
122189         * Makefile.in: Remove file.
122191 2003-07-17  Bruno Haible  <bruno@clisp.org>
122193         * MODULES.html.sh: Put the </BODY> right before </HTML>.
122195 2003-07-16  Karl Berry  <karl@gnu.org>
122197         * config/srclist-update: was running fixlicense twice, which caused
122198                 texinfo.tex to be nullified for some reason.  Simplify,
122199                 $gplsrc is no longer needed as far as I can see?
122201 2003-07-16  Jim Meyering  <jim@meyering.net>
122203         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
122205 2003-07-15  Paul Eggert  <eggert@twinsun.com>
122207         * config/srclist.txt: Get the following files from gettext-runtime/intl
122208         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
122209         ref-del.sin.  From Bruno Haible.
122210         * config/srclist-update (fixfile): Change grep pattern again, since the
122211         previous fix didn't work (there was another trailing $).  Use
122212         '[$]' to escape the $s.
122214 2003-07-15  Karl Berry  <karl@gnu.org>
122216         * lib/vasnprintf.c: update from gettext.
122218 2003-07-15  Karl Berry  <karl@gnu.org>
122220         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
122221         gets expanded when surrounded by '$'.
122223 2003-07-15  Jim Meyering  <jim@meyering.net>
122225         * modules/save-cwd: Don't depend on error.  From Derek Price.
122227 2003-07-15  Jim Meyering  <jim@meyering.net>
122229         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
122231 2003-07-14  Simon Josefsson  <jas@extundo.com>
122233         * modules/mempcpy: New file.
122234         * MODULES.html.sh (func_all_modules): Add mempcpy.
122236 2003-07-14  Simon Josefsson  <jas@extundo.com>
122238         * m4/mempcpy.m4: New file.
122240 2003-07-14  Simon Josefsson  <jas@extundo.com>
122242         * lib/mempcpy.h: New file.
122243         * lib/mempcpy.c: New file.
122245 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122247         * modules/getdate, modules/posixtm: Depend on mktime.
122249 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122251         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
122252         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
122253         unicodeio.c, unicodeio.h, unlocked-io.h:
122254         Switch from LGPL to GPL.
122256 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122258         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
122259         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
122260         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
122261         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
122262         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
122263         updated automatically by ../config/srclist-update.  This changes
122264         their license from LPGL to GPL.
122266 2003-07-14  Paul Eggert  <eggert@twinsun.com>
122268         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
122269         assumed to refer to the root of the most recent stable gettext version.
122270         * config/srclistvars.sh: Add defaults for eggert.
122271         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
122272         Match "This program" as well as "The program".  This is needed
122273         for gettext.
122275 2003-07-14  Jim Meyering  <jim@meyering.net>
122277         Don't emit diagnostics.  Let callers do that.
122278         * lib/save-cwd.c: Don't include "error.h".
122279         (save_cwd): Don't call error.  Ensure that errno is valid
122280         when returning nonzero.
122282         * lib/save-cwd.h (restore_cwd): Update prototype.
122283         * lib/save-cwd.c (restore_cwd): Remove two parameters.
122284         Simplify.  Don't call error upon failure.  Let callers do that.
122285         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
122286         when auditing is enabled.  But don't bother updating the #if.
122288 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
122290         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
122291         it breaks C++ compilation.
122292         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
122294 2003-07-10  Simon Josefsson  <jas@extundo.com>
122296         * modules/strchrnul (Makefile.am): Add strchrnul.h.
122298 2003-07-10  Jim Meyering  <jim@meyering.net>
122300         * m4/clock_time.m4: Remove trailing blank.
122301         * m4/intmax_t.m4: Likewise.
122303 2003-07-10  Jim Meyering  <jim@meyering.net>
122305         * lib/vasnprintf.c: Remove trailing blanks.
122306         Make cpp indentation consistent.
122308 2003-07-09  Paul Eggert  <eggert@twinsun.com>
122310         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
122311         posixver.c, strftime.c, strnlen.c, strverscmp.c:
122312         Switch from LGPL to GPL.
122314 2003-07-09  Paul Eggert  <eggert@twinsun.com>
122316         * config/srclist.txt: Sort sublists.  Add
122317         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
122318         that differ from gnulib for one reason or another; we'd like this list
122319         to be smaller but for now let's document what we have.
122321 2003-07-08  Paul Eggert  <eggert@twinsun.com>
122323         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
122324         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
122325         and sweeter "eval x=$x".
122326         * config/srclist.txt: Get lib/argp* from glibc.
122328 2003-07-07  Paul Eggert  <eggert@twinsun.com>
122330         * lib/mktime.c: Fix some boundary cases and remove need for floating
122331         point.
122333         Issue a compile-time diagnostic if time_t is floating point, or if
122334         two's complement arithmetic is not in effect, or if arithmetic
122335         right shift does not propagate the sign.  These assumptions were
122336         all in the original code but they weren't checked.
122338         (TIME_T_MIDPOINT, verify): New macros.
122339         (__isleap): Remove; it has integer overflow problems.
122340         (leapyear): New function, without those problems.
122341         (ydhms_tm_diff): Remove; splitting into two parts.
122342         (ydhms_diff): New function, containing the arithmetic part of
122343         the old ydhms_tm_diff function.  Issue a compile-time
122344         diagnostic if we are not using C99 integer division.
122345         Avoid casts when possible.
122346         (guess_time_tm): New function, containing the checking part of
122347         the old ydhms_tm_diff function.  Return the new value, rather than
122348         the difference between it and the old.  Accept a new argument T
122349         so that *T specifies the old value.  Check for overflow in the result.
122351         (__mktime_internal): Use a time_t offset, not a long int offset.
122352         This undoes the 2003-06-04 change, which is no longer needed now
122353         that we have better overflow checking.
122354         (localtime_offset): Likewise.
122356         (__mktime_internal): Avoid harmful overflow on hosts where time_t
122357         and long are 64-bit but int is only 32-bit.
122358         (ydhms_diff): Use long int to store year1 and yday1.
122359         Issue a compile-time diagnostic if long int is not wide enough.
122361         (__mktime_internal): Use long int to store adjusted year and yday.
122362         Use plain C rather than preprocessor commands, if that doesn't
122363         affect efficiency.
122364         Check for overflow (and try to repair) after each probe
122365         rather than checking only at the very end.  This avoids some bugs
122366         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
122367         does not equal GMT offset at maximum time).
122368         Use integer to check for overflow rather than floating point; this
122369         is more portable to non-IEEE hosts, and is a tad faster.
122370         When we detect that we are oscillating between two values,
122371         don't check whether tm_isdst has the requested value, since
122372         we already know the answer.  When tm_isdst has the wrong value,
122373         use a different heuristic to find the right one, based on the
122374         extreme values actually observed in practice in tz2003a,
122375         rather than the (overly optimistic) "previous 3 calendar quarters".
122377         (not_equal_tm, print_tm, check_result): Use "const T" rather than
122378         "T const" to accommodate glibc style.
122379         (check_result): Use less-confusing report format.  "long" -> "long int.
122380         (main): Likewise.
122381         Don't loop if the iteration overflows time_t.
122382         Allow a negative step in the iteration.
122384 2003-07-06  Karl Berry  <karl@gnu.org>
122386         * config/depcomp: update from automake.
122387         * config/config.sub: update from prep.
122389 2003-07-03  Karl Berry  <karl@gnu.org>
122391         * config/config.guess: update from prep.
122393 2003-07-01  Paul Eggert  <eggert@twinsun.com>
122395         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
122396         xreadlink.c now includes it unconditionally.
122398 2003-07-01  Paul Eggert  <eggert@twinsun.com>
122400         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
122401         having it depend on HAVE_SYS_TYPES_H.
122403 2003-07-01  Bruno Haible  <bruno@clisp.org>
122405         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
122406         <sys/types.h> should be sufficient.
122407         Reported by Paul Eggert.
122409 2003-06-26  Karl Berry  <karl@gnu.org>
122411         * config/depcomp: update from automake.
122413 2003-06-26  Bruno Haible  <bruno@clisp.org>
122415         * modules/human: Depend on module stdbool.
122417 2003-06-25  Bruno Haible  <bruno@clisp.org>
122419         * modules/readlink: New file.
122420         * modules/xreadlink: Depend on it.
122421         * MODULES.html.sh (func_all_modules): Add readlink.
122423 2003-06-25  Bruno Haible  <bruno@clisp.org>
122425         * m4/readlink.m4: New file.
122427 2003-06-25  Bruno Haible  <bruno@clisp.org>
122429         * lib/readlink.c: New file.
122431 2003-06-22  Karl Berry  <karl@gnu.org>
122433         * config/srclist.txt: update mkinstalldirs from automake.
122434         * config/mkinstalldirs: update.
122436 2003-06-22  Bruno Haible  <bruno@clisp.org>
122438         Portability to mingw32.
122439         * m4/ssize_t.m4: New file, from GNU gettext.
122440         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
122441         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
122443 2003-06-22  Bruno Haible  <bruno@clisp.org>
122445         * modules/safe-read: Add m4/ssize_t.m4.
122446         * modules/xreadlink: Add m4/ssize_t.m4.
122448 2003-06-20  Bruno Haible  <bruno@clisp.org>
122450         Assume C89, so PARAMS isn't needed.
122451         * lib/unicodeio.h (PARAMS): Remove.
122452         * lib/unicodeio.c: Don't use PARAMS.
122454 2003-06-18  Karl Berry  <karl@gnu.org>
122456         * config/config.{guess,sub}: update from prep.
122458 2003-06-18  Jim Meyering  <jim@meyering.net>
122460         Merge changes from coreutils.
122461         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
122462         Remove explicit declarations of xmalloc and realloc.
122463         Include xalloc.h.
122464         (read_utmp): Remove anachronistic cast of xmalloc.
122466 2003-06-17  Paul Eggert  <eggert@twinsun.com>
122468         Assume C89, so PARAMS isn't needed.
122469         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
122470         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
122471         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
122472         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
122473         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
122474         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
122475         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
122476         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
122477         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
122478         lib/xstrtod.h, lib/xstrtol.h: Likewise.
122479         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
122480         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
122481         no longer needed. Anyway, config.h should always be included before any
122482         other file.
122484 2003-06-11  Simon Josefsson  <jas@extundo.com>
122486         * modules/sysexits: New file.
122487         * MODULES.html.sh (func_all_modules): Add sysexits.
122489 2003-06-11  Simon Josefsson  <jas@extundo.com>
122491         * lib/sysexit_.h: New file.
122493 2003-06-11  Derek Price  <derek@ximbiot.com>
122495         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
122496         necessary.
122498 2003-06-11  Bruno Haible  <bruno@clisp.org>
122500         * m4/sysexits.m4: New file.
122502 2003-06-10  Simon Josefsson  <jas@extundo.com>
122504         * lib/argp.h: New file, from glibc.
122505         * lib/argp-ba.c: New file, from glibc.
122506         * lib/argp-eexst.c: New file, from glibc.
122507         * lib/argp-fmtstream.c: New file, from glibc.
122508         * lib/argp-fmtstream.h: New file, from glibc.
122509         * lib/argp-fs-xinl.c: New file, from glibc.
122510         * lib/argp-help.c: New file, from glibc.
122511         * lib/argp-namefrob.h: New file, from glibc.
122512         * lib/argp-parse.c: New file, from glibc.
122513         * lib/argp-pv.c: New file, from glibc.
122514         * lib/argp-pvh.c: New file, from glibc.
122515         * lib/argp-xinl.c: New file, from glibc.
122517 2003-06-10  Simon Josefsson  <jas@extundo.com>
122519         * modules/strchrnul: New file.
122521 2003-06-10  Simon Josefsson  <jas@extundo.com>
122523         * modules/argp: New file.
122525 2003-06-10  Simon Josefsson  <jas@extundo.com>
122527         * m4/strchrnul.m4: New file.
122529 2003-06-10  Simon Josefsson  <jas@extundo.com>
122531         * lib/strchrnul.h: New file.
122532         * lib/strchrnul.c: New file.
122534 2003-06-10  Bruno Haible  <bruno@clisp.org>
122536         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
122538 2003-06-07  Karl Berry  <karl@gnu.org>
122540         * config/config.{guess,sub}: update from prep.
122542 2003-06-07  Jim Meyering  <jim@meyering.net>
122544         * modules/strtod: Use $(...) notation, not @...@ for
122545         AC_REPLACE'd variables.
122546         * modules/localcharset: Likewise.
122548 2003-06-07  Jim Meyering  <jim@meyering.net>
122550         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
122551         in place of my name in the copyright comment.
122552         Remove definition and uses of __P.
122554         From coreutils.
122555         * lib/stat.c: Don't declare xmalloc explicitly.
122556         Instead, include "xalloc.h".
122557         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
122558         xrealloc, and xcalloc return values.
122559         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
122560         Improve comment.
122561         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
122563 2003-06-07  Bruno Haible  <bruno@clisp.org>
122565         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
122566         avoid AC_CONFIG_LINKS.
122567         * modules/fnmatch (Makefile.am): Use explicit creation rule for
122568         fnmatch.h, to avoid AC_CONFIG_LINKS.
122569         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
122571 2003-06-07  Bruno Haible  <bruno@clisp.org>
122573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
122574         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
122575         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
122576         directory.
122577         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
122578         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
122579         directory.
122581 2003-06-06  Jim Meyering  <jim@meyering.net>
122583         Merge from coreutils.
122584         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
122585         Consolidate declarations and initializations of *_base* locals.
122587         Merge from coreutils.
122588         This avoids a core dump on systems without GNU putenv,
122589         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
122590         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
122591         (unsetenv): New static function, from GNU libc.
122592         (rpl_putenv): Use it.
122594         * lib/modechange.c: Remove trailing blanks.
122596         Merge from coreutils.
122597         * lib/fsusage.c: Remove declaration of statfs.
122598         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
122600         * lib/posixtm.c: Include <stdbool.h> unconditionally.
122602 2003-06-06  Jim Meyering  <jim@meyering.net>
122604         * lib/stdbool_.h: Renamed from stdbool.h.in.
122606 2003-06-06  Jim Meyering  <jim@meyering.net>
122607             Bruno Haible  <bruno@clisp.org>
122609         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
122610         Adjust Makefile.am snippet not to redirect directly to target.
122611         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
122613 2003-06-05  Paul Eggert  <eggert@twinsun.com>
122615         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
122616         mismatch, look in future quarters as well as past.  This fixes a
122617         bug when processing fall-backwards gaps immediately after a long
122618         period of daylight-saving time.
122620         * lib/mktime.c: Assume freestanding C89 or better.
122621         (HAVE_LIMITS_H): Remove.  Assume it's 1.
122622         (__P): Remove; not used.
122623         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
122624         (mktime, not_equal_tm, print_tm, check_result,
122625         main): Use prototypes.  Use const * where appropriate.
122626         (main): Fix typo in testing code that uncovered by above changes.
122627         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
122629 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122631         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
122632         locale.h, localeconv.  This merges changes from coreutils.
122634         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
122635         It can be removed after the next Autoconf is released.
122636         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
122637         needed.
122639 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122641         * lib/mktime.c: Fix Debian bug 177940
122642         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
122643         (localtime_offset): Now long int, not time_t, because we want it
122644         to be guaranteed to be signed.  All uses changed.
122645         (__mktime_internal): If overflow would occur when adding offset,
122646         don't add it.
122648         Merge 'human' changes from coreutils.  Rewrite to support
122649         locale-specific notations like thousands separators.
122650         * lib/human.c: Simplify authorship notice.
122651         Include human.h immediately after config.h.
122652         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
122653         <limits.h>: Do not include, since human.h does.
122654         (SIZE_MAX, UINTMAX_MAX): New macros.
122655         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
122656         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
122657         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
122658         (power_letter): Renamed from suffixes.
122659         (generate_suffix_backwards): Remove.
122660         (adjust_value): Now takes int style (because of human.h changes)
122661         and long double value (for greater precision on some platforms).
122662         (group_number): New function.
122663         (human_readable): Use it.  Use integer options, not enum.
122664         Put the options before the sizes in the arg list.
122665         Support all the new options.
122666         The old human_readable function has been removed;
122667         use inttostr.h instead.
122668         (human_readable, default_block_size, humblock):
122669         Use uintmax_t, not int, for block sizes.
122670         (human_readable_inexact, block_size_types): Remove.
122671         (block_size_opts): New constant.
122672         (human_options): Renamed from human_block_size, with new signature
122673         that allows block sizes up to UINTMAX_MAX.  All callers changed.
122674         * lib/human.h: Add copyright and authorship notice.
122675         Include <limits.h> and <stdbool.h> unconditionally.
122676         (PARAMS): Remove.  All uses removed.
122677         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
122678         (enum human_inexact_style): Remove tag; now a nameless enum.
122679         (human_floor, human_ceiling, human_round_to_even): Now have
122680         values 2, 0, 1 rather than -1, 1, 0.
122681         (human_group_digits, human_suppress_point_zero, human_autoscale,
122682         human_base_1024, human_SI, human_B): New constants.
122683         (human_readable_inexact, human_block_size): Remove.
122684         (human_readable): Size args are now uintmax_t, not int.
122685         (human_options): New decl.
122687         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
122688         unnecessary now that we assume C89 or better.  This change
122689         imported from coreutils.
122691         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
122692         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
122693         in the 2003-05-30 sync from glibc.
122695         .h files should stand alone, but we shouldn't include <sys/types.h>
122696         if we can get away with just <stddef.h>.
122698         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
122699         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
122700         rather than <sys/types.h>, as we merely need size_t.
122701         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
122702         to get size_t.
122703         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
122704         Include <stdio.h>, to get FILE.
122705         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
122706         memcasecmp.h has included <stddef.h> and all we need is size_t.
122707         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
122708         our interface, instead of including <sys/types.h>
122710 2003-06-04  Paul Eggert  <eggert@twinsun.com>
122712         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
122713         now, as glibc mktime is buggy on non-glibc systems.
122715 2003-06-03  Karl Berry  <karl@gnu.org>
122717         * config/config.sub: update from prep.
122719 2003-06-02  Paul Eggert  <eggert@twinsun.com>
122721         [from coreutils]
122722         Fix some minor time-related bugs with POSIX time arguments.
122723         Some valid time stamps were being rejected (notably -1, and
122724         time stamps before 1900 on 64-bit hosts).  And some invalid
122725         time stamps were being accepted, e.g. September 31.
122727         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
122728         that we can return (time_t) -1 successfully.
122729         * lib/posixtm.c: Likewise.
122730         [HAVE_STDBOOL_H]: Include <stdbool.h>.
122731         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
122732         (t): Remove static var.
122733         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
122734         of static var.  All uses changed.
122735         (year): Do not reject years before 1900; they can occur with
122736         64-bit time_t.
122737         (posix_time_parse): Do not check for out-of-range components;
122738         that is now the caller's responsibility, since our checks were
122739         only approximations.
122740         (posixtime): Use mktime to check for out-of-range components,
122741         since it knows them exactly.
122742         If mktime returns (time_t) -1, check whether an error actually occurred
122743         by invoking localtime on -1.
122744         (main) [TEST_POSIXTIME]: Check for input data errors, and report
122745         posixtime failures better.
122746         Improve the test data (in comments only).
122748 2003-06-02  Karl Berry  <karl@gnu.org>
122750         * config/mkinstalldirs (version): new variable.
122751         (--version): new option.
122752         (usage): improve message.
122754 2003-05-30  Karl Berry  <karl@gnu.org>
122756         * lib/mktime.c: update from libc.
122758 2003-05-30  Bruno Haible  <bruno@clisp.org>
122760         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
122761         * config/config.rpath: Upgrade to gettext-0.12.1.
122763 2003-05-30  Bruno Haible  <bruno@clisp.org>
122765         * m4/gettext.m4: Upgrade to gettext-0.12.1.
122766         * m4/nls.m4: New file, from gettext-0.12.1.
122767         * m4/po.m4: New file, from gettext-0.12.1.
122768         * m4/progtest.m4: Upgrade to gettext-0.12.1.
122770 2003-05-30  Bruno Haible  <bruno@clisp.org>
122772         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
122773         * lib/localcharset.h: Likewise.
122774         * lib/localcharset.c: Likewise.
122776 2003-05-29  Karl Berry  <karl@gnu.org>
122778         * config/config.rpath: update from gettext.
122780 2003-05-28  Paul Eggert  <eggert@twinsun.com>
122782         Assume the headers required for C89 freestanding compilers.
122783         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
122784         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
122785         * m4/human.m4 (gl_HUMAN): Likewise.
122786         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
122787         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
122788         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122789         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
122790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122791         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
122793 2003-05-28  Paul Eggert  <eggert@twinsun.com>
122795         Assume the headers required for C89 freestanding compilers.
122796         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
122797         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
122798         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
122799         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
122800         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
122801         define, since <limits.h> is guaranteed to do that.
122802         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
122803         * lib/exclude.c: Include <stdbool.h> unconditionally.
122804         * lib/tempname.c: Include <stddef.h> unconditionally.
122805         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
122806         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
122807         <stddef.h> does that.
122808         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
122809         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
122810         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
122811         needed.
122812         * lib/xstrtol.c: Likewise.
122813         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
122814         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
122816         * lib/addext.c (addext): Use assignment rather than cast, to avoid
122817         warnings on some platforms.
122819         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
122820         arbitrarily.
122822 2003-05-26  Jim Meyering  <jim@meyering.net>
122824         Merge in a change from coreutils:
122825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
122826         that is guaranteed to be `no'.  Use `no_such_member' to indicate
122827         that condition, rather than `-1' which is slightly misleading.
122828         Change the name of the cache variable to have the gl_ prefix.
122829         Prompted by a patch from Richard Dawe for DJGPP.
122831 2003-05-24  Karl Berry  <karl@gnu.org>
122833         * config/config.guess: update from prep.
122835 2003-05-22  Karl Berry  <karl@gnu.org>
122837         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
122839 2003-05-20  Karl Berry  <karl@gnu.org>
122841         * config/config.guess: update from prep.
122843 2003-05-18  Karl Berry  <karl@gnu.org>
122845         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
122846         might actually be set by the user.
122848         * config/depcomp, install-sh, mdate-sh: update from automake.
122850 2003-05-17  Bruno Haible  <bruno@clisp.org>
122852         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
122853         invalid expansion for AC_EGREP_CPP.
122854         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
122855         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
122856         Suggested by Akim Demaille <akim@epita.fr> in
122857         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
122859 2003-05-12  Jim Meyering  <jim@meyering.net>
122861         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
122862         the space-padded-by-default conversion specifiers, %e, %k, %l.
122864 2003-05-12  Bruno Haible  <bruno@clisp.org>
122866         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
122867         the string is longer than 4 KB.
122869 2003-05-11  Karl Berry  <karl@gnu.org>
122871         * config/config.{guess,sub}: update from prep.
122873 2003-05-09  Bruno Haible  <bruno@clisp.org>
122875         * modules/error: Add m4/strerror_r.m4 to file list.
122877 2003-05-03  Bruno Haible  <bruno@clisp.org>
122879         Upgrade to Unicode-4.0.
122880         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
122881         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
122882         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
122883         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
122884         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
122885         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
122886         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
122887         Change width of U+E0100..U+E01EF from 1 to 0.
122889 2003-04-25  Jim Meyering  <jim@meyering.net>
122891         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
122892         of type size_t, not int.
122894 2003-04-25  Bruno Haible  <bruno@clisp.org>
122896         * lib/copy-file.c: Include <stddef.h>, for size_t.
122898 2003-04-21  Paul Eggert  <eggert@twinsun.com>
122900         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
122901         code which expansion is under static control.  Patch imported from
122902         Akim Demaille's patch to Bison; see
122903         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
122905 2003-04-14  Bruno Haible  <bruno@clisp.org>
122907         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
122909 2003-04-11  Jim Meyering  <jim@meyering.net>
122911         Merge changes from Coreutils.
122913         2003-03-22  Jim Meyering  <jim@meyering.net>
122915         * lib/strftime.c (widen): Cast alloca return value to proper type.
122917         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
122919         From GNU libc.
122920         * lib/strftime.c (my_strftime): Handle very large width
122921         specifications for numeric values correctly.  Improve checks for
122922         overflow.
122924         2003-01-19  Jim Meyering  <jim@meyering.net>
122926         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
122927         definitions.
122928         (nl_get_alt_digit) [! defined my_strftime]: Define.
122929         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
122930         _nl_get_alt_digit and _nl_get_walt_digit.
122932         * lib/strftime.c (my_strftime): Merge in locale-related changes from
122933         libc. These changes have no effect outside of _LIBC.
122935 2003-04-10  Bruno Haible  <bruno@clisp.org>
122937         * modules/findprog: New file.
122938         * MODULES.html.sh (func_all_modules): Add it.
122940 2003-04-10  Bruno Haible  <bruno@clisp.org>
122942         * m4/findprog.m4: New file.
122943         * m4/eaccess.m4: New file.
122945 2003-04-10  Bruno Haible  <bruno@clisp.org>
122947         * lib/findprog.h: New file, from GNU gettext.
122948         * lib/findprog.c: New file, from GNU gettext.
122950 2003-04-05  Jim Meyering  <jim@meyering.net>
122952         Merge changes from Coreutils.
122954         * lib/exclude.h (PARAMS): Remove definition and uses.
122955         * lib/exclude.c: Remove uses of `PARAMS'.
122957         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
122958         Add test-cases for DOS filenames. Declare program_name.
122959         (main): Set up program_name.  Patch by Rich Dawe.
122961         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
122962         error from mntctl.
122963         Use mntctl's return value to drive the entry-processing loop, since
122964         we can't rely on the value of the vmt_length member in the last
122965         entry.  On some systems doing so could result in exhausting
122966         virtual memory.  Based in part on a patch from Mike Jetzer.
122968 2003-04-04  Bruno Haible  <bruno@clisp.org>
122970         * modules/linebreak: New file.
122971         * MODULES.html.sh (func_all_modules): Add it.
122973 2003-04-04  Bruno Haible  <bruno@clisp.org>
122975         * m4/linebreak.m4: New file.
122977 2003-04-04  Bruno Haible  <bruno@clisp.org>
122979         * lib/linebreak.h: New file, from GNU gettext.
122980         * lib/linebreak.c: New file, from GNU gettext with slight
122981         modifications.
122982         * lib/lbrkprop.h: New file, from GNU gettext.
122984 2003-04-03  Bruno Haible  <bruno@clisp.org>
122986         * modules/utf8-ucs4: New file.
122987         * modules/utf16-ucs4: New file.
122988         * modules/ucs4-utf8: New file.
122989         * modules/ucs4-utf16: New file.
122990         * MODULES.html.sh (func_all_modules): Add them.
122992 2003-04-03  Bruno Haible  <bruno@clisp.org>
122994         * m4/utf-ucs4.m4: New file.
122995         * m4/ucs4-utf.m4: New file.
122997 2003-04-03  Bruno Haible  <bruno@clisp.org>
122999         * lib/utf8-ucs4.h: New file, from GNU gettext.
123000         * lib/utf16-ucs4.h: New file, from GNU gettext.
123001         * lib/ucs4-utf8.h: New file, from GNU gettext.
123002         * lib/ucs4-utf16.h: New file, from GNU gettext.
123004 2003-04-02  Bruno Haible  <bruno@clisp.org>
123006         * modules/binary-io: New file.
123007         * MODULES.html.sh (func_all_modules): Add it.
123009 2003-04-02  Bruno Haible  <bruno@clisp.org>
123011         * lib/binary-io.h: New file, from GNU gettext.
123013 2003-04-01  Bruno Haible  <bruno@clisp.org>
123015         * modules/pathname: New file.
123016         * MODULES.html.sh (func_all_modules): Add it.
123018 2003-04-01  Bruno Haible  <bruno@clisp.org>
123020         * lib/pathname.h: New file, from GNU gettext.
123021         * lib/concatpath.c: New file, from GNU gettext.
123023 2003-03-30  Bruno Haible  <bruno@clisp.org>
123025         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
123027 2003-03-30  Bruno Haible  <bruno@clisp.org>
123029         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
123030         function chown() doesn't exist.
123032 2003-03-28  Bruno Haible  <bruno@clisp.org>
123034         * modules/copy-file: New file.
123035         * MODULES.html.sh (func_all_modules): Add it.
123037 2003-03-28  Bruno Haible  <bruno@clisp.org>
123039         * m4/copy-file.m4: New file.
123041 2003-03-28  Bruno Haible  <bruno@clisp.org>
123043         * lib/copy-file.h: New file, from GNU gettext.
123044         * lib/copy-file.c: New file, from GNU gettext.
123046 2003-03-18  Jim Meyering  <jim@meyering.net>
123048         * lib/quote.c (quote_n): Fix typo in comment.
123050 2003-03-18  Bruno Haible  <bruno@clisp.org>
123052         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
123053         checking.
123054         * m4/onceonly_2_57.m4: Likewise.
123056 2003-03-17  Bruno Haible  <bruno@clisp.org>
123058         * m4/onceonly.m4: Require autoconf 2.54 or newer.
123059         (m4_quote): Remove macro.
123060         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
123062 2003-03-14  Jim Meyering  <jim@meyering.net>
123064         Merge changes from Coreutils.
123065         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
123066         to be const, in order to avoid warnings.
123067         (obstack_room): Likewise.
123068         (obstack_empty_p): Likewise.
123070 2003-03-14  Bruno Haible  <bruno@clisp.org>
123072         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
123073         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
123075 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123077         Merge changes from Bison.
123078         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
123079         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
123080         when compiling Bison 1.875's `bitset bset = obstack_alloc
123081         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
123082         * lib/hash.c: Include <stdbool.h> unconditionally.
123084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123086         * m4/onceonly.m4 (m4_quote): New macro.
123087         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
123088         Quote AC_FOREACH variable-expansions properly.
123090 2003-03-13  Paul Eggert  <eggert@twinsun.com>
123092         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
123094 2003-03-09  Paul Eggert  <eggert@twinsun.com>
123096         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
123097         Reported by Bruce Becker; see:
123098         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
123100 2003-03-03  Paul Eggert  <eggert@twinsun.com>
123101             Bruno Haible  <bruno@clisp.org>
123103         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
123104         Reported by John Hughes, see
123105         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
123107 2003-02-20  Bruno Haible  <bruno@clisp.org>
123109         * MODULES.html.sh (func_all_modules): Add poll.
123111 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123113         * modules/poll: New file.
123115 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123117         * lib/poll_.h: New file.
123118         * lib/poll.c: New file.
123120 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
123122         * m4/poll.m4: New file.
123124 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123126         * modules/mathl: New file.
123128 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123130         * lib/mathl.h: New file.
123131         * lib/acosl.c: New file.
123132         * lib/asinl.c: New file.
123133         * lib/atanl.c: New file.
123134         * lib/ceill.c: New file.
123135         * lib/cosl.c: New file.
123136         * lib/expl.c: New file.
123137         * lib/floorl.c: New file.
123138         * lib/frexpl.c: New file.
123139         * lib/ldexpl.c: New file.
123140         * lib/logl.c: New file.
123141         * lib/sincosl.c: New file.
123142         * lib/sinl.c: New file.
123143         * lib/sqrtl.c: New file.
123144         * lib/tanl.c: New file.
123145         * lib/trigl.c: New file.
123146         * lib/trigl.h: New file.
123148 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
123150         * m4/mathl.m4: New file.
123152 2003-02-18  Bruno Haible  <bruno@clisp.org>
123154         * MODULES.html.sh (func_all_modules): Add mathl.
123156 2003-02-17  Bruno Haible  <bruno@clisp.org>
123158         * modules/mkdtemp: New module.
123159         * MODULES.html.sh (func_all_modules): Add it.
123161 2003-02-17  Bruno Haible  <bruno@clisp.org>
123163         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
123165 2003-02-17  Bruno Haible  <bruno@clisp.org>
123167         * lib/mkdtemp.h: New file, from GNU gettext.
123168         * lib/mkdtemp.c: New file, from GNU gettext.
123170 2003-02-02  Jim Meyering  <jim@meyering.net>
123172         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
123173         e.g. glibc-2.2.93.
123175 2003-01-31  Bruno Haible  <bruno@clisp.org>
123177         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
123178         'rpl_rename'.
123179         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
123180         'rpl_strnlen'.
123181         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
123182         'rpl_strtod'.
123183         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
123184         'rpl_utime'.
123186 2003-01-31  Bruno Haible  <bruno@clisp.org>
123188         * lib/rename.c: #undef rename before defining rpl_rename.
123189         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
123191 2003-01-30  Bruno Haible  <bruno@clisp.org>
123193         * modules/vasnprintf, modules/vasprintf: New modules.
123194         * MODULES.html.sh (func_all_modules): Add them.
123196 2003-01-30  Bruno Haible  <bruno@clisp.org>
123198         * m4/signed.m4: New file, from GNU gettext.
123199         * m4/longdouble.m4: New file, from GNU gettext.
123200         * m4/wchar_t.m4: New file, from GNU gettext.
123201         * m4/wint_t.m4: New file, from GNU gettext.
123202         * m4/vasnprintf.m4: New file.
123203         * m4/vasprintf.m4: New file.
123205 2003-01-30  Bruno Haible  <bruno@clisp.org>
123207         * lib/printf-args.h: New file, from GNU gettext.
123208         * lib/printf-args.c: New file, from GNU gettext.
123209         * lib/printf-parse.h: New file, from GNU gettext.
123210         * lib/printf-parse.c: New file, from GNU gettext.
123211         * lib/vasnprintf.h: New file, from GNU gettext.
123212         * lib/vasnprintf.c: New file, from GNU gettext.
123213         * lib/asnprintf.c: New file, from GNU gettext.
123214         * lib/vasprintf.h: New file, from GNU gettext with modifications.
123215         * lib/vasprintf.c: New file, from GNU gettext.
123216         * lib/asprintf.c: New file, from GNU gettext.
123218 2003-01-29  Bruno Haible  <bruno@clisp.org>
123220         * modules/stpncpy: New module.
123221         * MODULES.html.sh (func_all_modules): Add it.
123223 2003-01-29  Bruno Haible  <bruno@clisp.org>
123225         * m4/stpncpy.m4: New file.
123227 2003-01-29  Bruno Haible  <bruno@clisp.org>
123229         * lib/stpncpy.h: New file, from GNU gettext with modifications.
123230         * lib/stpncpy.c: New file, from GNU gettext with modifications.
123232 2003-01-28  Bruno Haible  <bruno@clisp.org>
123234         * modules/c-ctype: New module.
123235         * MODULES.html.sh (func_all_modules): Add it.
123237 2003-01-28  Bruno Haible  <bruno@clisp.org>
123239         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
123240         Paul Eggert.
123241         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
123242         Paul Eggert.
123244 2003-01-27  Bruno Haible  <bruno@clisp.org>
123246         * modules/xsetenv: New module.
123247         * MODULES.html.sh (func_all_modules): Add it.
123249 2003-01-27  Bruno Haible  <bruno@clisp.org>
123251         * lib/xsetenv.h: New file, from GNU gettext.
123252         * lib/xsetenv.c: New file, from GNU gettext.
123254 2003-01-23  Jim Meyering  <jim@meyering.net>
123256         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
123257         from working on systems without dirfd (at least Irix and OSF1/Tru64).
123259 2003-01-23  Bruno Haible  <bruno@clisp.org>
123261         * modules/minmax: New module.
123262         * MODULES.html.sh (func_all_modules): Add it.
123264 2003-01-23  Bruno Haible  <bruno@clisp.org>
123266         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
123267         Eggert.
123269 2003-01-22  Bruno Haible  <bruno@clisp.org>
123271         * modules/exit: New module.
123272         * MODULES.html.sh (func_all_modules): Add it.
123274 2003-01-22  Bruno Haible  <bruno@clisp.org>
123276         * lib/exit.h: New file, from GNU gettext.
123278 2003-01-19  Bruno Haible  <bruno@clisp.org>
123280         * gnulib-tool: Recognize option --extract-maintainer.
123281         (func_get_maintainer): New function.
123282         * modules/*: Add Maintainer entry.
123284 2003-01-16  Jim Meyering  <jim@meyering.net>
123286         * m4/regex.m4: The `regex' struct is both input and output.
123287         Initialize it before each use.  Patch by Tim Waugh.
123289 2003-01-16  Bruno Haible  <bruno@clisp.org>
123291         * MODULES.html.sh: Add a table of contents. Add the module name as
123292         leftmost column. Add hyperlinks.
123294 2003-01-15  Bruno Haible  <bruno@clisp.org>
123296         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
123298 2003-01-15  Bruno Haible  <bruno@clisp.org>
123300         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
123301         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
123302         suffix.
123304 2003-01-15  Bruno Haible  <bruno@clisp.org>
123306         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
123308 2003-01-15  Bruno Haible  <bruno@clisp.org>
123310         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
123311         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
123313 2003-01-14  Jim Meyering  <jim@meyering.net>
123315         * lib/same.c (same_name): Tweak a comment.
123317 2003-01-14  Bruno Haible  <bruno@clisp.org>
123319         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
123320         when a string comparison is sufficient.
123322 2003-01-14  Bruno Haible  <bruno@clisp.org>
123324         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
123325         'unsigned int'.
123327 2003-01-14  Bruno Haible  <bruno@clisp.org>
123329         * lib/hash-pjw.c: Add comment about low quality of this function.
123331 2003-01-13  Bruno Haible  <bruno@clisp.org>
123333         * modules/stpcpy: Distribute lib/stpcpy.h.
123334         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
123336 2003-01-13  Bruno Haible  <bruno@clisp.org>
123338         * modules/*: Add a description.
123339         * modules/strpbrk: Fix Makefile.am snippet.
123340         * modules/strtoimax: Fix dependencies.
123341         * modules/strtoumax: Likewise.
123343 2003-01-13  Bruno Haible  <bruno@clisp.org>
123345         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
123346         * modules/alloca (Makefile.am): All object files depend on alloca.h.
123347         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
123349 2003-01-13  Bruno Haible  <bruno@clisp.org>
123351         * gnulib-tool (func_create_testdir): Store config/* files in the main
123352         directory.
123353         * config.rpath: Move to ...
123354         * config/config.rpath: ... here.
123355         * modules/gettext: Contains config/config.rpath, not config.rpath.
123356         * modules/iconv: Likewise.
123358 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123360         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123361         to avoid collisions with libcurses and libreadline.
123363         * m4/getstr.m4: Remove.
123364         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
123366 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123368         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123369         to avoid collisions with libcurses and libreadline.
123371         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
123372         * lib/getstr.h, getstr.c: Remove.
123373         * lib/getline.c: Include "getline.h", to check interface.
123374         Move body of old getstr.c here: this defines MIN_CHUNK and
123375         declares getdelim2, which is renamed from getstr.
123376         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
123378         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
123379         All uses changed.
123380         * lib/linebuffer.h: Likewise.
123381         (readline): Remove backward-compatibility macro.
123383 2003-01-12  Paul Eggert  <eggert@twinsun.com>
123385         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
123386         to avoid collisions with libcurses and libreadline.
123387         * getstr: Remove.
123388         * MODULES.html.sh: Remove getstr.
123389         * modules/getline: Depend on unlocked-io, not getstr.
123391 2003-01-12  Jim Meyering  <jim@meyering.net>
123393         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
123395 2003-01-10  Bruno Haible  <bruno@clisp.org>
123397         * modules/alloca: Change Makefile.am requirements. Simplify Include
123398         requirements. Add lib/alloca_.h to file list.
123400 2003-01-10  Bruno Haible  <bruno@clisp.org>
123402         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
123404 2003-01-10  Bruno Haible  <bruno@clisp.org>
123406         * lib/alloca_.h: New file.
123407         * lib/getdate.y: Unconditionally include alloca.h.
123408         * lib/makepath.c: Likewise.
123409         * lib/setenv.c: Likewise.
123410         * lib/userspec.c: Likewise.
123412 2003-01-09  Karl Berry  <karl@gnu.org>
123414         * MODULES.html.sh: include `dirname $0` in PATH, to find
123415         gnulib-tool.
123417 2003-01-09  Bruno Haible  <bruno@clisp.org>
123419         * modules/stdbool: Change configure.ac, Makefile.am requirements.
123420         Simplify Include requirements. Add lib/stdbool.h.in to file list.
123422 2003-01-09  Bruno Haible  <bruno@clisp.org>
123424         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
123426 2003-01-09  Bruno Haible  <bruno@clisp.org>
123428         * lib/stdbool.h.in: New file.
123430 2003-01-09  Bruno Haible  <bruno@clisp.org>
123432         * gnulib-tool (func_all_modules): Ignore files ending in ~.
123433         * MODULES.html.sh: Likewise.
123435 2003-01-08  Jim Meyering  <jim@meyering.net>
123437         * lib/full-write.c: Undefine and define-away `const' after inclusion
123438         of errno.h, not before.  Suggestion from Bruno Haible.
123440 2003-01-08  Bruno Haible  <bruno@clisp.org>
123442         * modules/full-read: Depend on full-write.
123444 2003-01-08  Bruno Haible  <bruno@clisp.org>
123446         * lib/safe-read.c: Include specification header first, to ensure its
123447         selfcontainedness.
123448         * lib/full-write.c: Likewise.
123450 2003-01-07  Jim Meyering  <jim@meyering.net>
123452         * lib/full-write.c: Rework so that it may serve to define full_read,
123453         too.
123454         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
123456 2003-01-07  Bruno Haible  <bruno@clisp.org>
123458         * lib/strtoimax.c: Include <stdint.h> as an alternative to
123459         <inttypes.h>.
123460         * lib/xstrtol.h: Likewise.
123461         * lib/xstrtoimax.c: Likewise.
123462         * lib/xstrtoumax.c: Likewise.
123463         * lib/human.h: Likewise.
123465         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
123466         on systems that have <inttypes.h> but not <stdint.h>.
123468 2003-01-07  Bruno Haible  <bruno@clisp.org>
123470         * MODULES.html.sh: Add copyright notice.
123471         (missed_files): Omit CVS directory entries.
123472         (func_module): Make it work with sed-3.02.
123473         * MODULES.txt: Remove file.
123475 2003-01-06  Jim Meyering  <jim@meyering.net>
123477         * lib/version-etc.c: Update year in translatable copyright string.
123479 2003-01-03  Karl Berry  <karl@gnu.org>
123481         * config/config.{guess,sub}: update from prep.
123483 2003-01-02  Karl Berry  <karl@gnu.org>
123485         * doc/COPYING.DOC: belatedly updated to 1.2.
123487 2003-01-01  Karl Berry  <karl@gnu.org>
123489         * gnulib-tool (func_verify_module): report module name $module in
123490         error message, not $1.
123491         * gnulib-tool (create-testdir): don't complain if destdir couldn't
123492         be created, only if it doesn't exist.
123493         * gnulib-tool (last_checkin_date): don't expand the $Date here.
123495 2002-12-31  Paul Eggert  <eggert@twinsun.com>
123497         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
123499 2002-12-31  Paul Eggert  <eggert@twinsun.com>
123501         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
123502         memcmp if strcoll doesn't work.
123504 2002-12-31  Bruno Haible  <bruno@clisp.org>
123506         * lib/utime.c (utime_null): No need to call ftruncate if the file was
123507         nonempty.
123509 2002-12-31  Bruno Haible  <bruno@clisp.org>
123511         * lib/memcoll.c (STRCOLL): New macro.
123512         (memcoll): Use it.
123514 2002-12-31  Bruno Haible  <bruno@clisp.org>
123516         * lib/localcharset.h: New file.
123517         * lib/localcharset.c: Include it.
123518         * lib/unicodeio.c: Likewise.
123520 2002-12-31  Bruno Haible  <bruno@clisp.org>
123522         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
123523         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
123525 2002-12-31  Bruno Haible  <bruno@clisp.org>
123527         * lib/getline.h: Include <stddef.h>, for size_t.
123529         * lib/unicodeio.h: Include <stddef.h>, for size_t.
123530         * lib/unicodeio.c: Don't include <stddef.h>.
123532 2002-12-31  Bruno Haible  <bruno@clisp.org>
123534         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
123535         HAVE_TM_ZONE.
123537 2002-12-24  Karl Berry  <karl@gnu.org>
123539         * config/config.guess: update from prep.
123541 2002-12-24  Bruno Haible  <bruno@clisp.org>
123543         General infrasructure.
123544         * m4/README: Rewritten.
123545         * m4/onceonly.m4: New file.
123546         * m4/onceonly_2_57.m4: New file.
123548         Module atexit.
123549         * m4/atexit.m4: New file.
123551         Module strtod.
123552         * m4/strtod.m4: New file.
123554         Module strtol.
123555         * m4/strtol.m4: New file.
123557         Module strtoul.
123558         * m4/strtoul.m4: New file.
123560         Module memchr.
123561         * m4/memchr.m4: New file.
123563         Module memcmp.
123564         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
123565         (jm_FUNC_MEMCMP): Invoke it.
123567         Module memcpy.
123568         * m4/memcpy.m4: New file.
123570         Module memmove.
123571         * m4/memmove.m4: New file.
123573         Module memset.
123574         * m4/memset.m4: New file.
123576         Module strcspn.
123577         * m4/strcspn.m4: New file.
123579         Module strpbrk.
123580         * m4/strpbrk.m4: New file.
123582         Module strstr.
123583         * m4/strstr.m4: New file.
123585         Module strerror.
123586         * m4/strerror.m4: New file.
123588         Module mktime.
123589         * m4/mktime.m4: Renamed from jm-mktime.m4.
123590         (gl_PREREQ_MKTIME): New macro.
123591         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
123593         Module malloc.
123594         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
123595         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
123596         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
123598         Module realloc.
123599         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
123600         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
123601         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
123603         Module strftime.
123604         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
123605         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
123606         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
123607         gl_TM_GMTOFF.
123608         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
123610         Module xalloc.
123611         * m4/xalloc.m4: New file.
123613         Module alloca.
123614         * m4/alloca.m4: New file.
123616         Module putenv.
123617         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
123618         (jm_FUNC_PUTENV): Invoke it.
123620         Module setenv.
123621         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
123622         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
123623         when invoked twice.
123624         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
123625         gt_FUNC_SETENV.
123627         Module memrchr.
123628         * m4/memrchr.m4: New file.
123630         Module stpcpy.
123631         * m4/stpcpy.m4: New file.
123633         Module strcase.
123634         * m4/strcase.m4: New file.
123636         Module strdup.
123637         * m4/strdup.m4: New file.
123639         Module strnlen.
123640         * m4/strnlen.m4: New file.
123642         Module strndup.
123643         * m4/strndup.m4: New file.
123645         Module xstrtod.
123646         * m4/xstrtod.m4: New file.
123648         Module xstrtol.
123649         * m4/xstrtol.m4: New file.
123651         Module getdate.
123652         * m4/getdate.m4: New file.
123654         Module unlocked-io.
123655         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
123656         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
123657         * m4/jm-glibc-io.m4n: Remove file.
123659         Module long-options.
123660         * m4/long-options.m4: New file.
123662         Module md5.
123663         * m4/md5.m4: New file.
123665         Module sha.
123666         * m4/sha.m4: New file.
123668         Module getstr.
123669         * m4/getstr.m4: New file.
123671         Module getline.
123672         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
123673         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
123674         <sys/types.h>, for size_t. Use the function name gnu_getline, not
123675         simply getline. Infoke gl_PREREQ_GETLINE.
123677         Module obstack.
123678         * m4/obstack.m4: New file.
123680         Module hash.
123681         * m4/hash.m4: New file.
123683         Module readtokens.
123684         * m4/readtokens.m4: New file.
123686         Module strverscmp.
123687         * m4/strverscmp.m4: New file.
123689         Module stdbool.
123690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
123691         OSF/1.
123693         Module strtoll.
123694         * m4/strtoll.m4: New file.
123696         Module strtoull.
123697         * m4/strtoull.m4: New file.
123699         Module strtoimax.
123700         * m4/strtoimax.m4: New file.
123702         Module strtoumax.
123703         * m4/strtoumax.m4: New file.
123705         Module xstrtoimax.
123706         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
123707         jm_AC_PREREQ_XSTRTOIMAX.
123708         Moved the strtol prerequisites to strtol.m4.
123709         Moved the strtoll prerequisites to strtoll.m4.
123710         Moved the strtoimax prerequisites to strtoimax.m4.
123712         Module xstrtoumax.
123713         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
123714         jm_AC_PREREQ_XSTRTOUMAX.
123715         Moved the strtoul prerequisites to strtoul.m4.
123716         Moved the strtoull prerequisites to strtoull.m4.
123717         Moved the strtoumax prerequisites to strtoumax.m4.
123719         Module chown.
123720         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
123721         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
123723         Module dup2.
123724         * m4/dup2.m4: New file.
123726         Module ftruncate.
123727         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
123728         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
123730         Module getgroups.
123731         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
123732         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
123734         Module gettimeofday.
123735         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
123736         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
123737         gl_PREREQ_GETTIMEOFDAY.
123739         Module mkdir.
123740         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
123741         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
123743         Module mkstemp.
123744         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
123745         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
123746         jm_AC_TYPE_UINTMAX_T.
123747         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
123749         Module stat.
123750         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
123751         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
123753         Module lstat.
123754         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
123755         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
123757         Module timespec.
123758         * m4/timespec.m4 (gl_TIMESPEC): New macro.
123759         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
123760         * m4/st_mtim.m4: Indentation.
123762         Module nanosleep.
123763         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
123764         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
123765         gl_PREREQ_NANOSLEEP.
123767         Module regex.
123768         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
123769         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
123770         (gl_REGEX): New macro.
123772         Module rename.
123773         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
123774         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
123776         Module rmdir.
123777         * m4/rmdir.m4: New file.
123779         Module utime.
123780         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
123781         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
123782         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
123784         Module dirname.
123785         * m4/dirname.m4: New file.
123787         Module getopt.
123788         * m4/getopt.m4: New file.
123790         Module unistd-safer.
123791         * m4/unistd-safer.m4: New file.
123793         Module fnmatch.
123794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
123795         declaration.
123796         (gl_PREREQ_FNMATCH_EXTRA): New macro.
123797         (gl_FUNC_FNMATCH_POSIX): New macro.
123798         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
123799         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
123800         simply fnmatch.
123802         Module exclude.
123803         * m4/exclude.m4: New file.
123805         Module human.
123806         * m4/human.m4: New file.
123808         Module acl.
123809         * m4/acl.m4: Nop.
123811         Module backupfile.
123812         * m4/backupfile.m4: New file.
123813         * m4/d-ino.m4: Indentation.
123815         Module fsusage.
123816         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
123817         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
123818         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
123820         Module dirfd.
123821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
123822         requirements.
123824         Module euidaccess.
123825         * m4/euidaccess.m4: New file.
123827         Module file-type.
123828         * m4/file-type.m4: New file.
123830         Module fileblocks.
123831         * m4/fileblocks.m4: New file.
123833         Module filemode.
123834         * m4/filemode.m4: New file.
123836         Module isdir.
123837         * m4/isdir.m4: New file.
123839         Module lchown.
123840         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
123841         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
123843         Module makepath.
123844         * m4/makepath.m4: New file.
123846         Module modechange.
123847         * m4/modechange.m4: New file.
123849         Module mountlist.
123850         * m4/mountlist.m4: New file.
123851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
123852         Indentation.
123854         Module path-concat.
123855         * m4/path-concat.m4: New file.
123857         Module pathmax.
123858         * m4/pathmax.m4: New file.
123860         Module same.
123861         * m4/same.m4: New file.
123863         Module save-cwd.
123864         * m4/save-cwd.m4: New file.
123866         Module savedir.
123867         * m4/savedir.m4: New file.
123869         Module xgetcwd.
123870         * m4/xgetcwd.m4: New file.
123871         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
123873         Module xreadlink.
123874         * m4/xreadlink.m4: New file.
123876         Module safe-read.
123877         * m4/safe-read.m4: New file.
123879         Module safe-write.
123880         * m4/safe-write.m4: New file.
123882         Module closeout.
123883         * m4/closeout.m4: New file.
123885         Module stdio-safer.
123886         * m4/stdio-safer.m4: New file.
123888         Module getpass.
123889         * m4/getpass.m4: New file.
123891         Module getugroups.
123892         * m4/getugroups.m4: New file.
123894         Module group-member.
123895         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
123896         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
123898         Module idcache.
123899         * m4/idcache.m4: New file.
123901         Module userspec.
123902         * m4/userspec.m4: New file.
123904         Module gettime.
123905         * m4/clock_time.m4: New file.
123906         * m4/gettime.m4: New file.
123908         Module settime.
123909         * m4/settime.m4: New file.
123911         Module posixtm.
123912         * m4/posixtm.m4: New file.
123914         Module gethostname.
123915         * m4/gethostname.m4: New file.
123917         Module canon-host.
123918         * m4/canon-host.m4: New file.
123920         Module gettext.
123921         * m4/codeset.m4: New file, from gettext-0.11.5.
123922         * m4/gettext.m4: New file, from gettext-0.11.5.
123923         * m4/glibc21.m4: New file, from gettext-0.11.5.
123924         * m4/iconv.m4: New file, from gettext-0.11.5.
123925         * m4/intdiv0.m4: New file, from gettext-0.11.5.
123926         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
123927         * m4/inttypes.m4: New file, from gettext-0.11.5.
123928         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
123929         * m4/isc-posix.m4: New file, from gettext-0.11.5.
123930         * m4/lcmessage.m4: New file, from gettext-0.11.5.
123931         * m4/lib-ld.m4: New file, from gettext-0.11.5.
123932         * m4/lib-link.m4: New file, from gettext-0.11.5.
123933         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
123934         * m4/progtest.m4: New file, from gettext-0.11.5.
123935         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
123936         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
123937         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
123939         Module localcharset.
123940         * m4/localcharset.m4: New file.
123942         Module hard-locale.
123943         * m4/hard-locale.m4: New file.
123945         Module mbswidth.
123946         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
123947         onceonly macros.
123948         * m4/mbrtowc.m4: Add comment.
123950         Module memcasecmp.
123951         * m4/memcasecmp.m4: New file.
123953         Module memcoll.
123954         * m4/memcoll.m4: New file.
123956         Module unicodeio.
123957         * m4/unicodeio.m4: New file.
123959         Module rpmatch.
123960         * m4/rpmatch.m4: New file.
123962         Module yesno.
123963         * m4/yesno.m4: New file.
123965         Module exitfail.
123966         * m4/exitfail.m4: New file.
123968         Module c-stack.
123969         * m4/c-stack.m4 (gl_C_STACK): New macro.
123970         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
123972         Module error.
123973         * m4/error.m4 (gl_ERROR): New macro.
123974         (jm_PREREQ_ERROR): Use onceonly macros.
123976         Module fatal.
123977         * m4/fatal.m4: New file.
123979         Module getloadavg.
123980         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
123981         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
123983         Module getpagesize.
123984         * m4/getpagesize.m4: New file.
123986         Module getusershell.
123987         * m4/getusershell.m4: New file.
123989         Module physmem.
123990         * m4/physmem.m4: New file.
123992         Module posixver.
123993         * m4/posixver.m4: New file.
123995         Module quotearg.
123996         * m4/quotearg.m4: New file.
123998         Module quote.
123999         * m4/quote.m4: New file.
124001         Module readutmp.
124002         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
124004         Module sig2str.
124005         * m4/sig2str.m4: New file.
124007         Other.
124008         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
124009         ulonglong.m4.
124010         * m4/intmax_t.m4: New file.
124011         * m4/d-type.m4: Indentation.
124012         * m4/jm-macros.m4: Update.
124013         * m4/prereq.m4 (jm_PREREQ): Update.
124014         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
124015         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
124016         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
124017         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
124018         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
124019         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
124020         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
124021         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
124022         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
124023         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
124024         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
124025         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
124026         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
124027         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
124028         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
124029         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
124030         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
124031         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
124032         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
124034 2002-12-24  Bruno Haible  <bruno@clisp.org>
124036         * MODULES.txt: Update according to m4/ changes.
124038         Module gettext.
124039         * config.rpath: New file, from gettext-0.11.5.
124041         * modules/*: New module descriptions.
124042         * gnulib-tool: New file.
124043         * MODULES.html.sh: New file.
124045 2002-12-21  Karl Berry  <karl@gnu.org>
124047         * doc/fdl.texi: update to version 1.2.
124049 2002-12-19  Karl Berry  <karl@gnu.org>
124051         * config/config.guess: update from prep.
124053 2002-12-18  Bruno Haible  <bruno@clisp.org>
124055         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
124056         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
124058 2002-12-17  Bruno Haible  <bruno@clisp.org>
124060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
124061         stdlib.h, string.h.
124063 2002-12-17  Bruno Haible  <bruno@clisp.org>
124065         * lib/canon-host.c (strdup): Remove unused declaration.
124067         * lib/fsusage.c: Include full_read.h.
124068         (get_fs_usage): Use full_read instead of safe_read.
124070         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
124072 2002-12-12  Karl Berry  <karl@gnu.org>
124074         * config/config.guess: update from prep.
124076 2002-12-11  Bruno Haible  <bruno@clisp.org>
124078         * m4/setenv.m4: New file, from gettext-0.11.5.
124080 2002-12-11  Bruno Haible  <bruno@clisp.org>
124082         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
124083         not unsetenv().
124084         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
124085         modifications:
124087         2002-12-11  Bruno Haible  <bruno@clisp.org>
124089                 * setenv.c (alloca): Fall back to malloc.
124090                 (freea): New macro.
124091                 (setenv): Use freea() to free memory allocated with alloca().
124093         2002-11-13  Bruno Haible  <bruno@clisp.org>
124095                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
124096                 function declarations.
124097                 * unsetenv.c (unsetenv): Likewise.
124099         2002-03-04  Bruno Haible  <bruno@clisp.org>
124101                 Portability to AIX 4.3.3.
124102                 * unsetenv.c: New file, extracted from setenv.c.
124103                 * setenv.c: Move the unsetenv() function to unsetenv.c.
124105         2001-12-20  Bruno Haible  <bruno@clisp.org>
124107                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
124108                 use malloc instead. For SunOS 4.
124110         2001-12-11  Bruno Haible  <bruno@clisp.org>
124112                 * setenv.c: Declare alloca.
124113                 (compar_fn_t): New typedef.
124114                 (KNOWN_VALUE, STORE_VALUE): Use it.
124116         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
124117         setenv.h.
124119 2002-12-10  Paul Eggert  <eggert@twinsun.com>
124121         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
124122         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
124123         Choose values that are less likely to collide with system fnmatch
124124         options.
124125         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
124126         defined (e.g., a pure POSIX system).
124127         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
124128         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
124130 2002-12-06  Paul Eggert  <eggert@twinsun.com>
124132         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
124133         a pain in practice to deal with generated m4 files.  This change
124134         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
124136         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
124137         and jm-glibc-io.m4, as they are no longer a special case.
124138         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
124139         kludge and the auto-generation stuff.  Check only whether the
124140         functions are declared, not whether they exist, since older hosts
124141         that don't declare the functions can't use the optimization anyway.
124143 2002-12-06  Jim Meyering  <jim@meyering.net>
124145         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
124147         Merge in changes from libc's misc/error.c, in preparation
124148         for the merge of gnulib's changes back into libc.
124150         * lib/error.c (_): Define only if not already defined.
124151         Move definition to follow all #include directives.
124152         Include unlocked-io.h only if !_LIBC.
124153         [_LIBC]: Include <libio/libioP.h>.
124154         [USE_IN_LIBIO]: Include <libio/iolibio.h>
124155         (fflush): Tweak definition to use INTUSE.
124156         (putc): Define.
124158 2002-12-05  Paul Eggert  <eggert@twinsun.com>
124160         * lib/alloca.c [defined emacs]: Include "lisp.h".
124161         (xalloc_die) [defined emacs]: New macro.
124162         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
124163         [! defined emacs]: Include <xalloc.h>.
124164         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
124165         (pointer): Typedef to POINTER_TYPE *.
124166         (malloc): Remove decl; we now always use xmalloc.
124167         (alloca): Use old-style definition, since Emacs needs this.
124168         Check for arithmetic overflow when computing combined size.
124170 2002-12-04  Paul Eggert  <eggert@twinsun.com>
124172         Do not generate unlocked-io.h automatically, since it's easier to
124173         maintain it by hand.
124175         * lib/unlocked-io.h: New file, from GNU diffutils,
124176         but with proper copyright notice and attribution.
124177         * lib/gen-uio: Remove.
124178         * lib/Makefile.am: Add copyright notice.
124179         (libfetish_a_SOURCES): Add unlocked-io.h.
124180         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
124181         (DISTCLEANFILES, io_functions): Remove macros.
124182         (EXTRA_DIST): Remove gen_uio.
124183         (unlocked-io.h): Remove rule.
124185 2002-12-04  Jim Meyering  <jim@meyering.net>
124187         Reflect the fact that stat.c and lstat.c are no longer generated.
124188         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
124189         (DISTCLEANFILES): Likewise.
124190         (EXTRA_DIST): Likewise.
124191         (all_local): Don't depend on stat.c or lstat.c.
124192         (stat.c, lstat.c): Remove rules.
124193         (EXTRA_DIST): Remove xstat.in.
124195         * lib/xstat.in: Remove file.  Contents moved into stat.c.
124196         * lib/stat.c: New file.  Contents mostly from xstat.in.
124197         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
124198         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
124200         * lib/safe-read.c: Rework so that it may serve to define safe_write,
124201         too.
124202         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
124204 2002-12-03  Jim Meyering  <jim@meyering.net>
124206         * lib/safe-read.c, safe-write.c: Change variable names and comments,
124207         but not semantics, to minimize the differences between these two files.
124208         (safe_read): Change comment to mention SAFE_READ_ERROR.
124210         * lib/safe-read.c (IS_EINTR): Define.
124211         (safe_read): Use IS_EINTR in place of in-function cpp directives.
124213 2002-12-02  Jim Meyering  <jim@meyering.net>
124215         * lib/safe-read.c (EINTR): Define.
124216         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
124217         (INT_MAX): Provide fallback.
124218         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
124220         * lib/safe-read.h (SAFE_READ_ERROR): Define.
124222 2002-12-02  Bruno Haible  <bruno@clisp.org>
124224         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
124225         Define, taken from safe-read.c.
124226         (INT_MAX): Provide fallback.
124227         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
124228         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
124230         * lib/safe-read.c (EINTR): Remove definition.
124231         (safe_read): Don't use EINTR if it is absent.
124233 2002-12-01  Jim Meyering  <jim@meyering.net>
124235         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
124236         zero.
124237         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
124239 2002-11-27  Paul Eggert  <eggert@twinsun.com>
124241         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
124242         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
124243         with `if (! (value < limit)) abort ();', for readability.
124245 2002-11-26  Karl Berry  <karl@gnu.org>
124247         * lib/strdup.c: copy from libc again, with jim's ok.
124248         * lib/.cppi-disable: re-add strdup.c
124250 2002-11-25  Karl Berry  <karl@gnu.org>
124252         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
124253         instead of "strtol.c".
124255 2002-11-25  Karl Berry  <karl@gnu.org>
124257         * config/install-sh: update from automake for variable quoting, $0 in
124258         error msgs, etc.
124260         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
124261         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
124262         entry.
124264 2002-11-25  Jim Meyering  <jim@meyering.net>
124266         * lib/mktime.c: Sync from libc, now that it has the latest fix.
124268 2002-11-24  Karl Berry  <karl@gnu.org>
124270         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
124271         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
124273 2002-11-24  Jim Meyering  <jim@meyering.net>
124275         Update from coreutils:
124277         * lib/mktime.c: Merge in changes from libc.
124279         Avoid a link-time failure on some Linux systems.
124280         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
124281         (otherwise).
124282         (__mon_yday): Declare with the STATIC attribute.
124283         (__mktime_internal): Likewise.
124284         Based on a report from Greg Schafer.
124286 2002-11-23  Jim Meyering  <jim@meyering.net>
124288         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
124289         Use `unsigned', not `int', as type of index.
124291         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
124293         * lib/fsusage.c: Remove unneeded parentheses around operands of
124294         `defined'.
124296 2002-11-22  Paul Eggert  <eggert@twinsun.com>
124298         * lib/quotearg.h: Allow multiple inclusion by surrounding with
124299         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
124300         so that we can be included first.
124301         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
124302         * lib/quotearg.c: Include quotearg.h immediately after config.h.
124303         No need to include stddef.h or sys/types.h any more.
124304         Surround local include files with "", not "<>".
124305         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
124306         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
124307         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
124308         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
124309         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
124310         (ISPRINT): Remove; no longer needed now that we assume C89.
124312         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
124313         Preserve errno.
124315         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
124316         quotearg_char): Use SIZE_MAX rather than
124317         (size_t) -1 when we are talking about "infinity".
124319         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
124321 2002-11-22  Paul Eggert  <eggert@twinsun.com>
124323         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
124324         hint that one should use `if (! x) abort ();' rather than `assert
124325         (x);', and anyway it's one less thing to worry about configuring.
124326         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
124327         hash_rehash, hash_insert): Use abort rather than assert.
124329 2002-11-22  Bruno Haible  <bruno@clisp.org>
124331         * lib/safe-read.h: Assume C89. Add comments.
124332         (safe_read): Change return type to size_t.
124333         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
124334         byte counts > SSIZE_MAX correctly.
124335         * lib/safe-write.h: New file.
124336         * lib/safe-write.c: New file.
124337         * lib/full-read.h: New file.
124338         * lib/full-read.c: New file.
124339         * lib/full-write.h: Assume C89. Add comments.
124340         * lib/full-write.c: Include safe-write.h.
124341         (full_write): Rewritten to use safe_write.
124342         Suggested by Jim Meyering and Paul Eggert.
124344 2002-11-21  Jim Meyering  <jim@meyering.net>
124346         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
124348         Merge in changes from the coreutils.
124350         2002-09-25  Paul Eggert  <eggert@twinsun.com>
124351         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
124352         <stdint.h>.
124353         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
124354         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
124355         int.  Work more efficiently if X is the same width as uintmax_t.
124356         Do not compare X to -1, to avoid bogus compiler warning.
124357         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
124358         Don't assume that f_frsize and f_bsize are the same type.
124360         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
124361         warning on FreeBSD.
124363         * lib/makepath.c (make_path): Restore umask *before* creating the final
124364         component.
124365         (make_path): Minor reformatting.
124367         * lib/xmalloc.c: Adjust to work with new autoconf macros,
124368         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
124369         HAVE_MALLOC/HAVE_REALLOC.
124371         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
124372         dummy ones.  At least on GNU/Linux systems, `auto' means something
124373         else.
124374         From Michael Stone.
124376 2002-11-21  Bruno Haible  <bruno@clisp.org>
124378         Remove case insensitive option matching.
124379         * lib/argmatch.h (argcasematch): Remove declaration.
124380         (ARGCASEMATCH): Remove macro.
124381         (__xargmatch_internal): Remove case_sensitive argument.
124382         (XARGMATCH): Update.
124383         (XARGCASEMATCH): Remove macro.
124384         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
124385         case_sensitive argument.
124386         (argcasematch): Remove function.
124387         (__xargmatch_internal): Remove case_sensitive argument.
124388         (main): Use XARGMATCH instead of XARGCASEMATCH.
124390         * lib/xmalloc.c: Change compile-time error message. Add comment about
124391         required autoconf version.
124393 2002-11-20  Paul Eggert  <eggert@twinsun.com>
124395         Merge argmatch cleanups from Bison.  Assume C89.
124397         * lib/argmatch.c: Include config.h here, not in argmatch.h.
124398         Include stdlib.h, for EXIT_FAILURE.
124399         Always include <string.h>, since we assume C89.
124400         (EXIT_FAILURE): Remove pre-C89 bug workaround.
124401         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
124402         Include <stddef.h> instead, since it's all we need for size_t.
124403         (PARAMS): Remove.  All uses removed.
124404         (ARRAY_CARDINALITY): Do not bother to #undef.
124405         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
124406         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
124407         Remove unnecessary parentheses.
124408         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
124409         Insert necessary parentheses.
124410         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
124411         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
124413 2002-11-19  Bruno Haible  <bruno@clisp.org>
124415         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
124416         * lib/mbswidth.h: Include <stddef.h>, for size_t.
124418         * lib/mbswidth.h (PARAMS): Remove macro.
124419         (mbswidth, mbsnwidth): Use ANSI C function declarations.
124420         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
124422         * lib/gcd.h (PARAMS): Remove macro.
124423         (gcd): Use ANSI C function declarations.
124424         * lib/gcd.c (gcd): Likewise.
124426 2002-11-15  Bruno Haible  <bruno@clisp.org>
124428         * lib/strcspn.c: Include <stddef.h>.
124429         (strcspn): Use ANSI C function declaration. Change return type to
124430         size_t. Use NULL.
124431         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
124432         (strpbrk): Use NULL.
124433         * lib/strpbrk.h (PARAMS): Remove macro.
124434         (strpbrk): Use ANSI C function declaration.
124435         * lib/strstr.c: Don't include <sys/types.h>.
124436         * lib/strstr.h (PARAMS): Remove macro.
124437         (strstr): Use ANSI C function declarations.
124439 2002-11-14  Karl Berry  <karl@gnu.org>
124441         * config/mkinstalldirs: `do' on separate line, instead of
124442         `for var; do'.
124444 2002-11-06  Bruno Haible  <bruno@clisp.org>
124446         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
124447         * lib/gcd.c (gcd): Likewise.
124449 2002-11-05  Bruno Haible  <bruno@clisp.org>
124451         * lib/gcd.h: New file, from gettext-0.11.5.
124452         * lib/gcd.c: New file, from gettext-0.11.5.
124454 2002-11-05  Bruno Haible  <bruno@clisp.org>
124456         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124457         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124458         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124459         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
124461         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
124462         <libintl.h>.
124463         * lib/makepath.c: Include gettext.h instead of <locale.h> and
124464         <libintl.h>.
124466         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
124467         * lib/human.c: Include gettext.h instead of <libintl.h>.
124468         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
124469         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
124470         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
124471         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
124472         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
124473         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
124474         (textdomain): Remove definition.
124475         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
124477         * lib/long-options.c: Remove include of <libintl.h> and definition of
124478         _.
124479         * lib/same.c: Remove include of <libintl.h> and definition of _.
124481 2002-11-04  Owen Taylor  <otaylor@redhat.com>
124483         * lib/config.charset: A few additions for Solaris.
124485 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
124487         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
124488         * lib/localcharset.c (locale_charset): Declare as extern "C".
124490 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
124492         * lib/config.charset: msdos in uk_UA uses CP1125.
124494 2002-11-04  Bruno Haible  <bruno@clisp.org>
124496         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
124497         * lib/strcase.h: New file, from GNU gettext-0.11.5.
124498         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
124499         * lib/strstr.h: New file, from GNU gettext-0.11.5.
124500         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
124502 2002-11-04  Bruno Haible  <bruno@clisp.org>
124504         * lib/localcharset.c (locale_charset): Don't return an empty string.
124506 2002-11-04  Bruno Haible  <bruno@clisp.org>
124508         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
124509         aliases.
124511 2002-11-04  Bruno Haible  <bruno@clisp.org>
124513         * lib/config.charset: Update for newest glibc. Add canonical names
124514         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
124516 2002-11-04  Bruno Haible  <bruno@clisp.org>
124518         * lib/config.charset: Add support for NetBSD.
124520 2002-11-04  Bruno Haible  <bruno@clisp.org>
124522         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
124524 2002-11-01  Bruno Haible  <bruno@clisp.org>
124526         * configure.in: Add AC_CONFIG_AUX_DIR call.
124527         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
124528         test/Makefile.
124529         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
124531 2002-09-28  Karl Berry  <karl@gnu.org>
124533         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
124534         installed automake until the next release, since changes have been
124535         made.
124537 2002-09-25  Karl Berry  <karl@gnu.org>
124539         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
124540         * lib/getopt*: copy from libc/posix.
124541         * lib/gettext.h: copy from gettext.
124542         * lib/.cppi-disable: add strdup.c, gettext.h.
124544 2002-09-25  Karl Berry  <karl@gnu.org>
124546         * config/srclist.txt: enable gettext.h check.
124547         * config/config.{guess,sub}: update from prep.
124548         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
124549                 from automake 1.6.3.
124550         See srclist*.
124552 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
124554         * regex.c (PATFETCH): Remove the translating fetch.
124555         (PATFETCH_RAW): Rename to PATFETCH.
124556         (set_image_of_range): New fun.
124557         (SET_RANGE_TABLE_WORK_AREA): Use it.
124558         (regex_compile): Don't translate the pattern chars so eagerly.
124559         Only do it when inserting an `exactn' bytecode or when handling
124560         a char-range.
124561         (mutually_exclusive_p): Avoid empty statement.
124563 2002-07-06  Jim Meyering  <meyering@lucent.com>
124565         * m4/README: Don't mention Makefile.am.in.
124566         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
124568 2002-07-01  Jim Meyering  <meyering@lucent.com>
124570         * lib/c-stack.c: Include sys/time.h.
124571         From Volker Borchert.
124573 2002-06-26  Paul Eggert  <eggert@twinsun.com>
124575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
124577 2002-06-26  Paul Eggert  <eggert@twinsun.com>
124579         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
124580         New macro.  Use it uniformly instead of
124581         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
124582         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
124583         reported by Vin Shelton.
124585 2002-06-22  Paul Eggert  <eggert@twinsun.com>
124587         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
124588         Do not assume SA_SIGINFO behavior.
124589         Bug reported by Jim Meyering on NetBSD 1.5.2.
124591 2002-06-22  Jim Meyering  <meyering@lucent.com>
124593         * m4/c-stack.m4: New file, from diffutils-2.8.2.
124594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
124596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
124597         now that configure.ac uses AC_GNU_SOURCE.
124598         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
124599         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
124601         Update to latest tools.  Suggestions from Paul Eggert.
124602         * m4/stdbool.m4: New file, from diffutils-2.8.2.
124603         * m4/gnu-source.m4: Update from diffutils-2.8.2.
124604         * m4/fnmatch.m4: Likewise.
124605         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
124606         to AC_HEADER_STDBOOL
124608 2002-06-22  Jim Meyering  <meyering@lucent.com>
124610         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
124611         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
124613 2002-06-22  Jim Meyering  <meyering@lucent.com>
124615         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
124617         * lib/exitfail.c, exitfail.h: Likewise.
124618         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
124620         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
124621         of fnmatch.h.
124622         (EXTRA_DIST): Add fnmatch_loop.c.
124623         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
124625         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
124626         * lib/fnmatch.c: Update from diffutils-2.8.2.
124627         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
124628         * lib/fnmatch.h: Remove file.
124630 2002-06-21  Jim Meyering  <meyering@lucent.com>
124632         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
124633         * m4/mbrtowc.m4: Likewise.
124635         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
124636         * m4/mbswidth.m4: Reflect name change:
124637         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
124638         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
124640         * m4/lib-link.m4: Update from gettext-0.11.2.
124641         * m4/gettext.m4: Likewise.
124643         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
124644         From Alfred M. Szmidt.
124646 2002-06-18  Paul Eggert  <eggert@twinsun.com>
124648         * lib/file-type.h: Report an error if neither S_ISREG nor
124649         S_IFREG is defined, instead of using a test specific to glibc
124650         2.2.  This should be safe, since POSIX requires S_ISREG and
124651         Unix Version 7 had S_IFREG.  We don't need to check for
124652         <sys/types.h> since we don't use any symbols that it defines.
124654 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
124656         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
124657         $@-t, so that each temporary file name is unique and valid in the first
124658         8 characters, for operation under DOS.
124660 2002-06-15  Paul Eggert  <eggert@twinsun.com>
124662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
124664 2002-06-15  Jim Meyering  <meyering@lucent.com>
124666         Work even with DJGPP 2.03, which lacks support for symlinks.
124667         From Richard Dawe.
124668         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
124669         is defined.
124670         * lib/lchown.c (S_ISLNK): Likewise.
124672 2002-06-15  Jim Meyering  <meyering@lucent.com>
124674         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
124675         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
124676         have been included before this file.
124678 2002-06-14  Jim Meyering  <meyering@lucent.com>
124680         * lib/file-type.h: Use the version from diffutils-2.8.2.
124681         * lib/file-type.c: Likewise.
124683 2002-06-07  Jim Meyering  <meyering@lucent.com>
124685         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
124686         They're needed at least for NetBSD 1.5.2.
124687         ($statxfs_includes): Include those same headers.
124688         ($statxfs_includes): Include sys/vfs.h if available.
124689         ($statxfs_includes): Likewise for sys/statvfs.h.
124690         Check for the following members in both structs statfs and statvfs:
124691         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
124693 2002-06-01  Jim Meyering  <meyering@lucent.com>
124695         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
124696         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
124698 2002-05-28  Jim Meyering  <meyering@lucent.com>
124700         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
124701         Reported by Volker Borchert.
124703 2002-05-27  Jim Meyering  <meyering@lucent.com>
124705         Fix a problem seen only on nonconforming systems whereby ls.c's
124706         use of localtime, and then of gettimeofday would cause trouble:
124707         the localtime call used to initialize rpl_gettimeofday's save
124708         mechanism would clobber ls's current local time information so
124709         that in any long listing the first file would always be listed
124710         with date 1970-01-01.  Analysis by Volker Borchert.
124712         * lib/gettimeofday.c (localtime): Undefine.
124713         (rpl_localtime): New function.
124715 2002-05-27  Jim Meyering  <meyering@lucent.com>
124717         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
124718         localtime.
124720         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
124721         use the replacement function; it wouldn't resolve at link time.
124722         Reported by Volker Borchert.
124724 2002-05-22  Jim Meyering  <meyering@lucent.com>
124726         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
124727         file-type.h.
124728         * lib/file-type.h: New file.
124729         * lib/file-type.c (file_type): New file/function.  Extracted from
124730         diffutils.
124732 2002-04-30  Jim Meyering  <meyering@lucent.com>
124734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
124736 2002-04-29  Paul Eggert  <eggert@twinsun.com>
124738         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
124740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
124742         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
124743         Do not check for alloca.h (no longer used) or stdbool.h (was never
124744         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
124746 2002-04-29  Paul Eggert  <eggert@twinsun.com>
124748         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
124750 2002-04-29  Jim Meyering  <meyering@lucent.com>
124752         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
124753         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
124754         Use AC_FUNC_STRNLEN here instead.
124756         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
124757         With autoconf-2.53a, it's part of AC_PROG_CC.
124759 2002-04-28  Paul Eggert  <eggert@twinsun.com>
124761         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
124762         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
124764 2002-04-28  Paul Eggert  <eggert@twinsun.com>
124766         * lib/sig2str.h, lib/sig2str.c: New files.
124767         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
124769 2002-04-28  Paul Eggert  <eggert@twinsun.com>
124771         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
124772         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
124773         of 127, since 64 is the largest conceivable number for ancient
124774         nonstandard hosts.
124775         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
124777 2002-04-28  Jim Meyering  <meyering@lucent.com>
124779         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
124781 2002-04-24  Jim Meyering  <meyering@lucent.com>
124783         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
124784         (jm_PREREQ): Use it.
124786         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
124787         mach/mach.h fcntl.h.
124788         Check for this function: setlocale.
124790 2002-04-24  Jim Meyering  <meyering@lucent.com>
124792         * lib/gettext.h: New file, from Gettext.
124793         * lib/Makefile.am (INCLUDES): Remove -I../intl.
124794         (libfetish_a_SOURCES): Add gettext.h.
124796 2002-04-16  Jim Meyering  <meyering@lucent.com>
124798         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
124799         ut_pid, ut_id, ut_exit.
124801 2002-04-16  Jim Meyering  <meyering@lucent.com>
124803         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
124804         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
124805         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
124807 2002-04-12  Jim Meyering  <meyering@lucent.com>
124809         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
124810         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
124811         existence of the getmntinfo function.  Needed for Darwin 5.3.
124813         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
124814         This is necessary at least on Darwin 5.3.
124816         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
124817         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
124818         strnlen.o in the library, and that makes some versions of ranlib
124819         object.
124821 2002-04-12  Jim Meyering  <meyering@lucent.com>
124823         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
124825 2002-04-09  Jim Meyering  <meyering@lucent.com>
124827         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
124828         to be more precise.  Rather than saying we're checking whether the
124829         function `works', say what we're testing.
124830         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
124831         Reported by Bruno Haible.
124833 2002-03-10  Jim Meyering  <meyering@lucent.com>
124835         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
124836         Suggestion from Santiago Vila.
124838 2002-03-08  Jim Meyering  <meyering@lucent.com>
124840         * lib/rename.c: Mention that this wrapper is needed also on
124841         mips-dec-ultrix4.4 systems.
124843 2002-03-02  Jim Meyering  <meyering@lucent.com>
124845         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
124846         not HAVE_CLOCK_SETTIME.
124848 2002-02-27  Paul Eggert  <eggert@twinsun.com>
124850         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
124851         Check for clock_settime.
124853 2002-02-27  Paul Eggert  <eggert@twinsun.com>
124855         * lib/nanosleep.h: Rename to....
124856         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
124858         * lib/gettime.c: New file.
124859         * lib/settime.c: New file.
124860         * lib/stime.c: Remove.
124862         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
124863         timespec.h.  Remove nanosleep.h.
124865 2002-02-25  Paul Eggert  <eggert@twinsun.com>
124867         * m4/acl.m4: New file.
124868         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
124869         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
124871 2002-02-25  Paul Eggert  <eggert@twinsun.com>
124873         * lib/acl.c, lib/acl.h: New files.
124874         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
124876 2002-02-24  Jim Meyering  <meyering@lucent.com>
124878         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
124879         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
124880         cause trouble.  Reported by Nelson Beebe.
124882 2002-02-23  Paul Eggert  <eggert@twinsun.com>
124884         * lib/path-concat.c (xpath_concat): Reorder code to pacify
124885         compilers that don't know that xalloc_die never returns.
124887 2002-02-20  Jim Meyering  <meyering@lucent.com>
124889         * lib/getdate.c: Regenerate using bison-1.33.
124891 2002-02-17  Jim Meyering  <meyering@lucent.com>
124893         * config/config.guess (main): Don't use `head -1'; it's no longer
124894         portable. Use `sed 1q' instead.
124896 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
124898         * m4/codeset.m4: Upgrade to gettext-0.11.
124899         * m4/gettext.m4: Upgrade to gettext-0.11.
124900         * m4/glibc21.m4: Upgrade to gettext-0.11.
124901         * m4/iconv.m4: Upgrade to gettext-0.11.
124902         * m4/isc-posix.m4: Upgrade to gettext-0.11.
124903         * m4/lcmessage.m4: Upgrade to gettext-0.11.
124904         * m4/lib-ld.m4: New file, from gettext-0.11.
124905         * m4/lib-link.m4: New file, from gettext-0.11.
124906         * m4/lib-prefix.m4: New file, from gettext-0.11.
124907         * m4/progtest.m4: Upgrade to gettext-0.11.
124909 2002-02-15  Paul Eggert  <eggert@twinsun.com>
124911         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
124912         (jm_PREREQ): Use it.
124914 2002-02-15  Paul Eggert  <eggert@twinsun.com>
124916         * lib/posixver.c, lib/posixver.h: New files.
124917         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
124919 2002-02-02  Paul Eggert  <eggert@twinsun.com>
124920             Bruno Haible  <bruno@clisp.org>
124922         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
124923         (fwrite_success_callback): New declaration.
124924         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
124925         print_unicode_char. Call failure callback instead of error.
124926         (fwrite_success_callback): New function.
124927         (exit_failure_callback): New function.
124928         (fallback_failure_callback): New function.
124929         (print_unicode_char): Call unicode_to_mb.
124931 2002-01-26  Jim Meyering  <meyering@lucent.com>
124933         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
124934         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
124936 2002-01-26  Jim Meyering  <meyering@lucent.com>
124938         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
124940 2002-01-22  Paul Eggert  <eggert@twinsun.com>
124942         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
124944 2002-01-22  Jim Meyering  <meyering@lucent.com>
124946         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
124947         Otherwise, some versions of automake would omit the rule that makes
124948         Makefile from Makefile.in.
124950 2002-01-21  Paul Eggert  <eggert@twinsun.com>
124952         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
124953         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
124954         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
124955         (memcoll): Set errno to zero if there is no error.
124957         * lib/quotearg.c (quotearg_buffer_restyled):
124958         Fix bug with quoting buffers containing NUL when backslashing escapes.
124959         This bug was exposed by the other changes in this patch.
124960         (quotearg_n_options): New arg ARGSIZE.
124961         All callers changed.
124962         (quoting_options_from_style): New function.
124963         (quotearg_n_style): Use it.
124964         (quotearg_n_style_mem): New function.
124966         * lib/quotearg.h (quotearg_n_style_mem): New function.
124968 2002-01-19  Jim Meyering  <meyering@lucent.com>
124970         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
124971         Remove useless quotes: DF_PROG="df".
124972         * m4/strnlen.m4: New file.
124974 2002-01-16  Paul Eggert  <eggert@twinsun.com>
124976         * lib/backupfile.c (ISDIGIT): Comment fix.
124977         * lib/getdate.y (ISDIGIT): Likewise.
124978         * lib/posixtm.c (ISDIGIT, year): Likewise.
124979         * lib/strverscmp.c (ISDIGIT): Likewise.
124980         * lib/userspec.c (ISDIGIT): Likewise.
124982 2002-01-16  Jim Meyering  <meyering@lucent.com>
124984         * lib/getdate.y: Add three semicolons, each just before a closing
124985         brace. Bison (as of version 1.31) no longer papers over that mistake.
124987 2002-01-05  Jim Meyering  <meyering@lucent.com>
124989         * lib/version-etc.c (version_etc_copyright): Update copyright year.
124991 2001-12-19  Paul Eggert  <eggert@twinsun.com>
124993         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
124994         not silently exit merely because the output buffer happens to
124995         have nothing pending.
124997 2001-12-18  Paul Eggert  <eggert@twinsun.com>
124999         See the big note in ../ChangeLog.
125000         * lib/human.c (suffixes): Prefer K to k for 1024.
125001         (generate_suffix_backwards): New function.
125002         (human_readable_inexact): Use it.
125003         * lib/xstrtol.c (__xstrtol): If there is no number but there
125004         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
125005         Accept 'K' as well as 'k'.
125007 2001-12-15  Jim Meyering  <meyering@lucent.com>
125009         * lib/regex.h (__restrict_arr): Update from libc.
125011         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
125012         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
125013         (STREQ): Define.
125015 2001-12-14  Jim Meyering  <meyering@lucent.com>
125017         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
125018         Suggestion from Bruno Haible.
125020 2001-12-10  Jim Meyering  <meyering@lucent.com>
125022         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
125023         xrealloc, Instead, include "xalloc.h".
125024         (initbuffer): Don't cast xmalloc return value to char*.
125025         (readline): Reword comment.
125026         Don't cast xrealloc return value to char*
125027         Return NULL, not 0.
125029 2001-12-09  Jim Meyering  <meyering@lucent.com>
125031         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
125032         about `signed and unsigned type in conditional expression'.
125033         * lib/posixtm.c (posix_time_parse): Likewise.
125035         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
125037         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
125038         to avoid a pedantic warning.
125040         * lib/getstr.c: Don't include assert.h.
125041         (getstr): Remove warning-evoking assertions.
125042         Return -1 if offset parameter is out of bounds.
125043         Change the type of a local from int to size_t.
125045         * lib/strftime.c (my_strftime_localtime_r): Include this function
125046         definition in the `#if ! HAVE_TM_GMTOFF' block.
125048         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
125049         Include xalloc.h instead.
125051 2001-12-02  Jim Meyering  <meyering@lucent.com>
125053         * lib/tempname.c: Don't declare getenv, thus reverting the change of
125054         2001-11-18.  It's no longer necessary, now that stdlib.h is always
125055         included.
125057         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
125058         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
125060 2001-11-30  Akim Demaille  <akim@epita.fr>
125062         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
125063         before being defined.
125065 2001-11-27  Paul Eggert  <eggert@twinsun.com>
125067         * lib/quotearg.h (quotearg_n, quotearg_n_style):
125068         First arg is int, not unsigned.
125069         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
125070         (SIZE_MAX, UINT_MAX): New macros.
125071         (quotearg_n_options): Abort if N is negative.
125072         Avoid overflow check on hosts where size_t is 64 bits and int
125073         is 32 bits, as overflow is impossible there.
125074         Fix off-by-one typo that caused unnecessary reallocation.
125076 2001-11-27  Jim Meyering  <meyering@lucent.com>
125078         * lib/tempname.c: Merge with version from libc.
125079         * lib/regex.c: Likewise.
125081         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
125082         systems for which STDC_HEADERS is 0, it was not included, resulting in
125083         a warning about an integer-to-pointer conversion problem with getenv.
125084         Reported by Volker Borchert.
125086 2001-11-26  Jim Meyering  <meyering@lucent.com>
125088         * lib/gtod.h: Remove file.
125089         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
125090         * lib/gettimeofday.c: Don't include gtod.h.
125091         (GTOD_init): Remove function.
125092         (rpl_gettimeofday): Do its job here instead, rather than aborting.
125093         Suggestion from Volker Borchert.
125095 2001-11-23  Jim Meyering  <meyering@lucent.com>
125097         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
125098         it.
125099         * lib/hash.c (struct hash_table): Define it here instead.
125101 2001-11-22  Jim Meyering  <meyering@lucent.com>
125103         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
125105 2001-11-20  Jim Meyering  <meyering@lucent.com>
125107         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
125108         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
125110 2001-11-19  Jim Meyering  <meyering@lucent.com>
125112         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
125113         directory.  Use "conftestXXXXXX" as the template.
125114         Suggestion from Paul Eggert.
125116         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
125117         immediately, so the test doesn't mistakenly hit the max-open-files
125118         limit.
125120 2001-11-18  Paul Eggert  <eggert@twinsun.com>
125122         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
125123         (TEMPORARIES): New macro.
125124         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
125125         removes an artificial limitation (e.g. HP-UX 10.20, where
125126         TMP_MAX is 17576).
125128 2001-11-18  Jim Meyering  <meyering@lucent.com>
125130         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
125132 2001-11-18  Jim Meyering  <meyering@lucent.com>
125134         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
125135         on SunOS 4.
125137         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
125138         files will be created before anything else.
125140 2001-11-17  Paul Eggert  <eggert@twinsun.com>
125142         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
125143         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
125145 2001-11-17  Jim Meyering  <meyering@lucent.com>
125147         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
125148         Prompted by a report from Bob Proulx.
125150         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
125151         Instead, require UTILS_FUNC_MKSTEMP.
125153 2001-11-17  Jim Meyering  <meyering@lucent.com>
125155         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
125156         Now, that's done as part of AC_FUNC_STRTOD.
125158 2001-11-17  Jim Meyering  <meyering@lucent.com>
125160         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
125161         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
125162         rather than group writable.  Patch by Juan F. Codagnone.
125164         * lib/readtokens.c: Remove explicit declarations of xmalloc and
125165         xrealloc, Instead, include "xalloc.h".
125167         * lib/mountlist.c: Include unlocked-io.h after all system headers.
125168         Remove explicit declarations of xmalloc, xrealloc,
125169         and xstrdup.  Instead, include "xalloc.h".
125171         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
125172         unlocked-io.h.
125173         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
125174         Likewise.
125175         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
125177         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
125178         Reported by Padraig Brady.
125180         * lib/mkstemp.c: #undef mkstemp.
125181         Include config.h.
125182         (rpl_mkstemp): Rename from mkstemp.
125183         Protoize.
125185 2001-11-16  Jim Meyering  <meyering@lucent.com>
125187         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
125188         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
125189         determine the amount of total physical memory, use pstat_getstatic.
125190         HPUX-11 doesn't define _SC_PHYS_PAGES.
125191         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
125192         If sysconf couldn't be used to determine the amount of available
125193         physical memory, use both pstat_getstatic and pstat_getdynamic.
125194         Based on a patch from Bob Proulx.
125196 2001-11-10  Jim Meyering  <meyering@lucent.com>
125198         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
125199         (jm_PREREQ): Use it.
125201 2001-11-09  Jim Meyering  <meyering@lucent.com>
125203         * m4/jm-macros.m4: Require autoconf-2.52f.
125204         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
125205         Use these AC_-prefixed names, not the AM_-prefixed ones.
125207         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
125209 2001-11-05  Jim Meyering  <meyering@lucent.com>
125211         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
125213 2001-11-04  Jim Meyering  <meyering@lucent.com>
125215         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
125216         $DEFS.
125218 2001-11-03  Jim Meyering  <meyering@lucent.com>
125220         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
125221         of AC_DEFUN.
125223         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
125224         know the name of the variable in the macro definition.
125226 2001-11-03  Jim Meyering  <meyering@lucent.com>
125228         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
125229         in argmatch_to_argument call.
125231         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
125232         argument.
125234         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
125235         e.g., a fault due to an attempt to free a NULL pointer.
125237 2001-11-01  Jim Meyering  <meyering@lucent.com>
125239         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
125240         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
125242 2001-11-01  Jim Meyering  <meyering@lucent.com>
125244         * lib/dirfd.c, lib/dirfd.h: New files.
125245         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
125247         * lib/hash.c (hash_print) [TESTING]: Clean up.
125249 2001-10-22  Paul Eggert  <eggert@twinsun.com>
125251         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
125252         to avoid a warning if -Wall.
125254 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
125256         * README: New file
125257         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
125258         (per RMS's instructions, this is now the canonical source)
125259         * lgpl/, gpl/: New directories.
125261 2001-10-21  Paul Eggert  <eggert@twinsun.com>
125263         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
125265 2001-10-21  Jim Meyering  <meyering@lucent.com>
125267         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
125268         this code would end up calling gettext even in packages built
125269         with --disable-nls.
125270         * lib/getopt.c (_): Likewise.
125271         * lib/regex.c (_): Likewise.
125273 2001-10-20  Paul Eggert  <eggert@twinsun.com>
125275         * m4/error.m4 (jm_PREREQ_ERROR):
125276         Do not invoke AC_CHECK_FUNCS with strerror_r, as
125277         AC_FUNC_STRERROR_R does that.
125278         Check for strerror declaration.
125280         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
125281         are supposed to have them these days.
125282         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
125283         Merge changes from latest Autoconf CVS.
125284         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
125285         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
125286         POSIX decided to standardize on the int flavor of strerror_r.
125288 2001-10-20  Paul Eggert  <eggert@twinsun.com>
125290         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
125291         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
125292         Use strerror_r that is only a macro, even if it is not a function.
125293         (strerror): Check for HAVE_DECL_STRERROR before declaring.
125294         (private_strerror): Use prototypes, not old-style function definition.
125295         (print_errno_message): New function.
125296         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
125297         char*-flavored one.
125298         (error_tail, error, error_at_line): Use it.
125300 2001-10-11  Jim Meyering  <meyering@lucent.com>
125302         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
125303         and quote_n (1, ... to avoid clobbering a buffer.
125305 2001-10-05  Jim Meyering  <meyering@lucent.com>
125307         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
125308         hash-pjw.h.
125309         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
125310         * lib/hash-pjw.h: New file.
125312 2001-09-30  Jim Meyering  <meyering@lucent.com>
125314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
125315         `struct fsstat' has the `f_fstypename' member.
125316         Use that to define FS_TYPE, which is now used to make
125317         the getfsstat link test tighter.
125319 2001-09-30  Jim Meyering  <meyering@lucent.com>
125321         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
125322         Include <sys/ucred.h>, for Apple Darwin.
125323         Include sys/mount.h and sys/fs_types.h only if available.
125324         (FS_TYPE): Define.
125325         (read_filesystem_list): Use FS_TYPE.
125327 2001-09-29  Paul Eggert  <eggert@twinsun.com>
125329         * lib/exclude.c (excluded_filename): 0 -> false, since it's
125330         a boolean context.
125332 2001-09-29  Jim Meyering  <meyering@lucent.com>
125334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
125335         [one-argument getmntent function]): Include stdio.h before mntent.h.
125336         SunOS 4.1.x needs it for the declaration of `FILE'.
125337         Patch by Volker Borchert.
125339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
125340         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
125341         sys/fs_types.h, and make the link-test for getfsstat guard #include
125342         directives with appropriate #if HAVE_*_H tests so that we can
125343         detect getfsstat on Apple Darwin1.3.7 systems.
125344         Reported by Nelson Beebe.
125345         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
125347 2001-09-28  Paul Eggert  <eggert@twinsun.com>
125349         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
125350         #defines strtoimax.  Also treat the other strto* functions
125351         like strtoimax.
125353         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
125354         Check for strtoul and strtoumax,
125355         as those declarations are made even in the signed case.
125356         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
125357         Likewise, for strtol and strtoimax.
125359 2001-09-28  Paul Eggert  <eggert@twinsun.com>
125361         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
125362         #defines strtoimax.  Also treat the other strto* functions
125363         like strtoimax.
125365         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
125366         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
125367         (strtoimax, strtoumax): Do not declare if already defined as a macro.
125369 2001-09-26  Jim Meyering  <meyering@lucent.com>
125371         Most macros in unlocked-io.h had the wrong number of arguments.
125372         * lib/gen-uio: New script.
125373         (USE_UNLOCKED_IO): Define to 1 if not already defined.
125374         * lib/unlocked-io.hin: Remove file.
125375         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
125376         rather than trying to embed it here.
125377         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
125378         Reported by Padraig Brady.
125380 2001-09-25  Volker Borchert  <bt@teknon.de>
125382         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
125383         `result'.
125385 2001-09-24  Jim Meyering  <meyering@lucent.com>
125387         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
125389 2001-09-23  Jim Meyering  <meyering@lucent.com>
125391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
125392         instead of the mere test for existence of mntent.h.  The latter
125393         would get a false-positive on AIX 3.4 systems.
125394         In the outer getmntent if-block, don't die if neither of the getmntent
125395         tests succeeds.  Instead, just fall through and continue with the
125396         remaining tests.
125398 2001-09-23  Jim Meyering  <meyering@lucent.com>
125400         * lib/mountlist.c: Remove useless parentheses in #if directives.
125401         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
125402         the deprecated MOUNTED symbol is no longer defined in mntent.h.
125404 2001-09-22  Jim Meyering  <meyering@lucent.com>
125406         * m4/gettext.m4: New file.  From gettext.
125407         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
125408         * m4/progtest.m4: Likewise
125409         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
125410         * m4/glibc21.m4: Likewise.
125412         * m4/libintl.m4: Remove.  No longer used.
125414 2001-09-22  Jim Meyering  <meyering@lucent.com>
125416         * lib/localcharset.c: Update from latest gettext.
125417         * lib/config.charset: Likewise.
125419 2001-09-20  Jim Meyering  <meyering@lucent.com>
125421         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
125422         strtoimax.
125423         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
125424         strtoumax.
125426 2001-09-20  Jim Meyering  <meyering@lucent.com>
125428         * lib/xstrtol.c (strtoimax): Guard declaration with
125429         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
125430         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
125431         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
125432         (strtoumax): Likewise, for completeness (it wasn't necessary).
125434 2001-09-17  Paul Eggert  <eggert@twinsun.com>
125436         * lib/strtoimax.c (HAVE_LONG_LONG):
125437         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
125438         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
125439         to work around bug in IBM C compiler.
125441 2001-09-17  Jim Meyering  <meyering@lucent.com>
125443         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
125444         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
125445         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
125446         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
125447         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
125448         whenever the right hand side need not be expanded by the shell.
125450 2001-09-16  Paul Eggert  <eggert@twinsun.com>
125452         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
125453         library.  It's not correct, as some older glibcs are buggy.
125454         fnmatch wasn't fixed until glibc 2.2.
125456         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
125457         special shell magic here.
125459 2001-09-16  Jim Meyering  <meyering@lucent.com>
125461         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
125462         * m4/jm-macros.m4: Require it.
125464 2001-09-16  Jim Meyering  <meyering@lucent.com>
125466         * lib/mkdir.c: New file.
125468 2001-09-15  Jim Meyering  <meyering@lucent.com>
125470         * m4/jm-macros.m4: Check for help2man.
125472 2001-09-11  Jim Meyering  <meyering@lucent.com>
125474         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
125475         The body, by Paul Eggert, was moved here from configure.in.
125476         * m4/jm-macros.m4: Require UTILS_HOST_OS.
125478 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125480         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
125481         (jm_PREREQ): Use it.
125483 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125485         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
125486         Use ssize_t, not int, to store result of readlink.
125487         Check for ssize_t overflow as well as size_t overflow,
125488         as POSIX says the result of readlink is implementation-defined
125489         when ssize_t overflows.
125490         Remove unnecessary cast to char*.
125491         Use free+malloc instead of realloc, as the storage doesn't need
125492         to be preserved and it's clearer and can be more efficient that way.
125493         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
125494         * lib/xreadlink.h (xreadlink): Update prototype.
125496 2001-09-04  Paul Eggert  <eggert@twinsun.com>
125498         * lib/xgetcwd.c: Revert some of the previous change; intead,
125499         fix the HAVE_GETCWD_NULL code to behave more like the
125500         !HAVE_GETCWD_NULL code used to.
125502         Include "xalloc.h".
125503         (xgetcwd): Do not return NULL when memory is exhausted; instead,
125504         invoke xalloc_die.
125506 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125508         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
125509         sys/param.h, as pathmax.h includes them.
125511 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125513         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
125514         (jm_PREREQ_XGETCWD): New macro.
125516         * m4/getcwd.m4: New file.
125518 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125520         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
125521         like the HAVE_GETCWD_NULL code.
125522         Include pathmax.h if not HAVE_GETCWD.
125523         Do not include xalloc.h.
125524         (INITIAL_BUFFER_SIZE): New symbol.
125525         Do not use xmalloc / xrealloc, since the caller is responsible for
125526         handling errors.  Preserve errno around `free' during failure.
125527         Do not overrun buffer when using getwd.
125529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125531         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
125532         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
125533         getcwd (NULL, 0).
125535 2001-09-03  Paul Eggert  <eggert@twinsun.com>
125537         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
125538         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
125539         spotted by Jim Meyering.
125541 2001-09-03  Jim Meyering  <meyering@lucent.com>
125543         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
125544         failure.
125546 2001-09-02  Jim Meyering  <meyering@lucent.com>
125548         * lib/error.c: Update from GNU libc.
125550 2001-09-01  Jim Meyering  <meyering@lucent.com>
125552         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
125553         Used by df.
125555 2001-09-01  Jim Meyering  <meyering@lucent.com>
125557         * lib/xreadlink.c: New file.
125558         * lib/xreadlink.h: New file.
125559         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
125560         xreadlink.h.
125562         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
125563         doesn't conflict with sparc Solaris 7's definition in
125564         /usr/include/sys/int_types.h.
125566         * lib/exclude.c: Use `""', not `<>' to #include non-system header
125567         files.
125568         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
125569         and strncasecmp as r-values.  Unixware didn't have declarations.
125571 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125573         * lib/xstrtol.h: Add copyright notice.
125574         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
125575         LONGINT_INVALID_SUFFIX_CHAR.
125577 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125579         * lib/xstrtol.c (strtoimax): New decl.
125581 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125583         * lib/xgetcwd.c: Don't include pathmax.h.
125584         Include stdlib.h and unistd.h if available.
125585         Include xalloc.h.
125586         (xmalloc, xstrdup, free): Remove decls.
125587         (xgetcwd): Don't assume sizes fit in unsigned.
125588         Check for overflow when computing sizes.
125589         Simplify reallocation code.
125591 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125593         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
125594         a directory's st_size can have an arbitrary value, so the old
125595         usage could waste an arbitrary amount of memory.  All uses
125596         changed.
125597         * lib/savedir.h: Update prototype.
125599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
125601         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
125603         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
125604         old strtoimax.c.
125606         Also, make the following further changes to make this file's
125607         configuration more similar to that of strtol.c:
125608         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
125609         (strtoumax, uintmax_t, strtoull, strtol): Remove.
125610         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
125611         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
125612         changed to signed values.
125614         And make the following changes as well:
125615         Fix copyright notice, as 1999 was missing.
125616         (verify): New macro.
125617         (strtoimax): Check sizes at compile-time, not run-time.
125618         Prefer strtol to strtoll if both work.
125619         (main): Remove; it was not that useful and was a pain to maintain.
125621         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
125623 2001-08-31  Jim Meyering  <meyering@lucent.com>
125625         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
125626         Use an initial, malloc'd, buffer of length 128 rather than
125627         a statically allocated one of length 1024.
125629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125631         Simplify code, partly by assuming autoconf 2.52 semantics.
125633         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
125635         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
125636         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
125637         All uses removed.
125638         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
125639         Move AC_REQUIRE to next-to-top level, to avoid confusion.
125640         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
125641         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
125642         jm_AC_HEADER_INTTYPES_H.
125643         * m4/jm-macros.m4 (jm_MACROS): Likewise.
125645         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
125647         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
125648         Quote first arg of AC_DEFUN.
125649         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
125650         since they are needed to parse the include file even if we need
125651         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
125652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
125653         but with opposite signedness.
125655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125657         Merge 'exclude' changes from tar 1.13.22.
125658         This fixes one or two unlikely storage allocation overflow bugs,
125659         but doesn't change user-visible behavior otherwise.
125661 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
125664         (jm_PREREQ_EXCLUDE): New macro.
125666 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125668         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
125669         tm to be declared.
125671 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125673         * lib/hash.c: Remove '2001' from copyright notice.
125675 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125677         * lib/full-write.h: New file.
125678         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
125679         * lib/full-write.c: Correct credits, as cccp.c no longer
125680         exists and anyway it was so heavily changed from the old cccp
125681         code as to be unrecognizable.  Include full-write.h.
125682         (full_write): Return size_t, with short writes meaning failure.
125683         All callers changed.  This fixes a bug with large buffers
125684         on 64-bit hosts.
125685         * lib/utime.c: Include full-write.h.
125687 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125689         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
125690         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
125691         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
125692         Include if available.
125693         (<xalloc.h>): Include
125694         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
125695         (verify): New macro.  Use it to verify that EXCLUDE macros do not
125696         collide with FNM macros.
125697         (struct patopts): New struct.
125698         (struct exclude): Use it, as exclude patterns now come with options.
125699         (new_exclude): Support above changes.
125700         (new_exclude, add_exclude_file):
125701         Initial size must now be a power of two to simplify overflow checking.
125702         (free_exclude, fnmatch_no_wildcards): New function.
125703         (excluded_filename): No longer requires options arg, as the options
125704         are determined by add_exclude.  Now returns bool, not int.
125705         (excluded_filename, add_exclude):
125706         Add support for the fancy new exclusion options.
125707         (add_exclude, add_exclude_file): Now takes int options arg.
125708         Check for arithmetic overflow when computing sizes.
125709         (add_exclude_file): xrealloc might modify errno, so don't
125710         realloc until after errno might be used.
125712         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
125713         New macros.
125714         (free_exclude): New decl.
125715         (add_exclude, add_exclude_file): Now takes int options arg.
125716         (excluded_filename): No longer requires options arg, as the options
125717         are determined by add_exclude.  Now returns bool, not int.
125719 2001-08-30  Paul Eggert  <eggert@twinsun.com>
125721         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
125723 2001-08-27  Jim Meyering  <meyering@lucent.com>
125725         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
125727         * lib/version-etc.c (N_): Remove definition.
125728         Revert most of last change.
125729         Instead, simply don't mark the `Copyright...' string for translation.
125730         Based on advice from Paul Eggert.
125732         * lib/strtoxmax.c: Tweak comment.
125734 2001-08-26  Jim Meyering  <meyering@lucent.com>
125736         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
125738         * m4/xstrtoimax.m4: New file.
125739         * m4/xstrtoumax.m4: Add comments explaining why we
125740         AC_REPLACE_FUNCS(strtol).
125742 2001-08-26  Jim Meyering  <meyering@lucent.com>
125744         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
125745         of copyright with `%s' so translators don't get an untranslated
125746         message in 2002.
125747         (COPYRIGHT_YEAR): Define.
125748         (version_etc): Use fprintf rather than fputs.
125749         Suggestion from Ulrich Drepper.
125751         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
125753         * lib/strtoll.c: New file, from GNU libc.
125754         * lib/xstrtoimax.c: New file.
125756         * lib/xstrtol.h: Add xstrtoimax.
125757         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
125758         * lib/strtoimax.c: New file.  Likewise, but first define
125759         STRTOUXMAX_SIGNED.
125761         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
125762         ...
125763         * lib/strtoxmax.c: ... then renamed to this.
125765 2001-08-18  Paul Eggert  <eggert@twinsun.com>
125767         * m4/inttypes.m4: Add AC_PREREQ(2.13).
125768         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
125769         (jm_AC_TYPE_INTMAX_T): New macro.
125770         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
125772         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
125774         * m4/longlong.m4: Renamed from ulonglong.m4.
125775         * m4/inttypes.m4: Renamed from inttypes_h.m4.
125776         * m4/uintmax_t.m4: Removed.
125778 2001-08-13  Paul Eggert  <eggert@twinsun.com>
125780         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
125781         Port to Solaris 8, where 'sed' requires a space after the 'r'
125782         command, and where sh dislikes "$/".  Clean up the spacing a bit.
125783         Redirect output to $tmp just once.
125785 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
125787         * lib/addext.c (<errno.h>): Include.
125788         (errno): Declare if not defined.
125789         (addext): Work correctly when pathconf returns -1 and leaves
125790         errno alone because there is no limit.  Also, work even if
125791         pathconf returns a value greater than SIZE_MAX.
125793 2001-08-12  Jim Meyering  <meyering@lucent.com>
125795         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
125796         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
125797         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
125798         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
125799         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
125800         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
125801         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
125802         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
125803         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
125804         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
125805         utime.m4, utimes.m4, xstrtoumax.m4:
125806         Quote the first argument in each use of AC_DEFUN.
125808 2001-08-12  Jim Meyering  <meyering@lucent.com>
125810         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
125811         Simply `return getcwd (NULL, 0);'.
125812         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
125813         Use 1300 as initial value for length, not PATH_MAX.
125815         * lib/pathmax.h: Clean up cpp syntax.
125817 2001-08-12  Jim Meyering  <meyering@lucent.com>
125819         * lib/gettimeofday.c: New file.
125820         * lib/gtod.h: New file.
125821         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
125823 2001-08-05  Jim Meyering  <meyering@lucent.com>
125825         * m4/jm-macros.m4: Require autoconf-2.52.
125827 2001-08-04  Jim Meyering  <meyering@lucent.com>
125829         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
125830         stmt, to get in sync with glibc.
125832 2001-08-03  Paul Eggert  <eggert@twinsun.com>
125834         The following changes are from gettext 0.10.39 as maintained by
125835         Bruno Haible.
125837         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
125838         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
125839         with inverted sense.  All uses changed.
125841         * lib/mbswidth.c: Don't include <limits.h>.
125842         Include <stdlib.h> and <string.h> unconditionally.
125843         (iswcntrl, mbsinit, ISCNTRL): New macros.
125844         (mbsnwidth): Use K&R style function declarations.
125845         Don't bother checking for MB_LEN_MAX == 1, since the compiler
125846         can optimize it when MB_CUR_MAX == 1.
125847         The width of control characters is zero, not 1.
125849 2001-08-03  Paul Eggert  <eggert@twinsun.com>
125851         The following changes are from gettext 0.10.39 as maintained by
125852         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
125854         * m4/codeset.m4: Upgrade to serial AM1.
125855         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
125856         all uses changed.  Quote first arg of AC_DEFUN.
125857         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
125859         * m4/iconv.m4: Upgrade to serial AM2.
125860         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
125861         Add --with-libconv-prefix.
125862         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
125863         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
125864         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
125865         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
125866         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
125868         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
125869         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
125870         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
125871         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
125872         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
125873         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
125874         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
125875         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
125876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
125878         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
125879         string.h any more.
125881         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
125882         not the default value.
125884         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
125885         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
125886         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
125887         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
125888         Also check for iswcntrl, used for wcwidth fallback.
125889         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
125890         to Autoconf 2.13.
125892 2001-08-03  Jim Meyering  <meyering@lucent.com>
125894         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
125895         as it was in the original.  Reported by Paul Eggert.
125897 2001-07-16  Jim Meyering  <meyering@lucent.com>
125899         * m4/gettimeofday.m4: New file.
125900         Prompted by a report from Bernhard Baehr.
125902 2001-07-15  Jim Meyering  <meyering@lucent.com>
125904         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
125905         stuff. Now it's in ../Makefile.cfg.
125907 2001-07-15  Jim Meyering  <meyering@lucent.com>
125909         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
125910         (BUILT_SOURCES): Add unlocked-io.h.
125911         (io_functions): Define.
125912         (unlocked-io.h): New rule.
125913         (DISTCLEANFILES): Add unlocked-io.h.
125914         (all-local): Depend on unlocked-io.h, to ensure it is created.
125916         * lib/unlocked-io.hin: New file
125918         * lib/regex.c: Update from glibc.
125920 2001-07-05  Jim Meyering  <meyering@lucent.com>
125922         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
125923         recommendation.
125924         (libfetish_a_SOURCES): Put all .h files here instead.
125925         Remove a thus-exposed (better checks in automake) duplicate and
125926         two unnecessary .h files.
125928 2001-07-04  Jim Meyering  <meyering@lucent.com>
125930         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
125931         that generates jm-glibc-io.m4 so that it doesn't trigger any make
125932         distcheck failure.
125934 2001-07-02  Jim Meyering  <meyering@lucent.com>
125936         The following changes were prompted by suggestions from Bruno Haible.
125938         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
125939         is now generated.
125940         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
125941         definition of EXTRA_DIST.
125942         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
125943         ensure that the generated file is created/updated whenever the list
125944         of $(unlocked_functions) is changed.
125945         (jm-glibc-io.m4): New rule.
125946         (unlocked-io.h): New rule -- currently unused.
125948 2001-06-24  Jim Meyering  <meyering@lucent.com>
125950         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
125951         unmatched right bracket, rather than kludging it with an extra,
125952         falsely-matching quote in a comment.  Patch by Akim Demaille.
125954 2001-06-11  Jim Meyering  <meyering@lucent.com>
125956         * lib/regex.c: Update from GNU libc.
125958 2001-05-27  Jim Meyering  <meyering@lucent.com>
125960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
125961         Check for ut_type in struct utmp.
125963 2001-05-27  Jim Meyering  <meyering@lucent.com>
125965         * lib/readutmp.h (UT_TYPE): Define.
125967 2001-05-24  Jim Meyering  <meyering@lucent.com>
125969         * lib/argmatch.c: Include "quote.h".
125970         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
125971         quote function.  Reported by Göran Uddeborg.
125973 2001-05-22  Jim Meyering  <meyering@lucent.com>
125975         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
125976         now that we use the package-supplied version unconditionally.
125977         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
125979 2001-05-21  Jim Meyering  <meyering@lucent.com>
125981         * m4/regex.m4: Change a couple backticks to single quotes to avoid
125982         shell syntax errors.
125984 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
125986         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
125988 2001-05-20  Paul Eggert  <eggert@twinsun.com>
125990         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
125991         Don't bother to check library strftime, since
125992         we'll be using our own my_strftime function anyway.
125993         Define my_strftime instead of strftime.
125995 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
125997         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
125998         which is not yet declared.
126000 2001-05-15  Jim Meyering  <meyering@lucent.com>
126002         * m4/regex.m4: Use proper quoting so brackets appear in the test
126003         program.
126004         Reported by, and with help from, Bruno Haible.
126006 2001-05-13  Jim Meyering  <meyering@lucent.com>
126008         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
126009         undefined.
126011 2001-05-11  Paul Eggert  <eggert@twinsun.com>
126013         dirname code cleanup.  base_name now behaves more compatibly
126014         with POSIX basename when given file names that have trailing
126015         slashes, and similarly for dir_name.  Add new primitives
126016         base_len and dir_len.  Put the directory-name-related decls
126017         into dirname.h.
126019         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
126020         * lib/backupfile.c (base_name): Likewise.
126021         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
126022         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
126023         * lib/makepath.c (strip_trailing_slashes): Likewise.
126024         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
126025         ISSLASH): Likewise.
126026         * lib/rename.c (strip_trailing_slashes): Likewise.
126027         * lib/same.c (base_name): Likewise.
126028         * lib/stripslash.c (ISSLASH): Likewise.
126030         * lib/addext.c: Include <dirname.h> after size_t is defined.
126031         * lib/backupfile.c: Likewise.
126033         * lib/addext.c (addext): Use base_len to trim redundant
126034         trailing slashes instead of doing it ourselves.
126035         But do not trim the last slash if it is not redundant.
126037         * lib/backupfile.c (find_backup_file_name,
126038         max_backup_version): Use base_len instead of rolling it ourselves.
126039         Handle the case of "" and (on DOS) "C:" correctly.
126041         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
126042         needed. Include <string.h>, <dirname.h>.
126043         (base_name): Allow file names ending in slashes, other than names
126044         that are all slashes.  In this case, return the basename followed
126045         by the slashes.  This is more general, and can be used in places
126046         where the original base_name purposely had an assertion failure.
126047         (base_len): New function.
126049         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
126050         Do not include <assert.h>; no longer needed.
126051         Include xalloc.h.
126052         (memrchr): Remove decl.
126053         (dir_name_r): Remove.
126054         (dir_len): Renamed from dirlen.  All callers changed.
126055         Rewrite in terms of base_name, for simplicity and consistency.
126056         (dir_name): Never return NULL.  All callers changed.
126057         Do not include <stdlib.h> in test program; no longer needed.
126058         return 0; is fine for test program.
126060         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
126061         New macros.
126062         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
126064         * lib/path-concat.c (path_concat): Use base_len to compute
126065         base length, not strlen; this means we cannot rely on memcpy
126066         to null-terminate.
126068         * lib/same.c (STREQ): Remove.
126069         (same_name): Handle the case where the basename ends in trailing '/'.
126071         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
126072         a slash was stripped.  Do not strip the last slash after a
126073         file system prefix.
126075 2001-05-11  Paul Eggert  <eggert@twinsun.com>
126077         * lib/Makefile.am (libfetish_a_SOURCES):
126078         Add strftime.c, since we now compile it on all hosts.
126080         * lib/strftime.c (my_strftime):
126081         Define to nstrftime if emacs, but only if my_strftime is not defined.
126082         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
126083         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
126084         Add one more extra argument: a nanoseconds value.
126085         All uses changed.
126086         (ns): New macro.
126087         (my_strftime function): Add %N format.
126088         (emacs_strftimeu): Renamed from emacs_strftime,
126089         with extra ut argument.
126091 2001-05-09  Paul Eggert  <eggert@twinsun.com>
126093         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
126095 2001-04-21  Jim Meyering  <meyering@lucent.com>
126097         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
126098         doesn't interfere.
126100 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
126102         * m4/ftruncate.m4: Check for chsize.
126103         Link with ftruncate.o unconditionally if ftruncate is missing.
126104         This was required when cross-compiling to i586-mingw32msvc.
126106 2001-04-08  Jim Meyering  <meyering@lucent.com>
126108         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
126109         recomputed; that's necessary when the offset spans a DST transition.
126110         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
126112 2001-04-02  Jim Meyering  <meyering@lucent.com>
126114         * lib/regex.h, regex.c: Update from GNU libc.
126116 2001-03-24  Jim Meyering  <meyering@lucent.com>
126118         * m4/jm-macros.m4: Require autoconf-2.49d.
126120 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
126122         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
126124 2001-03-19  Paul Eggert  <eggert@twinsun.com>
126126         * lib/version-etc.c (version_etc_copyright): Update to 2001.
126128 2001-03-17  Jim Meyering  <meyering@lucent.com>
126130         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
126131         now that the version in autoconf is equivalent.
126132         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
126134         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
126135         Suggestion from Akim Demaille.
126137         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
126138         (jm_PREREQ_TEMPNAME): New function.
126140 2001-03-16  Paul Eggert  <eggert@twinsun.com>
126142         * lib/tempname.c (uint64_t): Define to uintmax_t if
126143         not defined, and if UINT64_MAX is not defined.
126144         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
126145         Reported by John David Anglin.
126147 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
126149         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
126150         resolve alias if codeset is empty.
126151         * lib/config.charset (BeOS): Use wildcard syntax.
126153 2001-03-13  Jim Meyering  <meyering@lucent.com>
126155         * lib/path-concat.c (path_concat)
126156         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
126157         concatenating e.g., `C:' and `foo'.
126158         From Bruno Haible.
126160 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
126162         * lib/localcharset.c (locale_charset): Don't use
126163         setlocale(LC_CTYPE,NULL). Don't return NULL.
126164         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
126166 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
126168         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
126169         support for DOS/DJGPP.
126171 2001-03-01  Paul Eggert  <eggert@twinsun.com>
126173         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
126174         lacks mkstemp.  Compile our own tempname.c if we compile our own
126175         mkstemp.c, as mkstemp relies on tempname.
126177 2001-03-01  Jim Meyering  <meyering@lucent.com>
126179         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
126180         AH_VERBATIM really does output its argument verbatim.
126182 2001-02-28  Paul Eggert  <eggert@twinsun.com>
126184         * lib/Makefile.am (libfetish_a_SOURCES):
126185         Add dup-safer.c, fopen-safer.c.
126186         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
126188         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
126189         * lib/unistd-safer.h: New files.
126191 2001-02-25  Paul Eggert  <eggert@twinsun.com>
126193         The mkstemp replacement is taken from glibc 2.2.2, with some
126194         portability fixes for use outside glibc, as follows:
126196         * lib/tempname.c (struct_stat64): New macro.
126197         (direxists, __gen_tempname): Use it.
126198         This avoids a portability problem with Solaris 8.
126200         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
126201         (<stddef.h>, <stdint.h>, <string.h>):
126202         Include only if STDC_HEADERS || _LIBC.
126203         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
126204         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
126205         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
126206         (__set_errno): Define this macro if <errno.h> doesn't.
126207         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
126208         Define these macros if <stdio.h> doesn't.
126209         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
126210         Define these macros if <sys/stat.h>
126211         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
126212         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
126213         __xstat64): Define if not _LIBC.
126214         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
126215         (__gen_tempname): Invoke gettimeofday only if
126216         HAVE_GETTIMEOFDAY || _LIBC;
126217         otherwise, fall back on plain "time".
126218         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
126220         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
126222         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
126224 2001-02-18  Paul Eggert  <eggert@twinsun.com>
126226         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
126228 2001-02-17  Paul Eggert  <eggert@twinsun.com>
126230         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
126231         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
126232         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
126233         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126235 2001-02-17  Paul Eggert  <eggert@twinsun.com>
126237         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
126238         Remove workaround macros for hosts that have mbrtowc but not
126239         mbstate_t, as we now insist on proper declarations for both
126240         before using mbrtowc.
126242 2001-02-17  Jim Meyering  <meyering@lucent.com>
126244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
126245         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
126246         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
126247         UnixWare 7.1.1.
126249         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
126250         rather than AC_CACHE_VAL.
126252 2001-02-17  Jim Meyering  <meyering@lucent.com>
126254         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
126255         around included file name.
126257         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
126259         * lib/strftime.c: Update from GNU libc (the only changes were to
126260         comments).
126262 2001-02-17  Jim Meyering  <meyering@lucent.com>
126264         * lib/regex.c: Update from libc.
126266 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
126268         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
126269         clash.
126271 2001-02-16  Paul Eggert  <eggert@twinsun.com>
126273         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
126274         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
126275         Reported by Mark Hounschell via Paul Eggert.
126277 2001-02-07  Jim Meyering  <meyering@lucent.com>
126279         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
126281 2001-02-05  Jim Meyering  <meyering@lucent.com>
126283         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
126284         it includes the patch required for `large file' support with at least
126285         HP-UX's 10.20 /bin/cc.
126287 2001-02-03  Jim Meyering  <meyering@lucent.com>
126289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
126290         AS_IF, now that it works once again (mysteriously).
126291         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
126293 2001-01-30  Jim Meyering  <meyering@lucent.com>
126295         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
126296         * m4/chown.m4: Rename conftestchown to conftest.chown.
126297         * m4/rename.m4: s/conftestdir/conftest.d1/ and
126298         s/conftestdir2/conftest.d2/.
126299         * m4/utimes.m4: s/conftestdata/conftest.data/
126300         Inspired by Pavel Roskin's change in autoconf.
126302 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
126304         * lib/config.charset: Update for FreeBSD 4.2.
126306 2001-01-27  Jim Meyering  <meyering@lucent.com>
126308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
126309         a use of AS_IF.
126310         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
126312 2001-01-26  Jim Meyering  <meyering@lucent.com>
126314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
126315         quotearg.c includes it.
126317 2001-01-26  Jim Meyering  <meyering@lucent.com>
126319         * lib/quotearg.c: Include stddef.h.
126320         * lib/quote.c: Include stddef.h.
126321         Reported by Axel Kittenberger.
126323         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
126324         line in double quotes so that it evokes a better diagnostic.
126325         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
126326         Reported by Axel Kittenberger.
126328 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
126330         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
126331         as if it was a `charset'.
126333 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
126335         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
126336         has const.
126338 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
126340         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
126341         to avoid a warning.  Add back 'const' to inptr.
126343 2001-01-20  Jim Meyering  <meyering@lucent.com>
126345         Be sure that headers are checked before used in code compiled
126346         for the type checks.
126347         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
126348         In place of that, invoke jm_CHECK_ALL_TYPES.
126349         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
126350         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
126351         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
126352         The check for ssize_t was mistakenly run before the test for unistd.h.
126354         The configure-time check for stdbool.h was missing.
126355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
126356         (jm_PREREQ_HASH): New function.
126358 2001-01-17  Jim Meyering  <meyering@lucent.com>
126360         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
126361         for autoconf-2.49c.
126362         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
126364 2001-01-16  Jim Meyering  <meyering@lucent.com>
126366         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
126367         From Bruno Haible.
126369 2001-01-14  Jim Meyering  <meyering@lucent.com>
126371         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
126372         foo and bar.  Create conftestdir/ in the script, not in the C code.
126373         Remove directories in the script, not in the C code.
126374         Remove conftestdir{,2} before trying to create the directory.
126375         Make the entire configure script fail if the mkdir fails.
126377 2001-01-14  Jim Meyering  <meyering@lucent.com>
126379         * lib/rename.c: New file.  From Volker Borchert.
126380         Include stdlib.h, string.h or strings.h, and xalloc.h.
126381         Use strip_trailing_slashes rather than open-coding it.
126383 2001-01-03  Paul Eggert  <eggert@twinsun.com>
126385         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
126387 2001-01-03  Jim Meyering  <meyering@lucent.com>
126389         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
126390         of local `inptr' to avoid warning with some system declarations of
126391         iconv.
126393 2001-01-02  Volker Borchert  <bt@teknon.de>
126395         * m4/rename.m4: New file.
126396         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
126398 2001-01-01  Jim Meyering  <meyering@lucent.com>
126400         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
126401         even on systems with utmpx.h.  It's necessary for the declaration of
126402         utmp's ut_user member.  Reported by Andreas Jaeger.
126404         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
126405         available. They are required for the declarations of getgrgid and
126406         getpwuid resp.
126407         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
126408         Reported by Andreas Jaeger.
126410 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
126412         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
126413         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
126414         so `make install' also works in VPATH builds.
126416 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
126418         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
126419         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
126420         can be used in subdirectories.
126422 2000-12-29  Paul Eggert  <eggert@twinsun.com>
126424         * lib/modechange.c: Do not assume that mode_t uses the
126425         traditional octal encoding.  E.g. "chmod 1 FOO" should set
126426         the other-execute bit of FOO even if S_IXOTH != 1.
126428         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
126429         WOTH, XOTH, ALLM): New macros.
126430         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
126431          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
126432         Use them.
126433         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
126434         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
126435         (mode_compile):
126436         No need to use uintmax_t; unsigned long is long enough.
126437         Don't bother to get suffix since we don't use it.
126439 2000-12-26  Jim Meyering  <meyering@lucent.com>
126441         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
126442         better with autoheader.
126444 2000-12-24  Jim Meyering  <meyering@lucent.com>
126446         * lib/hash.c (is_prime): Return explicit boolean values.
126447         (hash_get_first): Return NULL to appease Irix5.6's 89.
126448         Reported by Nelson Beebe.
126450 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
126452         * lib/localcharset.c (locale_charset): Add support for Win32.
126454 2000-12-18  Paul Eggert  <eggert@twinsun.com>
126456         * lib/physmem.h, lib/physmem.c: New files.
126458         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
126459         (noinst_HEADERS): Add physmem.h.
126461         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
126462         't' for compatibility with Solaris 8 sort.
126464 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
126466         * lib/config.charset: Add support for BeOS.
126468 2000-12-17  Jim Meyering  <meyering@lucent.com>
126470         * m4/dos.m4 (jm_AC_DOS): New file and macro.
126471         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
126473 2000-12-16  Jim Meyering  <meyering@lucent.com>
126475         This bug had a serious impact on chown: `chown N:M FILE' (for integer
126476         N and M) would have treated it like `chown N:N FILE'.
126478         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
126480 2000-12-16  Jim Meyering  <meyering@lucent.com>
126482         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
126483         SHELLS_FILE to a file name that's useful on djgpp systems.
126484         Include stdlib.h.
126485         (ADDITIONAL_DEFAULT_SHELLS): Define.
126486         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
126487         Based mostly on a patch from Prashant TR.
126489 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
126491         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
126492         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
126493         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
126495 2000-12-08  Andreas Schwab  <schwab@suse.de>
126497         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
126498         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
126500 2000-12-07  Jim Meyering  <meyering@lucent.com>
126502         * lib/stripslash.c (ISSLASH): Define.
126503         (strip_trailing_slashes): Use ISSLASH rather than comparing against
126504         `/'.
126505         From Prashant TR.
126507         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
126508         (dir_name_r): Declare this function as static.
126509         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
126510         manifest itself on a name containing a mix of slashes and
126511         backslashes.
126512         Make this function work with names starting with a DOS-style
126513         drive letter and colon prefix.
126514         (dir_name): Append `.' if necessary.
126515         Based mostly on patches from Prashant TR and Eli Zaretskii.
126517         * lib/dirname.h (dir_name_r): Remove prototype.
126519 2000-12-06  Paul Eggert  <eggert@twinsun.com>
126521         * m4/off_t-format.m4: Remove this file.
126522         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
126524 2000-12-06  Jim Meyering  <meyering@lucent.com>
126526         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
126527         replacement strtoull, we may well need the replacement strtoul, too.
126528         Check for declarations of strtoul and strtoull.
126529         Check for strtol.  Mainly as a cue to cause automake to include
126530         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
126531         Check for limits.h -- strtol.c needs it.
126533 2000-12-05  Jim Meyering  <meyering@lucent.com>
126535         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
126537 2000-12-04  Jim Meyering  <meyering@lucent.com>
126539         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
126540         Also include memory.h, stdlib.h, unistd.h if appropriate.
126541         Reported by Andreas Jaeger (conflicting declaration of malloc).
126543 2000-12-02  Jim Meyering  <meyering@lucent.com>
126545         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
126546         * m4/jm-macros.m4 (jm_MACROS): require it.
126548 2000-12-02  Jim Meyering  <meyering@lucent.com>
126550         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
126552 2000-12-01  Paul Eggert  <eggert@twinsun.com>
126554         * lib/memrchr.c: Include <config.h> before any system include file.
126556 2000-11-30  Jim Meyering  <meyering@lucent.com>
126558         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
126560 2000-11-30  Jim Meyering  <meyering@lucent.com>
126562         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
126564 2000-11-29  Paul Eggert  <eggert@twinsun.com>
126566         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
126568 2000-11-26  Jim Meyering  <meyering@lucent.com>
126570         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
126572 2000-11-22  Paul Eggert  <eggert@twinsun.com>
126574         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
126575         size of (size_t) -1; it's not portable.
126577 2000-11-17  Jim Meyering  <meyering@lucent.com>
126579         * lib/strstr.c: Update from GNU libc.
126581 2000-11-17  Akim Demaille  <akim@epita.fr>
126583         * lib/obstack.h: Formatting changes.
126584         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
126585         prevent type checking.
126586         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
126587         cast the value to (void *): assigning a `foo *' to a `void *'
126588         variable is valid.
126589         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
126591 2000-11-16  Jim Meyering  <meyering@lucent.com>
126593         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
126595 2000-11-11  Jim Meyering  <meyering@lucent.com>
126597         * lib/error.c: Add a couple #includes, merging from GNU libc version.
126599 2000-11-10  Jim Meyering  <meyering@lucent.com>
126601         * lib/obstack.h: Update from GNU libc.
126602         * lib/obstack.c: Likewise.
126604 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
126606         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
126608 2000-11-06  Paul Eggert  <eggert@twinsun.com>
126610         * lib/getusershell.c (setusershell): Use rewind rather than
126611         fseek/fseeko, to avoid configuration hassles with fseeko.
126612         Don't bother opening SHELLS_FILE if shellstream is NULL;
126613         it's not necessary.
126615 2000-11-05  Jim Meyering  <meyering@lucent.com>
126617         * lib/makepath.h (make_dir): Declare.
126618         * lib/makepath.c (make_dir): Remove `static' attribute.
126619         Tweak a comment.
126621 2000-11-04  Jim Meyering  <meyering@lucent.com>
126623         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
126625 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
126627         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
126628         last one in a bucket, advance to the next bucket.
126630 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
126632         * lib/fnmatch.c: Do not comment out all the code if we are using
126633         the GNU C library, because in some cases we are replacing buggy
126634         code in the GNU C library itself.
126636 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
126638         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
126639         (regex_compile): Catch bogus \(\1\).
126641 2000-10-30  Paul Eggert  <eggert@twinsun.com>
126643         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
126644         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
126645         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
126647 2000-10-30  Paul Eggert  <eggert@twinsun.com>
126649         * lib/error.h, getline.h, modechange.h:
126650         Remove "2000" from Copyright line, as the file hasn't been
126651         changed this year other than in the copyright notice.
126653         * lib/xalloc.h: Add "2000" to Copyright line, as this file
126654         was changed this year.
126656 2000-10-29  Jim Meyering  <meyering@lucent.com>
126658         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
126659         renaming.
126660         * m4/ls-mntd-fs.m4: Likewise
126662 2000-10-29  Jim Meyering  <meyering@lucent.com>
126664         * lib/xstat.in: Fix grammar in comment.
126666 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
126668         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
126669         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
126670         doesn't define __restrict_arr.
126672 2000-10-28  Jim Meyering  <meyering@lucent.com>
126674         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
126675         (jm_PREREQ_MEMCHR): New function.
126677 2000-10-28  Jim Meyering  <meyering@lucent.com>
126679         * lib/memchr.c: Update from libc.
126680         Adjust for portability:
126681         [HAVE_STDLIB_H]: Include stdlib.h.
126682         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
126683         Undef __memchr, too.
126684         [!weak_alias]: Define __memchr to memchr.
126686         * lib/regex.c: Update from libc.
126687         * lib/regex.h: Likewise.
126688         * lib/getopt1.c: Likewise.
126689         * lib/memcmp.c: Likewise.
126691         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
126692         Avoid using fseek, when possible -- it's broken by design.
126693         Patch by Ulrich Drepper.
126695 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
126697         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
126698         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
126699         Giving in to popular pressure to shut up the compiler with casts.
126701 2000-10-26  Jim Meyering  <meyering@lucent.com>
126703         * lib/strftime.c: Update from libc.
126705 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
126707         * regex.c: More `unsigned char' -> `re_char' changes.
126708         Also change several `int' into `re_wchar_t'.
126709         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
126710         (PUSH_FAILURE_POINTER): Don't cast any more.
126711         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
126712         We want GCC to complain, since this piece of code makes
126713         re_match non-reentrant, which *should* be fixed.
126714         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
126715         (EXTEND_BUFFER): Use RETALLOC.
126716         (SET_LIST_BIT): Don't cast.
126717         (re_wchar_t): New type.
126718         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
126719         that those two functions will always properly return.
126720         (IMMEDIATE_QUIT_CHECK): Cast to void.
126721         (analyse_first): Use recursion rather than an explicit stack.
126722         (re_compile_fastmap): Can't fail anymore.
126723         (re_search_2): Don't check re_compile_fastmap for failure.
126724         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
126725         Now also sets the new value (passed in a new argument).
126726         (re_match_2_internal): Use it.
126727         Also, use a new var `reg' of type size_t when looping through regs
126728         rather than reuse the inappropriate `mcnt'.
126730 2000-10-25  Jim Meyering  <meyering@lucent.com>
126732         * lib/obstack.c: Update from libc.
126734 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
126736         * regex.c (regex_compile): Change the way of handling a range from
126737         a char less than 256 to a char not less than 256.
126739 2000-10-24  Andrew Innes  <andrewi@gnu.org>
126741         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
126742         NT-Emacs only.
126743         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
126744         so that re_search functions only quit when callers expect them to.
126746 2000-10-23  Jim Meyering  <meyering@lucent.com>
126748         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
126749         wrong.  That set_locale call must not have any side effects.
126750         From Paul Eggert.
126752 2000-10-22  Jim Meyering  <meyering@lucent.com>
126754         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
126755         [CYCLIC]: Remove now-unused definition.
126757         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
126758         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
126759         Suggestion from Ulrich Drepper.
126761 2000-10-21  Jim Meyering  <meyering@lucent.com>
126763         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
126764         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
126765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
126767 2000-10-21  Jim Meyering  <meyering@lucent.com>
126769         * lib/dirname.c (memrchr): Declare if necessary.
126770         (dir_name): Remove the restriction that there be no
126771         trailing slashes.  Now, this code skips past them, effectively
126772         ignoring them.
126773         [TEST_DIRNAME] (main): New unit tests.
126775         * lib/memrchr.c: New file from GNU libc.
126776         Undef __memrchr, too.
126777         [!weak_alias]: Define __memrchr to memrchr.
126778         Guard weak_alias use with `#ifdef weak_alias'.
126780 2000-10-21  Jim Meyering  <meyering@lucent.com>
126782         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
126783         (dir_name): Use dir_name_r.
126784         * lib/dirname.h (dir_name_r): Declare it.
126786 2000-10-17  Jim Meyering  <meyering@lucent.com>
126788         * lib/quote.h (PARAMS): Define and use.
126789         Reported by Akim Demaille.
126791         * lib/getopt.c: Update from libc.
126793 2000-10-16  Jim Meyering  <meyering@lucent.com>
126795         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
126796         setlocale.
126797         From Jan Fedak.
126799 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
126801         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
126803 2000-09-25  Jim Meyering  <meyering@lucent.com>
126805         * lib/md5.h (rol): Define (from GnuPG).
126807         * lib/sha.c: Give credit (GnuPG) where due.
126808         (M): Use rol rather than open-coding it.
126809         Add a FIXME comment.
126811 2000-09-21  Jim Meyering  <meyering@lucent.com>
126813         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
126814         Reported by Michael Stone.
126816 2000-09-20  Jim Meyering  <meyering@lucent.com>
126818         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
126819         (noinst_HEADERS): Add sha.h.
126820         Based on code from Scott G. Miller and from GnuPG.
126822 2000-09-18  Jim Meyering  <meyering@lucent.com>
126824         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
126825         LIBS. Otherwise, everyone ends up linking with -lelf for some
126826         configurations.
126827         Reported by Mike Stone.
126829 2000-09-15  Jim Meyering  <meyering@lucent.com>
126831         * lib/regex.c: Update from libc.
126833 2000-09-10  Jim Meyering  <meyering@lucent.com>
126835         * lib/getopt.c (_getopt_internal): Update from glibc.
126837 2000-09-09  Jim Meyering  <meyering@lucent.com>
126839         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
126840         think it should be used as a general replacement for isascii.
126841         * lib/fnmatch.c: Likewise.
126842         * lib/mbswidth.c: Likewise
126843         * lib/regex.c: Likewise.
126845         Don't use atoi.
126846         * lib/userspec.c: Include sys/param.h and limits.h.
126847         Include xstrtol.h.
126848         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126849         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
126850         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
126851         UID, GID.  Check range.
126853 2000-09-06  Jim Meyering  <meyering@lucent.com>
126855         * lib/getopt.c (_getopt_internal): Update from glibc.
126857 2000-08-30  Jim Meyering  <meyering@lucent.com>
126859         * lib/strftime.c: Merge in changes from GNU libc.
126861 2000-08-26  Jim Meyering  <meyering@lucent.com>
126863         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
126864         * m4/fpending.m4: New file.
126866 2000-08-26  Jim Meyering  <meyering@lucent.com>
126868         * lib/closeout.c: Include "__fpending.h".
126869         (close_stdout_status): Return right away if there's nothing to flush.
126871         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
126872         * lib/__fpending.c: New file.
126873         * lib/__fpending.h: New file.
126875 2000-08-20  Jim Meyering  <meyering@lucent.com>
126877         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
126878         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
126879         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
126881 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
126883         Improve fileutils installation on systems where running
126884         programs (like install) can't be unlinked.
126885         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
126886         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
126888 2000-08-07  Paul Eggert  <eggert@twinsun.com>
126890         Standardize on "memory exhausted" instead of "Memory exhausted"
126891         or "virtual memory exhausted".
126892         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
126893         "virtual memory exhausted".
126894         * lib/same.c (same_name): Invoke xalloc_die instead of printing
126895         our own message.
126896         * lib/userspec.c (parse_user_spec): Likewise.
126897         * lib/bumpalloc.h: comment fix
126898         * lib/same.c, userspec.c: Include xalloc.h.
126900         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
126901         not char *const and pointing to a constant array.
126902         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
126903         (xrealloc): Comment fix.
126905         * lib/userspec.c (parse_user_spec):
126906         Don't translate a message until just before returning,
126907         to avoid unnecessary translation.
126909 2000-08-07  Jim Meyering  <meyering@lucent.com>
126911         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
126912         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
126913         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
126914         getgroups.c, gethostname.c, getopt.h, group-member.c,
126915         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
126916         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
126917         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
126918         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
126919         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
126920         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
126921         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
126922         yesno.c: Back out Copyright date changes for each file with no change
126923         this year.  This eases coordination with other programs using the same
126924         source code modules.  From Paul Eggert.
126926 2000-08-06  Paul Eggert  <eggert@twinsun.com>
126928         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
126929         not char, for compatibility with glibc 2.1.3 strftime.c.
126931 2000-08-03  Greg McGary  <greg@mcgary.org>
126933         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
126934         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
126935         (EXTEND_BUFFER): Use them.
126937 2000-08-01  Jim Meyering  <meyering@lucent.com>
126939         * lib/dirname.c (ISSLASH): Define.
126940         (BACKSLASH_IS_PATH_SEPARATOR): Define.
126941         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
126942         both `\' and `/' may be use as path separators.
126943         Based on a patch from Prashant TR.
126945 2000-07-31  Paul Eggert  <eggert@twinsun.com>
126947         * lib/quotearg.c (quotearg_n_options): Don't make the initial
126948         slot vector a constant, since it might get modified.
126950 2000-07-31  Jim Meyering  <meyering@lucent.com>
126952         * lib/xmalloc.c: Use `virtual memory exhausted', not
126953         `Memory exhausted'.
126954         * lib/obstack.c (print_and_abort): Likewise.
126956 2000-07-30  Paul Eggert  <eggert@twinsun.com>
126958         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
126959         buffer, so that the caller can always quote one small
126960         component of a "memory exhausted" message in slot 0.
126961         From a suggestion by Jim Meyering.
126963 2000-07-30  Jim Meyering  <meyering@lucent.com>
126965         * lib/makepath.c (make_path): Quote the other instance, too.
126967         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
126968         (STATIC_BUF_SIZE): Define.
126969         (quotearg_n_options): Use only statically allocated storage when
126970         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
126971         than STATIC_BUF_SIZE.
126973 2000-07-29  Jim Meyering  <meyering@lucent.com>
126975         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
126976         * lib/dirname.c (dir_name): Likewise.
126978         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
126979         `/'.
126981         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
126982         (dir_name): Assert that there are no trailing slashes.
126984 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
126986         * lib/mbswidth.h (mbswidth): Add a flags argument.
126987         (mbswidth): New declaration.
126988         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
126989         * lib/mbswidth.c (mbswidth): Add a flags argument.
126990         (mbsnwidth): New function.
126992 2000-07-24  Jim Meyering  <meyering@lucent.com>
126994         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
126996 2000-07-23  Paul Eggert  <eggert@twinsun.com>
126998         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
127000 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127002         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
127003         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
127004         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
127005         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
127006         invoke multibyte primitives.
127008 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127010         * lib/quotearg.c:
127011         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
127012         so that mbstate_t is always defined.
127014         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
127015         be 1 in at least one GCC installation, and this configuration
127016         error is likely to be common.  Ignoring MB_LEN_MAX hurts
127017         performance on hosts that have mbrtowc but have only unibyte
127018         locales, but I assume these hosts are rare.
127020 2000-07-23  Paul Eggert  <eggert@twinsun.com>
127022         * lib/mbswidth.c (_XOPEN_SOURCE):
127023         Don't define; this causes problems on Solaris 7.
127024         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
127026 2000-07-23  Jim Meyering  <meyering@lucent.com>
127028         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
127029         too: getgrgid, getpwuid, getuid.
127031 2000-07-23  Jim Meyering  <meyering@lucent.com>
127033         * lib/basename.c (base_name): Add an assertion.
127035 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
127037         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
127038         shadow its mbsinit function.
127040 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
127042         * lib/mbswidth.h: New file.
127043         * lib/mbswidth.c: New file.
127044         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
127045         (noinst_HEADERS): Add mbswidth.h.
127047 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
127049         * lib/config.charset: Add support for FreeBSD. Improve support for
127050         HP-UX and IRIX 6.
127052 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
127054         * m4/mbswidth.m4: New file.
127055         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
127057 2000-07-15  Jim Meyering  <meyering@lucent.com>
127059         * lib/makepath.c: Include quote.h.
127060         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
127061         corresponding argument in a `quote (...)' call.
127062         Give better diagnostics.
127064         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
127065         (noinst_HEADERS): Add quote.h.
127067         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
127068         from tar's src/misc.c.
127069         * lib/quote.h: New file.  Prototypes for same.
127071 2000-07-14  Paul Eggert  <eggert@twinsun.com>
127073         From a suggestion by Bruno Haible.
127074         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
127075         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
127076         to decide whether to define the BeOS workaround macro;
127077         this adjusts to the change to AC_MBSTATE_T.
127079 2000-07-14  Jim Meyering  <meyering@lucent.com>
127081         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
127082         jm_AC_TYPE_UINTMAX_T.
127084 2000-07-13  Paul Eggert  <eggert@twinsun.com>
127086         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
127088         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
127089         quotearg_buffer_restyled): Add support for
127090         clocale_quoting_style.  Undo previous change to
127091         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
127092         and "{RIGHT QUOTATION MARK}" msgids.
127094 2000-07-10  Paul Eggert  <eggert@twinsun.com>
127096         From a suggestion by Bruno Haible.
127097         * m4/mbstate_t.m4 (AC_MBSTATE_T):
127098         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
127099         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
127100         and mbstate_t, to a single-part test that simply defines mbstate_t.
127101         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
127102         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
127104 2000-07-10  Jim Meyering  <meyering@lucent.com>
127106         * m4/strerror_r.m4: Mirror the correction made in autoconf.
127108         * m4/gnu-source.m4: Output to confdefs.h directly.
127109         Suggestion from Akim Demaille.
127111 2000-07-09  Paul Eggert  <eggert@twinsun.com>
127113         The old behavior of quoting `like this' doesn't look good with
127114         newer, ISO-style fonts.  See:
127115         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
127117         Instead, quote "like this" by default.  Let the translator
127118         tailor the locale-specific quoting behavior by providing
127119         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
127121         * lib/quotearg.c (N_): New macro.
127122         (gettext_default): New function.
127123         (quotearg_buffer_restyled): Use
127124         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
127125         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
127127 2000-07-09  Jim Meyering  <meyering@lucent.com>
127129         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
127130         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
127132         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
127133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
127135 2000-07-09  Jim Meyering  <meyering@lucent.com>
127137         * lib/Most files: Update copyright dates to include 2000.
127139 2000-07-08  Jim Meyering  <meyering@lucent.com>
127141         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
127142         if not defined.
127143         (xgethostname): Remove now-unnecessary #ifdef.
127144         Move declaration of `err' into loop where it's used.
127146 2000-07-05  Paul Eggert  <eggert@twinsun.com>
127147         and Bruno Haible  <haible@clisp.cons.org>
127149         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
127150         only if the test for an object-type mbstate_t fails.  This
127151         prevents us from mistakenly reporting that mbstate_t is a
127152         system object type after we "#define mbstate_t int" to work
127153         around its lack.
127155 2000-07-05  Paul Eggert  <eggert@twinsun.com>
127156         and Bruno Haible  <haible@clisp.cons.org>
127158         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
127160 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127162         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
127163         to strerror_r.
127164         Include <ctype.h> for use of isalpha.
127166 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127168         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
127169         by allocating a larger buffer. Test the gethostname return value for
127170         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
127171         returns an error and ENAMETOOLONG isn't defined.
127173 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
127175         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
127176         dimension.
127178 2000-07-04  Jim Meyering  <meyering@lucent.com>
127180         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
127181         of the deprecated AC_CHECKING.
127183 2000-07-04  Jim Meyering  <meyering@lucent.com>
127185         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
127186         Reported by Bruno Haible.
127188 2000-07-04  Jim Meyering  <meyering@lucent.com>
127190         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
127191         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
127192         lacks mbrtowc.
127194 2000-07-03  Paul Eggert  <eggert@twinsun.com>
127196         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
127197         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
127199 2000-07-03  Paul Eggert  <eggert@twinsun.com>
127200         and Bruno Haible  <haible@clisp.cons.org>
127202         * lib/quotearg.c (mbrtowc):
127203         Assign to *pwc, and return 1 only if result is nonzero.
127204         (iswprint): Use ISPRINT when substituting our own mbrtowc.
127206 2000-07-03  Jim Meyering  <meyering@lucent.com>
127208         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
127210 2000-07-03  Jim Meyering  <meyering@lucent.com>
127212         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
127213         This is necessary to get a definition of e.g., UTMP_FILE on
127214         HP-UX 10.20.
127215         From Bob Proulx.
127217 2000-07-02  Jim Meyering  <meyering@lucent.com>
127219         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
127221         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
127222         AC_LIBOBJ(function_name).
127223         * m4/chown.m4: Likewise.
127224         * m4/fnmatch.m4: Likewise.
127225         * m4/ftruncate.m4: Likewise.
127226         * m4/getgroups.m4: Likewise.
127227         * m4/getline.m4: Likewise.
127228         * m4/group-member.m4: Likewise.
127229         * m4/jm-macros.m4: Likewise.
127230         * m4/lstat.m4: Likewise.
127231         * m4/malloc.m4: Likewise.
127232         * m4/memcmp.m4: Likewise.
127233         * m4/nanosleep.m4: Likewise.
127234         * m4/putenv.m4: Likewise.
127235         * m4/realloc.m4: Likewise.
127236         * m4/regex.m4: Likewise.
127237         * m4/stat.m4: Likewise.
127238         * m4/strftime.m4: Likewise.
127240 2000-07-02  Jim Meyering  <meyering@lucent.com>
127242         * lib/quotearg.c (mbstate_t): Don't define here.
127244 2000-07-02  Jim Meyering  <meyering@lucent.com>
127246         * lib/nanosleep.c (SIGCONT): Define if not already defined.
127248 2000-07-01  Jim Meyering  <meyering@lucent.com>
127250         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
127252 2000-07-01  Jim Meyering  <meyering@lucent.com>
127254         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
127255         problem.
127257 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
127259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
127260         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
127262 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
127264         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
127265         per change in ../m4/ls-mntd-fs.m4.
127266         (read_filesystem_list): Ignore symbolic links.
127268 2000-06-29  Jim Meyering  <meyering@lucent.com>
127270         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
127271         for declaration of strcmp.
127273         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
127275         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
127276         Avoid warning by casting result to `char *' to remove `const'.
127278 2000-06-28  Jim Meyering  <meyering@lucent.com>
127280         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
127281         included by quotearg.c, for which we perform this test.  From
127282         Bruno Haible.
127284 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
127286         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
127287         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
127288         <utmpx.h> exists, put readutmp.o into LIBOBJS.
127290 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
127292         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
127294 2000-06-26  Paul Eggert  <eggert@twinsun.com>
127296         savedir now sets errno on failure and invokes xmalloc to get memory.
127297         Fix a couple of other minor bugs while we're at it.
127299         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
127300         (NAMLEN): Remove macro.
127301         (malloc, realloc): Remove decls.
127302         (stpcpy): Likewise.
127303         ("xalloc.h"): Include.
127304         (NAME_SIZE_DEFAULT): New macro.
127305         (savedir): Use xmalloc / xrealloc to allocate memory.
127306         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
127307         Skip "" directory entries.
127308         Use strlen to calculate directory entry length, since the old method
127309         is rarely used these days and isn't worth supporting.
127310         Don't use a pointer after freeing it.
127311         Check for integer overflow when calculating allocation size.
127312         Use memcpy to copy entries, instead of stpcpy.
127313         Set errno properly when returning NULL.
127314         Check for readdir error.
127316 2000-06-26  Jim Meyering  <meyering@lucent.com>
127318         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
127320 2000-06-25  Jim Meyering  <meyering@lucent.com>
127322         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
127323         Linux header bug when _XOPEN_SOURCE is defined to 500.
127325 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
127327         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
127328         deficiency.
127330 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
127332         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
127333         Include xalloc.h.
127334         Don't include <stdlib.h>.  Don't declare malloc, realloc.
127336 2000-06-24  Jim Meyering  <meyering@lucent.com>
127338         * m4/strerror_r.m4: Revive this file -- to try out an experimental
127339         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
127340         for which strerror does return char*, but which lacks a conveniently
127341         accessible declaration of the function.  If the compile-test says
127342         strerror_r doesn't work, then resort to a `run'-test that works on
127343         BeOS and segfaults on DEC Unix.
127345 2000-06-24  Jim Meyering  <meyering@lucent.com>
127347         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
127349 2000-06-23  Paul Eggert  <eggert@twinsun.com>
127351         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
127352         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
127354 2000-06-23  Paul Eggert  <eggert@twinsun.com>
127356         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
127357         (mbrtowc, mbstate_t): Define substitutes if
127358         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
127359         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
127360         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
127362 2000-06-23  Jim Meyering  <meyering@lucent.com>
127364         * m4/afs.m4: Add missing AC_MSG_RESULT.
127365         Reported by Bruno Haible.
127367         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
127368         Suggestion from Bruno Haible.
127370 2000-06-23  Jim Meyering  <meyering@lucent.com>
127372         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
127374 2000-06-21  Jim Meyering  <meyering@lucent.com>
127376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
127378 2000-06-21  Jim Meyering  <meyering@lucent.com>
127380         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
127381         (noinst_HEADERS): Add getstr.h.
127383         * lib/getline.c (getstr): Move into a separate file.
127384         * lib/getstr.c (getstr): New file, extracted from getline.c, with
127385         the following changes: new parameter, delim2; both delim[12]
127386         parameters have type `int', not `char'.  The latter would lose
127387         with 8-bit delimiters.
127388         * lib/getstr.h: New file.
127390 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127392         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
127393         than 1024, return a memory chunk of least possible size, instead
127394         of size PATH_MAX + 2. In the loop, increment the size proportionally.
127395         Use free/xmalloc instead of xrealloc to avoid copying for very long
127396         paths.
127398 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127400         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
127401         the empty string.
127403 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
127405         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
127406         address, not strdup.  Include <stdlib.h> and don't declare free().
127408 2000-06-19  Jim Meyering  <meyering@lucent.com>
127410         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
127412 2000-06-18  Jim Meyering  <meyering@lucent.com>
127414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
127416         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
127417         `checking whether...' message to be consistent with that of the
127418         lstat test.
127420 2000-06-18  Jim Meyering  <meyering@lucent.com>
127422         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
127423         Besides, these days every porting target provides a mkdir function.
127425         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
127426         needed. (this snippet comes from src/system.h).
127428 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
127430         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
127432 2000-06-15  Paul Eggert  <eggert@twinsun.com>
127434         * lib/human.c (adjust_value): New function.
127435         (human_readable_inexact): Apply rounding style even when
127436         printing approximate values.
127438 2000-06-14  Paul Eggert  <eggert@twinsun.com>
127440         * lib/human.c (human_readable_inexact): Allow an input block
127441         size that is not a multiple of the output block size, and vice versa.
127442         Reported by Piergiorgio Sartor.
127444 2000-06-14  Paul Eggert  <eggert@twinsun.com>
127446         * lib/getdate.y (get_date): Apply relative times after time
127447         zone indicator, not before.  Reported by Todd A. Jacobs.
127449 2000-06-13  Jim Meyering  <meyering@lucent.com>
127451         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
127453         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
127455 2000-06-12  Paul Eggert  <eggert@twinsun.com>
127457         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
127459 2000-06-12  Jim Meyering  <meyering@lucent.com>
127461         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
127462         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
127463         optional argument.
127464         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
127465         the optional argument, `lib'.
127467 2000-06-08  Jim Meyering  <meyering@lucent.com>
127469         * m4/largefile.m4: Remove file (now that it's part of autoconf).
127471 2000-06-04  Paul Eggert  <eggert@twinsun.com>
127473         Rewrite largefile configuration so that we don't need to run
127474         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
127475         AC_CANONICAL_HOST in configure.in -- jmm]
127477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
127478         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
127479         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
127480         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
127481         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
127482         All uses changed.
127483         Instead of inspecting the output of getconf, try to compile the
127484         test program without and with the macro definition.
127485         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
127486         for getconf.  Instead, check for the needed flags by compiling
127487         test programs.
127489 2000-06-04  Paul Eggert  <eggert@twinsun.com>
127491         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
127493 2000-06-04  Jim Meyering  <meyering@lucent.com>
127495         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
127496         SunOS 4.1.4 for which gid_t is an unsigned type.
127498 2000-06-03  Jim Meyering  <meyering@lucent.com>
127500         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
127501         now that autoconf requires that.
127503         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
127504         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
127505         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
127507 2000-06-03  Jim Meyering  <meyering@lucent.com>
127509         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
127511 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
127513         * m4/glibc21.m4: New file.
127514         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
127516 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
127518         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
127519         newer, don't install charset.alias.
127520         * lib/config.charset: Change the Linux/glibc rules so they become empty
127521         on glibc-2.1 or newer.
127523 2000-06-02  Jim Meyering  <meyering@lucent.com>
127525         * lib/mountlist.c: Back out last change.  Instead, do this...
127526         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
127527         me_dummy member using the same `ignore'-testing code.
127528         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
127529         fs_type strings.
127530         From Mark D. Roth.
127532 2000-05-29  Jim Meyering  <meyering@lucent.com>
127534         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
127535         mounts with the `ignore' attribute.  Based on a patch from
127536         Mark D. Roth.
127538 2000-05-28  Jim Meyering  <meyering@lucent.com>
127540         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
127541         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
127542         * m4/stat.m4: Likewise.
127543         * m4/lstat.m4: Likewise.
127544         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
127546         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
127547         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
127549 2000-05-26  Jim Meyering  <meyering@lucent.com>
127551         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
127553 2000-05-24  Jim Meyering  <meyering@lucent.com>
127555         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
127556         autoconf requires that.
127557         * m4/lib-check.m4: Likewise.
127558         * m4/jm-macros.m4: Likewise.
127559         * m4/strftime.m4: Likewise.
127561         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
127562         AC_CHECK_DECLS, now that autoconf requires that.
127564 2000-05-22  Jim Meyering  <meyering@lucent.com>
127566         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
127567         * m4/lstat.m4: Likewise.
127569 2000-05-22  Jim Meyering  <meyering@lucent.com>
127571         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
127573 2000-05-20  Jim Meyering  <meyering@lucent.com>
127575         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
127576         (jm_PREREQ): Use it.
127578 2000-05-18  Jim Meyering  <meyering@lucent.com>
127580         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
127581         back, too, since it may have been modified by allocate_entry.
127582         (hash_delete): Rewrite to use neither the assignment operator
127583         nor the comma operator in an if-expression.
127585 2000-05-15  Paul Eggert  <eggert@twinsun.com>
127587         * lib/closeout.c:
127588         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
127589         Remove; no longer needed.
127590         "quotearg.h": Add include.
127591         (file_name): Do not bother to explicitly initialize to NULL; it's less
127592         efficient on some hosts.
127593         (close_stdout_status): Remove test as to whether stdout was already
127594         closed; it breaks for the case "echo x | sort >&-".
127595         Quote file name colons.
127596         Do not assume that _("write error") lacks format strings.
127598 2000-05-15  Jim Meyering  <meyering@lucent.com>
127600         * lib/version-etc.c (version_etc_copyright): Update the copyright
127601         string used in all --version output.
127603 2000-05-14  Jim Meyering  <meyering@lucent.com>
127605         * lib/closeout.c (close_stdout_set_file_name): New function.
127606         (close_stdout_status): Use new file-scoped global.
127607         Return right away if fstat says the stdout file descriptor is invalid.
127608         * lib/closeout.h (close_stdout_set_file_name): Declare.
127610 2000-05-10  Jim Meyering  <meyering@lucent.com>
127612         * lib/closeout.c [default_exit_status]: New file-scoped variable.
127613         (close_stdout_set_status): New function.
127614         * lib/closeout.h (close_stdout_set_status): Declare.
127616 2000-05-09  Jim Meyering  <meyering@lucent.com>
127618         * m4/gettext.m4: Rename this...
127619         * m4/libintl.m4: ...to this.
127621 2000-05-08  Jim Meyering  <meyering@lucent.com>
127623         * lib/long-options.c: Don't include closeout.h.
127624         (parse_long_options): Don't call close_stdout for --version.
127626 2000-05-06  Paul Eggert  <eggert@twinsun.com>
127628         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
127629         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
127630         2.1.3 bug.  This avoids a clash when files like regex.c define
127631         _GNU_SOURCE.
127633 2000-05-06  Jim Meyering  <meyering@lucent.com>
127635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
127636         (AC_REPLACE_FUNCS): Add strnlen.
127638         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
127639         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
127641         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
127642         AC_SEARCH_LIBS call for nanosleep.
127643         (LIB_NANOSLEEP): Set and AC_SUBST.
127645 2000-05-06  Jim Meyering  <meyering@lucent.com>
127647         * lib/strnlen.c: Undefine __strnlen and strnlen.
127648         [!weak_alias]: Define __strnlen to strnlen.
127650         * lib/atexit.c: New file, from libiberty.
127652 2000-05-06  Jim Meyering  <meyering@lucent.com>
127654         * lib/closeout.c (close_stdout_status): Also check for errors on the
127655         stderr stream.
127657 2000-05-05  Jim Meyering  <meyering@lucent.com>
127659         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
127660         AC_SEARCH_LIBS call for clock_gettime.
127661         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
127663         * m4/search-libs.m4: Update from autoconf.
127665         su doesn't work on Solaris 2.6.
127666         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
127667         <shadow.h>.  Reported by Dragos Harabor.
127669 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
127671         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
127672         memcpy instead of xmalloc, xrealloc, path_concat.
127673         (locale_charset): Treat empty environment variables as absent.
127674         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
127676 2000-05-04  Jim Meyering  <meyering@lucent.com>
127678         * lib/getopt.c: Update from glibc.
127679         * lib/obstack.c: Likewise.
127680         * lib/obstack.h: Likewise.
127681         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
127682         file
127684         * lib/regex.h: Likewise.
127685         * lib/strndup.c: Likewise.
127686         * lib/strnlen.c: New file, from glibc.
127688 2000-05-03  Jim Meyering  <meyering@lucent.com>
127690         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
127692 2000-05-02  Paul Eggert  <eggert@twinsun.com>
127694         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
127695         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
127696         compile-time test, rather than inspecting host and OS, to
127697         decide whether to define _LARGEFILE_SOURCE.
127699 2000-05-01  Jim Meyering  <meyering@lucent.com>
127701         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
127703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
127704         Based on a patch from Bruno Haible.
127706 2000-05-01  Jim Meyering  <meyering@lucent.com>
127708         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
127710 2000-04-29  Jim Meyering  <meyering@lucent.com>
127712         * lib/path-concat.c: Declare strdup only if it's not defined.
127713         * lib/canon-host.c: Likewise.
127715 2000-04-28  Jim Meyering  <meyering@lucent.com>
127717         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
127718         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
127719         is included first, then limits.h is included by locale.h by libintl.h.
127720         From John David Anglin.
127722 2000-04-25  Jim Meyering  <meyering@lucent.com>
127724         * lib/makepath.c (S_IRWXUGO): Define.
127725         (make_path): Always perform explicit chmod if MODE specifies any
127726         of the `special' permission bits.  Prompted by a bug report against
127727         install from Mate Wierdl and Joost van Baal.
127729 2000-04-18  Jim Meyering  <meyering@lucent.com>
127731         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
127732         (jm_PREREQ): Use it.
127734 2000-04-18  Jim Meyering  <meyering@lucent.com>
127736         * lib/README: New file.
127738         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
127739         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
127741 2000-04-17  Jim Meyering  <meyering@lucent.com>
127743         Get it right :-)
127744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
127745         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
127746         Suggestion from Akim Demaille.
127748 2000-04-17  Jim Meyering  <meyering@lucent.com>
127750         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
127751         the definition of it to rpl_strftime also defined-away the system's
127752         declaration.
127754 2000-04-15  Jim Meyering  <meyering@lucent.com>
127756         Use `C' to denote so-called `contiguous' files, the same way
127757         that tar does.
127758         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
127759         (ftypelet): Use S_ISCTG.
127760         From Michael Deutschmann.
127762 2000-04-14  Jim Meyering  <meyering@lucent.com>
127764         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
127765         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
127766         clobbered.
127768 2000-04-14  Jim Meyering  <meyering@lucent.com>
127770         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
127772 2000-04-13  Jim Meyering  <meyering@lucent.com>
127774         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
127775         AH_VERBATIM to insert required #ifndef into config.h.in.
127776         Suggestion from Akim Demaille.
127778 2000-04-12  Jim Meyering  <meyering@lucent.com>
127780         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
127781         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
127782         Christian Krackowizer.
127784         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
127785         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
127786         (AC_SYS_LARGEFILE): Require.
127787         (AM_C_PROTOTYPES): Require.
127789 2000-04-08  Jim Meyering  <meyering@lucent.com>
127791         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
127792         names don't conflict.  Reported by Eli Zaretskii.
127794 2000-04-07  Jim Meyering  <meyering@lucent.com>
127796         * lib/putenv.c: Move inclusion of errno.h so it follows that of
127797         sys/types.h, to work around system header problems on AIX 3.2.5.
127798         From Bruno Haible.
127800 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
127802         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
127803         bug.  Deal with the different error behavior of Irix iconv.
127805 2000-04-05  Paul Eggert  <eggert@twinsun.com>
127807         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
127808         IRIX if the installer said otherwise.
127810 2000-04-05  Jim Meyering  <meyering@lucent.com>
127812         Portability tweaks required for ultrix4.3.
127813         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
127814         (jm_CHECK_DECLS): Add getutent to the list of functions.
127815         (_jm_DECL_HEADERS): Add utmpx.h.
127816         From John David Anglin.
127818         * m4/strftime.m4: Back out the 2000-04-02 change.
127819         Instead of that change, simply undefine putenv in the test program.
127821 2000-04-05  Jim Meyering  <meyering@lucent.com>
127823         Portability tweaks required for ultrix4.3.
127824         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
127825         getutent.
127826         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
127827         * lib/canon-host.c: Declare strdup.
127828         * lib/path-concat.c: Likewise.
127829         From John David Anglin.
127831 2000-04-04  Jim Meyering  <meyering@lucent.com>
127833         Be more DOS 8.3-friendly.
127834         * lib/ref-add.sin: Renamed from ref-add.sed.in.
127835         * lib/ref-del.sin: Renamed from ref-del.sed.in.
127836         * lib/Makefile.am: Reflect renaming.
127837         Reported by Eli Zaretskii.
127839         Use a temporary file name that won't clash with `charset.alias'
127840         in the DOS 8.3 name space.
127841         * lib/Makefile.am (charset_tmp): Define.
127842         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
127843         (uninstall-local): Likewise.
127844         Reported by Eli Zaretskii.
127846 2000-04-03  Jim Meyering  <meyering@lucent.com>
127848         * m4/gettext.m4: Fix typo in comment.
127850         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
127851         textutils/configure.in).  Suggestion from Paul Eggert.
127852         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
127854 2000-04-02  Paul Eggert  <eggert@twinsun.com>
127856         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
127857         variable in the shell rather than using putenv, which isn't
127858         portable.  This avoids the configure-time inter-test dependency
127859         on the potentially-renamed putenv function.
127861 2000-03-30  Paul Eggert  <eggert@twinsun.com>
127863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
127864         before checking struct stat.st_blksize, so that
127865         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
127867 2000-03-29  Paul Eggert  <eggert@twinsun.com>
127869         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
127870         since strftime.c uses HAVE_STRFTIME to decide whether to use
127871         the underlying strftime.
127873 2000-03-29  Paul Eggert  <eggert@twinsun.com>
127875         * lib/time/strftime.c (my_strftime): Make sure we call the system
127876         strftime, not ourselves, when invoking the underlying strftime.
127878 2000-03-24  Jim Meyering  <meyering@lucent.com>
127880         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
127881         (charset_alias): Define.
127882         (install-exec-local): Factor out common code.
127883         (uninstall-local): Split lines longer than 80.
127884         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
127885         (SUFFIXES): Define.
127886         (.sed.in.sed): New rule.  Don't redirect directly to $@.
127887         (CLEANFILES): Add ref-add.sed and ref-del.sed.
127889 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
127891         * lib/config.charset: Output a line containing "Packages using this
127892         file".
127893         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
127894         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
127895         ref-del.sed): New rules.
127897 2000-03-17  Jim Meyering  <meyering@lucent.com>
127899         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
127900         Otherwise, include <strings.h>
127902 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
127904         * lib/unicodeio.c (utf8_wctomb): New function.
127905         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
127906         format instead of in UCS-4 with platform dependent endianness.
127908 2000-03-10  Jim Meyering  <meyering@lucent.com>
127910         * m4/lib-check.m4: Look for getspnam in -lgen, too.
127911         From Marco Franzen.
127913 2000-03-07  Paul Eggert  <eggert@twinsun.com>
127915         * lib/savedir.c (savedir): Work even if directory size is
127916         negative; this can happen with some screwy NFS configurations.
127918 2000-03-06  Jim Meyering  <meyering@lucent.com>
127920         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
127921         if it's NULL (because we ran out of memory).  From Bruno Haible.
127923 2000-03-05  Jim Meyering  <meyering@lucent.com>
127925         * lib/localcharset.c ("path-concat.h"): Include.
127926         (get_charset_aliases): Use path_concat instead of ANSI string
127927         concatenation.
127929         * lib/unicodeio.h (PARAMS): Define.
127930         Use it to guard prototype.
127932 2000-03-04  Jim Meyering  <meyering@lucent.com>
127934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
127935         for lib/localcharset.c.
127937 2000-03-04  Jim Meyering  <meyering@lucent.com>
127939         * lib/Makefile.am (install-exec-local): Create $(libdir) before
127940         installing into it.
127941         (uninstall-local): Uncomment this rule so `make distcheck' works
127942         once again.
127944         * lib/unicodeio.c (<errno.h>): Include it.
127945         (errno): Declare if not defined.
127947         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
127949         * lib/config.charset: New version, incorporating remarks from a linux
127950         i18n mailing list.  From Bruno Haible.
127952 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
127954         * m4/codeset.m4: New file.
127955         * m4/iconv.m4: New file.
127956         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
127958 2000-03-03  Jim Meyering  <meyering@lucent.com>
127960         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
127962 2000-03-02  Jim Meyering  <meyering@lucent.com>
127964         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
127965         the messages come out on separate lines.
127967         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
127968         rather than jm_CHECK_DECLARATIONS.
127969         * m4/decl.m4: Remove now-unused file.
127971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
127972         geteuid.
127974 2000-03-02  Jim Meyering  <meyering@lucent.com>
127976         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
127978 2000-03-01  Jim Meyering  <meyering@lucent.com>
127980         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
127981         * lib/unicodeio.c: Likewise.
127983 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
127985         * lib/config.charset: New file.
127986         * lib/localcharset.c: New file.
127987         * lib/unicodeio.h, lib/unicodeio.c: New files.
127988         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
127989         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
127990         (noinst_HEADERS): Add unicodeio.h.
127991         (all-local, install-exec-local, charset.alias): New targets.
127993 2000-02-28  Paul Eggert  <eggert@twinsun.com>
127995         * lib/quotearg.c (ALERT_CHAR): New macro.
127996         (quotearg_buffer_restyled): Use it.
127998 2000-02-27  Jim Meyering  <meyering@lucent.com>
128000         * m4/check-decl.m4: Add getenv to the list.
128002 2000-02-27  Jim Meyering  <meyering@lucent.com>
128004         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
128005         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
128007         * lib/backupfile.c: Guard inclusion of stdlib.h with
128008         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
128009         Declare malloc if needed.
128011         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
128012         `#ifndef HAVE_DECL..'
128013         now that autoconf always defines the HAVE_DECL_ symbols.
128014         * lib/human.c: Likewise.
128015         * lib/same.c: Likewise.
128016         * lib/strtoumax.c: Likewise.
128018         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
128019         declaration check was not run.
128020         * lib/hash.c: Likewise.
128021         * lib/human.c: Likewise.
128022         * lib/same.c: Likewise.
128023         * lib/strtoumax.c: Likewise.
128025         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
128026         `.', then first look up the entire `.'-containing string as a login
128027         name.
128029 2000-02-23  Jim Meyering  <meyering@lucent.com>
128031         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
128032         in place of my hack.
128034 2000-02-18  Paul Eggert  <eggert@twinsun.com>
128036         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
128037         (textint): New typedef.
128038         (parser_control): Member year changed from int to textint.
128039         All uses changed.
128040         (YYSTYPE): Removed; replaced by %union with int and textint members.
128041         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
128042         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
128043         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
128044         (tSNUMBER, tUNUMBER): Now of type <textintval>.
128045         (date, number, to_year): Use width of number in digits, not its value,
128046         to determine whether it's a 2-digit year, or a 2-digit time.
128047         (yylex): Store number of digits of numeric tokens.
128048         Reported by John Kendall.
128050         (parser_control): Changed from struct parser_control to typedef (for
128051         consistency).  All uses changed.
128053         (tID): Removed; not used.
128054         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
128056 2000-02-14  Paul Eggert  <eggert@twinsun.com>
128058         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
128059         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
128061 2000-02-12  Jim Meyering  <meyering@lucent.com>
128063         * lib/userspec.c (ISDIGIT): Define it.
128064         (isdigit): Remove definition.
128065         (is_number): Use ISDIGIT, not isdigit.
128066         <libintl.h>: Include.
128067         (_ and N_): Define.
128068         (parse_user_spec): Mark translatable strings.
128070 2000-02-10  Jim Meyering  <meyering@lucent.com>
128072         With these changes, nanosleep.[ch] are finally enough like the other
128073         lib/* replacement files to compile on a few more losing systems.
128075         * lib/nanosleep.h: Don't include config.h.
128076         Remove prototype from declaration of nanosleep.
128077         (PARAMS): Remove now-unneeded definition.
128078         * lib/nanosleep.c: #undef nanosleep.
128079         (rpl_nanosleep): Rename from nanosleep.
128081 2000-02-10  Jim Meyering  <meyering@lucent.com>
128083         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
128084         gnu_nanosleep to rpl_nanosleep.
128086 2000-02-09  Jim Meyering  <meyering@lucent.com>
128088         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
128089         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
128091 2000-02-08  Akim Demaille  <akim@epita.fr>
128093         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
128094         `[' and `]' and remove uses of `changequote'.
128095         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
128096         (AC_SYS_LARGEFILE): Likewise.
128097         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
128098         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
128099         of changequote.
128100         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
128101         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
128102         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
128103         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
128105 2000-02-05  Jim Meyering  <meyering@lucent.com>
128107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
128108         Remove explicit use of AC_HEADER_TIME.  It is required by
128109         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
128110         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
128111         in autoconf whereby the expansion of the latter ended up preceding
128112         the expansion of its prerequisite, AC_HEADER_TIME.
128113         Reported by Volker Borchert.
128115 2000-02-03  Jim Meyering  <meyering@lucent.com>
128117         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
128119 2000-02-03  Jim Meyering  <meyering@lucent.com>
128121         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
128122         rather than with `#if HAVE_UTMPNAME'.
128124 2000-02-02  Jim Meyering  <meyering@lucent.com>
128126         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
128127         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
128128         Reported by Eli Zaretskii.
128130 2000-02-01  Jim Meyering  <meyering@lucent.com>
128132         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
128134 2000-01-31  Jim Meyering  <meyering@lucent.com>
128136         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
128137         functions.  Add the time.h and sys/time.h headers along with the
128138         AC_REQUIRE'ment of AC_HEADER_TIME.
128140 2000-01-31  Jim Meyering  <meyering@lucent.com>
128142         * lib/nanosleep.h (nanosleep): Guard declaration with
128143         `#if ! HAVE_DECL_NANOSLEEP'.
128144         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
128145         the declaration in that vendor's sys/timers.h.
128146         Reported by Christian Krackowizer.
128148         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
128149         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
128150         (ISPRINT): Likewise.
128151         Reported by Tom Tromey.
128153 2000-01-30  Jim Meyering  <meyering@lucent.com>
128155         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
128157         * m4/prereq.m4 (utmp_includes): Define.
128158         Check for ut_user and ut_name members in both struct utmpx
128159         and struct utmp.
128161 2000-01-30  Jim Meyering  <meyering@lucent.com>
128163         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
128164         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
128165         header files where only utmpx.ut_user is declared.
128167         * lib/readutmp.h (UT_USER): Define.
128169 2000-01-29  Jim Meyering  <meyering@lucent.com>
128171         * m4/lib-check.m4: New file containing library-related checks from
128172         fileutils and sh-utils (textutils had none).
128174 2000-01-28  Jim Meyering  <meyering@lucent.com>
128176         * m4/perl.m4: Change format of warning message to look more like that
128177         from the missing script.  Suggestion from François Pinard.
128179 2000-01-25  Jim Meyering  <meyering@lucent.com>
128181         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
128182         well as time.h in the compile check.
128183         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
128184         Fix typo in cross-compiling case: s/yes/no/.
128186 2000-01-23  Jim Meyering  <meyering@lucent.com>
128188         * m4/jm-macros.m4: Move df-related tests here from
128189         fileutils/configure.in
128191         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
128192         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
128194         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
128195         s/space/ac_fsusage_space/.
128196         (jm_FILE_SYSTEM_USAGE): Take two parameters.
128198         * m4/ftruncate.m4: New file (derived from part of
128199         fileutils/configure.in).
128200         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
128201         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
128203         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
128204         AC_SUBST these here, rather than just in sh-util/configure.in, so
128205         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
128206         all the same.
128207         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
128208         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
128209         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
128210         (AC_SUBST(POW_LIBM)): Likewise.
128211         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
128213 2000-01-23  Jim Meyering  <meyering@lucent.com>
128215         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
128216         obstack.c.
128218 2000-01-22  Jim Meyering  <meyering@lucent.com>
128220         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
128222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
128224         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
128225         configure.in
128226         (AC_CHECK_HEADERS): Likewise for sh-utils.
128227         (AC_CHECK_HEADERS): Likewise for textutils.
128228         Merge the three lists of headers.
128230         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
128231         from fileutils' configure.in.
128233         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
128234         code. Moved tests into their own function (_jm_DECL_HEADERS) in
128235         check-decl.m4.
128237         * m4/check-decl.m4: Use #if rather than #ifdef.
128238         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
128239         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
128240         (_jm_DECL_HEADERS): Define new function.
128241         (jm_CHECK_DECLARATIONS): Require it.
128243 2000-01-22  Jim Meyering  <meyering@lucent.com>
128245         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
128246         [! HAVE_DECL_STRTOULL]: Declare strtoull.
128247         Required for some AIX systems.  Reported by Christian Krackowizer.
128248         [TESTING] (main): New function.
128250         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
128251         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
128252         letters.
128254         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
128255         iswprint.
128257         * lib/strverscmp.c (ISDIGIT): Define.
128258         (strverscmp): Use ISDIGIT, not isdigit.
128260 2000-01-19  Jim Meyering  <meyering@lucent.com>
128262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
128263         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
128264         defines `struct timespec' in <sys/time.h>
128266         * m4/c-bs-a.m4: Remove uses of changequote altogether.
128267         Thanks to Akim for explaining.
128269 2000-01-17  Paul Eggert  <eggert@twinsun.com>
128271         * lib/nanosleep.c (nanosleep):
128272         Don't use SA_INTERRUPT to decide whether to call sigaction, as
128273         POSIX.1 doesn't require SA_INTERRUPT and some systems
128274         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
128275         it's been part of POSIX.1 since day 1 (in 1988).
128277 2000-01-17  Jim Meyering  <meyering@lucent.com>
128279         * lib/interlock: Remove unused file.  Reported by François Pinard.
128281 2000-01-16  Paul Eggert  <eggert@twinsun.com>
128283         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
128284         alert, backslash, formfeed, and vertical tab unnecessarily in
128285         shell quoting style.
128287 2000-01-16  Jim Meyering  <meyering@lucent.com>
128289         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
128290         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
128291         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
128292         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
128294 2000-01-16  Jim Meyering  <meyering@lucent.com>
128296         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
128297         because the latter didn't work.
128299 2000-01-15  Jim Meyering  <meyering@lucent.com>
128301         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
128302         (AC_REPLACE_FUNCS): Add memcpy and memset.
128303         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
128304         Add strpbrk.
128305         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
128307 2000-01-12  Jim Meyering  <meyering@lucent.com>
128309         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
128310         (jm_PREREQ): Use it.
128311         (jm_PREREQ_READUTMP): New macro.
128312         (jm_PREREQ): Use it.
128314 2000-01-11  Paul Eggert  <eggert@twinsun.com>
128316         Quote multibyte characters correctly.
128317         * m4/c-bs-a.m4: New file.
128318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
128319         (jm_PREREQ): Use it.
128321 2000-01-11  Paul Eggert  <eggert@twinsun.com>
128323         * m4/uintmax_t.m4: Port to autoconf 2.13.
128325 2000-01-08  Jim Meyering  <meyering@ascend.com>
128327         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
128328         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
128330 2000-01-04  Jim Meyering  <meyering@ascend.com>
128332         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
128333         jm_STRUCT_DIRENT_D_TYPE.
128334         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
128335         jm_STRUCT_DIRENT_D_INO.
128336         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
128337         jm_STRUCT_UTIMBUF.
128338         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
128339         renamings.
128340         * m4/utime.m4: Likewise.
128342         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
128343         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
128345 2000-01-03  Paul Eggert  <eggert@twinsun.com>
128347         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
128348         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
128350 2000-01-02  Jim Meyering  <meyering@ascend.com>
128352         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
128353         remember if this is necessary.
128355 1999-12-26  Jim Meyering  <meyering@ascend.com>
128357         * m4/jm-macros.m4: Use it here.
128358         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
128360 1999-12-23  Jim Meyering  <meyering@ascend.com>
128362         * m4/jm-macros.m4: Check for clock_gettime (moved from
128363         fileutils/configure.in)
128364         Check for gettimeofday.
128366 1999-12-20  Jim Meyering  <meyering@ascend.com>
128368         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
128369         autoconf-2.14a-1999-12-20.
128371 1999-12-19  Jim Meyering  <meyering@ascend.com>
128373         * m4/lstat-slash.m4: New file.
128374         * m4/jm-macros.m4: Use the new macro:
128375         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
128377 1999-12-07  Jim Meyering  <meyering@ascend.com>
128379         * m4/perl.m4: Require that File::Compare be available, too.
128380         Too many systems seem to lack it.
128382         * m4/strftime.m4: Add checks for most of the cpp macros tested in
128383         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
128385 1999-11-18  Paul Eggert  <eggert@twinsun.com>
128387         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
128388         problem with the QNX 4.25 shell, which doesn't propagate exit
128389         status of failed commands inside shell assignments.
128391 1999-11-17  Jim Meyering  <meyering@ascend.com>
128393         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
128395 1999-11-07  Jim Meyering  <meyering@ascend.com>
128397         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
128399 1999-11-06  Jim Meyering  <meyering@ascend.com>
128401         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
128402         * m4/jm-macros.m4 (jm_MACROS): Use it here.
128404 1999-11-05  Jim Meyering  <meyering@ascend.com>
128406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
128407         configure.in of textutils, fileutils, and sh-utils into this one
128408         (shared between those packages) file.
128409         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
128410         AC_STRUCT_ST_BLKSIZE.
128412 1999-11-03  Jim Meyering  <meyering@ascend.com>
128414         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
128415         of AC_CHECK_TYPE checks includes unistd.h.
128416         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
128417         Suggestion from Akim Demaille.
128419 1999-10-30  Jim Meyering  <meyering@ascend.com>
128421         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
128422         m4-quoted string.
128423         * m4/ls-mntd-fs.m4: Likewise.
128424         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
128425         * m4/jm-winsz1.m4: Likewise.
128427         * m4/const.m4: Remove file, since the fix made it into the experimental
128428         version of autoconf.
128429         * m4/mktime.m4: Likewise.
128431         * m4/check-type.m4: Remove file, now that the latest version of
128432         AC_CHECK_TYPE takes a third arg to specify additional #includes.
128434         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
128435         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
128436         AC_CHECK_TYPE.
128438 1999-10-04  Jim Meyering  <meyering@ascend.com>
128440         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
128442 1999-09-22  Paul Eggert  <eggert@twinsun.com>
128444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
128445         2.95.1 bug with HP-UX 10.20.
128447 1999-09-17  Jim Meyering  <meyering@ascend.com>
128449         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
128450         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
128451         due to missing strdup (against sh-utils-2.0).
128453 1999-08-29  Jim Meyering  <meyering@ascend.com>
128455         * m4/jm-macros.m4: Require jm_BISON.
128456         * m4/bison.m4: New file.
128458 1999-08-17  Paul Eggert  <eggert@twinsun.com>
128460         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
128461         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
128463 1999-08-05  Jim Meyering  <meyering@ascend.com>
128465         * m4/getline.m4: Rename test file from conftestdata to conftest.data
128466         to avoid conflicts with `conftest' on 8+3 filesystems.
128467         Suggestion from Eli Zaretskii.
128469 1999-08-04  Jim Meyering  <meyering@ascend.com>
128471         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
128472         fileutils and sh-utils (textutils's getline test was inadequate).
128473         (AM_FUNC_GETLINE): Run this test.
128474         (AC_CHECK_FUNCS): Check for getdelim.
128475         Reported by Bob Proulx.
128477 1999-08-02  Jim Meyering  <meyering@ascend.com>
128479         * m4/jm-macros.m4: Add a comment.
128481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
128484         <inttypes.h> defines strtoumax as a macro (and not as a
128485         function).
128487 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128489         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
128490         that we can shift, multiply and divide unsigned long long
128491         values; Ultrix cc can't do it.
128493 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128495         * m4/mktime.m4: New file, which is a preview of what should appear
128496         in the next public autoconf release.
128498 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128500         * m4/lfs.m4: Remove this file.
128501         * m4/largefile.m4: New file.  It contains the old contents of
128502         lfs.m4, except that all names with prefix AC_LFS have been
128503         changed to use the prefix AC_SYS_LARGEFILE instead, to be
128504         compatible with future autoconf versions.  Also, some minor m4
128505         quoting problems have been fixed.
128507 1999-08-01  Paul Eggert  <eggert@twinsun.com>
128509         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
128510         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
128511         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
128512         and simplify the shell code.
128514 1999-08-01  Jim Meyering  <meyering@ascend.com>
128516         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
128517         m4.
128519 1999-07-20  Jim Meyering  <meyering@ascend.com>
128521         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
128523 1999-07-15  Jim Meyering  <meyering@ascend.com>
128525         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
128527 1999-05-22  Jim Meyering  <meyering@ascend.com>
128529         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
128531 1999-05-20  Jim Meyering  <meyering@ascend.com>
128533         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
128534         Add a colon after each `then' in case $4 is empty.
128536 1999-05-16  Jim Meyering  <meyering@ascend.com>
128538         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
128540 1999-05-10  Jim Meyering  <meyering@ascend.com>
128542         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
128544         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
128545         AC_FUNC_MKTIME.
128547 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
128549         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
128551 1999-05-04  Paul Eggert  <eggert@twinsun.com>
128553         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
128554         not CPPFLAGS, so that linking works correctly in IRIX.
128556 1999-04-30  Paul Eggert  <eggert@twinsun.com>
128558         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
128560 1999-04-20  Paul Eggert  <eggert@twinsun.com>
128562         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
128563         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
128564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
128565         jm_AC_TYPE_UNSIGNED_LONG_LONG.
128566         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
128568         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
128570 1999-04-20  Jim Meyering  <meyering@ascend.com>
128572         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
128573         AC_REPLACE xstroull if necessary.  From Paul Eggert.
128574         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
128576 1999-04-18  Jim Meyering  <meyering@ascend.com>
128578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
128579         * m4/jm-macros.m4: Use it.
128581 1999-04-06  Jim Meyering  <meyering@ascend.com>
128583         * m4/strftime.m4: Remove test for %f.
128585 1999-03-29  Jim Meyering  <meyering@ascend.com>
128587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
128588         superset of the AC_TYPE_* checks in the textutils, fileutils,
128589         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
128590         AC_TYPE_PID_T.
128592 1999-03-28  Jim Meyering  <meyering@ascend.com>
128594         * m4/jm-macros.m4: Define GNU_PACKAGE here.
128595         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
128596         replaced e.g., in the *.sh files of the sh-utils.
128598 1999-03-20  Jim Meyering  <meyering@ascend.com>
128600         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
128601         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
128602         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
128604 1999-03-19  Jim Meyering  <meyering@ascend.com>
128606         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
128608 1999-03-12  Jim Meyering  <meyering@ascend.com>
128610         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
128612 1999-03-07  Jim Meyering  <meyering@ascend.com>
128614         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
128615         declared.
128617 1999-02-17  Jim Meyering  <meyering@ascend.com>
128619         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
128620         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
128622 1999-02-07  Jim Meyering  <meyering@ascend.com>
128624         * m4/group-member.m4: New file -- extracted from sh-utils'
128625         configure.in.
128627         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
128628         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
128630 1999-02-06  Jim Meyering  <meyering@ascend.com>
128632         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
128633         * m4/fnmatch.m4: Likewise.
128634         * m4/getgroups.m4: Likewise.
128635         * m4/lstat.m4: Likewise.
128636         * m4/malloc.m4: Likewise.
128637         * m4/putenv.m4: Likewise.
128638         * m4/realloc.m4: Likewise.
128639         * m4/regex.m4: Likewise.
128640         * m4/stat.m4: Likewise.
128641         * m4/strftime.m4: Likewise.
128642         Suggestion from Alain Magloire.
128644         * m4/chown.m4: Use `.$ac_objext', not `.o'.
128645         * m4/fnmatch.m4: Likewise.
128646         * m4/getgroups.m4: Likewise.
128647         * m4/getline.m4: Likewise.
128648         * m4/lstat.m4: Likewise.
128649         * m4/malloc.m4: Likewise.
128650         * m4/memcmp.m4: Likewise.
128651         * m4/putenv.m4: Likewise.
128652         * m4/realloc.m4: Likewise.
128653         * m4/regex.m4: Likewise.
128654         * m4/stat.m4: Likewise.
128655         * m4/strftime.m4: Likewise.
128656         Suggestion from Alain Magloire.
128658         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
128659         an argument.
128661         * m4/regex.m4: Add a run-time Test for proper operation of
128662         re_compile_pattern.
128664 1999-01-31  Jim Meyering  <meyering@ascend.com>
128666         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
128668 1999-01-30  Jim Meyering  <meyering@ascend.com>
128670         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
128672         * m4/jm-mktime.m4: Make this a wrapper around the official
128673         AM_FUNC_MKTIME rather than my private copy, now that the official one
128674         is up to date.
128675         * m4/mktime.m4: Remove file.
128677         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
128678         * m4/uptime.m4: Likewise.
128679         * m4/uintmax_t.m4: Likewise.
128681 1999-01-28  Jim Meyering  <meyering@ascend.com>
128683         * m4/jm-macros.m4: Use jm_AFS.
128684         * m4/afs.m4: New file (from fileutils' configure.in).
128686         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
128687         * m4/chown.m4: Likewise.
128688         * m4/d-ino.m4: Likewise.
128689         * m4/d-type.m4: Likewise.
128690         * m4/fnmatch.m4: Likewise.
128691         * m4/getgroups.m4: Likewise.
128692         * m4/gettext.m4: Likewise.
128693         * m4/jm-mktime.m4: Likewise.
128694         * m4/jm-winsz2.m4: Likewise.
128695         * m4/lcmessage.m4: Likewise.
128696         * m4/ls-mntd-fs.m4: Likewise.
128697         * m4/malloc.m4: Likewise.
128698         * m4/memcmp.m4: Likewise.
128699         * m4/putenv.m4: Likewise.
128700         * m4/realloc.m4: Likewise.
128701         * m4/st_mtim.m4: Likewise.
128702         * m4/strftime.m4: Likewise.
128704 1999-01-16  Jim Meyering  <meyering@ascend.com>
128706         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
128707         (ARGMATCH_DIE_DECL): Define.
128709 1999-01-12  Jim Meyering  <meyering@ascend.com>
128711         * m4/Makefile.am.in: Rewrite to avoid using fmt.
128712         Reported by Lars Hecking.
128714 1999-01-10  Jim Meyering  <meyering@ascend.com>
128716         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
128717         gross kludge.
128718         * m4/inttypes_h.m4: Likewise.
128719         * m4/lstat.m4: Likewise.
128720         * m4/malloc.m4: Likewise.
128721         * m4/readdir.m4: Likewise.
128722         * m4/realloc.m4: Likewise.
128723         * m4/st_dm_mode.m4: Likewise.
128724         * m4/stat.m4: Likewise.
128725         * m4/utimbuf.m4: Likewise.
128726         * m4/utimes.m4: Likewise.
128728         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
128729         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
128730         comments in config.h.in are meaningful.
128732         * m4/jm-macros.m4: Require autoconf-2.13 here.
128734         * m4/regex.m4: By default, don't use the included regex.c on systems
128735         with glibc 2.  Suggestion from Uli Drepper.
128737 1999-01-02  Jim Meyering  <meyering@ascend.com>
128739         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
128741 1998-12-18  Jim Meyering  <meyering@ascend.com>
128743         * m4/Makefile.am.in (Makefile.am): Simplify rule.
128744         Based on a suggestion from Lars Hecking.
128746 1998-11-16  Paul Eggert  <eggert@twinsun.com>
128748         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
128750 1998-11-16  Jim Meyering  <meyering@ascend.com>
128752         * m4/lfs.m4: Double-quote the `uname...` expression.
128754 1998-11-14  Jim Meyering  <meyering@ascend.com>
128756         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
128757         * m4/stat.m4: Likewise.
128759 1998-11-03  Jim Meyering  <meyering@ascend.com>
128761         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
128762         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
128764 1998-10-18  Jim Meyering  <meyering@ascend.com>
128766         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
128768 1998-10-17  Jim Meyering  <meyering@ascend.com>
128770         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
128771         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
128772         calls for those previously hard-coded headers.  Instead, take a new
128773         parameter.
128774         (jm_CHECK_DECLARATIONS): Reflect interface change.
128775         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
128776         (jm_CHECK_DECL_LOCALTIME_R): New macro.
128778         * m4/mktime.m4: Test for spring-forward gap before long-running test.
128780 1998-10-14  Jim Meyering  <meyering@ascend.com>
128782         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
128783         instead of "TZ=America/Vancouver".  From Paul Eggert.
128785 1998-10-11  Jim Meyering  <meyering@ascend.com>
128787         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
128788         This adds a test for a recently added compatibility fix for mktime.c.
128789         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
128791 1998-09-27  Jim Meyering  <meyering@ascend.com>
128793         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
128795         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
128796         ../configure.in, including a change from Gordon Matzigkeit to allow
128797         cross-compiling for the Hurd.
128799         * m4/glibc.m4: New file/macro to test for the GNU C Library
128800         versions 1 and 2.  From Gordon Matzigkeit.
128801         Indent.
128803 1998-09-21  Jim Meyering  <meyering@ascend.com>
128805         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
128807 1998-08-18  Paul Eggert  <eggert@twinsun.com>
128809         Port nanosecond-resolution times to UnixWare 2.1.2 and
128810         pedantic Solaris 2.6.
128812         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
128813         AC_STRUCT_ST_MTIM.
128814         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
128815         Generate name of ns member, instead of just 1 or undef.
128816         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
128818 1998-08-15  Jim Meyering  <meyering@ascend.com>
128820         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
128821         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
128822         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
128823         instead of jm_TYPE_SSIZE_T.
128825 1998-08-12  Jim Meyering  <meyering@ascend.com>
128827         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
128829 1998-08-02  Jim Meyering  <meyering@ascend.com>
128831         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
128832         in acconfig.h manually.
128834 1998-07-31  Paul Eggert  <eggert@twinsun.com>
128836         * m4/st_mtim.m4: New file.
128838 1998-07-28  Jim Meyering  <meyering@ascend.com>
128840         * m4/utimes.m4: Undef stat.
128842 1998-07-25  Jim Meyering  <meyering@ascend.com>
128844         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
128845         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
128847 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
128849         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
128850         uid and gid actually remain unchanged.
128852 1998-07-07  Jim Meyering  <meyering@ascend.com>
128854         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
128856 1998-07-04  Jim Meyering  <meyering@ascend.com>
128858         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
128859         to prove that this macro can be used in packages without regex.c.
128861 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
128863         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
128864         is to be used.
128866 1998-07-03  Jim Meyering  <meyering@ascend.com>
128868         * m4/gettext.m4: Add -lintl if it's found to be necessary.
128870         * m4/gettext.m4: New file -- from gettext-0.10.35.
128871         * m4/lcmessage.m4: Likewise.
128872         * m4/progtest.m4: Likewise.
128874         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
128875         * m4/jm-macros.m4: Require the new macro.
128877 1998-06-29  Jim Meyering  <meyering@ascend.com>
128879         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
128880         for the definition of NGROUPS (used in a system header included
128881         by sys/mount.h).
128883 1998-06-28  Jim Meyering  <meyering@ascend.com>
128885         * m4/ls-mntd-fs.m4: New file.
128886         * m4/fstypename.m4: New file.
128888         * m4/jm-macros.m4: Require the new macro.
128889         * m4/jm-glibc-io.m4: New file.
128891 1998-05-19  Jim Meyering  <meyering@ascend.com>
128893         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
128894         * m4/lchown.m4: New file.
128896         * m4/Makefile.am.in: New file.
128897         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
128899 1998-05-14  Jim Meyering  <meyering@ascend.com>
128901         * m4/Makefile.am (EXTRA_DIST): Add them.
128902         * m4/jm-macros.m4: New file.
128903         * m4/utimbuf.m4: New file.
128905 1998-05-12  Jim Meyering  <meyering@ascend.com>
128907         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
128909 1998-05-11  Jim Meyering  <meyering@ascend.com>
128911         * m4/isc-posix.m4: New file.
128913 1998-05-10  Jim Meyering  <meyering@ascend.com>
128915         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
128917 1998-05-09  Jim Meyering  <meyering@ascend.com>
128919         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
128920         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
128921         with automake.
128923         * m4/ssize_t.m4: New file.
128924         * m4/mktime.m4: Remove file -- the new automake has this now.
128926 1998-04-26  Jim Meyering  <meyering@ascend.com>
128928         * m4/assert.m4: New file.
128929         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
128931 1998-04-05  Jim Meyering  <meyering@ascend.com>
128933         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
128934         (jm_PREREQ): Use it here.
128936 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
128938         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
128939         in acconfig.h.
128941 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
128943         * m4/prereq.m4: New file.
128944         * m4/error.m4: New file.
128945         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
128947 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
128949         * m4/getline.m4: Don't set am_cv_func_working_getline before the
128950         cache-check for the same variable -- that defeated the purpose of
128951         the test; the test program was never run.  This was a problem only
128952         on systems with losing getline functions -- HP-UX 10.20 is one.
128953         Reported by Bjorn Helgaas.
128955 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
128957         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
128959 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
128961         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
128963         * m4/const.m4: New file.  Use an initializer in this declaration
128964         typedef int charset[2]; const charset x;
128965         Reported by Bob Glickstein.
128967 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
128969         * m4/chown.m4: Fix reversed types on -1 args to chown.
128970         From Kaveh Ghazi.
128972 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
128974         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
128975         Add lseek and memchr.
128977         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
128978         T.E.Dickey <dickey@clark.net> said that some older preprocessors
128979         have a 20-character limit on names.
128981 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
128983         * m4/inttypes_h.m4: New file.
128984         * m4/uintmax_t.m4: New file.
128985         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
128988         -----
128990         Local Variables:
128991         coding: utf-8
128992         End:
128994         Copyright (C) 1997-2020 Free Software Foundation, Inc.
128996         Copying and distribution of this file, with or without
128997         modification, are permitted provided the copyright notice
128998         and this notice are preserved.